
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
phaeton-framework
Advanced tools

Phaeton Framework is an application framework responsible for establishing and maintaining the interactions between the modules of a Phaeton blockchain application.
Phaeton Framework aims to provide a consistent and intuitive interface between each module and component. Currently, Phaeton Framework establishes interactions between the chain, api and network modules.
The architecture of Phaeton Framework follows the research documented in LIP0005. The diagram below provides a high-level overview of the architecture:

To install and use Phaeton Framework follow the steps described in the Phaeton SDK installation and usage sections.
dropdb phaeton_dev
createdb phaeton_dev
NODE_ENV=test npm start
Starting from version 1.6.0, Phaeton Framework will be using Jest as its main test runner with gradual deprecation of mocha. Since rewriting all existing mocha tests is not feasible at the moment, we have two test runners in our code base:
framework/src/modules folder) will be tested using mocha and test files should be located under framework/test/mocha.framework/src/modules) will be tested using jest and test files should be located under framework/test/jest.mocha and test files should be located under framework/test/mocha.Tests are run using the following command:
npm run mocha:<testType> -- [testPathPattern] [mochaCliOptions]
unit, integration, functional:ws, functional:get, functional:post, functional:put, functional, network (required).command line options (optional).Examples:
# Running network tests
npm run mocha:network
npm run mocha:network -- --grep @p2p
npm run mocha:network -- --grep @propagation
# Running unit tests
npm run mocha:unit
npm run mocha:unit -- --grep @slow
npm run mocha:unit -- --grep @unstable
### extensive
npm run mocha:unit -- --grep="@unstable" --invert
# Running integration tests
npm run mocha:integration -- --grep @slow
npm run mocha:integration -- --grep @unstable
# extensive
npm run mocha:integration -- --grep="@unstable" --invert
# Running functional tests
npm run mocha:functional:ws
npm run mocha:functional:get
npm run mocha:functional:post
npm run mocha:functional:put
Individual test files can be run using the following commands:
npm run mocha:unit -- <testPathPattern> [mochaCliOptions]
or
npm run mocha <filepath> [mochaCliOptions]
or
npx mocha <filepath> [mochaCliOptions]
npm run jest:<testType>
testType can be unit|integration|functional
npm run jest:<testType> -- [testPathPattern] [jestCliOptions]
To test the changes in framework you can run,
node test/test_app or node test/test_app | npx bunyan
If you want to test the changes in phaeton-sdk/elements to reflect in phaeton-sdk/framework, please make sure you run npm run build at phaeton-sdk after making any changes in elements library and run node test/test_app.
| Reason | How |
|---|---|
| Want to chat with our community | Chat with them on Phaeton.chat |
| Want to chat with our developers | Chat with them on Gitter |
| Found a bug | Open a new issue |
| Found a security issue | See our bounty program |
| Want to share your research | Propose your research |
| Want to develop with us | Create a fork |
Copyright 2016-2019 Phaeton Foundation
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2016-2019 Phaeton Foundation
Copyright © 2015 Crypti
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
FAQs
Phaeton blockchain application platform
We found that phaeton-framework demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.