UNPKG

@wiko/web3.js

Version:
10 lines 984 B
import { Rpc, SimulateTransactionApi } from '@wiko/rpc'; import { CompilableTransactionMessage, ITransactionMessageWithFeePayer, TransactionMessage } from '@wiko/transaction-messages'; import { getComputeUnitEstimateForTransactionMessage_INTERNAL_ONLY_DO_NOT_EXPORT } from './compute-limit-internal'; type ComputeUnitEstimateForTransactionMessageFactoryConfig = Readonly<{ rpc: Rpc<SimulateTransactionApi>; }>; type ComputeUnitEstimateForTransactionMessageFunction = (transactionMessage: CompilableTransactionMessage | (ITransactionMessageWithFeePayer & TransactionMessage), config?: Omit<Parameters<typeof getComputeUnitEstimateForTransactionMessage_INTERNAL_ONLY_DO_NOT_EXPORT>[0], 'rpc' | 'transactionMessage'>) => Promise<number>; export declare function getComputeUnitEstimateForTransactionMessageFactory({ rpc, }: ComputeUnitEstimateForTransactionMessageFactoryConfig): ComputeUnitEstimateForTransactionMessageFunction; export {}; //# sourceMappingURL=compute-limit.d.ts.map