Skip to content

Commit

Permalink
build pointers
Browse files Browse the repository at this point in the history
  • Loading branch information
thedavidmeister committed Nov 29, 2024
1 parent bd332c5 commit e5c9784
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ remappings = [
"rain.interpreter/=lib/rain.interpreter/src/",
"rain.metadata/=lib/rain.interpreter/lib/rain.metadata/src/",
"rain.interpreter.interface/=lib/rain.orderbook.interface/lib/rain.interpreter.interface/src/",
"rain.intorastring/=lib/rain.interpreter/lib/rain.intorastring/",
"rain.intorastring/=lib/rain.interpreter/lib/rain.interpreter.interface/lib/rain.intorastring/src/",
"rain.sol.codegen/=lib/rain.interpreter/lib/rain.sol.codegen/src/",
"rain.solmem/=lib/rain.orderbook.interface/lib/rain.interpreter.interface/lib/rain.solmem/src",
]
Expand Down
3 changes: 2 additions & 1 deletion script/BuildPointers.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {LibCodeGen} from "rain.sol.codegen/lib/LibCodeGen.sol";
import {LibFs} from "rain.sol.codegen/lib/LibFs.sol";
import {OrderBookSubParser} from "src/concrete/parser/OrderBookSubParser.sol";
import {LibOrderBookSubParser, EXTERN_PARSE_META_BUILD_DEPTH} from "src/lib/LibOrderBookSubParser.sol";
import {LibGenParseMeta} from "rain.interpreter.interface/lib/codegen/LibGenParseMeta.sol";

contract BuildPointers is Script {
function buildOrderBookSubParserPointers() internal {
Expand All @@ -20,7 +21,7 @@ contract BuildPointers is Script {
name,
string.concat(
LibCodeGen.describedByMetaHashConstantString(vm, name),
LibCodeGen.parseMetaConstantString(
LibGenParseMeta.parseMetaConstantString(
vm, LibOrderBookSubParser.authoringMetaV2(), EXTERN_PARSE_META_BUILD_DEPTH
),
LibCodeGen.subParserWordParsersConstantString(vm, subParser),
Expand Down
3 changes: 2 additions & 1 deletion src/generated/OrderBookSubParser.pointers.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
// needs the pointers file to exist so that it can compile, and the pointers
// file needs the contract to exist so that it can be compiled.

// SPDX-License-Identifier: CAL
// SPDX-License-Identifier: LicenseRef-DCL-1.0
// SPDX-FileCopyrightText: Copyright (c) 2020 thedavidmeister
pragma solidity =0.8.25;

/// @dev Hash of the known bytecode.
Expand Down

0 comments on commit e5c9784

Please sign in to comment.