Skip to content
This repository has been archived by the owner on Jun 14, 2018. It is now read-only.

Fixed broken truffle-provider dependency #3

Open
wants to merge 21 commits into
base: scratch
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
node_modules
yarn.lock
package-lock.json
25 changes: 25 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
sudo: required

language: generic

services:
- docker

before_install:
- docker pull truffle/ci

env:
- TEST=repo
- TEST=upstream
- TEST=scenario

script:
- >
docker run -it --rm --name ${TEST} \
-e TRAVIS_REPO_SLUG \
-e TRAVIS_PULL_REQUEST \
-e TRAVIS_PULL_REQUEST_SLUG \
-e TRAVIS_PULL_REQUEST_BRANCH \
-e TRAVIS_BRANCH \
-e TEST \
truffle/ci:latest run_tests
13 changes: 12 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function Config(truffle_directory, working_directory, network) {
var self = this;

var default_tx_values = {
gas: 4712388,
gas: 6721975,
gasPrice: 100000000000, // 100 Shannon,
from: null
};
Expand All @@ -36,6 +36,15 @@ function Config(truffle_directory, working_directory, network) {
ipfs_protocol: "https",
registry: "0x8011df4830b4f696cd81393997e5371b93338878",
install_provider_uri: "https://ropsten.infura.io/truffle"
},
solc: {
optimizer: {
enabled: false,
runs: 200
}
},
logger: {
log: function() {},
}
};

Expand All @@ -50,6 +59,8 @@ function Config(truffle_directory, working_directory, network) {
resolver: function() {},
artifactor: function() {},
ethpm: function() {},
solc: function() {},
logger: function() {},

build_directory: function() {
return path.join(self.working_directory, "build");
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "truffle-config",
"version": "1.0.0",
"version": "1.0.3",
"description": "Utility for interacting with truffle.js files",
"main": "index.js",
"scripts": {
Expand All @@ -25,7 +25,7 @@
"find-up": "^2.1.0",
"lodash": "^4.17.4",
"original-require": "^1.0.0",
"truffle-error": "0.0.2",
"truffle-provider": "0.0.1"
"truffle-error": "^0.0.2",
"truffle-provider": "^0.0.2"
}
}