diff --git a/CHANGELOG.md b/CHANGELOG.md index 47e91b87b..ba69137c6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -51,6 +51,10 @@ continued engagement as we shape the future of this project together. - chore: add some examples, you can find them in the `examples` directory. - chore: bump dependencies. - feat: add support for Soroban PRC's `getVersionInfo` API. +- refactor!: remove `amount` and `numAccounts` from `AssetResponse`. +- refactor!: remove `cost` from `SimulateTransactionResponse`, the correct resource costs can now be retrieved from the `transactionData`. +- refactor!: remove `pagingToken` from `GetEventsResponse.EventInfo`, use `GetEventsResponse.cursor` instead. +- feat: add `txHash` to `GetTransactionResponse` and `GetTransactionsResponse.Transaction`. ### Breaking changes - refactor!: Refactored the handling of exceptions. diff --git a/src/main/java/org/stellar/sdk/responses/AssetResponse.java b/src/main/java/org/stellar/sdk/responses/AssetResponse.java index 806f008be..78e7caf92 100644 --- a/src/main/java/org/stellar/sdk/responses/AssetResponse.java +++ b/src/main/java/org/stellar/sdk/responses/AssetResponse.java @@ -23,9 +23,6 @@ public class AssetResponse extends Response implements Pageable { @SerializedName("contract_id") String contractId; - @SerializedName("num_accounts") - Integer numAccounts; - @SerializedName("num_claimable_balances") Integer numClaimableBalances; @@ -38,9 +35,6 @@ public class AssetResponse extends Response implements Pageable { @SerializedName("num_archived_contracts") Integer numArchivedContracts; - @SerializedName("amount") - String amount; - @SerializedName("accounts") AssetResponse.Accounts accounts; diff --git a/src/main/java/org/stellar/sdk/responses/SubmitTransactionAsyncResponse.java b/src/main/java/org/stellar/sdk/responses/SubmitTransactionAsyncResponse.java index f791a3c38..4b951f2e2 100644 --- a/src/main/java/org/stellar/sdk/responses/SubmitTransactionAsyncResponse.java +++ b/src/main/java/org/stellar/sdk/responses/SubmitTransactionAsyncResponse.java @@ -19,7 +19,7 @@ public class SubmitTransactionAsyncResponse { @SerializedName("tx_status") TransactionStatus txStatus; - @SerializedName("errorResultXdr") // inconsistency + @SerializedName("error_result_xdr") String errorResultXdr; /** diff --git a/src/main/java/org/stellar/sdk/responses/sorobanrpc/GetEventsResponse.java b/src/main/java/org/stellar/sdk/responses/sorobanrpc/GetEventsResponse.java index bc10d3993..6fa0d4d2a 100644 --- a/src/main/java/org/stellar/sdk/responses/sorobanrpc/GetEventsResponse.java +++ b/src/main/java/org/stellar/sdk/responses/sorobanrpc/GetEventsResponse.java @@ -20,6 +20,8 @@ public class GetEventsResponse { Long latestLedger; + String cursor; + @Value public static class EventInfo { EventFilterType type; @@ -32,8 +34,6 @@ public static class EventInfo { String id; - String pagingToken; - /** The elements inside can be parsed as {@link org.stellar.sdk.xdr.SCVal} objects. */ List topic; diff --git a/src/main/java/org/stellar/sdk/responses/sorobanrpc/GetTransactionResponse.java b/src/main/java/org/stellar/sdk/responses/sorobanrpc/GetTransactionResponse.java index 2c6da0bb9..f3377c3a4 100644 --- a/src/main/java/org/stellar/sdk/responses/sorobanrpc/GetTransactionResponse.java +++ b/src/main/java/org/stellar/sdk/responses/sorobanrpc/GetTransactionResponse.java @@ -16,6 +16,8 @@ public class GetTransactionResponse { GetTransactionStatus status; + String txHash; + Long latestLedger; Long latestLedgerCloseTime; diff --git a/src/main/java/org/stellar/sdk/responses/sorobanrpc/GetTransactionsResponse.java b/src/main/java/org/stellar/sdk/responses/sorobanrpc/GetTransactionsResponse.java index d0d5e2405..eb22900f4 100644 --- a/src/main/java/org/stellar/sdk/responses/sorobanrpc/GetTransactionsResponse.java +++ b/src/main/java/org/stellar/sdk/responses/sorobanrpc/GetTransactionsResponse.java @@ -27,6 +27,7 @@ public class GetTransactionsResponse { @Value public static class Transaction { TransactionStatus status; + String txHash; Integer applicationOrder; Boolean feeBump; diff --git a/src/main/java/org/stellar/sdk/responses/sorobanrpc/SimulateTransactionResponse.java b/src/main/java/org/stellar/sdk/responses/sorobanrpc/SimulateTransactionResponse.java index 4753393df..5775ec15f 100644 --- a/src/main/java/org/stellar/sdk/responses/sorobanrpc/SimulateTransactionResponse.java +++ b/src/main/java/org/stellar/sdk/responses/sorobanrpc/SimulateTransactionResponse.java @@ -1,7 +1,5 @@ package org.stellar.sdk.responses.sorobanrpc; -import com.google.gson.annotations.SerializedName; -import java.math.BigInteger; import java.util.List; import java.util.stream.Collectors; import lombok.Value; @@ -44,8 +42,6 @@ public class SimulateTransactionResponse { // is supported per transaction. List results; - SimulateTransactionCost cost; - RestorePreamble restorePreamble; List stateChanges; @@ -102,15 +98,6 @@ public SCVal parseXdr() { } } - @Value - public static class SimulateTransactionCost { - @SerializedName("cpuInsns") - BigInteger cpuInstructions; - - @SerializedName("memBytes") - BigInteger memoryBytes; - } - @Value public static class RestorePreamble { /** The field can be parsed as {@link org.stellar.sdk.xdr.SorobanTransactionData} object. */ diff --git a/src/test/java/org/stellar/sdk/ServerTest.java b/src/test/java/org/stellar/sdk/ServerTest.java index 17b403ad3..f873f684b 100644 --- a/src/test/java/org/stellar/sdk/ServerTest.java +++ b/src/test/java/org/stellar/sdk/ServerTest.java @@ -382,7 +382,7 @@ public void testSubmitTransactionAsyncTryAgainLater() throws IOException { public void testSubmitTransactionAsyncError() throws IOException { String resp = "{\n" - + " \"errorResultXdr\": \"AAAAAAAAAGT////7AAAAAA==\",\n" + + " \"error_result_xdr\": \"AAAAAAAAAGT////7AAAAAA==\",\n" + " \"tx_status\": \"ERROR\",\n" + " \"hash\": \"2634d2cf5adcbd3487d1df042166eef53830115844fdde1588828667bf93ff42\"\n" + "}"; diff --git a/src/test/java/org/stellar/sdk/SorobanServerTest.java b/src/test/java/org/stellar/sdk/SorobanServerTest.java index 464b2cf58..ad6333010 100644 --- a/src/test/java/org/stellar/sdk/SorobanServerTest.java +++ b/src/test/java/org/stellar/sdk/SorobanServerTest.java @@ -44,6 +44,7 @@ import org.stellar.sdk.responses.sorobanrpc.GetLatestLedgerResponse; import org.stellar.sdk.responses.sorobanrpc.GetLedgerEntriesResponse; import org.stellar.sdk.responses.sorobanrpc.GetNetworkResponse; +import org.stellar.sdk.responses.sorobanrpc.GetTransactionResponse; import org.stellar.sdk.responses.sorobanrpc.GetTransactionsResponse; import org.stellar.sdk.responses.sorobanrpc.GetVersionInfoResponse; import org.stellar.sdk.responses.sorobanrpc.SendTransactionResponse; @@ -500,7 +501,10 @@ public MockResponse dispatch(@NotNull RecordedRequest recordedRequest) HttpUrl baseUrl = mockWebServer.url(""); SorobanServer server = new SorobanServer(baseUrl.toString()); - server.getTransaction(hash); + GetTransactionResponse tx = server.getTransaction(hash); + assertEquals(tx.getStatus(), GetTransactionResponse.GetTransactionStatus.SUCCESS); + assertEquals( + tx.getTxHash(), "8faa3e6bb29d9d8469bbcabdbfd800f3be1899f4736a3a2fa83cd58617c072fe"); server.close(); mockWebServer.close(); @@ -552,6 +556,9 @@ public MockResponse dispatch(@NotNull RecordedRequest recordedRequest) assertEquals( resp.getTransactions().get(0).getStatus(), GetTransactionsResponse.TransactionStatus.FAILED); + assertEquals( + resp.getTransactions().get(0).getTxHash(), + "171359fff0edbf0a9d9d11014d0407486ff9f6a6e8f7673f97244acccb355b2d"); assertEquals(resp.getTransactions().get(0).getApplicationOrder().longValue(), 1L); assertEquals(resp.getTransactions().get(0).getFeeBump(), false); assertEquals( @@ -569,6 +576,9 @@ public MockResponse dispatch(@NotNull RecordedRequest recordedRequest) assertEquals( resp.getTransactions().get(3).getStatus(), GetTransactionsResponse.TransactionStatus.SUCCESS); + assertEquals( + resp.getTransactions().get(0).getTxHash(), + "171359fff0edbf0a9d9d11014d0407486ff9f6a6e8f7673f97244acccb355b2d"); assertEquals(resp.getTransactions().get(3).getApplicationOrder().longValue(), 4L); assertEquals(resp.getTransactions().get(3).getFeeBump(), false); assertEquals( @@ -642,6 +652,7 @@ public MockResponse dispatch(@NotNull RecordedRequest recordedRequest) SorobanServer server = new SorobanServer(baseUrl.toString()); GetEventsResponse resp = server.getEvents(getEventsRequest); assertEquals(resp.getLatestLedger().longValue(), 187L); + assertEquals(resp.getCursor(), "0000000468151439360-0000000000"); assertEquals(resp.getEvents().size(), 2); assertEquals(resp.getEvents().get(0).getType(), EventFilterType.CONTRACT); assertEquals(resp.getEvents().get(0).getLedger().longValue(), 107L); @@ -650,7 +661,6 @@ public MockResponse dispatch(@NotNull RecordedRequest recordedRequest) resp.getEvents().get(0).getContractId(), "CBQHNAXSI55GX2GN6D67GK7BHVPSLJUGZQEU7WJ5LKR5PNUCGLIMAO4K"); assertEquals(resp.getEvents().get(0).getId(), "0000000459561504768-0000000000"); - assertEquals(resp.getEvents().get(0).getPagingToken(), "0000000459561504768-0000000000"); assertEquals(resp.getEvents().get(0).getTopic().size(), 2); assertEquals(resp.getEvents().get(0).getTopic().get(0), "AAAADwAAAAdDT1VOVEVSAA=="); assertEquals(resp.getEvents().get(0).getTopic().get(1), "AAAADwAAAAlpbmNyZW1lbnQAAAA="); @@ -826,8 +836,6 @@ public MockResponse dispatch(@NotNull RecordedRequest recordedRequest) resp.getResults().get(0).getAuth().get(0), "AAAAAAAAAAAAAAAB6bfni71JNBarlvcR3WP2056a8vvFXQ0/CGfiBeDQA/wAAAAJaW5jcmVtZW50AAAAAAAAAgAAABIAAAAAAAAAAFi3xKLI8peqjz0kcSgf38zsr+SOVmMxPsGOEqc+ypihAAAAAwAAAAoAAAAA"); assertEquals(resp.getResults().get(0).getXdr(), "AAAAAwAAABQ="); - assertEquals(resp.getCost().getCpuInstructions().longValue(), 1646885L); - assertEquals(resp.getCost().getMemoryBytes().longValue(), 1296481L); assertEquals(resp.getStateChanges().size(), 1); assertEquals(resp.getStateChanges().get(0).getType(), "created"); assertEquals( @@ -902,8 +910,6 @@ public MockResponse dispatch(@NotNull RecordedRequest recordedRequest) resp.getResults().get(0).getAuth().get(0), "AAAAAAAAAAAAAAAB6bfni71JNBarlvcR3WP2056a8vvFXQ0/CGfiBeDQA/wAAAAJaW5jcmVtZW50AAAAAAAAAgAAABIAAAAAAAAAAFi3xKLI8peqjz0kcSgf38zsr+SOVmMxPsGOEqc+ypihAAAAAwAAAAoAAAAA"); assertEquals(resp.getResults().get(0).getXdr(), "AAAAAwAAABQ="); - assertEquals(resp.getCost().getCpuInstructions().longValue(), 1646885L); - assertEquals(resp.getCost().getMemoryBytes().longValue(), 1296481L); server.close(); mockWebServer.close(); } diff --git a/src/test/java/org/stellar/sdk/responses/AssetResponseTest.java b/src/test/java/org/stellar/sdk/responses/AssetResponseTest.java index cecea90fc..93d54a0d9 100644 --- a/src/test/java/org/stellar/sdk/responses/AssetResponseTest.java +++ b/src/test/java/org/stellar/sdk/responses/AssetResponseTest.java @@ -23,12 +23,10 @@ public void testDeserialize() throws IOException { "USDC_GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN_credit_alphanum4"); assertEquals( assetResponse.getContractId(), "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75"); - assertEquals(assetResponse.getNumAccounts().intValue(), 918786); assertEquals(assetResponse.getNumClaimableBalances().intValue(), 415); assertEquals(assetResponse.getNumLiquidityPools().intValue(), 384); assertEquals(assetResponse.getNumContracts().intValue(), 24); assertEquals(assetResponse.getNumArchivedContracts().intValue(), 1); - assertEquals(assetResponse.getAmount(), "196141192.6091517"); assertEquals(assetResponse.getAccounts().getAuthorized().intValue(), 918786); assertEquals(assetResponse.getAccounts().getAuthorizedToMaintainLiabilities().intValue(), 0); assertEquals(assetResponse.getAccounts().getUnauthorized().intValue(), 0); diff --git a/src/test/java/org/stellar/sdk/responses/PagesTest.java b/src/test/java/org/stellar/sdk/responses/PagesTest.java index 88518afe0..c020f4666 100644 --- a/src/test/java/org/stellar/sdk/responses/PagesTest.java +++ b/src/test/java/org/stellar/sdk/responses/PagesTest.java @@ -51,8 +51,6 @@ public void testAssets() throws IOException { TypeToken> type = new TypeToken>() {}; Page page = GsonSingleton.getInstance().fromJson(json, type.getType()); assertEquals(3, page.getRecords().size()); - assertEquals(25, page.getRecords().get(0).getNumAccounts().intValue()); - assertEquals(1, page.getRecords().get(1).getNumAccounts().intValue()); } @Test diff --git a/src/test/java/org/stellar/sdk/responses/sorobanrpc/GetEventsDeserializerTest.java b/src/test/java/org/stellar/sdk/responses/sorobanrpc/GetEventsDeserializerTest.java index 336f00dfb..ebef3be8a 100644 --- a/src/test/java/org/stellar/sdk/responses/sorobanrpc/GetEventsDeserializerTest.java +++ b/src/test/java/org/stellar/sdk/responses/sorobanrpc/GetEventsDeserializerTest.java @@ -22,6 +22,8 @@ public void testDeserialize() throws IOException { .fromJson(json, new TypeToken>() {}.getType()); assertEquals(getEventsResponse.getResult().getLatestLedger().longValue(), 169L); assertEquals(getEventsResponse.getResult().getEvents().size(), 3); + assertEquals(getEventsResponse.getResult().getCursor(), "0000000463856472064-0000000000"); + GetEventsResponse.EventInfo eventInfo0 = getEventsResponse.getResult().getEvents().get(0); assertEquals(eventInfo0.getType(), EventFilterType.CONTRACT); assertEquals(eventInfo0.getLedger().intValue(), 108); @@ -29,7 +31,6 @@ public void testDeserialize() throws IOException { assertEquals( eventInfo0.getContractId(), "CBQHNAXSI55GX2GN6D67GK7BHVPSLJUGZQEU7WJ5LKR5PNUCGLIMAO4K"); assertEquals(eventInfo0.getId(), "0000000463856472064-0000000000"); - assertEquals(eventInfo0.getPagingToken(), "0000000463856472064-0000000000"); assertEquals(eventInfo0.getTopic().size(), 2); assertEquals(eventInfo0.getTopic().get(0), "AAAADwAAAAdDT1VOVEVSAA=="); assertEquals(eventInfo0.getTopic().get(1), "AAAADwAAAAlpbmNyZW1lbnQAAAA="); diff --git a/src/test/java/org/stellar/sdk/responses/sorobanrpc/GetTransactionDeserializerTest.java b/src/test/java/org/stellar/sdk/responses/sorobanrpc/GetTransactionDeserializerTest.java index 76efa2199..a9262f132 100644 --- a/src/test/java/org/stellar/sdk/responses/sorobanrpc/GetTransactionDeserializerTest.java +++ b/src/test/java/org/stellar/sdk/responses/sorobanrpc/GetTransactionDeserializerTest.java @@ -24,6 +24,9 @@ public void testDeserializeSuccess() throws IOException { assertEquals( getTransactionResponse.getResult().getStatus(), GetTransactionResponse.GetTransactionStatus.SUCCESS); + assertEquals( + getTransactionResponse.getResult().getTxHash(), + "171359fff0edbf0a9d9d11014d0407486ff9f6a6e8f7673f97244acccb355b2d"); assertEquals(getTransactionResponse.getResult().getLatestLedger().longValue(), 79289L); assertEquals( getTransactionResponse.getResult().getLatestLedgerCloseTime().longValue(), 1690387240L); @@ -66,6 +69,9 @@ public void testDeserializeFailed() throws IOException { assertEquals( getTransactionResponse.getResult().getStatus(), GetTransactionResponse.GetTransactionStatus.FAILED); + assertEquals( + getTransactionResponse.getResult().getTxHash(), + "171359fff0edbf0a9d9d11014d0407486ff9f6a6e8f7673f97244acccb355b2d"); assertEquals(getTransactionResponse.getResult().getLatestLedger().longValue(), 79289L); assertEquals( getTransactionResponse.getResult().getLatestLedgerCloseTime().longValue(), 1690387240L); diff --git a/src/test/java/org/stellar/sdk/responses/sorobanrpc/GetTransactionsDeserializerTest.java b/src/test/java/org/stellar/sdk/responses/sorobanrpc/GetTransactionsDeserializerTest.java index 438946a0f..3fa116951 100644 --- a/src/test/java/org/stellar/sdk/responses/sorobanrpc/GetTransactionsDeserializerTest.java +++ b/src/test/java/org/stellar/sdk/responses/sorobanrpc/GetTransactionsDeserializerTest.java @@ -31,6 +31,10 @@ public void testDeserialize() throws IOException { assertEquals( getTransactionsResponse.getTransactions().get(0).getStatus(), GetTransactionsResponse.TransactionStatus.FAILED); + assertEquals( + getTransactionsResponse.getTransactions().get(0).getTxHash(), + "171359fff0edbf0a9d9d11014d0407486ff9f6a6e8f7673f97244acccb355b2d"); + assertEquals( getTransactionsResponse.getTransactions().get(0).getApplicationOrder().longValue(), 1L); assertEquals(getTransactionsResponse.getTransactions().get(0).getFeeBump(), false); @@ -51,6 +55,9 @@ public void testDeserialize() throws IOException { assertEquals( getTransactionsResponse.getTransactions().get(3).getStatus(), GetTransactionsResponse.TransactionStatus.SUCCESS); + assertEquals( + getTransactionsResponse.getTransactions().get(3).getTxHash(), + "8faa3e6bb29d9d8469bbcabdbfd800f3be1899f4736a3a2fa83cd58617c072fe"); assertEquals( getTransactionsResponse.getTransactions().get(3).getApplicationOrder().longValue(), 4L); assertEquals(getTransactionsResponse.getTransactions().get(3).getFeeBump(), false); diff --git a/src/test/java/org/stellar/sdk/responses/sorobanrpc/SimulateTransactionDeserializerTest.java b/src/test/java/org/stellar/sdk/responses/sorobanrpc/SimulateTransactionDeserializerTest.java index 97e4466ef..0e90deada 100644 --- a/src/test/java/org/stellar/sdk/responses/sorobanrpc/SimulateTransactionDeserializerTest.java +++ b/src/test/java/org/stellar/sdk/responses/sorobanrpc/SimulateTransactionDeserializerTest.java @@ -42,8 +42,6 @@ public void testDeserializeSuccess() throws IOException { data.getResults().get(0).getAuth().get(0), "AAAAAAAAAAAAAAAB6bfni71JNBarlvcR3WP2056a8vvFXQ0/CGfiBeDQA/wAAAAJaW5jcmVtZW50AAAAAAAAAgAAABIAAAAAAAAAAFi3xKLI8peqjz0kcSgf38zsr+SOVmMxPsGOEqc+ypihAAAAAwAAAAoAAAAA"); assertEquals(data.getResults().get(0).getXdr(), "AAAAAwAAAAo="); - assertEquals(data.getCost().getCpuInstructions().longValue(), 1274180L); - assertEquals(data.getCost().getMemoryBytes().longValue(), 162857L); assertEquals(data.getStateChanges().size(), 1); assertEquals(data.getStateChanges().get(0).getType(), "created"); assertEquals( @@ -85,8 +83,6 @@ public void testDeserializeFailed() throws IOException { assertEquals(data.getTransactionData(), ""); assertNull(data.getEvents()); assertEquals(data.getMinResourceFee().longValue(), 0L); - assertEquals(data.getCost().getCpuInstructions().longValue(), 0L); - assertEquals(data.getCost().getMemoryBytes().longValue(), 0L); assertEquals(data.getLatestLedger().longValue(), 898L); assertNull(data.parseTransactionData()); assertNull(data.parseEvents()); diff --git a/src/test/resources/responses/asset.json b/src/test/resources/responses/asset.json index 11b5fe494..8fffc64fb 100644 --- a/src/test/resources/responses/asset.json +++ b/src/test/resources/responses/asset.json @@ -9,12 +9,10 @@ "asset_issuer": "GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN", "paging_token": "USDC_GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN_credit_alphanum4", "contract_id": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75", - "num_accounts": 918786, "num_claimable_balances": 415, "num_liquidity_pools": 384, "num_contracts": 24, "num_archived_contracts": 1, - "amount": "196141192.6091517", "accounts": { "authorized": 918786, "authorized_to_maintain_liabilities": 0, diff --git a/src/test/resources/responses/pages/assets.json b/src/test/resources/responses/pages/assets.json index 7f9229491..111431905 100644 --- a/src/test/resources/responses/pages/assets.json +++ b/src/test/resources/responses/pages/assets.json @@ -22,12 +22,10 @@ "asset_code": "0", "asset_issuer": "GBBJZOYEGLOCW32Q4ZGWRWQ7UKIGMMIQXIRBBBOVJVFJTZW7CR2VQKAT", "paging_token": "0_GBBJZOYEGLOCW32Q4ZGWRWQ7UKIGMMIQXIRBBBOVJVFJTZW7CR2VQKAT_credit_alphanum4", - "num_accounts": 25, "num_claimable_balances": 0, "num_liquidity_pools": 0, "num_contracts": 0, "num_archived_contracts": 0, - "amount": "988.9481303", "accounts": { "authorized": 25, "authorized_to_maintain_liabilities": 0, @@ -59,12 +57,10 @@ "asset_code": "0", "asset_issuer": "GCKHHE33Q64N7NVM2AEWLWK4T55VPZBFQ5WNU7E3TNO6LTGM6JR3GJGG", "paging_token": "0_GCKHHE33Q64N7NVM2AEWLWK4T55VPZBFQ5WNU7E3TNO6LTGM6JR3GJGG_credit_alphanum4", - "num_accounts": 1, "num_claimable_balances": 0, "num_liquidity_pools": 0, "num_contracts": 0, "num_archived_contracts": 0, - "amount": "0.0000001", "accounts": { "authorized": 1, "authorized_to_maintain_liabilities": 0, @@ -96,12 +92,10 @@ "asset_code": "0", "asset_issuer": "GD3OJBRBHR77ZCRCK5I7LNKHMWN4RYLEAUJ3EROF4PYO6FZZOQBCDION", "paging_token": "0_GD3OJBRBHR77ZCRCK5I7LNKHMWN4RYLEAUJ3EROF4PYO6FZZOQBCDION_credit_alphanum4", - "num_accounts": 1, "num_claimable_balances": 0, "num_liquidity_pools": 0, "num_contracts": 0, "num_archived_contracts": 0, - "amount": "0.0000001", "accounts": { "authorized": 1, "authorized_to_maintain_liabilities": 0, diff --git a/src/test/resources/responses/sorobanrpc/get_events.json b/src/test/resources/responses/sorobanrpc/get_events.json index eaca25706..0cd1e615c 100644 --- a/src/test/resources/responses/sorobanrpc/get_events.json +++ b/src/test/resources/responses/sorobanrpc/get_events.json @@ -9,7 +9,6 @@ "ledgerClosedAt": "2023-07-23T14:47:01Z", "contractId": "CBQHNAXSI55GX2GN6D67GK7BHVPSLJUGZQEU7WJ5LKR5PNUCGLIMAO4K", "id": "0000000463856472064-0000000000", - "pagingToken": "0000000463856472064-0000000000", "topic": [ "AAAADwAAAAdDT1VOVEVSAA==", "AAAADwAAAAlpbmNyZW1lbnQAAAA=" @@ -24,7 +23,6 @@ "ledgerClosedAt": "2023-07-23T14:47:04Z", "contractId": "CBQHNAXSI55GX2GN6D67GK7BHVPSLJUGZQEU7WJ5LKR5PNUCGLIMAO4K", "id": "0000000476741373952-0000000000", - "pagingToken": "0000000476741373952-0000000000", "topic": [ "AAAADwAAAAdDT1VOVEVSAA==", "AAAADwAAAAlpbmNyZW1lbnQAAAA=" @@ -39,7 +37,6 @@ "ledgerClosedAt": "2023-07-23T14:47:07Z", "contractId": "CBQHNAXSI55GX2GN6D67GK7BHVPSLJUGZQEU7WJ5LKR5PNUCGLIMAO4K", "id": "0000000489626275840-0000000000", - "pagingToken": "0000000489626275840-0000000000", "topic": [ "AAAADwAAAAdDT1VOVEVSAA==", "AAAADwAAAAlpbmNyZW1lbnQAAAA=" @@ -49,6 +46,7 @@ "txHash": "db86e94aa98b7d38213c041ebbb727fbaabf0b7c435de594f36c2d51fc61926d" } ], - "latestLedger": "169" + "latestLedger": "169", + "cursor": "0000000463856472064-0000000000" } } \ No newline at end of file diff --git a/src/test/resources/responses/sorobanrpc/get_transaction_failed.json b/src/test/resources/responses/sorobanrpc/get_transaction_failed.json index 3d72dd960..da45c8198 100644 --- a/src/test/resources/responses/sorobanrpc/get_transaction_failed.json +++ b/src/test/resources/responses/sorobanrpc/get_transaction_failed.json @@ -3,6 +3,7 @@ "id": "198cb1a8-9104-4446-a269-88bf000c2721", "result": { "status": "FAILED", + "txHash": "171359fff0edbf0a9d9d11014d0407486ff9f6a6e8f7673f97244acccb355b2d", "latestLedger": "79289", "latestLedgerCloseTime": "1690387240", "oldestLedger": "77850", diff --git a/src/test/resources/responses/sorobanrpc/get_transaction_success.json b/src/test/resources/responses/sorobanrpc/get_transaction_success.json index 953c4d619..4326e18a9 100644 --- a/src/test/resources/responses/sorobanrpc/get_transaction_success.json +++ b/src/test/resources/responses/sorobanrpc/get_transaction_success.json @@ -3,6 +3,7 @@ "id": "198cb1a8-9104-4446-a269-88bf000c2721", "result": { "status": "SUCCESS", + "txHash": "171359fff0edbf0a9d9d11014d0407486ff9f6a6e8f7673f97244acccb355b2d", "latestLedger": "79289", "latestLedgerCloseTime": "1690387240", "oldestLedger": "77850", diff --git a/src/test/resources/responses/sorobanrpc/get_transactions.json b/src/test/resources/responses/sorobanrpc/get_transactions.json index 40b527a70..27095be62 100644 --- a/src/test/resources/responses/sorobanrpc/get_transactions.json +++ b/src/test/resources/responses/sorobanrpc/get_transactions.json @@ -5,6 +5,7 @@ "transactions": [ { "status": "FAILED", + "txHash": "171359fff0edbf0a9d9d11014d0407486ff9f6a6e8f7673f97244acccb355b2d", "applicationOrder": 1, "feeBump": false, "envelopeXdr": "AAAAAgAAAACDz21Q3CTITlGqRus3/96/05EDivbtfJncNQKt64BTbAAAASwAAKkyAAXlMwAAAAEAAAAAAAAAAAAAAABmWeASAAAAAQAAABR3YWxsZXQ6MTcxMjkwNjMzNjUxMAAAAAEAAAABAAAAAIPPbVDcJMhOUapG6zf/3r/TkQOK9u18mdw1Aq3rgFNsAAAAAQAAAABwOSvou8mtwTtCkysVioO35TSgyRir2+WGqO8FShG/GAAAAAFVQUgAAAAAAO371tlrHUfK+AvmQvHje1jSUrvJb3y3wrJ7EplQeqTkAAAAAAX14QAAAAAAAAAAAeuAU2wAAABAn+6A+xXvMasptAm9BEJwf5Y9CLLQtV44TsNqS8ocPmn4n8Rtyb09SBiFoMv8isYgeQU5nAHsIwBNbEKCerusAQ==", @@ -15,6 +16,7 @@ }, { "status": "SUCCESS", + "txHash": "a3dd2e58b8f985647b0bd65141fd8274023bdd77ff280b94e89cdb26f88e121b", "applicationOrder": 2, "feeBump": false, "envelopeXdr": "AAAAAgAAAAC4EZup+ewCs/doS3hKbeAa4EviBHqAFYM09oHuLtqrGAAPQkAAGgQZAAAANgAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAABAAAAABB90WssODNIgi6BHveqzxTRmIpvAFRyVNM+Hm2GVuCcAAAAAAAAAAAq6aHAHZ2sd9aPbRsskrlXMLWIwqs4Sv2Bk+VwuIR+9wAAABdIdugAAAAAAAAAAAIu2qsYAAAAQERzKOqYYiPXNwsiL8ADAG/f45RBssmf3umGzw4qKkLGlObuPdX0buWmTGrhI13SG38F2V8Mp9DI+eDkcCjMSAOGVuCcAAAAQHnm0o/r+Gsl+6oqBgSbqoSY37gflvQB3zZRghuir0N75UVerd0Q50yG5Zfu08i2crhx6uk+5HYTl8/Sa7uZ+Qc=", @@ -25,6 +27,7 @@ }, { "status": "SUCCESS", + "txHash": "782fe0b775dbf301ae952ff765db5987c69374efc47218c665d6df49b0a9d0e9", "applicationOrder": 3, "feeBump": false, "envelopeXdr": "AAAAAgAAAACwtG/IRC5DZE1UdekijEsoQEPM/uOwZ3iY/Y8UZ3b9xAAPQkAAGgRHAAAANgAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAABAAAAABB90WssODNIgi6BHveqzxTRmIpvAFRyVNM+Hm2GVuCcAAAAAAAAAADgdupKeB04lazKXCOb+E1JfxaM3tI4Xsb/qDa1MWOvXgAAABdIdugAAAAAAAAAAAJndv3EAAAAQKcTimw6KKcM0AeCMxXJcEK/hS9ROoj/qpMFppGNAr4W3ifSOSTGAFbA+cIVHmaV4p7xGcR+9JnUN1YjamvJZwSGVuCcAAAAQK9Cp775JbnYA793SXkkWWbmvnEFTiDPiFyTHxTphCwBDB1zqkXqGG6Q5O3dAyqkNJvj1XNRDsmY4pKV41qijQU=", @@ -35,6 +38,7 @@ }, { "status": "SUCCESS", + "txHash": "8faa3e6bb29d9d8469bbcabdbfd800f3be1899f4736a3a2fa83cd58617c072fe", "applicationOrder": 4, "feeBump": false, "envelopeXdr": "AAAAAgAAAACxMt2gKYOehEoVbmh9vfvZ4mVzXFSNTbAU5S4a8zorrAA4wrwAHLqRAAAADAAAAAAAAAAAAAAAAQAAAAAAAAAYAAAAAQAAAAAAAAAAAAAAALEy3aApg56EShVuaH29+9niZXNcVI1NsBTlLhrzOiusz3K+BVgRzXig/Bhz1TL5Qy+Ibv6cDvCfdaAtBMMFPcYAAAAAHXUVmJM11pdJSKKV52UJrVYlvxaPLmmg17nMe0HGy0MAAAABAAAAAAAAAAEAAAAAAAAAAAAAAACxMt2gKYOehEoVbmh9vfvZ4mVzXFSNTbAU5S4a8zorrM9yvgVYEc14oPwYc9Uy+UMviG7+nA7wn3WgLQTDBT3GAAAAAB11FZiTNdaXSUiiledlCa1WJb8Wjy5poNe5zHtBxstDAAAAAAAAAAEAAAAAAAAAAQAAAAcddRWYkzXWl0lIopXnZQmtViW/Fo8uaaDXucx7QcbLQwAAAAEAAAAGAAAAAbolCtTsMrJvK0M2SaskFsaMajj3iAZbXxELZHwDyE5dAAAAFAAAAAEABf2jAAAd1AAAAGgAAAAAADjCWAAAAAHzOiusAAAAQM+qaiMKxMoCVNjdRIh3X9CSxkjAm0BpXYDB9Fd+DS0guYKiY3TMaVe243UB008iBn5ynQv724rReXlg7iFqXQA=", @@ -66,6 +70,7 @@ }, { "status": "FAILED", + "txHash": "cd510e50d7f75c3b09c7d0cf4fdb1d37338d36c1287caf321f03f8980186b10c", "applicationOrder": 1, "feeBump": false, "envelopeXdr": "AAAAAgAAAAAxLMEcxmfUgNzL687Js4sX/jmFQDqTo1Lj4KDoC1PeSQAehIAAAAIJAAtMUQAAAAEAAAAAAAAAAAAAAABmWeAVAAAAAQAAAAlwc3BiOjMyMTcAAAAAAAACAAAAAQAAAACKlutUN5GT3UOoE2BUkNtJEwoipGOinBFsQtXgpIZMxQAAAAEAAAAA433o+yremWU3t88cKpfpHR+JMFR44JHzmBGni6hqCEYAAAACQVRVQUgAAAAAAAAAAAAAAGfK1mN4mg51jbX6by6TWghGynQ463doEDgzriqZo9bzAAAAAAaOd4AAAAABAAAAAIqW61Q3kZPdQ6gTYFSQ20kTCiKkY6KcEWxC1eCkhkzFAAAAAQAAAADjfej7Kt6ZZTe3zxwql+kdH4kwVHjgkfOYEaeLqGoIRgAAAAJBVFVTRAAAAAAAAAAAAAAAZ8rWY3iaDnWNtfpvLpNaCEbKdDjrd2gQODOuKpmj1vMAAAAAADh1IAAAAAAAAAACC1PeSQAAAEBoad/kqj/4Sqq5tC6HyeMm5LJKM1VqKRGZc3e4uvA3ITThwn2nNMRJRegdQrLrPBTSgw51nY8npilXVIds7I0OpIZMxQAAAEDTZNaLjIDMWPDdCxa1ZB28vUxTcS/0xykOFTI/JAz096vX6Y7wI0QvnbPM7KCoL0cJAciD+pJxNqXQ2Aff1hoO", diff --git a/src/test/resources/responses/sorobanrpc/simulate_transaction_failed.json b/src/test/resources/responses/sorobanrpc/simulate_transaction_failed.json index c3493ef81..20e286835 100644 --- a/src/test/resources/responses/sorobanrpc/simulate_transaction_failed.json +++ b/src/test/resources/responses/sorobanrpc/simulate_transaction_failed.json @@ -6,10 +6,6 @@ "transactionData": "", "events": null, "minResourceFee": "0", - "cost": { - "cpuInsns": "0", - "memBytes": "0" - }, "latestLedger": "898" } } \ No newline at end of file diff --git a/src/test/resources/responses/sorobanrpc/simulate_transaction_success.json b/src/test/resources/responses/sorobanrpc/simulate_transaction_success.json index 175fafa1b..2303d885b 100644 --- a/src/test/resources/responses/sorobanrpc/simulate_transaction_success.json +++ b/src/test/resources/responses/sorobanrpc/simulate_transaction_success.json @@ -16,10 +16,6 @@ "xdr": "AAAAAwAAAAo=" } ], - "cost": { - "cpuInsns": "1274180", - "memBytes": "162857" - }, "stateChanges": [ { "type": "created", diff --git a/src/test/resources/soroban_server/get_events.json b/src/test/resources/soroban_server/get_events.json index 8db040926..e03b03da4 100644 --- a/src/test/resources/soroban_server/get_events.json +++ b/src/test/resources/soroban_server/get_events.json @@ -9,7 +9,6 @@ "ledgerClosedAt": "2023-07-28T14:57:02Z", "contractId": "CBQHNAXSI55GX2GN6D67GK7BHVPSLJUGZQEU7WJ5LKR5PNUCGLIMAO4K", "id": "0000000459561504768-0000000000", - "pagingToken": "0000000459561504768-0000000000", "topic": [ "AAAADwAAAAdDT1VOVEVSAA==", "AAAADwAAAAlpbmNyZW1lbnQAAAA=" @@ -24,7 +23,6 @@ "ledgerClosedAt": "2023-07-28T14:57:04Z", "contractId": "CBQHNAXSI55GX2GN6D67GK7BHVPSLJUGZQEU7WJ5LKR5PNUCGLIMAO4K", "id": "0000000468151439360-0000000000", - "pagingToken": "0000000468151439360-0000000000", "topic": [ "AAAADwAAAAdDT1VOVEVSAA==", "AAAADwAAAAlpbmNyZW1lbnQAAAA=" @@ -34,6 +32,7 @@ "txHash": "db86e94aa98b7d38213c041ebbb727fbaabf0b7c435de594f36c2d51fc61926d" } ], - "latestLedger": "187" + "latestLedger": "187", + "cursor": "0000000468151439360-0000000000" } } \ No newline at end of file diff --git a/src/test/resources/soroban_server/get_transaction.json b/src/test/resources/soroban_server/get_transaction.json index 915aacc3c..2d5c2d357 100644 --- a/src/test/resources/soroban_server/get_transaction.json +++ b/src/test/resources/soroban_server/get_transaction.json @@ -3,6 +3,7 @@ "id": "198cb1a8-9104-4446-a269-88bf000c2721", "result": { "status": "SUCCESS", + "txHash": "8faa3e6bb29d9d8469bbcabdbfd800f3be1899f4736a3a2fa83cd58617c072fe", "latestLedger": "79289", "latestLedgerCloseTime": "1690387240", "oldestLedger": "77850", diff --git a/src/test/resources/soroban_server/get_transactions.json b/src/test/resources/soroban_server/get_transactions.json index 40b527a70..27095be62 100644 --- a/src/test/resources/soroban_server/get_transactions.json +++ b/src/test/resources/soroban_server/get_transactions.json @@ -5,6 +5,7 @@ "transactions": [ { "status": "FAILED", + "txHash": "171359fff0edbf0a9d9d11014d0407486ff9f6a6e8f7673f97244acccb355b2d", "applicationOrder": 1, "feeBump": false, "envelopeXdr": "AAAAAgAAAACDz21Q3CTITlGqRus3/96/05EDivbtfJncNQKt64BTbAAAASwAAKkyAAXlMwAAAAEAAAAAAAAAAAAAAABmWeASAAAAAQAAABR3YWxsZXQ6MTcxMjkwNjMzNjUxMAAAAAEAAAABAAAAAIPPbVDcJMhOUapG6zf/3r/TkQOK9u18mdw1Aq3rgFNsAAAAAQAAAABwOSvou8mtwTtCkysVioO35TSgyRir2+WGqO8FShG/GAAAAAFVQUgAAAAAAO371tlrHUfK+AvmQvHje1jSUrvJb3y3wrJ7EplQeqTkAAAAAAX14QAAAAAAAAAAAeuAU2wAAABAn+6A+xXvMasptAm9BEJwf5Y9CLLQtV44TsNqS8ocPmn4n8Rtyb09SBiFoMv8isYgeQU5nAHsIwBNbEKCerusAQ==", @@ -15,6 +16,7 @@ }, { "status": "SUCCESS", + "txHash": "a3dd2e58b8f985647b0bd65141fd8274023bdd77ff280b94e89cdb26f88e121b", "applicationOrder": 2, "feeBump": false, "envelopeXdr": "AAAAAgAAAAC4EZup+ewCs/doS3hKbeAa4EviBHqAFYM09oHuLtqrGAAPQkAAGgQZAAAANgAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAABAAAAABB90WssODNIgi6BHveqzxTRmIpvAFRyVNM+Hm2GVuCcAAAAAAAAAAAq6aHAHZ2sd9aPbRsskrlXMLWIwqs4Sv2Bk+VwuIR+9wAAABdIdugAAAAAAAAAAAIu2qsYAAAAQERzKOqYYiPXNwsiL8ADAG/f45RBssmf3umGzw4qKkLGlObuPdX0buWmTGrhI13SG38F2V8Mp9DI+eDkcCjMSAOGVuCcAAAAQHnm0o/r+Gsl+6oqBgSbqoSY37gflvQB3zZRghuir0N75UVerd0Q50yG5Zfu08i2crhx6uk+5HYTl8/Sa7uZ+Qc=", @@ -25,6 +27,7 @@ }, { "status": "SUCCESS", + "txHash": "782fe0b775dbf301ae952ff765db5987c69374efc47218c665d6df49b0a9d0e9", "applicationOrder": 3, "feeBump": false, "envelopeXdr": "AAAAAgAAAACwtG/IRC5DZE1UdekijEsoQEPM/uOwZ3iY/Y8UZ3b9xAAPQkAAGgRHAAAANgAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAABAAAAABB90WssODNIgi6BHveqzxTRmIpvAFRyVNM+Hm2GVuCcAAAAAAAAAADgdupKeB04lazKXCOb+E1JfxaM3tI4Xsb/qDa1MWOvXgAAABdIdugAAAAAAAAAAAJndv3EAAAAQKcTimw6KKcM0AeCMxXJcEK/hS9ROoj/qpMFppGNAr4W3ifSOSTGAFbA+cIVHmaV4p7xGcR+9JnUN1YjamvJZwSGVuCcAAAAQK9Cp775JbnYA793SXkkWWbmvnEFTiDPiFyTHxTphCwBDB1zqkXqGG6Q5O3dAyqkNJvj1XNRDsmY4pKV41qijQU=", @@ -35,6 +38,7 @@ }, { "status": "SUCCESS", + "txHash": "8faa3e6bb29d9d8469bbcabdbfd800f3be1899f4736a3a2fa83cd58617c072fe", "applicationOrder": 4, "feeBump": false, "envelopeXdr": "AAAAAgAAAACxMt2gKYOehEoVbmh9vfvZ4mVzXFSNTbAU5S4a8zorrAA4wrwAHLqRAAAADAAAAAAAAAAAAAAAAQAAAAAAAAAYAAAAAQAAAAAAAAAAAAAAALEy3aApg56EShVuaH29+9niZXNcVI1NsBTlLhrzOiusz3K+BVgRzXig/Bhz1TL5Qy+Ibv6cDvCfdaAtBMMFPcYAAAAAHXUVmJM11pdJSKKV52UJrVYlvxaPLmmg17nMe0HGy0MAAAABAAAAAAAAAAEAAAAAAAAAAAAAAACxMt2gKYOehEoVbmh9vfvZ4mVzXFSNTbAU5S4a8zorrM9yvgVYEc14oPwYc9Uy+UMviG7+nA7wn3WgLQTDBT3GAAAAAB11FZiTNdaXSUiiledlCa1WJb8Wjy5poNe5zHtBxstDAAAAAAAAAAEAAAAAAAAAAQAAAAcddRWYkzXWl0lIopXnZQmtViW/Fo8uaaDXucx7QcbLQwAAAAEAAAAGAAAAAbolCtTsMrJvK0M2SaskFsaMajj3iAZbXxELZHwDyE5dAAAAFAAAAAEABf2jAAAd1AAAAGgAAAAAADjCWAAAAAHzOiusAAAAQM+qaiMKxMoCVNjdRIh3X9CSxkjAm0BpXYDB9Fd+DS0guYKiY3TMaVe243UB008iBn5ynQv724rReXlg7iFqXQA=", @@ -66,6 +70,7 @@ }, { "status": "FAILED", + "txHash": "cd510e50d7f75c3b09c7d0cf4fdb1d37338d36c1287caf321f03f8980186b10c", "applicationOrder": 1, "feeBump": false, "envelopeXdr": "AAAAAgAAAAAxLMEcxmfUgNzL687Js4sX/jmFQDqTo1Lj4KDoC1PeSQAehIAAAAIJAAtMUQAAAAEAAAAAAAAAAAAAAABmWeAVAAAAAQAAAAlwc3BiOjMyMTcAAAAAAAACAAAAAQAAAACKlutUN5GT3UOoE2BUkNtJEwoipGOinBFsQtXgpIZMxQAAAAEAAAAA433o+yremWU3t88cKpfpHR+JMFR44JHzmBGni6hqCEYAAAACQVRVQUgAAAAAAAAAAAAAAGfK1mN4mg51jbX6by6TWghGynQ463doEDgzriqZo9bzAAAAAAaOd4AAAAABAAAAAIqW61Q3kZPdQ6gTYFSQ20kTCiKkY6KcEWxC1eCkhkzFAAAAAQAAAADjfej7Kt6ZZTe3zxwql+kdH4kwVHjgkfOYEaeLqGoIRgAAAAJBVFVTRAAAAAAAAAAAAAAAZ8rWY3iaDnWNtfpvLpNaCEbKdDjrd2gQODOuKpmj1vMAAAAAADh1IAAAAAAAAAACC1PeSQAAAEBoad/kqj/4Sqq5tC6HyeMm5LJKM1VqKRGZc3e4uvA3ITThwn2nNMRJRegdQrLrPBTSgw51nY8npilXVIds7I0OpIZMxQAAAEDTZNaLjIDMWPDdCxa1ZB28vUxTcS/0xykOFTI/JAz096vX6Y7wI0QvnbPM7KCoL0cJAciD+pJxNqXQ2Aff1hoO", diff --git a/src/test/resources/soroban_server/prepare_transaction.json b/src/test/resources/soroban_server/prepare_transaction.json index 09c627d90..23e690aa7 100644 --- a/src/test/resources/soroban_server/prepare_transaction.json +++ b/src/test/resources/soroban_server/prepare_transaction.json @@ -9,10 +9,6 @@ "AAAAAQAAAAAAAAAB6bfni71JNBarlvcR3WP2056a8vvFXQ0/CGfiBeDQA/wAAAACAAAAAAAAAAIAAAAPAAAACWZuX3JldHVybgAAAAAAAA8AAAAJaW5jcmVtZW50AAAAAAAAAwAAABQ=" ], "results": [], - "cost": { - "cpuInsns": "1646885", - "memBytes": "1296481" - }, "latestLedger": "14245" } } \ No newline at end of file diff --git a/src/test/resources/soroban_server/prepare_transaction_error.json b/src/test/resources/soroban_server/prepare_transaction_error.json index 1cd3f1dbf..8bc9dc601 100644 --- a/src/test/resources/soroban_server/prepare_transaction_error.json +++ b/src/test/resources/soroban_server/prepare_transaction_error.json @@ -6,10 +6,6 @@ "transactionData": null, "events": null, "minResourceFee": "0", - "cost": { - "cpuInsns": "0", - "memBytes": "0" - }, "latestLedger": "898" } } \ No newline at end of file diff --git a/src/test/resources/soroban_server/prepare_transaction_with_soroban_data.json b/src/test/resources/soroban_server/prepare_transaction_with_soroban_data.json index 4cdcf6945..659ae4958 100644 --- a/src/test/resources/soroban_server/prepare_transaction_with_soroban_data.json +++ b/src/test/resources/soroban_server/prepare_transaction_with_soroban_data.json @@ -16,10 +16,6 @@ "xdr": "AAAAAwAAABQ=" } ], - "cost": { - "cpuInsns": "1646885", - "memBytes": "1296481" - }, "latestLedger": "14245" } } \ No newline at end of file diff --git a/src/test/resources/soroban_server/simulate_transaction.json b/src/test/resources/soroban_server/simulate_transaction.json index 3e08fbe3c..c51d05f17 100644 --- a/src/test/resources/soroban_server/simulate_transaction.json +++ b/src/test/resources/soroban_server/simulate_transaction.json @@ -16,10 +16,6 @@ "xdr": "AAAAAwAAABQ=" } ], - "cost": { - "cpuInsns": "1646885", - "memBytes": "1296481" - }, "stateChanges": [ { "type": "created", diff --git a/src/test/resources/soroban_server/simulate_transaction_with_resource_leeway.json b/src/test/resources/soroban_server/simulate_transaction_with_resource_leeway.json index b430dda01..1cbb570bf 100644 --- a/src/test/resources/soroban_server/simulate_transaction_with_resource_leeway.json +++ b/src/test/resources/soroban_server/simulate_transaction_with_resource_leeway.json @@ -16,10 +16,6 @@ "xdr": "AAAAAwAAABQ=" } ], - "cost": { - "cpuInsns": "1646885", - "memBytes": "1296481" - }, "latestLedger": "14245" } } \ No newline at end of file