Skip to content

Commit

Permalink
deploy DAO
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigoncalves committed Jun 14, 2024
1 parent a400fba commit 009bf4a
Show file tree
Hide file tree
Showing 6 changed files with 256 additions and 325 deletions.
6 changes: 0 additions & 6 deletions contracts/RIFTokenTest.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,3 @@
pragma solidity ^0.4.24;

Check failure on line 2 in contracts/RIFTokenTest.sol

View workflow job for this annotation

GitHub Actions / test

Compiler version ^0.4.24 does not satisfy the ^0.8.0 semver requirement

import "rif-token-contracts/contracts/RIF/RIFToken.sol";

Check warning on line 4 in contracts/RIFTokenTest.sol

View workflow job for this annotation

GitHub Actions / test

global import of path rif-token-contracts/contracts/RIF/RIFToken.sol is not allowed. Specify names to import individually or bind all exports of the module into a name (import "path" as Name)
// File must exist, else test/RIFTokenTest.ts will fail
contract RIFTokenTest is RIFToken {
constructor () RIFToken () {

}
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"license": "MIT",
"scripts": {
"compile": "hardhat compile",
"clean": "hardhat clean",
"lint:ts": "eslint 'test/**/*.ts'",
"lint:sol": "solhint 'contracts/**/*.sol'",
"lint": "yarn lint:ts && yarn lint:sol",
Expand Down
21 changes: 0 additions & 21 deletions scripts/deploy-rif.ts

This file was deleted.

3 changes: 1 addition & 2 deletions scripts/deploy.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { ethers } from 'hardhat';
import { deployDao } from './deploy-dao';
import { deployRif } from './deploy-rif';

const deploy = async () => {
const rifToken = await deployRif();
const rifToken = await ethers.deployContract('RIFToken');
const rifAddress = await rifToken.getAddress();
const [deployer] = await ethers.getSigners();
const deployerAddress = await deployer.getAddress();
Expand Down
3 changes: 2 additions & 1 deletion test/RIFToken.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ import { ethers } from 'hardhat';
import { loadFixture } from '@nomicfoundation/hardhat-toolbox/network-helpers';
import { SignerWithAddress } from '@nomicfoundation/hardhat-ethers/signers';
import { RIFToken } from '../typechain-types';
import { deployRif } from '../scripts/deploy-rif';

describe('RIFToken Contract', function () {
let owner: SignerWithAddress, addr1: SignerWithAddress, addr2: SignerWithAddress;
let rifToken: RIFToken;

const deployRif = () => ethers.deployContract('RIFToken');

before(async () => {
[owner, addr1, addr2] = await ethers.getSigners();
rifToken = await loadFixture(deployRif);
Expand Down
Loading

0 comments on commit 009bf4a

Please sign in to comment.