Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
630 changes: 27 additions & 603 deletions .pnp.cjs

Large diffs are not rendered by default.

Binary file not shown.
Binary file removed .yarn/cache/fsevents-patch-2882183fbf-8.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
71 changes: 71 additions & 0 deletions packages/js-drive/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# ABCI host and port to listen
ABCI_HOST=0.0.0.0
ABCI_PORT=26658

DB_PATH=./db

# GroveDB database file
GROVEDB_LATEST_FILE=${DB_PATH}/latest_state

# Cache size for Data Contracts
DATA_CONTRACTS_GLOBAL_CACHE_SIZE=500
DATA_CONTRACTS_BLOCK_CACHE_SIZE=200

# DashCore JSON-RPC host, port and credentials
# Read more: https://dashcore.readme.io/docs/core-api-ref-remote-procedure-calls
CORE_JSON_RPC_HOST=127.0.0.1
CORE_JSON_RPC_PORT=9998
CORE_JSON_RPC_USERNAME=dashrpc
CORE_JSON_RPC_PASSWORD=password

# DashCore ZMQ host and port
CORE_ZMQ_HOST=127.0.0.1
CORE_ZMQ_PORT=29998
CORE_ZMQ_CONNECTION_RETRIES=16

NETWORK=testnet

INITIAL_CORE_CHAINLOCKED_HEIGHT=

# https://github.com/dashevo/dashcore-lib/blob/286c33a9d29d33f05d874c47a9b33764a0be0cf1/lib/constants/index.js#L42-L57
VALIDATOR_SET_LLMQ_TYPE=100

# DPNS Contract

DPNS_MASTER_PUBLIC_KEY=
DPNS_SECOND_PUBLIC_KEY=

# Dashpay Contract

DASHPAY_MASTER_PUBLIC_KEY=
DASHPAY_SECOND_PUBLIC_KEY=

# Feature flags contract

FEATURE_FLAGS_MASTER_PUBLIC_KEY=
FEATURE_FLAGS_SECOND_PUBLIC_KEY=

# Masternode reward shares contract

MASTERNODE_REWARD_SHARES_MASTER_PUBLIC_KEY=
MASTERNODE_REWARD_SHARES_SECOND_PUBLIC_KEY=

# Withdrawals contract

WITHDRAWALS_MASTER_PUBLIC_KEY=
WITHDRAWALS_SECOND_PUBLIC_KEY=

# logging
LOG_STDOUT_LEVEL=info

LOG_PRETTY_FILE_LEVEL=silent
LOG_PRETTY_FILE_PATH=/tmp/drive-pretty.log

LOG_JSON_FILE_LEVEL=silent
LOG_JSON_FILE_PATH=/tmp/drive-json.log

LOG_STATE_REPOSITORY=false

NODE_ENV=production

TENDERDASH_P2P_PORT=26656
36 changes: 36 additions & 0 deletions packages/js-drive/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"extends": "airbnb-base",
"env": {
"es2021": true,
"node": true
},
"parser": "babel-eslint",
"rules": {
"no-plusplus": 0,
"eol-last": [
"error",
"always"
],
"no-continue": "off",
"class-methods-use-this": "off",
"no-await-in-loop": "off",
"no-restricted-syntax": [
"error",
{
"selector": "LabeledStatement",
"message": "Labels are a form of GOTO; using them makes code confusing and hard to maintain and understand."
},
{
"selector": "WithStatement",
"message": "`with` is disallowed in strict mode because it makes code impossible to predict and optimize."
}
],
"curly": [
"error",
"all"
]
},
"globals": {
"BigInt": true
}
}
4 changes: 4 additions & 0 deletions packages/js-drive/.mocharc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
exit: true
timeout: 5000
file:
- ./lib/test/bootstrap.js
Loading