Skip to content
This repository has been archived by the owner on Jul 7, 2021. It is now read-only.

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
faustbrian committed May 16, 2019
0 parents commit 02d5ea5
Show file tree
Hide file tree
Showing 18 changed files with 6,432 additions and 0 deletions.
60 changes: 60 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
version: 2
jobs:
node-10:
docker:
- image: circleci/node:10
working_directory: ~/crypto-json-rpc
steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "yarn.lock" }}
- v1-dependencies-
- run: yarn install
- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "yarn.lock" }}
- run: yarn test
- run: ./node_modules/.bin/codecov
node-11:
docker:
- image: circleci/node:11
working_directory: ~/crypto-json-rpc
steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "yarn.lock" }}
- v1-dependencies-
- run: yarn install
- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "yarn.lock" }}
- run: yarn test
- run: ./node_modules/.bin/codecov
# node-12:
# docker:
# - image: circleci/node:12
# working_directory: ~/crypto-json-rpc
# steps:
# - checkout
# - restore_cache:
# keys:
# - v1-dependencies-{{ checksum "yarn.lock" }}
# - v1-dependencies-
# - run: yarn install
# - save_cache:
# paths:
# - node_modules
# key: v1-dependencies-{{ checksum "yarn.lock" }}
# - run: yarn test
# - run: ./node_modules/.bin/codecov
workflows:
version: 2
build_and_test:
jobs:
- node-10
- node-11
# - node-12
8 changes: 8 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = tab
trim_trailing_whitespace = true
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules
yarn-error.log
dist
.coverage
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.coverage
dist
7 changes: 7 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"printWidth": 120,
"singleQuote": false,
"tabWidth": 4,
"trailingComma": "all",
"useTabs": true
}
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# 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 - 2019-05-16

- Initial Release

[unreleased]: https://github.com/ARKEcosystem/core/compare/master...develop
20 changes: 20 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
The MIT License (MIT)

Copyright (c) ARK Ecosystem <[email protected]>

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.
39 changes: 39 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# @arkecosystem/crypto-json-rpc

> A JSON-RPC 2.0 specification compliant server to interact with ARK Cryptography.
[![Latest Version](https://badgen.now.sh/npm/v/@arkecosystem/crypto-json-rpc)](https://www.npmjs.com/package/@arkecosystem/crypto-json-rpc)
[![Node Engine](https://badgen.now.sh/npm/node/@arkecosystem/crypto-json-rpc)](https://www.npmjs.com/package/@arkecosystem/crypto-json-rpc)
[![Build Status](https://badgen.now.sh/circleci/github/ArkEcosystem/crypto-json-rpc)](https://circleci.com/gh/ArkEcosystem/crypto-json-rpc)
[![Codecov](https://badgen.now.sh/codecov/c/github/ArkEcosystem/crypto-json-rpc)](https://codecov.io/gh/ArkEcosystem/crypto-json-rpc)
[![License: MIT](https://badgen.now.sh/badge/license/MIT/green)](https://opensource.org/licenses/MIT)

## Disclaimer

The purpose of this application is to serve as a server for SDKs to ensure compliance with `@arkecosystem/crypto`, this means there can be many breaking changes without any notice.

**We strongly advise against using this for anything but SDK compliance testing and no support is offered if you do so.**

## Installation

```bash
yarn add @arkecosystem/crypto-json-rpc
```

## Testing

```bash
yarn test
```

## Security

If you discover a security vulnerability within this package, please send an e-mail to [email protected]. All security vulnerabilities will be promptly addressed.

## Credits

This project exists thanks to all the people who [contribute](../../contributors).

## License

[MIT](LICENSE) © [ARK Ecosystem](https://ark.io)
59 changes: 59 additions & 0 deletions __tests__/identities.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"mainnet": {
"passphrase": "this is a top secret passphrase",
"publicKey": "034151a3ec46b5670a682b0a63394f863587d1bc97483b1b6c70eb58e7f0aed192",
"privateKey": "d8839c2432bfd0a67ef10a804ba991eabba19f154a3d707917681d45822a5712",
"address": "AGeYmgbg2LgGxRW2vNNJvQ88PknEJsYizC",
"wif": "SGq4xLgZKCGxs7bjmwnBrWcT4C1ADFEermj846KC97FSv1WFD1dA",
"multiSignature": {
"address": "AH3Ca9QE9u9jKKTdUaLjAQqcqK4ZmSkVqp",
"publicKey": "022952bc0ab373a15153b8b6cee2513e298eb7f3ffe6bc50fc850fd24e8ab6c66a",
"asset": {
"min": 3,
"publicKeys": [
"0205d9bbe71c343ac9a6a83a4344fd404c3534fc7349827097d0835d160bc2b896",
"03df0a1eb42d99b5de395cead145ba1ec2ea837be308c7ce3a4e8018b7efc7fdb8",
"03860d76b1df09659ac282cea3da5bd84fc45729f348a4a8e5f802186be72dc17f"
]
}
}
},
"devnet": {
"passphrase": "this is a top secret passphrase",
"publicKey": "034151a3ec46b5670a682b0a63394f863587d1bc97483b1b6c70eb58e7f0aed192",
"privateKey": "d8839c2432bfd0a67ef10a804ba991eabba19f154a3d707917681d45822a5712",
"address": "D61mfSggzbvQgTUe6JhYKH2doHaqJ3Dyib",
"wif": "SGq4xLgZKCGxs7bjmwnBrWcT4C1ADFEermj846KC97FSv1WFD1dA",
"multiSignature": {
"address": "D6QRTuVF8APs3MSEeWfxZHk8EqsAmpkFHW",
"publicKey": "022952bc0ab373a15153b8b6cee2513e298eb7f3ffe6bc50fc850fd24e8ab6c66a",
"asset": {
"min": 3,
"publicKeys": [
"0205d9bbe71c343ac9a6a83a4344fd404c3534fc7349827097d0835d160bc2b896",
"03df0a1eb42d99b5de395cead145ba1ec2ea837be308c7ce3a4e8018b7efc7fdb8",
"03860d76b1df09659ac282cea3da5bd84fc45729f348a4a8e5f802186be72dc17f"
]
}
}
},
"testnet": {
"passphrase": "this is a top secret passphrase",
"publicKey": "034151a3ec46b5670a682b0a63394f863587d1bc97483b1b6c70eb58e7f0aed192",
"privateKey": "d8839c2432bfd0a67ef10a804ba991eabba19f154a3d707917681d45822a5712",
"address": "AGeYmgbg2LgGxRW2vNNJvQ88PknEJsYizC",
"wif": "Ue7A6vSx7ewATPp2dA6UbJ8F39DbZwaHTqhD1MrhzmJqRJmvfZ6C",
"multiSignature": {
"address": "AH3Ca9QE9u9jKKTdUaLjAQqcqK4ZmSkVqp",
"publicKey": "022952bc0ab373a15153b8b6cee2513e298eb7f3ffe6bc50fc850fd24e8ab6c66a",
"asset": {
"min": 3,
"publicKeys": [
"0205d9bbe71c343ac9a6a83a4344fd404c3534fc7349827097d0835d160bc2b896",
"03df0a1eb42d99b5de395cead145ba1ec2ea837be308c7ce3a4e8018b7efc7fdb8",
"03860d76b1df09659ac282cea3da5bd84fc45729f348a4a8e5f802186be72dc17f"
]
}
}
}
}
Loading

0 comments on commit 02d5ea5

Please sign in to comment.