@@ -23,8 +23,8 @@ import { TXE } from './oracle/txe_oracle.js';
2323import { TXEOraclePublicContext } from './oracle/txe_oracle_public_context.js' ;
2424import { TXEOracleTopLevelContext } from './oracle/txe_oracle_top_level_context.js' ;
2525import type { TXETypedOracle } from './oracle/txe_typed_oracle.js' ;
26+ import { RPCTranslator } from './rpc_translator.js' ;
2627import { TXEStateMachine } from './state_machine/index.js' ;
27- import { TXEService } from './txe_service/txe_service.js' ;
2828import type { ForeignCallArgs , ForeignCallResult } from './util/encoding.js' ;
2929import { TXEAccountDataProvider } from './util/txe_account_data_provider.js' ;
3030import { TXEContractDataProvider } from './util/txe_contract_data_provider.js' ;
@@ -65,7 +65,7 @@ type MethodNames<T> = {
6565 * The name of an oracle function that TXE supports, which are a combination of PXE oracles, non-transpiled AVM opcodes,
6666 * and custom TXE oracles.
6767 */
68- export type TXEOracleFunctionName = MethodNames < TXEService > ;
68+ export type TXEOracleFunctionName = MethodNames < RPCTranslator > ;
6969
7070export interface TXESessionStateHandler {
7171 setTopLevelContext ( ) : Promise < void > ;
@@ -168,7 +168,7 @@ export class TXESession implements TXESessionStateHandler {
168168 * @returns The oracle return values.
169169 */
170170 processFunction ( functionName : TXEOracleFunctionName , inputs : ForeignCallArgs ) : Promise < ForeignCallResult > {
171- return ( new TXEService ( this , this . oracleHandler ) as any ) [ functionName ] ( ...inputs ) ;
171+ return ( new RPCTranslator ( this , this . oracleHandler ) as any ) [ functionName ] ( ...inputs ) ;
172172 }
173173
174174 async setTopLevelContext ( ) {
0 commit comments