diff --git a/src/soroban_rpc.ts b/src/soroban_rpc.ts index afbd1cf8..7d1a23c5 100644 --- a/src/soroban_rpc.ts +++ b/src/soroban_rpc.ts @@ -15,6 +15,11 @@ export namespace SorobanRpc { smart: string; } + export interface Cost { + cpuInsns: string; + memBytes: string; + } + export interface GetHealthResponse { status: "healthy"; } @@ -124,5 +129,6 @@ export namespace SorobanRpc { suggestedInclusionFee: string; results: SimulateHostFunctionResult[]; latestLedger: number; + cost: Cost; } } diff --git a/test/unit/server/simulate_transaction_test.js b/test/unit/server/simulate_transaction_test.js index 2a40190a..f4d4198f 100644 --- a/test/unit/server/simulate_transaction_test.js +++ b/test/unit/server/simulate_transaction_test.js @@ -43,6 +43,10 @@ describe("Server#simulateTransaction", function() { }, ], latestLedger: 3, + cost: { + cpuInsns: "0", + memBytes: "0", + }, }; beforeEach(function() { diff --git a/test/unit/transaction_test.js b/test/unit/transaction_test.js index dfe7cd16..cfba64b0 100644 --- a/test/unit/transaction_test.js +++ b/test/unit/transaction_test.js @@ -43,6 +43,10 @@ describe("assembleTransaction", () => { }, ], latestLedger: 3, + cost: { + cpuInsns: "0", + memBytes: "0", + }, }; describe("Transaction", () => { const networkPassphrase = SorobanClient.Networks.TESTNET;