Skip to content

Commit

Permalink
Rename accountOracles.ts to accountOracle.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
akonior committed Mar 1, 2024
1 parent 3c5512d commit 162e9f1
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -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(
Expand Down
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
2 changes: 1 addition & 1 deletion ethereum_history_api/oracles/src/noir/oracles/oracles.ts
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
Original file line number Diff line number Diff line change
@@ -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);
Expand Down
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down

0 comments on commit 162e9f1

Please sign in to comment.