From efa391f645c4fe01ed98f596b83ffad565900c87 Mon Sep 17 00:00:00 2001 From: Jun Luo <4catcode@gmail.com> Date: Fri, 21 Jul 2023 17:27:50 +0800 Subject: [PATCH] Support for new stats in AssetResponse. (#482) --- .../stellar/sdk/responses/AssetResponse.java | 27 ++ .../responses/AssetsPageDeserializerTest.java | 304 ++++++------------ 2 files changed, 126 insertions(+), 205 deletions(-) diff --git a/src/main/java/org/stellar/sdk/responses/AssetResponse.java b/src/main/java/org/stellar/sdk/responses/AssetResponse.java index e6253650b..c9ab7eef4 100644 --- a/src/main/java/org/stellar/sdk/responses/AssetResponse.java +++ b/src/main/java/org/stellar/sdk/responses/AssetResponse.java @@ -16,6 +16,9 @@ public class AssetResponse extends Response implements Pageable { @SerializedName("paging_token") private final String pagingToken; + @SerializedName("contract_id") + private final String contractID; + @SerializedName("accounts") private final AssetResponse.Accounts accounts; @@ -31,6 +34,9 @@ public class AssetResponse extends Response implements Pageable { @SerializedName("liquidity_pools_amount") private final String liquidityPoolsAmount; + @SerializedName("contracts_amount") + private final String contractsAmount; + @SerializedName("num_accounts") private final int numAccounts; @@ -40,6 +46,9 @@ public class AssetResponse extends Response implements Pageable { @SerializedName("num_liquidity_pools") private final int numLiquidityPools; + @SerializedName("num_contracts") + private final int numContracts; + @SerializedName("flags") private final AssetResponse.Flags flags; @@ -51,28 +60,34 @@ public AssetResponse( String assetCode, String assetIssuer, String pagingToken, + String contractID, Accounts accounts, Balances balances, String amount, String claimableBalancesAmount, String liquidityPoolsAmount, + String contractsAmount, int numAccounts, int numClaimableBalances, int numLiquidityPools, + int numContracts, Flags flags, Links links) { this.assetType = assetType; this.assetCode = assetCode; this.assetIssuer = assetIssuer; this.pagingToken = pagingToken; + this.contractID = contractID; this.accounts = accounts; this.balances = balances; this.amount = amount; this.claimableBalancesAmount = claimableBalancesAmount; this.liquidityPoolsAmount = liquidityPoolsAmount; + this.contractsAmount = contractsAmount; this.numAccounts = numAccounts; this.numClaimableBalances = numClaimableBalances; this.numLiquidityPools = numLiquidityPools; + this.numContracts = numContracts; this.flags = flags; this.links = links; } @@ -129,6 +144,18 @@ public int getNumAccounts() { return numAccounts; } + public String getContractID() { + return contractID; + } + + public String getContractsAmount() { + return contractsAmount; + } + + public int getNumContracts() { + return numContracts; + } + public Flags getFlags() { return flags; } diff --git a/src/test/java/org/stellar/sdk/responses/AssetsPageDeserializerTest.java b/src/test/java/org/stellar/sdk/responses/AssetsPageDeserializerTest.java index c8d966f4d..68f5dd94a 100644 --- a/src/test/java/org/stellar/sdk/responses/AssetsPageDeserializerTest.java +++ b/src/test/java/org/stellar/sdk/responses/AssetsPageDeserializerTest.java @@ -13,48 +13,53 @@ public void testDeserialize() { assertEquals( page.getLinks().getSelf().getHref(), - "https://horizon.stellar.org/assets?order=asc&limit=10&cursor="); + "https://horizon-futurenet.stellar.org/assets?cursor=FRS1_GC6HLY2JXKXYXUU3XYC63O2RJNH4E3GEW26ABTHDF6AF6MY32B5QRISO_credit_alphanum4&limit=5&order=asc"); assertEquals( page.getLinks().getNext().getHref(), - "https://horizon.stellar.org/assets?order=asc&limit=10&cursor=AsrtoDollar_GDJWXY5XUASXNL4ABCONR6T5MOXJ2S4HD6WDNAJDSDKQ4VS3TVUQJEDJ_credit_alphanum12"); + "https://horizon-futurenet.stellar.org/assets?cursor=Fsdk_GBP5VJVRLEZWRMOARGWIPZKV26PBR7SQPHC43ZNJNTATFDOPTOQB4P7I_credit_alphanum4&limit=5&order=asc"); - assertEquals(page.getRecords().get(0).getAssetType(), "credit_alphanum12"); - assertEquals(page.getRecords().get(0).getAssetCode(), "6497847"); + assertEquals(page.getRecords().get(0).getAssetType(), "credit_alphanum4"); + assertEquals(page.getRecords().get(0).getAssetCode(), "Fsdk"); assertEquals( page.getRecords().get(0).getAssetIssuer(), - "GCGNWKCJ3KHRLPM3TM6N7D3W5YKDJFL6A2YCXFXNMRTZ4Q66MEMZ6FI2"); + "GAO5OFEWI5ABK66MSPQ6HBXSXNCQLDTF6J444ICGYIQYAPFIWZ7V4MED"); assertEquals( page.getRecords().get(0).getPagingToken(), - "6497847_GCGNWKCJ3KHRLPM3TM6N7D3W5YKDJFL6A2YCXFXNMRTZ4Q66MEMZ6FI2_credit_alphanum12"); + "Fsdk_GAO5OFEWI5ABK66MSPQ6HBXSXNCQLDTF6J444ICGYIQYAPFIWZ7V4MED_credit_alphanum4"); assertEquals(page.getRecords().get(0).getAccounts().authorized(), 1); assertEquals(page.getRecords().get(0).getAccounts().authorizedToMaintainLiabilities(), 0); assertEquals(page.getRecords().get(0).getAccounts().unauthorized(), 0); - assertEquals(page.getRecords().get(0).getBalances().authorized(), "0.0000000"); + assertEquals(page.getRecords().get(0).getBalances().authorized(), "200.0000000"); assertEquals( page.getRecords().get(0).getBalances().authorizedToMaintainLiabilities(), "0.0000000"); assertEquals(page.getRecords().get(0).getBalances().unauthorized(), "0.0000000"); assertEquals(page.getRecords().get(0).getNumClaimableBalances(), 0); assertEquals(page.getRecords().get(0).getClaimableBalancesAmount(), "0.0000000"); - assertEquals(page.getRecords().get(0).getAmount(), "0.0000000"); + assertEquals(page.getRecords().get(0).getAmount(), "200.0000000"); assertEquals(page.getRecords().get(0).getNumAccounts(), 1); assertEquals( page.getRecords().get(0).getLinks().getToml().getHref(), "https://www.stellar.org/.well-known/stellar.toml"); - assertEquals(page.getRecords().get(0).getFlags().isAuthRequired(), true); - assertEquals(page.getRecords().get(0).getFlags().isAuthRevocable(), false); + assertTrue(page.getRecords().get(0).getFlags().isAuthRequired()); + assertFalse(page.getRecords().get(0).getFlags().isAuthRevocable()); + assertEquals( + page.getRecords().get(0).getContractID(), + "CAKBXQ7XXRMY5F6YFAY4D45HY25VHNKOGWHS3KZX5ULP6E5TRVITMJS2"); + assertEquals(page.getRecords().get(0).getNumContracts(), 2); + assertEquals(page.getRecords().get(0).getContractsAmount(), "25.1230000"); } String json = "{\n" + " \"_links\": {\n" + " \"self\": {\n" - + " \"href\": \"https://horizon.stellar.org/assets?order=asc\\u0026limit=10\\u0026cursor=\"\n" + + " \"href\": \"https://horizon-futurenet.stellar.org/assets?cursor=FRS1_GC6HLY2JXKXYXUU3XYC63O2RJNH4E3GEW26ABTHDF6AF6MY32B5QRISO_credit_alphanum4&limit=5&order=asc\"\n" + " },\n" + " \"next\": {\n" - + " \"href\": \"https://horizon.stellar.org/assets?order=asc\\u0026limit=10\\u0026cursor=AsrtoDollar_GDJWXY5XUASXNL4ABCONR6T5MOXJ2S4HD6WDNAJDSDKQ4VS3TVUQJEDJ_credit_alphanum12\"\n" + + " \"href\": \"https://horizon-futurenet.stellar.org/assets?cursor=Fsdk_GBP5VJVRLEZWRMOARGWIPZKV26PBR7SQPHC43ZNJNTATFDOPTOQB4P7I_credit_alphanum4&limit=5&order=asc\"\n" + " },\n" + " \"prev\": {\n" - + " \"href\": \"https://horizon.stellar.org/assets?order=desc\\u0026limit=10\\u0026cursor=6497847_GCGNWKCJ3KHRLPM3TM6N7D3W5YKDJFL6A2YCXFXNMRTZ4Q66MEMZ6FI2_credit_alphanum12\"\n" + + " \"href\": \"https://horizon-futurenet.stellar.org/assets?cursor=Fsdk_GAO5OFEWI5ABK66MSPQ6HBXSXNCQLDTF6J444ICGYIQYAPFIWZ7V4MED_credit_alphanum4&limit=5&order=desc\"\n" + " }\n" + " },\n" + " \"_embedded\": {\n" @@ -65,56 +70,34 @@ public void testDeserialize() { + " \"href\": \"https://www.stellar.org/.well-known/stellar.toml\"\n" + " }\n" + " },\n" - + " \"asset_type\": \"credit_alphanum12\",\n" - + " \"asset_code\": \"6497847\",\n" - + " \"asset_issuer\": \"GCGNWKCJ3KHRLPM3TM6N7D3W5YKDJFL6A2YCXFXNMRTZ4Q66MEMZ6FI2\",\n" - + " \"paging_token\": \"6497847_GCGNWKCJ3KHRLPM3TM6N7D3W5YKDJFL6A2YCXFXNMRTZ4Q66MEMZ6FI2_credit_alphanum12\",\n" + + " \"asset_type\": \"credit_alphanum4\",\n" + + " \"asset_code\": \"Fsdk\",\n" + + " \"asset_issuer\": \"GAO5OFEWI5ABK66MSPQ6HBXSXNCQLDTF6J444ICGYIQYAPFIWZ7V4MED\",\n" + + " \"paging_token\": \"Fsdk_GAO5OFEWI5ABK66MSPQ6HBXSXNCQLDTF6J444ICGYIQYAPFIWZ7V4MED_credit_alphanum4\",\n" + + " \"contract_id\": \"CAKBXQ7XXRMY5F6YFAY4D45HY25VHNKOGWHS3KZX5ULP6E5TRVITMJS2\",\n" + + " \"num_accounts\": 1,\n" + + " \"num_claimable_balances\": 0,\n" + + " \"num_liquidity_pools\": 0,\n" + + " \"num_contracts\": 2,\n" + + " \"amount\": \"200.0000000\",\n" + " \"accounts\": {\n" + " \"authorized\": 1,\n" + " \"authorized_to_maintain_liabilities\": 0,\n" + " \"unauthorized\": 0\n" + " },\n" - + " \"balances\": {\n" - + " \"authorized\": \"0.0000000\",\n" - + " \"authorized_to_maintain_liabilities\": \"0.0000000\",\n" - + " \"unauthorized\": \"0.0000000\"\n" - + " },\n" + " \"claimable_balances_amount\": \"0.0000000\",\n" - + " \"num_claimable_balances\": 0,\n" - + " \"amount\": \"0.0000000\",\n" - + " \"num_accounts\": 1,\n" - + " \"flags\": {\n" - + " \"auth_required\": true,\n" - + " \"auth_revocable\": false\n" - + " }\n" - + " },\n" - + " {\n" - + " \"_links\": {\n" - + " \"toml\": {\n" - + " \"href\": \"\"\n" - + " }\n" - + " },\n" - + " \"asset_type\": \"credit_alphanum12\",\n" - + " \"asset_code\": \"9HORIZONS\",\n" - + " \"asset_issuer\": \"GB2HXY7UEDCSHOWZ4553QFGFILNU73OFS2P4HU5IB3UUU66TWPBPVTGW\",\n" - + " \"paging_token\": \"9HORIZONS_GB2HXY7UEDCSHOWZ4553QFGFILNU73OFS2P4HU5IB3UUU66TWPBPVTGW_credit_alphanum12\",\n" - + " \"accounts\": {\n" - + " \"authorized\": 3,\n" - + " \"authorized_to_maintain_liabilities\": 0,\n" - + " \"unauthorized\": 0\n" - + " },\n" + + " \"liquidity_pools_amount\": \"0.0000000\",\n" + + " \"contracts_amount\": \"25.1230000\",\n" + " \"balances\": {\n" - + " \"authorized\": \"1000000.0000000\",\n" + + " \"authorized\": \"200.0000000\",\n" + " \"authorized_to_maintain_liabilities\": \"0.0000000\",\n" + " \"unauthorized\": \"0.0000000\"\n" + " },\n" - + " \"claimable_balances_amount\": \"0.0000000\",\n" - + " \"num_claimable_balances\": 0,\n" - + " \"amount\": \"1000000.0000000\",\n" - + " \"num_accounts\": 3,\n" + " \"flags\": {\n" - + " \"auth_required\": false,\n" - + " \"auth_revocable\": false\n" + + " \"auth_required\": true,\n" + + " \"auth_revocable\": false,\n" + + " \"auth_immutable\": false,\n" + + " \"auth_clawback_enabled\": false\n" + " }\n" + " },\n" + " {\n" @@ -124,55 +107,32 @@ public void testDeserialize() { + " }\n" + " },\n" + " \"asset_type\": \"credit_alphanum4\",\n" - + " \"asset_code\": \"AIR\",\n" - + " \"asset_issuer\": \"GB2SQ74JCS6F4MVDU4BF4L4S4Z5Z36ABOTP6DF5JJOFGFE3ETZAUVUQK\",\n" - + " \"paging_token\": \"AIR_GB2SQ74JCS6F4MVDU4BF4L4S4Z5Z36ABOTP6DF5JJOFGFE3ETZAUVUQK_credit_alphanum4\",\n" - + " \"accounts\": {\n" - + " \"authorized\": 2,\n" - + " \"authorized_to_maintain_liabilities\": 0,\n" - + " \"unauthorized\": 0\n" - + " },\n" - + " \"balances\": {\n" - + " \"authorized\": \"100000000000.0000000\",\n" - + " \"authorized_to_maintain_liabilities\": \"0.0000000\",\n" - + " \"unauthorized\": \"0.0000000\"\n" - + " },\n" - + " \"claimable_balances_amount\": \"0.0000000\",\n" + + " \"asset_code\": \"Fsdk\",\n" + + " \"asset_issuer\": \"GAPMSH3ZYNL4JB4OBKESIHWK3WZ4IFV4TDNHJRUNI62RT56I7RVUSBWI\",\n" + + " \"paging_token\": \"Fsdk_GAPMSH3ZYNL4JB4OBKESIHWK3WZ4IFV4TDNHJRUNI62RT56I7RVUSBWI_credit_alphanum4\",\n" + + " \"num_accounts\": 1,\n" + " \"num_claimable_balances\": 0,\n" - + " \"amount\": \"100000000000.0000000\",\n" - + " \"num_accounts\": 2,\n" - + " \"flags\": {\n" - + " \"auth_required\": false,\n" - + " \"auth_revocable\": false\n" - + " }\n" - + " },\n" - + " {\n" - + " \"_links\": {\n" - + " \"toml\": {\n" - + " \"href\": \"\"\n" - + " }\n" - + " },\n" - + " \"asset_type\": \"credit_alphanum12\",\n" - + " \"asset_code\": \"AlambLedgerS\",\n" - + " \"asset_issuer\": \"GCMXATSZBEYTNPFQXHFQXUYXOTHA4HA5L2YZEKKOVGYWTUT24KIHECG3\",\n" - + " \"paging_token\": \"AlambLedgerS_GCMXATSZBEYTNPFQXHFQXUYXOTHA4HA5L2YZEKKOVGYWTUT24KIHECG3_credit_alphanum12\",\n" + + " \"num_liquidity_pools\": 0,\n" + + " \"num_contracts\": 0,\n" + + " \"amount\": \"200.0000000\",\n" + " \"accounts\": {\n" - + " \"authorized\": 0,\n" + + " \"authorized\": 1,\n" + " \"authorized_to_maintain_liabilities\": 0,\n" + " \"unauthorized\": 0\n" + " },\n" + + " \"claimable_balances_amount\": \"0.0000000\",\n" + + " \"liquidity_pools_amount\": \"0.0000000\",\n" + + " \"contracts_amount\": \"0.0000000\",\n" + " \"balances\": {\n" - + " \"authorized\": \"0.0000000\",\n" + + " \"authorized\": \"200.0000000\",\n" + " \"authorized_to_maintain_liabilities\": \"0.0000000\",\n" + " \"unauthorized\": \"0.0000000\"\n" + " },\n" - + " \"claimable_balances_amount\": \"0.0000000\",\n" - + " \"num_claimable_balances\": 0,\n" - + " \"amount\": \"0.0000000\",\n" - + " \"num_accounts\": 0,\n" + " \"flags\": {\n" - + " \"auth_required\": false,\n" - + " \"auth_revocable\": false\n" + + " \"auth_required\": true,\n" + + " \"auth_revocable\": false,\n" + + " \"auth_immutable\": false,\n" + + " \"auth_clawback_enabled\": false\n" + " }\n" + " },\n" + " {\n" @@ -182,26 +142,33 @@ public void testDeserialize() { + " }\n" + " },\n" + " \"asset_type\": \"credit_alphanum4\",\n" - + " \"asset_code\": \"AMO\",\n" - + " \"asset_issuer\": \"GBOMFBZG5PWUXDIIW5ITVRVEL6YCIC6ZDXLNBH33BNPCX3D7AXDCDKHF\",\n" - + " \"paging_token\": \"AMO_GBOMFBZG5PWUXDIIW5ITVRVEL6YCIC6ZDXLNBH33BNPCX3D7AXDCDKHF_credit_alphanum4\",\n" + + " \"asset_code\": \"Fsdk\",\n" + + " \"asset_issuer\": \"GAZGEVSF73ZUCD7FIZFZK7NRZHYB3TGKLVZIWBD7XPKFF6HKUHKXZ4R4\",\n" + + " \"paging_token\": \"Fsdk_GAZGEVSF73ZUCD7FIZFZK7NRZHYB3TGKLVZIWBD7XPKFF6HKUHKXZ4R4_credit_alphanum4\",\n" + + " \"contract_id\": \"CCENU3B5K7TXRXRGSF3R32R4FTANRK3KRPLPMN6PDNCKA6MW7B5JOXBJ\",\n" + + " \"num_accounts\": 1,\n" + + " \"num_claimable_balances\": 0,\n" + + " \"num_liquidity_pools\": 0,\n" + + " \"num_contracts\": 0,\n" + + " \"amount\": \"200.0000000\",\n" + " \"accounts\": {\n" + " \"authorized\": 1,\n" + " \"authorized_to_maintain_liabilities\": 0,\n" + " \"unauthorized\": 0\n" + " },\n" + + " \"claimable_balances_amount\": \"0.0000000\",\n" + + " \"liquidity_pools_amount\": \"0.0000000\",\n" + + " \"contracts_amount\": \"0.0000000\",\n" + " \"balances\": {\n" - + " \"authorized\": \"10000000.0000000\",\n" + + " \"authorized\": \"200.0000000\",\n" + " \"authorized_to_maintain_liabilities\": \"0.0000000\",\n" + " \"unauthorized\": \"0.0000000\"\n" + " },\n" - + " \"claimable_balances_amount\": \"0.0000000\",\n" - + " \"num_claimable_balances\": 0,\n" - + " \"amount\": \"10000000.0000000\",\n" - + " \"num_accounts\": 1,\n" + " \"flags\": {\n" + " \"auth_required\": false,\n" - + " \"auth_revocable\": false\n" + + " \"auth_revocable\": false,\n" + + " \"auth_immutable\": false,\n" + + " \"auth_clawback_enabled\": false\n" + " }\n" + " },\n" + " {\n" @@ -211,145 +178,72 @@ public void testDeserialize() { + " }\n" + " },\n" + " \"asset_type\": \"credit_alphanum4\",\n" - + " \"asset_code\": \"AMO\",\n" - + " \"asset_issuer\": \"GDIAIZ7S7L2OBEQBH62KE7IWXK76XA7ES7XCH7JCPXQGV7VB3V6VETOX\",\n" - + " \"paging_token\": \"AMO_GDIAIZ7S7L2OBEQBH62KE7IWXK76XA7ES7XCH7JCPXQGV7VB3V6VETOX_credit_alphanum4\",\n" + + " \"asset_code\": \"Fsdk\",\n" + + " \"asset_issuer\": \"GBENWRA65WGOL3OK7DMQXQJWXSO34WQRP5QKFW4LYLCPG5BLFVEMYPF5\",\n" + + " \"paging_token\": \"Fsdk_GBENWRA65WGOL3OK7DMQXQJWXSO34WQRP5QKFW4LYLCPG5BLFVEMYPF5_credit_alphanum4\",\n" + + " \"contract_id\": \"CC7GMZZM4YJK32V6ZZOWELQMBH7BTKVF52PYWFUR7GGBFAVEAZPQTUJA\",\n" + + " \"num_accounts\": 1,\n" + + " \"num_claimable_balances\": 0,\n" + + " \"num_liquidity_pools\": 0,\n" + + " \"num_contracts\": 0,\n" + + " \"amount\": \"200.0000000\",\n" + " \"accounts\": {\n" + " \"authorized\": 1,\n" + " \"authorized_to_maintain_liabilities\": 0,\n" + " \"unauthorized\": 0\n" + " },\n" - + " \"balances\": {\n" - + " \"authorized\": \"0.0000000\",\n" - + " \"authorized_to_maintain_liabilities\": \"0.0000000\",\n" - + " \"unauthorized\": \"0.0000000\"\n" - + " },\n" + " \"claimable_balances_amount\": \"0.0000000\",\n" - + " \"num_claimable_balances\": 0,\n" - + " \"amount\": \"0.0000000\",\n" - + " \"num_accounts\": 1,\n" - + " \"flags\": {\n" - + " \"auth_required\": false,\n" - + " \"auth_revocable\": false\n" - + " }\n" - + " },\n" - + " {\n" - + " \"_links\": {\n" - + " \"toml\": {\n" - + " \"href\": \"\"\n" - + " }\n" - + " },\n" - + " \"asset_type\": \"credit_alphanum4\",\n" - + " \"asset_code\": \"ASD\",\n" - + " \"asset_issuer\": \"GAOMRMILWSX7UXZMYC4X7B7BVJXORYV36XUK3EURVJF7DA6B77ABFVOJ\",\n" - + " \"paging_token\": \"ASD_GAOMRMILWSX7UXZMYC4X7B7BVJXORYV36XUK3EURVJF7DA6B77ABFVOJ_credit_alphanum4\",\n" - + " \"accounts\": {\n" - + " \"authorized\": 0,\n" - + " \"authorized_to_maintain_liabilities\": 0,\n" - + " \"unauthorized\": 0\n" - + " },\n" + + " \"liquidity_pools_amount\": \"0.0000000\",\n" + + " \"contracts_amount\": \"0.0000000\",\n" + " \"balances\": {\n" - + " \"authorized\": \"0.0000000\",\n" + + " \"authorized\": \"200.0000000\",\n" + " \"authorized_to_maintain_liabilities\": \"0.0000000\",\n" + " \"unauthorized\": \"0.0000000\"\n" + " },\n" - + " \"claimable_balances_amount\": \"0.0000000\",\n" - + " \"num_claimable_balances\": 0,\n" - + " \"amount\": \"0.0000000\",\n" - + " \"num_accounts\": 0,\n" + " \"flags\": {\n" + " \"auth_required\": false,\n" - + " \"auth_revocable\": false\n" + + " \"auth_revocable\": false,\n" + + " \"auth_immutable\": false,\n" + + " \"auth_clawback_enabled\": false\n" + " }\n" + " },\n" + " {\n" + " \"_links\": {\n" + " \"toml\": {\n" - + " \"href\": \"https://mystellar.tools/.well-known/stellar.toml\"\n" + + " \"href\": \"\"\n" + " }\n" + " },\n" + " \"asset_type\": \"credit_alphanum4\",\n" - + " \"asset_code\": \"ASD\",\n" - + " \"asset_issuer\": \"GDP4SJE5Y5ODX627DO2F7ZNBAPVXRFHKKR3W4UJ6I4XMW3S3OH2XRWYD\",\n" - + " \"paging_token\": \"ASD_GDP4SJE5Y5ODX627DO2F7ZNBAPVXRFHKKR3W4UJ6I4XMW3S3OH2XRWYD_credit_alphanum4\",\n" - + " \"accounts\": {\n" - + " \"authorized\": 0,\n" - + " \"authorized_to_maintain_liabilities\": 0,\n" - + " \"unauthorized\": 0\n" - + " },\n" - + " \"balances\": {\n" - + " \"authorized\": \"0.0000000\",\n" - + " \"authorized_to_maintain_liabilities\": \"0.0000000\",\n" - + " \"unauthorized\": \"0.0000000\"\n" - + " },\n" - + " \"claimable_balances_amount\": \"0.0000000\",\n" + + " \"asset_code\": \"Fsdk\",\n" + + " \"asset_issuer\": \"GBP5VJVRLEZWRMOARGWIPZKV26PBR7SQPHC43ZNJNTATFDOPTOQB4P7I\",\n" + + " \"paging_token\": \"Fsdk_GBP5VJVRLEZWRMOARGWIPZKV26PBR7SQPHC43ZNJNTATFDOPTOQB4P7I_credit_alphanum4\",\n" + + " \"contract_id\": \"CC52PADO3R5DBLXXEBVTKWOKZ7TRBLTPSJV6WQT62JL3MRKDWOJDTT6J\",\n" + + " \"num_accounts\": 1,\n" + " \"num_claimable_balances\": 0,\n" - + " \"amount\": \"0.0000000\",\n" - + " \"num_accounts\": 0,\n" - + " \"flags\": {\n" - + " \"auth_required\": false,\n" - + " \"auth_revocable\": false\n" - + " }\n" - + " },\n" - + " {\n" - + " \"_links\": {\n" - + " \"toml\": {\n" - + " \"href\": \"\"\n" - + " }\n" - + " },\n" - + " \"asset_type\": \"credit_alphanum12\",\n" - + " \"asset_code\": \"AsrtoDollar\",\n" - + " \"asset_issuer\": \"GBPGO557IQWSWOIKHWB7YJ5QIBWVF4QS6SPGWT5YBGDUPE6QKOD7RR7S\",\n" - + " \"paging_token\": \"AsrtoDollar_GBPGO557IQWSWOIKHWB7YJ5QIBWVF4QS6SPGWT5YBGDUPE6QKOD7RR7S_credit_alphanum12\",\n" + + " \"num_liquidity_pools\": 0,\n" + + " \"num_contracts\": 0,\n" + + " \"amount\": \"200.0000000\",\n" + " \"accounts\": {\n" - + " \"authorized\": 0,\n" + + " \"authorized\": 1,\n" + " \"authorized_to_maintain_liabilities\": 0,\n" + " \"unauthorized\": 0\n" + " },\n" - + " \"balances\": {\n" - + " \"authorized\": \"0.0000000\",\n" - + " \"authorized_to_maintain_liabilities\": \"0.0000000\",\n" - + " \"unauthorized\": \"0.0000000\"\n" - + " },\n" + " \"claimable_balances_amount\": \"0.0000000\",\n" - + " \"num_claimable_balances\": 0,\n" - + " \"amount\": \"0.0000000\",\n" - + " \"num_accounts\": 0,\n" - + " \"flags\": {\n" - + " \"auth_required\": false,\n" - + " \"auth_revocable\": false\n" - + " }\n" - + " },\n" - + " {\n" - + " \"_links\": {\n" - + " \"toml\": {\n" - + " \"href\": \"\"\n" - + " }\n" - + " },\n" - + " \"asset_type\": \"credit_alphanum12\",\n" - + " \"asset_code\": \"AsrtoDollar\",\n" - + " \"asset_issuer\": \"GDJWXY5XUASXNL4ABCONR6T5MOXJ2S4HD6WDNAJDSDKQ4VS3TVUQJEDJ\",\n" - + " \"paging_token\": \"AsrtoDollar_GDJWXY5XUASXNL4ABCONR6T5MOXJ2S4HD6WDNAJDSDKQ4VS3TVUQJEDJ_credit_alphanum12\",\n" - + " \"accounts\": {\n" - + " \"authorized\": 0,\n" - + " \"authorized_to_maintain_liabilities\": 0,\n" - + " \"unauthorized\": 0\n" - + " },\n" + + " \"liquidity_pools_amount\": \"0.0000000\",\n" + + " \"contracts_amount\": \"0.0000000\",\n" + " \"balances\": {\n" - + " \"authorized\": \"0.0000000\",\n" + + " \"authorized\": \"200.0000000\",\n" + " \"authorized_to_maintain_liabilities\": \"0.0000000\",\n" + " \"unauthorized\": \"0.0000000\"\n" + " },\n" - + " \"claimable_balances_amount\": \"0.0000000\",\n" - + " \"num_claimable_balances\": 0,\n" - + " \"amount\": \"0.0000000\",\n" - + " \"num_accounts\": 0,\n" + " \"flags\": {\n" + " \"auth_required\": false,\n" - + " \"auth_revocable\": false\n" + + " \"auth_revocable\": false,\n" + + " \"auth_immutable\": false,\n" + + " \"auth_clawback_enabled\": false\n" + " }\n" + " }\n" + " ]\n" + " }\n" - + "}"; + + "}\n"; }