Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #5665 from trufflesuite/drop/ethpm-v1
Browse files Browse the repository at this point in the history
Remove ethpm-v1 concerns
  • Loading branch information
cds-amal authored Nov 3, 2022
2 parents e36fbbe + 3a31e15 commit 7066f6f
Show file tree
Hide file tree
Showing 9 changed files with 2 additions and 164 deletions.
1 change: 0 additions & 1 deletion packages/compile-solidity-tests/test/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ describe("Parser", () => {
"./Dependency.sol",
"./path/to/AnotherDep.sol",
"../../../path/to/AnotherDep.sol",
"ethpmpackage/Contract.sol",
"./somePath.sol",
"./someImportWithNoSpace.sol",
"../../someRelativeMultilineImport.sol",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ pragma solidity >0.4.15;
import "./Dependency.sol";
import "./path/to/AnotherDep.sol";
import "../../../path/to/AnotherDep.sol";
import "ethpmpackage/Contract.sol";
import { Something as MyGarbage } from "./somePath.sol";
import"./someImportWithNoSpace.sol";
import {
Expand Down
8 changes: 0 additions & 8 deletions packages/config/src/configDefaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,6 @@ export const getInitialConfig = ({
port: 24012,
verbose: false
},
ethpm: {
ipfs_host: "ipfs.infura.io",
ipfs_protocol: "https",
registry: "0x8011df4830b4f696cd81393997e5371b93338878",
install_provider_uri:
"https://ropsten.infura.io/v3/26e88e46be924823983710becd929f36"
},
ens: {
enabled: false,
registryAddress: null
Expand Down Expand Up @@ -104,7 +97,6 @@ export const configProps = ({
resolver() {},
artifactor() {},
dashboard() {},
ethpm() {},
logger() {},
compilers() {},
ens() {},
Expand Down
3 changes: 1 addition & 2 deletions packages/resolver/lib/resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const expect = require("@truffle/expect");
const provision = require("@truffle/provisioner");

import type { ResolverSource, ResolvedSource } from "./source";
import { EthPMv1, NPM, GlobalNPM, FS, Truffle, ABI, Vyper } from "./sources";
import { NPM, GlobalNPM, FS, Truffle, ABI, Vyper } from "./sources";

export interface ResolverOptions {
includeTruffleSources?: boolean;
Expand All @@ -28,7 +28,6 @@ export class Resolver {
this.options = options;

let basicSources: ResolverSource[] = [
new EthPMv1(options.working_directory),
new NPM(options.working_directory),
new GlobalNPM(),
new FS(options.working_directory, options.contracts_build_directory)
Expand Down
138 changes: 0 additions & 138 deletions packages/resolver/lib/sources/ethpm-v1.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/resolver/lib/sources/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export { EthPMv1 } from "./ethpm-v1";
export { NPM } from "./npm";
export { GlobalNPM } from "./globalnpm";
export { FS } from "./fs";
Expand Down
5 changes: 0 additions & 5 deletions packages/truffle/test/scenarios/resolver/resolver.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ describe("Solidity Imports [ @standalone ]", function () {
* | |-- ImportOfImport.sol # Local import for NodeImport.sol
* | |-- NodeImport.sol
* |
* + installed_contracts/
* |-- ethpmpkg/
* | |-- EthPMImport.sol
* |
* + truffleproject/
* |-- contracts/
* | |-- Importer.sol # This imports everthing
Expand Down Expand Up @@ -66,7 +62,6 @@ describe("Solidity Imports [ @standalone ]", function () {
const output = logger.contents();

assert(output.includes("./contracts/Importer.sol"));
assert(output.includes("ethpmpkg/EthPMImport.sol"));
assert(output.includes("nodepkg/ImportOfImport.sol"));
assert(output.includes("nodepkg/LocalNodeImport.sol"));
assert(output.includes("nodepkg/NodeImport.sol"));
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ pragma solidity ^0.5.0;

import "nodepkg/LocalNodeImport.sol";
import "nodepkg/NodeImport.sol";
import "ethpmpkg/EthPMImport.sol";

contract Importer is LocalNodeImport, NodeImport, EthPMImport {
contract Importer is LocalNodeImport, NodeImport {
uint local;
constructor() public {}
}

0 comments on commit 7066f6f

Please sign in to comment.