Skip to content
Verified contractPartialLicenseRef-DCL-1.0

RainlangCompiler

Address0xb21cb79d8b6217b1de99cebe86854dda7d0bfcc4
Balance

0 ETH

 

Transactions

0

 

Compiler

solc 0.8.25

 

Same code

Only this contract

 

Details

Compiler
solc 0.8.25+commit.b61c2a91
Language
solidity
Optimization
Yes, 18,500 runs
EVM version
cancun
License
LicenseRef-DCL-1.0
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
26,327,669
Creation transaction
0x20cd886ebc…0b65db2ee7

169 files

The source code is large: one file is shown at a time. Choose a file in the list.

src/concrete/RainlangCompiler.sol

// SPDX-License-Identifier: LicenseRef-DCL-1.0
// SPDX-FileCopyrightText: Copyright (c) 2020 Rain Open Source Software Ltd
pragma solidity =0.8.25;

import {BaseRainlangCompiler} from "rainlang-0.2.31/src/abstract/BaseRainlangCompiler.sol";
import {BaseRainlangParser} from "rainlang-0.2.31/src/abstract/BaseRainlangParser.sol";
import {INTEGRITY_FUNCTION_POINTERS, DESCRIBED_BY_META_HASH} from "../generated/RainlangCompilerPointers.sol";
import {LibInterpreterDeploy} from "../lib/deploy/LibInterpreterDeploy.sol";
// Referenced by NatSpec only.
//forge-lint: disable-next-line(unused-import)
import {IDescribedByMetaV1} from "rain-metadata-0.1.43/src/interface/IDescribedByMetaV1.sol";

/// @title RainlangCompiler
/// @notice `BaseRainlangCompiler` bound to the parser at its
/// deterministic Zoltu address, its generated integrity function pointer
/// table and its described-by meta hash.
contract RainlangCompiler is BaseRainlangCompiler {
    /// @inheritdoc BaseRainlangCompiler
    function parser() internal pure virtual override returns (BaseRainlangParser) {
        return BaseRainlangParser(LibInterpreterDeploy.PARSER_DEPLOYED_ADDRESS);
    }

    /// @inheritdoc BaseRainlangCompiler
    function integrityFunctionPointers() internal pure virtual override returns (bytes memory) {
        return INTEGRITY_FUNCTION_POINTERS;
    }

    /// @inheritdoc IDescribedByMetaV1
    function describedByMetaV1() external pure virtual override returns (bytes32) {
        return DESCRIBED_BY_META_HASH;
    }
}
Compiler settingsShow
{
  "viaIR": false,
  "metadata": {
    "appendCBOR": false,
    "bytecodeHash": "none",
    "useLiteralContent": false
  },
  "optimizer": {
    "runs": 18500,
    "enabled": true
  },
  "evmVersion": "cancun",
  "remappings": [
    "@openzeppelin-contracts-5.7.0/=dependencies/@openzeppelin-contracts-5.7.0/",
    "forge-std-1.17.0/=dependencies/forge-std-1.17.0/",
    "rain-deploy-0.1.25/=dependencies/rain-deploy-0.1.25/",
    "rain-extrospection-0.1.16/=dependencies/rain-extrospection-0.1.16/",
    "rain-factory-0.2.5/=dependencies/rain-factory-0.2.5/",
    "rain-intorastring-0.1.4/=dependencies/rain-intorastring-0.1.4/",
    "rain-lib-hash-0.1.27/=dependencies/rain-lib-hash-0.1.27/",
    "rain-lib-memkv-0.2.0/=dependencies/rain-lib-memkv-0.2.0/",
    "rain-lib-typecast-0.1.4/=dependencies/rain-lib-typecast-0.1.4/",
    "rain-math-binary-0.1.4/=dependencies/rain-math-binary-0.1.4/",
    "rain-math-float-0.3.11/=dependencies/rain-math-float-0.3.11/",
    "rain-math-float-deploy-0.1.9/=dependencies/rain-math-float-deploy-0.1.9/",
    "rain-metadata-0.1.43/=dependencies/rain-metadata-0.1.43/",
    "rain-sol-codegen-0.1.39/=dependencies/rain-sol-codegen-0.1.39/",
    "rain-solmem-0.1.28/=dependencies/rain-solmem-0.1.28/",
    "rain-string-0.3.9/=dependencies/rain-string-0.3.9/",
    "rain-tofu-erc20-decimals-0.1.4/=dependencies/rain-tofu-erc20-decimals-0.1.4/",
    "rain-tofu-erc20-decimals-deploy-0.1.4/=dependencies/rain-tofu-erc20-decimals-deploy-0.1.4/",
    "rainlang-0.2.31/=dependencies/rainlang-0.2.31/",
    "mut/=dependencies/rain-string-0.3.9/src/lib/mut/",
    "parse/=dependencies/rain-string-0.3.9/src/lib/parse/"
  ]
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.