From 4febc716196d0b83629cef95a535030c10f898fa Mon Sep 17 00:00:00 2001 From: Arkadiusz Konior Date: Fri, 1 Mar 2024 13:23:02 +0100 Subject: [PATCH] Rename accountOracles.ts to accountOracle.ts (#113) --- .../oracles/src/noir/oracles/accountOracle.int.test.ts | 2 +- .../oracles/src/noir/oracles/accountOracle.test.ts | 2 +- .../src/noir/oracles/{accountOracles.ts => accountOracle.ts} | 0 ethereum_history_api/oracles/src/noir/oracles/oracles.ts | 2 +- .../oracles/src/noir/oracles/server/handlers.ts | 2 +- .../oracles/src/script/noir_fixtures/account.ts | 2 +- .../oracles/src/script/noir_fixtures/state_proof.ts | 2 +- 7 files changed, 6 insertions(+), 6 deletions(-) rename ethereum_history_api/oracles/src/noir/oracles/{accountOracles.ts => accountOracle.ts} (100%) diff --git a/ethereum_history_api/oracles/src/noir/oracles/accountOracle.int.test.ts b/ethereum_history_api/oracles/src/noir/oracles/accountOracle.int.test.ts index c0b5970b5..0a53b7775 100644 --- a/ethereum_history_api/oracles/src/noir/oracles/accountOracle.int.test.ts +++ b/ethereum_history_api/oracles/src/noir/oracles/accountOracle.int.test.ts @@ -1,5 +1,5 @@ import { describe, expect, it } from 'vitest'; -import { getAccountOracle } from './accountOracles.js'; +import { getAccountOracle } from './accountOracle.js'; import { createMockClient } from '../../ethereum/mockClient.js'; describe( diff --git a/ethereum_history_api/oracles/src/noir/oracles/accountOracle.test.ts b/ethereum_history_api/oracles/src/noir/oracles/accountOracle.test.ts index 0d012865e..fdc476b23 100644 --- a/ethereum_history_api/oracles/src/noir/oracles/accountOracle.test.ts +++ b/ethereum_history_api/oracles/src/noir/oracles/accountOracle.test.ts @@ -1,5 +1,5 @@ import { describe, expect, it } from 'vitest'; -import { encodeAccount, encodeStateProof, parseNoirGetAccountArguments } from './accountOracles.js'; +import { encodeAccount, encodeStateProof, parseNoirGetAccountArguments } from './accountOracle.js'; import { type GetProofReturnType } from 'viem'; import { ForeignCallOutput } from '@noir-lang/noir_js'; import { readFile } from 'fs/promises'; diff --git a/ethereum_history_api/oracles/src/noir/oracles/accountOracles.ts b/ethereum_history_api/oracles/src/noir/oracles/accountOracle.ts similarity index 100% rename from ethereum_history_api/oracles/src/noir/oracles/accountOracles.ts rename to ethereum_history_api/oracles/src/noir/oracles/accountOracle.ts diff --git a/ethereum_history_api/oracles/src/noir/oracles/oracles.ts b/ethereum_history_api/oracles/src/noir/oracles/oracles.ts index 9f17f7e0a..e9579b7bb 100644 --- a/ethereum_history_api/oracles/src/noir/oracles/oracles.ts +++ b/ethereum_history_api/oracles/src/noir/oracles/oracles.ts @@ -1,6 +1,6 @@ import { type ForeignCallOutput } from '@noir-lang/noir_js'; import { createDefaultClient } from '../../ethereum/client.js'; -import { getAccountOracle } from './accountOracles.js'; +import { getAccountOracle } from './accountOracle.js'; import { type PublicClient } from 'viem'; import { getHeaderOracle } from './headerOracle.js'; diff --git a/ethereum_history_api/oracles/src/noir/oracles/server/handlers.ts b/ethereum_history_api/oracles/src/noir/oracles/server/handlers.ts index 1bd48400d..e960b1166 100644 --- a/ethereum_history_api/oracles/src/noir/oracles/server/handlers.ts +++ b/ethereum_history_api/oracles/src/noir/oracles/server/handlers.ts @@ -1,6 +1,6 @@ import { PublicClient } from 'viem'; import { ForeignCallResult, ForeignCallParams } from './types.js'; -import { getAccountOracle } from '../accountOracles.js'; +import { getAccountOracle } from '../accountOracle.js'; import { getHeaderOracle } from '../headerOracle.js'; import { decodeNoirArguments, encodeForeignCallResult } from './encode.js'; diff --git a/ethereum_history_api/oracles/src/script/noir_fixtures/account.ts b/ethereum_history_api/oracles/src/script/noir_fixtures/account.ts index da8aa091f..a6bcdaeb2 100644 --- a/ethereum_history_api/oracles/src/script/noir_fixtures/account.ts +++ b/ethereum_history_api/oracles/src/script/noir_fixtures/account.ts @@ -1,6 +1,6 @@ import { GetProofReturnType } from 'viem'; import { encodeHexString } from '../../noir/noir_js/encode.js'; -import { encodeValue } from '../../noir/oracles/accountOracles.js'; +import { encodeValue } from '../../noir/oracles/accountOracle.js'; export function createAccountFixture(stateProof: GetProofReturnType): string { const balance = '0x' + stateProof.balance.toString(16); diff --git a/ethereum_history_api/oracles/src/script/noir_fixtures/state_proof.ts b/ethereum_history_api/oracles/src/script/noir_fixtures/state_proof.ts index ff49e5135..5210d7fa6 100644 --- a/ethereum_history_api/oracles/src/script/noir_fixtures/state_proof.ts +++ b/ethereum_history_api/oracles/src/script/noir_fixtures/state_proof.ts @@ -1,6 +1,6 @@ import { GetProofReturnType } from 'viem'; import { encodeHexString } from '../../noir/noir_js/encode.js'; -import { STATE_PROOF_LENGTH, encodeValue } from '../../noir/oracles/accountOracles.js'; +import { STATE_PROOF_LENGTH, encodeValue } from '../../noir/oracles/accountOracle.js'; import { encodeProof } from '../../noir/oracles/encode.js'; export function createStateProofFixture(stateProof: GetProofReturnType): string {