From b501845cf6ffe8e7a4ce7759f58afad541f2f31f Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Fri, 24 May 2024 11:08:38 +0200 Subject: [PATCH] Move RPC oracles to a separate subfolder --- .../src/noir/oracles/rpc/transactionOracle.int.test.ts | 4 ++-- .../oracles/src/noir/oracles/rpc/transactionOracle/encode.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ethereum/oracles/src/noir/oracles/rpc/transactionOracle.int.test.ts b/ethereum/oracles/src/noir/oracles/rpc/transactionOracle.int.test.ts index beb80717..c223e710 100644 --- a/ethereum/oracles/src/noir/oracles/rpc/transactionOracle.int.test.ts +++ b/ethereum/oracles/src/noir/oracles/rpc/transactionOracle.int.test.ts @@ -1,10 +1,10 @@ import { describe, expect, it } from 'vitest'; import { createMockMultiChainClient } from '../../../ethereum/mockClient.js'; -import { OFFSETS, getTransactionOracle } from './transactionOracle.js'; -import { MAX_DATA_LEN_M } from './common/txConfig.js'; import { padArray } from '../../../util/array.js'; +import { MAX_DATA_LEN_M } from './common/txConfig.js'; import { ZERO_PAD_VALUE } from '../common/const.js'; import { txProofConfigM } from './common/proofConfig/tx.js'; +import { OFFSETS, getTransactionOracle } from './transactionOracle.js'; describe('getTransactionOracle', () => { it('success', async () => { diff --git a/ethereum/oracles/src/noir/oracles/rpc/transactionOracle/encode.ts b/ethereum/oracles/src/noir/oracles/rpc/transactionOracle/encode.ts index b78276fe..3dd99d83 100644 --- a/ethereum/oracles/src/noir/oracles/rpc/transactionOracle/encode.ts +++ b/ethereum/oracles/src/noir/oracles/rpc/transactionOracle/encode.ts @@ -1,4 +1,3 @@ -import { Transaction } from 'viem'; import { MAX_DATA_LEN_M } from '../common/txConfig.js'; import { ForeignCallOutput } from '@noir-lang/noir_js'; import { padArray } from '../../../../util/array.js'; @@ -8,6 +7,7 @@ import { ZERO_PAD_VALUE, MAX_TRIE_NODE_LEN } from '../../common/const.js'; import { encodeField, encodeAddress, encodeU128, encodeHex, encodeBytes, encodeProof } from '../../common/encode.js'; import { txProofConfigM } from '../common/proofConfig/tx.js'; import { Proof } from '../../../../ethereum/proof.js'; +import { Transaction } from 'viem'; export enum TX_OFFSETS { NONCE,