diff --git a/src/index.ts b/src/index.ts index 23aa82e..be33bbd 100644 --- a/src/index.ts +++ b/src/index.ts @@ -8,7 +8,7 @@ import { TxnBuilderTypes, Types, } from "aptos"; -import { MoveStructTag, EntryFunctionId } from "aptos/src/generated"; +import { MoveStructTag, EntryFunctionId, PendingTransaction } from "aptos/src/generated"; import Big from "big.js"; import { OracleJob } from "@switchboard-xyz/common"; import BN from "bn.js"; @@ -16,6 +16,7 @@ import * as SHA3 from "js-sha3"; export { OracleJob, IOracleJob } from "@switchboard-xyz/common"; + export const SWITCHBOARD_TESTNET_ADDRESS = `0xb27f7bbf7caf2368b08032d005e8beab151a885054cdca55c4cc644f0a308d2b`; export class AptosDecimal { @@ -371,7 +372,7 @@ export async function sendRawAptosTx( raw_args: Array, raw_type_args: BCS.Seq = [], retryCount = 2 -): Promise { +): Promise { // We need to pass a token type to the `transfer` function. const methodInfo = method.split("::"); @@ -422,7 +423,7 @@ export async function sendRawAptosTx( const transactionRes = await client.submitSignedBCSTransaction(bcsTxn); await client.waitForTransaction(transactionRes.hash); - return transactionRes.hash; + return transactionRes; } /** @@ -675,7 +676,7 @@ export class AggregatorAccount { async saveResult( account: AptosAccount, params: AggregatorSaveResultParams - ): Promise { + ): Promise { const { mantissa: valueMantissa, scale: valueScale,