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
2 changes: 1 addition & 1 deletion .github/workflows/add-issue-to-backlog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Add issue to Backlog project
uses: actions/add-to-project@v0.5.0
uses: actions/add-to-project@v1.0.2
with:
project-url: https://github.com/orgs/numbersprotocol/projects/8
# OR for repository projects:
Expand Down
22 changes: 22 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,23 @@
.subnet-cli.pk

# OS artifacts
.DS_Store
Thumbs.db

# Editor files
.vscode/
.idea/

# Download artifacts
*.tar.gz
*.zip

# Python caches
__pycache__/
*.py[cod]
.pytest_cache/

# Environment and secret files
.env
*.pem
*.key
2 changes: 1 addition & 1 deletion api/env.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
URL="127.0.0.1:9650"
URL="${URL:-127.0.0.1:9650}"
4 changes: 3 additions & 1 deletion api/health.health.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/bin/bash

source env.sh

curl -X POST --data '{
"jsonrpc":"2.0",
"id" :1,
"method" :"health.health"
}' -H 'content-type:application/json;' 127.0.0.1:9650/ext/health
}' -H 'content-type:application/json;' ${URL}/ext/health
2 changes: 1 addition & 1 deletion api/info.getNodeID.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Expected Output
# {"jsonrpc":"2.0","result":{"nodeID":"NodeID-JRhJd4Qn4WTjP28RUFDQa2NC59deo7tT6"},"id":1}

URL="127.0.0.1:9650"
source env.sh

curl -X POST --data '{
"jsonrpc":"2.0",
Expand Down
2 changes: 1 addition & 1 deletion api/info.isBootstrapped.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Note: The bootstrapping process takes approximately 50–100 hours and requires 100 GB of space.
# https://chainstack.com/avalanche-subnet-tutorial-series-running-a-local-avalanche-node-on-fuji-testnet/

URL="127.0.0.1:9650"
source env.sh
CHAIN_ID="$1"

curl -X POST --data "{
Expand Down
38 changes: 11 additions & 27 deletions api/info.peers.sh
Original file line number Diff line number Diff line change
@@ -1,32 +1,16 @@
#!/bin/bash

# Snow
echo "========== Snow nodes information =========="
curl -X POST --data '{
"jsonrpc":"2.0",
"id" :1,
"method" :"info.peers",
"params": {
"nodeIDs": [
"NodeID-7TwAjiRpTbNcqUx6F9EoyXRBLAfeoQXRq",
"NodeID-JbeonHKqomERomXgCiXr9oC9vfynkBupj",
"NodeID-BffXkmzM8EwrBZgpqFp9pwgE9DbDgYKG2",
"NodeID-24WK7qiKXAumya1kKEktwj2ubBbRyq5UW",
"NodeID-A2Z8m7egVLhKf1Qj14uvXadhExM5zrB7p"
]
}
}' -H 'content-type:application/json;' https://api.avax-test.network/ext/info | jq .
source env.sh

NODE_IDS="${1:-}"
ENDPOINT="${2:-${URL}}"

# Jade
echo "========== Jade nodes information =========="
curl -X POST --data '{
"jsonrpc":"2.0",
"id" :1,
"method" :"info.peers",
"params": {
"nodeIDs": [
"NodeID-BXTBUqX8gitUDtVam4fhRWGD1SfeHGoBx"
]
curl -X POST --data "{
\"jsonrpc\":\"2.0\",
\"id\" :1,
\"method\" :\"info.peers\",
\"params\": {
\"nodeIDs\": [${NODE_IDS}]
}
}' -H 'content-type:application/json;' https://api.avax.network/ext/info | jq .
}" -H 'content-type:application/json;' ${ENDPOINT}/ext/info | jq .

4 changes: 3 additions & 1 deletion api/metrics.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

curl -X POST 127.0.0.1:9650/ext/metrics
source env.sh

curl -X POST ${URL}/ext/metrics
2 changes: 1 addition & 1 deletion api/platform.getBlockchainStatus.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# "vmID": "kmYb53NrmqcW7gfV2FGHBHWXNA6YhhWf7R7LoQeGj9mdDYuaT"
# }

URL="127.0.0.1:9650"
source env.sh
BLOCKCHAIN_ID="$1"

curl -X POST --data "{
Expand Down
2 changes: 1 addition & 1 deletion api/platform.getCurrentValidators.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Note: The bootstrapping process takes approximately 50–100 hours and requires 100 GB of space.
# https://chainstack.com/avalanche-subnet-tutorial-series-running-a-local-avalanche-node-on-fuji-testnet/

URL="127.0.0.1:9650"
source env.sh
SUBNET_ID="$1"
curl -X POST --data "{
\"jsonrpc\": \"2.0\",
Expand Down
2 changes: 1 addition & 1 deletion api/platform.getPendingValidators.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Note: The bootstrapping process takes approximately 50–100 hours and requires 100 GB of space.
# https://chainstack.com/avalanche-subnet-tutorial-series-running-a-local-avalanche-node-on-fuji-testnet/

URL="127.0.0.1:9650"
source env.sh

echo "URL: ${URL}"

Expand Down
2 changes: 1 addition & 1 deletion api/platform.getSubnets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Note: The bootstrapping process takes approximately 50–100 hours and requires 100 GB of space.
# https://chainstack.com/avalanche-subnet-tutorial-series-running-a-local-avalanche-node-on-fuji-testnet/

URL="127.0.0.1:9650"
source env.sh

echo "URL: ${URL}"

Expand Down
7 changes: 5 additions & 2 deletions api/platform.getValidatorsAt.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
#!/bin/bash

source env.sh

SUBNET_ID="$1"
HEIGHT="${2:-1}"

curl -X POST --data "{
\"jsonrpc\": \"2.0\",
\"method\": \"platform.getValidatorsAt\",
\"params\": {
\"height\":1,
\"height\":${HEIGHT},
\"subnetID\": \"${SUBNET_ID}\"
},
\"id\": 1
}" -H 'content-type:application/json;' 127.0.0.1:9650/ext/bc/P
}" -H 'content-type:application/json;' ${URL}/ext/bc/P
4 changes: 3 additions & 1 deletion api/platform.validatedBy.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

source env.sh

BLOCKCHAIN_ID="$1"

curl -X POST --data "{
Expand All @@ -9,4 +11,4 @@ curl -X POST --data "{
\"blockchainID\": \"${BLOCKCHAIN_ID}\"
},
\"id\": 1
}" -H 'content-type:application/json;' 127.0.0.1:9650/ext/bc/P
}" -H 'content-type:application/json;' ${URL}/ext/bc/P
4 changes: 3 additions & 1 deletion api/platform.validates.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

source env.sh

SUBNET_ID="$1"

curl -X POST --data "{
Expand All @@ -9,5 +11,5 @@ curl -X POST --data "{
\"subnetID\":\"${SUBNET_ID}\"
},
\"id\": 1
}" -H 'content-type:application/json;' 127.0.0.1:9650/ext/bc/P
}" -H 'content-type:application/json;' ${URL}/ext/bc/P

2 changes: 1 addition & 1 deletion chains/devnet/genesis.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"nonce": "0x0",
"timestamp": "0x0",
"extraData": "0x",
"gasLimit": "0x7a1200",
"gasLimit": "0x1312D00",
"difficulty": "0x0",
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"coinbase": "0x0000000000000000000000000000000000000000",
Expand Down
50 changes: 0 additions & 50 deletions genesis/genesis-nativecoin-feemgr-feerecv.json

This file was deleted.

49 changes: 0 additions & 49 deletions genesis/genesis-nativecoin-feemgr.json

This file was deleted.

41 changes: 0 additions & 41 deletions genesis/genesis.json

This file was deleted.

4 changes: 4 additions & 0 deletions rpc/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
pytest
pytest-asyncio
requests
websockets
Loading