-
Notifications
You must be signed in to change notification settings - Fork 248
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix lint errors in config.js + update lib files
- Loading branch information
1 parent
d308ab8
commit 89fd2db
Showing
3 changed files
with
48 additions
and
48 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,38 @@ | ||
module.exports = function getConfig(env) { | ||
switch (env) { | ||
case 'production': | ||
case 'development': | ||
return { | ||
networkId: 'default', | ||
nodeUrl: 'http://34.94.33.164:3030', | ||
masterAccount: 'test.near', | ||
}; | ||
case 'local': | ||
return { | ||
networkId: 'local', | ||
nodeUrl: 'http://localhost:3030', | ||
keyPath: `${process.env.HOME}/.near/validator_key.json`, | ||
}; | ||
case 'test': | ||
return { | ||
networkId: 'local', | ||
nodeUrl: 'http://localhost:3030', | ||
masterAccount: 'test.near', | ||
}; | ||
case 'test-remote': | ||
case 'ci': | ||
return { | ||
networkId: 'shared-test', | ||
nodeUrl: 'http://shared-test.nearprotocol.com:3030', | ||
masterAccount: 'test.near', | ||
}; | ||
case 'ci-staging': | ||
return { | ||
networkId: 'shared-test-staging', | ||
nodeUrl: 'http://staging-shared-test.nearprotocol.com:3030', | ||
masterAccount: 'test.near', | ||
}; | ||
default: | ||
throw Error(`Unconfigured environment '${env}'. Can be configured in test/config.js.`); | ||
case 'production': | ||
case 'development': | ||
return { | ||
networkId: 'default', | ||
nodeUrl: 'http://34.94.33.164:3030', | ||
masterAccount: 'test.near', | ||
}; | ||
case 'local': | ||
return { | ||
networkId: 'local', | ||
nodeUrl: 'http://localhost:3030', | ||
keyPath: `${process.env.HOME}/.near/validator_key.json`, | ||
}; | ||
case 'test': | ||
return { | ||
networkId: 'local', | ||
nodeUrl: 'http://localhost:3030', | ||
masterAccount: 'test.near', | ||
}; | ||
case 'test-remote': | ||
case 'ci': | ||
return { | ||
networkId: 'shared-test', | ||
nodeUrl: 'http://shared-test.nearprotocol.com:3030', | ||
masterAccount: 'test.near', | ||
}; | ||
case 'ci-staging': | ||
return { | ||
networkId: 'shared-test-staging', | ||
nodeUrl: 'http://staging-shared-test.nearprotocol.com:3030', | ||
masterAccount: 'test.near', | ||
}; | ||
default: | ||
throw Error(`Unconfigured environment '${env}'. Can be configured in test/config.js.`); | ||
} | ||
}; |