Skip to content

Commit

Permalink
get_storage_recursive oracle
Browse files Browse the repository at this point in the history
  • Loading branch information
akonior committed Jun 6, 2024
1 parent b7d75db commit 0cad606
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ pub fn get_account_with_storage_recursive(
storage_within_block
}

#[oracle(get_account_with_storage_recursive)]
#[oracle(get_storage_recursive)]
unconstrained fn get_account_with_storage_recursive_oracle(
chain_id: Field,
block_number: u64,
Expand Down
2 changes: 1 addition & 1 deletion ethereum/oracles/src/noir/oracles/server/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jsonRPCServer.addMethod('get_account', getRpcOracleHandler.bind(this, getAccount
jsonRPCServer.addMethod('get_proof', getRpcOracleHandler.bind(this, getProofOracle));
jsonRPCServer.addMethod('get_receipt', getRpcOracleHandler.bind(this, getReceiptOracle));
jsonRPCServer.addMethod('get_transaction', getRpcOracleHandler.bind(this, getTransactionOracle));
jsonRPCServer.addMethod('recursive_get_storage', getOracleHandler.bind(this, getStorageOracle));
jsonRPCServer.addMethod('get_storage_recursive', getOracleHandler.bind(this, getStorageOracle));

export function buildOracleServer(
opts: Fastify.FastifyHttpOptions<http.Server> = {},
Expand Down
2 changes: 1 addition & 1 deletion ethereum/oracles/src/noir/oracles/server/handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export type JSONRPCServerMethods = {
get_proof(params: ForeignCallParams): ForeignCallResult;
get_receipt(params: ForeignCallParams): ForeignCallResult;
get_transaction(params: ForeignCallParams): ForeignCallResult;
recursive_get_storage(params: ForeignCallParams): ForeignCallResult;
get_storage_recursive(params: ForeignCallParams): ForeignCallResult;
};

export interface ServerParams {
Expand Down
2 changes: 1 addition & 1 deletion ethereum/oracles/src/script/generateGetStorageVK.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { MonorepoCircuit } from '../noir/circuit/circuit.js';
import { VerificationKey, generateVk } from '../noir/circuit/vk.js';

const circuit = await MonorepoCircuit.create('../../', 'get_storage');
const circuit = await MonorepoCircuit.create('../../', 'get_storage_recursive');
await generateVk(circuit.artefact.bytecode, circuit.vkPath(), circuit.vkAsFieldsPath());
const vk = await VerificationKey.create(circuit.vkAsFieldsPath());
// eslint-disable-next-line no-console
Expand Down

0 comments on commit 0cad606

Please sign in to comment.