Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
thedavidmeister committed Oct 26, 2024
1 parent a9ec3a1 commit 8884330
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/abstract/FlareFtsoSubParser.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// SPDX-FileCopyrightText: Copyright (c) 2020 thedavidmeister
pragma solidity ^0.8.25;

import {BaseRainterpreterSubParserNPE2, Operand} from "rain.interpreter/abstract/BaseRainterpreterSubParserNPE2.sol";
import {BaseRainterpreterSubParserNPE2, Operand, IParserToolingV1, ISubParserToolingV1} from "rain.interpreter/abstract/BaseRainterpreterSubParserNPE2.sol";
import {
OPCODE_FTSO_CURRENT_PRICE_USD,
OPCODE_FTSO_CURRENT_PRICE_PAIR,
Expand Down Expand Up @@ -53,6 +53,7 @@ abstract contract FlareFtsoSubParser is BaseRainterpreterSubParserNPE2 {
/// Create a 16-bit pointer array for the operand handlers. This is
/// relatively gas inefficent so it is only called during tests to cross
/// reference against the constant values that are used at runtime.
/// @inheritdoc IParserToolingV1
function buildOperandHandlerFunctionPointers() external pure returns (bytes memory) {
function(uint256[] memory) internal pure returns (Operand)[] memory fs = new function(uint256[] memory)
internal
Expand All @@ -69,13 +70,15 @@ abstract contract FlareFtsoSubParser is BaseRainterpreterSubParserNPE2 {
return LibConvert.unsafeTo16BitBytes(pointers);
}

/// @inheritdoc IParserToolingV1
function buildLiteralParserFunctionPointers() external pure returns (bytes memory) {
return "";
}

/// Create a 16-bit pointer array for the word parsers. This is relatively
/// gas inefficent so it is only called during tests to cross reference
/// against the constant values that are used at runtime.
/// @inheritdoc ISubParserToolingV1
function buildSubParserWordParsers() external pure returns (bytes memory) {
function(uint256, uint256, Operand)
internal
Expand Down

0 comments on commit 8884330

Please sign in to comment.