This repository has been archived by the owner on Apr 15, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
390 changed files
with
13,253 additions
and
7,578 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
|
@@ -11,3 +11,4 @@ app/*.map | |
app/app.js | ||
.vscode | ||
.idea | ||
blockchain_explorer.db.gz |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { configure } from '@storybook/react'; | ||
import '../src/components/app/app.css'; | ||
|
||
function loadStories() { | ||
require('../src/components/account/stories'); | ||
require('../src/components/dialog/stories'); | ||
require('../src/components/formattedNumber/stories'); | ||
require('../src/components/toaster/stories'); | ||
require('../src/components/signMessage/stories'); | ||
require('../src/components/send/stories'); | ||
require('../src/components/spinner/stories'); | ||
require('../src/components/verifyMessage/stories'); | ||
} | ||
|
||
configure(loadStories, module); |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
const config = require('../webpack.config.js'); | ||
|
||
module.exports = config({ | ||
test: true, | ||
}); |
Large diffs are not rendered by default.
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# How to contribute | ||
|
||
First of all, thank you for taking the time to contribute to this project. We've tried to make a stable project and try to fix bugs and add new features continuously. You can help us do more. | ||
|
||
Before you start, read the **README.md** file for info on the project and how to set it up. | ||
|
||
## Getting started | ||
|
||
### Check out the roadmap | ||
|
||
We have some functionalities in mind and we have issued them and there is a *milestone* label available on the issue. If there is a bug or a feature that is not listed in the **issues** page or there is no one assigned to the issue, feel free to fix/add it! Although it's better to discuss it in the issue or create a new issue for it so there is no conflicting code. | ||
|
||
### Filing issues | ||
|
||
Before starting work on a larger idea not discussed in an issue we recommend starting one to iron out your approach to implementation. PRs with conflicting ideas regarding architecture or other aspects of the project may be rejected. We appreciate any and all ideas you contribute providing they're discussed in a respectful and constructive manner. | ||
|
||
Issues created that are not relevant to this project will be closed immediately - this is purely for efficiency as we don't have time to address and or move all of them to their correct place. | ||
|
||
### Writing some code! | ||
|
||
Contributing to a project on Github is pretty straight forward. If this is you're first time, these are the steps you should take. | ||
|
||
- Fork this repo. | ||
|
||
And that's it! Read the code available and apply your changes according to the issue you're working on! You're change should not break the existing code and should pass the tests. Start from the branch **development**, create a new branch under the name of the issue and work in there. | ||
|
||
When you're done, submit a pull request and for one of the maintainers to check it out. We would let you know if there is any problem or any changes that should be considered. | ||
|
||
### Tests | ||
|
||
We've written tests and you can run them to assure the stability of the code, just try running `npm test`. If you're adding a new functionality please include tests for it. | ||
|
||
### Documentation | ||
|
||
Every chunk of code that may be hard to understand has some comments above it. If you write some new code or change some part of the existing code in a way that it would not be functional without changing it's usages, it needs to be documented. |
This file was deleted.
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
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
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
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
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,25 +1,23 @@ | ||
#!/bin/bash | ||
# Purpose of this script is to clean lisk database and create some tranactions | ||
# Purpose of this script is to clean lisk database and create some tranactions | ||
|
||
if [ -z "$1" ] | ||
then | ||
echo "One required argument missing: path to folder with lisk core app.js" | ||
exit 1 | ||
fi | ||
|
||
if [ ! -f blockchain_explorer.db.gz ]; then | ||
wget https://downloads.lisk.io/lisk-explorer/dev/blockchain_explorer.db.gz | ||
fi | ||
|
||
pwd=`pwd` | ||
cd $1 | ||
forever stop app.js | ||
dropdb lisk_test && createdb lisk_test | ||
forever start app.js | ||
pm2 stop app.js | ||
dropdb lisk_test | ||
createdb lisk_test | ||
gunzip -fcq "$pwd/blockchain_explorer.db.gz" | psql -d lisk_test | ||
pm2 start app.js | ||
sleep 5 | ||
cd $pwd | ||
|
||
for i in {1..20} | ||
do | ||
curl -k -H "Content-Type: application/json" -X PUT -d '{"secret":"wagon stock borrow episode laundry kitten salute link globe zero feed marble","amount":'"$i"000000000',"recipientId":"537318935439898807L"}' http://localhost:4000/api/transactions | ||
echo '' | ||
done | ||
curl -k -H "Content-Type: application/json" -X PUT -d '{"secret":"wagon stock borrow episode laundry kitten salute link globe zero feed marble","amount":'10000000000',"recipientId":"544792633152563672L"}' http://localhost:4000/api/transactions | ||
curl -k -H "Content-Type: application/json" -X PUT -d '{"secret":"wagon stock borrow episode laundry kitten salute link globe zero feed marble","amount":'10000000000',"recipientId":"4264113712245538326L"}' http://localhost:4000/api/transactions | ||
sleep 5 |
Oops, something went wrong.