We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
npm i ava-labs/teleporter
..to allow installing the Teleporter dependencies via the NPM registry (to use for example in a Hardhat project).
The text was updated successfully, but these errors were encountered:
If you're using Hardhat, you can use hard-foundry in your Hardhat project.
Install hardhat-foundry
pnpm i -D @nomicfoundation/hardhat-foundry
Add hardhat-foundry to your hardhat.config.js
hardhat.config.js
import "@nomicfoundation/hardhat-foundry";
forge install https://github.com/ava-labs/teleporter
git submodule update --init --recursive forge install
remappings.txt
This should be at the root, alongside your hardhat.config.ts
hardhat.config.ts
# remappings.txt @teleporter/=lib/teleporter/contracts/src/Teleporter @avalabs/subnet-evm-contracts@1.2.0/=lib/teleporter/contracts/lib/subnet-evm/contracts/ @openzeppelin/contracts@4.8.1=lib/teleporter/contracts/lib/openzeppelin-contracts/contracts/ @mocks/=lib/teleporter/contracts/src/Mocks/
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity ^0.8.18; import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; import {ITeleporterReceiver} from "@teleporter/ITeleporterReceiver.sol"; import {ITeleporterMessenger, TeleporterMessageInput, TeleporterFeeInfo} from "@teleporter/ITeleporterMessenger.sol"; import {ITeleporterConfigEvents} from "./interfaces/ITeleporterConfigEvents.sol"; import {TeleporterOwnerUpgradeable} from "@teleporter/upgrades/TeleporterOwnerUpgradeable.sol"; abstract contract MyTeleporter is Ownable, TeleporterOwnerUpgradeable { ... }
Sorry, something went wrong.
No branches or pull requests
..to allow installing the Teleporter dependencies via the NPM registry (to use for example in a Hardhat project).
The text was updated successfully, but these errors were encountered: