-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #128 from adshares/develop
Release 0.1.0
- Loading branch information
Showing
158 changed files
with
22,292 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[*.php] | ||
charset = utf-8 | ||
end_of_line = lf | ||
trim_trailing_whitespace = true | ||
indent_style = space | ||
indent_size = 4 | ||
insert_final_newline = true |
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,34 @@ | ||
# Framework | ||
APP_ENV=test | ||
APP_SECRET=bdbb43b22fd105caff8a4601af4d8a25 | ||
APP_DEBUG=1 | ||
#TRUSTED_PROXIES=127.0.0.1,127.0.0.2 | ||
#TRUSTED_HOSTS=localhost,example.com | ||
|
||
# Timezone | ||
TIMEZONE=Europe/Warsaw | ||
|
||
# MongoDB | ||
MONGODB_URL=mongodb://ads-operator_db:27017 | ||
MONGODB_DB=blockexplorer_test | ||
|
||
# ADS network | ||
ADS_ADDRESS= | ||
ADS_SECRET= | ||
ADS_HOST=127.0.0.1 | ||
ADS_PORT=9091 | ||
ADS_BINARY=ads | ||
ADS_WORKING_DIR=/tmp/.ads10 | ||
|
||
HOST_IP=10.69.3.39 | ||
|
||
GENESIS_TIME=1531390976 | ||
BLOCK_SEQ_TIME=32 | ||
|
||
API_URI=http://ads-operator.ads | ||
|
||
# JWT Token | ||
JWT_SECRET_KEY=%kernel.project_dir%/config/jwt/private.pem | ||
JWT_PUBLIC_KEY=%kernel.project_dir%/config/jwt/public.pem | ||
JWT_PASSPHRASE=65e733d6aafb79704a0fe864ec92d480 | ||
JWT_TOKEN_TTL=3600 |
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,20 @@ | ||
APP_ENV=test | ||
APP_SECRET=bdbb43b22fd105caff8a4601af4d8a25 | ||
APP_DEBUG=1 | ||
|
||
TIMEZONE=Europe/Warsaw | ||
|
||
MONGODB_URL=mongodb://127.0.0.1:27017 | ||
MONGODB_DB=blockexplorer_test | ||
|
||
ADS_ADDRESS= | ||
ADS_SECRET= | ||
ADS_HOST=127.0.0.1 | ||
ADS_PORT=9091 | ||
|
||
HOST_IP=10.69.3.39 | ||
|
||
GENESIS_TIME=1531390976 | ||
BLOCK_SEQ_TIME=32 | ||
|
||
API_URI=http://127.0.0.1:8000 |
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,33 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
--- | ||
|
||
**Describe the bug** | ||
|
||
A clear and concise description of what the bug is. | ||
|
||
**To Reproduce** | ||
|
||
Steps to reproduce the behavior: | ||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
|
||
**Expected behavior** | ||
|
||
A clear and concise description of what you expected to happen. | ||
|
||
**Screenshots** | ||
|
||
If applicable, add screenshots to help explain your problem. | ||
|
||
**Environment (please complete the following information):** | ||
|
||
- OS name and version: [e.g. Ubuntu 18.04 x64] | ||
- Database engine and version [e.g. MongoDB v. 4.0.0] | ||
|
||
**Additional context** | ||
|
||
Add any other context about the problem here. |
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,16 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
--- | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
|
||
**Describe the solution you'd like** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Describe alternatives you've considered** | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
**Additional context** | ||
Add any other context or screenshots about the feature request here. |
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,29 @@ | ||
.idea/ | ||
logs/ | ||
/bin/* | ||
!bin/console | ||
!bin/symfony_requirements | ||
/.scannerwork | ||
|
||
###> symfony/framework-bundle ### | ||
/.env | ||
/public/bundles/ | ||
/var/ | ||
/vendor/ | ||
###< symfony/framework-bundle ### | ||
|
||
###> phpunit/phpunit ### | ||
/phpunit.xml | ||
###< phpunit/phpunit ### | ||
|
||
###> behat/symfony2-extension ### | ||
behat.yml | ||
###< behat/symfony2-extension ### | ||
|
||
###> symfony/web-server-bundle ### | ||
/.web-server-pid | ||
###< symfony/web-server-bundle ### | ||
|
||
###> lexik/jwt-authentication-bundle ### | ||
/config/jwt/*.pem | ||
###< lexik/jwt-authentication-bundle ### |
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,90 @@ | ||
# Project language | ||
language: php | ||
sudo: false | ||
|
||
# PHP version | ||
php: | ||
- 7.2 | ||
|
||
env: | ||
global: | ||
- DRIVER_VERSION=1.5.0 | ||
- SYMFONY_VERSION="4.0.*" | ||
|
||
# Cache composer packages so "composer install" is faster | ||
cache: | ||
directories: | ||
- ${HOME}/.composer/cache/files | ||
- ${HOME}/php-ext | ||
|
||
services: | ||
- mongodb | ||
|
||
addons: | ||
sonarcloud: | ||
organization: "adshares-github" | ||
token: | ||
secure: "Dk2MQCW5SDUS6QWwoNc+4cmIgbWiHamavBWbgn/jaCHlBhOs62Zq+Ru+3CztK0B44E8lweLWWj3Ugc6kBq6m2rC3ib+o/4wiN4kego+99EuOV9BxJFkyMhP4QCWCXw4qbylIsS7wlrRxTQ1wUtmHW5V2R3NhJhV7rQJWaPXN4/H0lazyPP6xKGOGRpB8WSwb02zN92G0lm/VOIvzn0HGBBS34TE6GVPr1Jap5cZ2nPuwS446rPdOmf5Uu+VLS0z0JC3tPUr6kzOW3R81TlP8x9DFJY4ijbfirrjnoyuNn+D1HvELgnQd8uSrb1MwSota8qRwOTD8L8frZ+tKCPQOhV6VyxyQeEwQggALNnHQPLbuGua6KMgl9qgbjYVaTijPOrRt5PlgiUFHDFPMBFa3J/DYwsGOaB4WOvsPjC76etugwNACgnteyCe3L2Vg4xU7Pd1CCzXQ4FXC593CcBf4R+CP1QWdej1Q/MP6n5KFGpvIJwAmcNWnBpqvH2HUEl2PDlg4JDEBOQVLRpO/zbzRJCnb1CFl4xFTZZ4s89liZNz2a+Nw9nRPlvRLGyof0HlTzcnOvykRw1i6sJUGaP1HbcaK6FPbE1K+X9ri1kL8H5cKzPNZ68PNdLaQG3Z3BJ/QiAEkbT8JHr/R2Qyh/YZyT6y1XvKkjA/40AXnx7A8JaI=" | ||
github_token: | ||
secure: "WZwVh8X2UzQa/n0riLibSjgpAegEZsNbfIwv/BFJF/OAS+yuAzN9H9vekSFwC2KHvsDz9V2aJ0wBwamznNOgTa696qTvHGOWqzkPDDO4DnN+hEq20nXWGNwzXZ3YdONEjyN8cKIIvBCTijH9RN8AgFPundclib0KX66iOIkaj3KyijHgL+KBnI5OEAYzWVygoEF/zNJ2WrtinyrC3E8VXM2osFXXpTyDpS3/LA3x/zVQ4RaSnJjVdXbvfMM2C7PNs9UjZ+UKW4PeOOsH7M35p7XNmWxbR4mZ3FMdtswgOyQm/tL9n6qyBMwMi11rMSBCumHsa9XlNtUgIfAnau8fFH/dC7vrt8Z2TRAxtWQf6omHsyrjr+YrP71HFKAEcE1joSBT7EGUFtRH/KxglDVkulNywPCa9Pae2UjUIW/IJKGq4XJ4bw15kzVszACS9PRjf4G7dTdQA25ICWq0L3bbmX+2FcVgsBZPo6Bs8KTrXPbDaBJdjYW5ch5tzLJU+YCOAiFBper7mG2ebIjqSKdUumguiYjQMIOf3fEEPPT3lzxuTtSbE2liSingKUwef12CB2ot00sB5MpBqa522wmdd3XvvQGxa2yeEb/cJrenjpLvTD/vszT1LkVSAxUPRqRXXDg94Gs95A/6qHRx/ve7/+7FxmcXI4+DJRfaP+UF7c8=" | ||
|
||
before_script: | ||
- echo 'date.timezone = "Europe/Warsaw"' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini | ||
- cp .env.travis .env | ||
- sleep 10 | ||
|
||
before_install: | ||
- | | ||
INI=~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini | ||
# tpecl is a helper to compile and cache php extensions | ||
tpecl () { | ||
local ext_name=$1 | ||
local ext_so=$2 | ||
local ext_dir=$(php -r "echo ini_get('extension_dir');") | ||
local ext_cache=~/php-ext/$(basename $ext_dir)/$ext_name | ||
if [[ -e $ext_cache/$ext_so ]]; then | ||
echo extension = $ext_cache/$ext_so >> $INI | ||
else | ||
mkdir -p $ext_cache | ||
echo yes | pecl install -f $ext_name && | ||
cp $ext_dir/$ext_so $ext_cache | ||
fi | ||
} | ||
export -f tpecl | ||
- tpecl mongodb-${DRIVER_VERSION} mongodb.so | ||
|
||
# Install composer dependencies | ||
install: | ||
- composer install --no-ansi --no-scripts --no-interaction --no-progress --no-suggest | ||
- composer run-script install-codestandards | ||
|
||
script: | ||
# run server | ||
- ./bin/console server:start | ||
# SensioLabs Security Checker: checks security issues | ||
- ./vendor/bin/security-checker security:check | ||
# PHP Lint: check syntax errors in all PHP files | ||
- ./vendor/bin/parallel-lint --no-colors --blame --exclude vendor . | ||
# PHP_CodeSniffer: check PHP compatibility | ||
- ./vendor/bin/phpcs -s --standard=PHPCompatibility src tests | ||
# PHP_CodeSniffer: check PSR2 standard | ||
- ./vendor/bin/phpcs -s --standard=PSR2 src tests | ||
# PHP Static Analysis Tool | ||
- ./vendor/bin/phpstan --no-ansi --no-progress analyse -c phpstan.neon -l 7 src tests | ||
# PHP unit tests | ||
- alias php='php -dzend_extension=xdebug.so' | ||
- alias phpunit='php ./vendor/bin/phpunit' | ||
- phpunit --testsuit Unit | ||
# Behat tests | ||
- ./vendor/bin/behat | ||
# SonarQube | ||
- sonar-scanner | ||
|
||
# After a build, send email notification with the build results | ||
notifications: | ||
email: false | ||
slack: | ||
rooms: | ||
secure: "IaQb1b75JgGP9GICERECLKNrWOrekKcJdkjXBC8fFXXt71Wn1dBanj3zFovC4uhCcULP1zbBVjaahcubT0wPJ+DefGVXpFHnoM+m26oBnbR3BGBW/bd6AtXIF8vYohsbJPhkz7lXqkDW07qz6eCgdZpmyRp96HE5hKE0jQY3se3Vlo/wx3QcF+TBnkmiUKn+JcJ/9dbi8ZaIq+h/xCS72RMV7hAADCDKQyD+mEFoZgEqdq+AkkWTNbN/vG7f06PlvQMKorDr1ySVZJ6UgmCbSYYOIOPwKmkEgS/uDqo7bM16gwOJ4WHCd24+Ecl5Ai+5Wi56+Zk3kQm7R3g0IahWWQLhr9OS2zm1Ju+h3dv/vlEDqJcC0feXsqLuxwdxf0UMBS/gH5LpgO2jJyCwNJ4sSV+YVaON+tNZ6YadwOZzK0iu4Er1hkC/Ek5K4enVwnQReJq2/DwPxGjoyHhcwMGeMl1pkzLAEuVrb7P+AVcPBMJos/ehwiqOntlzvfeetClklG4sJ6jOZxhB319bDoJNJvpzJblCgIvH3en9VKUqfKPRgWHgYGpzSZM6kdY9VrCFXYOLBZd3PexISSj67Fi2P+NWimszusrKC+RpqJMNLffsXnWoQnH7EqhqCEU5YPkCsxREYfYk0gqy9axDXn0k86/mspQJ5f16aWgeDDGuMNQ=" | ||
on_success: change | ||
on_failure: always |
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,45 @@ | ||
# Changelog | ||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
## [Unreleased] | ||
|
||
## [0.1.0] - 2018-09-24 | ||
### Added | ||
- Support for all block explorer endpoints: | ||
- List of nodes, | ||
- List of blocks, | ||
- List of accounts, | ||
- List of messages, | ||
- List of transactions, | ||
- Get a single node, | ||
- Get a single block, | ||
- Get a single account, | ||
- Get a single message, | ||
- Get a single transaction, | ||
- List of accounts for a single node, | ||
- List of messages for a single node, | ||
- List of transactions for a single node, | ||
- List of transactions for a single account, | ||
- List of messages for a single block, | ||
- List of transactions for a single block, | ||
- List of transactions for a single message, | ||
|
||
- Support for importing data from a network | ||
|
||
- Support for user area: | ||
- Register a new user | ||
- Login to the system using JWT tokens | ||
|
||
|
||
- Readme | ||
- License | ||
- Changelog | ||
- Contributing | ||
|
||
|
||
[Unreleased]: https://github.com/adshares/ads-operator/compare/v0.1.0...HEAD | ||
|
||
[0.1.0]: https://github.com/adshares/ads-operator/releases/tag/v0.1.0 |
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,16 @@ | ||
Copyright (c) 2018 Adshares sp. z o.o. | ||
|
||
This file is part of ADS Operator | ||
|
||
AdServer is free software: you can redistribute it and/or modify it | ||
under the terms of the GNU General Public License as published | ||
by the Free Software Foundation, either version 3 of the License, | ||
or (at your option) any later version. | ||
|
||
AdServer is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty | ||
of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
See the GNU General Public License for more details. | ||
|
||
You should have received a copy of the GNU General Public License | ||
along with AdServer. If not, see <https://www.gnu.org/licenses/> |
Oops, something went wrong.