-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add blockchain explorer, add transfer explanation
Signed-off-by: Arne Rutjes <arne123@gmail.com>
- Loading branch information
Showing
10 changed files
with
238 additions
and
41 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
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,4 @@ | ||
PORT=8081 | ||
EXPLORER_CONFIG_FILE_PATH=./config.json | ||
EXPLORER_PROFILE_DIR_PATH=./connection-profile | ||
FABRIC_CRYPTO_PATH=../../test-network/organizations |
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,9 @@ | ||
{ | ||
"network-configs": { | ||
"test-network": { | ||
"name": "Test Network", | ||
"profile": "./connection-profile/test-network.json" | ||
} | ||
}, | ||
"license": "Apache-2.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,48 @@ | ||
{ | ||
"name": "test-network", | ||
"version": "1.0.0", | ||
"client": { | ||
"tlsEnable": true, | ||
"adminCredential": { | ||
"id": "exploreradmin", | ||
"password": "exploreradminpw" | ||
}, | ||
"enableAuthentication": true, | ||
"organization": "Org1MSP", | ||
"connection": { | ||
"timeout": { | ||
"peer": { | ||
"endorser": "300" | ||
}, | ||
"orderer": "300" | ||
} | ||
} | ||
}, | ||
"channels": { | ||
"mychannel": { | ||
"peers": { | ||
"peer0.org1.example.com": {} | ||
} | ||
} | ||
}, | ||
"organizations": { | ||
"Org1MSP": { | ||
"mspid": "Org1MSP", | ||
"adminPrivateKey": { | ||
"path": "/tmp/crypto/peerOrganizations/org1.example.com/users/User1@org1.example.com/msp/keystore/priv_sk" | ||
}, | ||
"peers": ["peer0.org1.example.com"], | ||
"signedCert": { | ||
"path": "/tmp/crypto/peerOrganizations/org1.example.com/users/User1@org1.example.com/msp/signcerts/User1@org1.example.com-cert.pem" | ||
} | ||
} | ||
}, | ||
"peers": { | ||
"peer0.org1.example.com": { | ||
"tlsCACerts": { | ||
"path": "/tmp/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt" | ||
}, | ||
"url": "grpcs://peer0.org1.example.com:7051" | ||
} | ||
} | ||
} |
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,63 @@ | ||
|
||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
# see https://github.com/hyperledger-labs/blockchain-explorer | ||
|
||
version: '2.1' | ||
|
||
volumes: | ||
pgdata: | ||
walletstore: | ||
|
||
networks: | ||
test: | ||
name: fabric_test | ||
external: true | ||
|
||
services: | ||
|
||
explorerdb.mynetwork.com: | ||
image: ghcr.io/hyperledger-labs/explorer-db:latest | ||
container_name: explorerdb.mynetwork.com | ||
hostname: explorerdb.mynetwork.com | ||
environment: | ||
- DATABASE_DATABASE=fabricexplorer | ||
- DATABASE_USERNAME=hppoc | ||
- DATABASE_PASSWORD=password | ||
healthcheck: | ||
test: "pg_isready -h localhost -p 5432 -q -U postgres" | ||
interval: 30s | ||
timeout: 10s | ||
retries: 5 | ||
volumes: | ||
- pgdata:/var/lib/postgresql/data | ||
networks: | ||
- test | ||
|
||
explorer.mynetwork.com: | ||
image: ghcr.io/hyperledger-labs/explorer:latest | ||
container_name: explorer.mynetwork.com | ||
hostname: explorer.mynetwork.com | ||
environment: | ||
- DATABASE_HOST=explorerdb.mynetwork.com | ||
- DATABASE_DATABASE=fabricexplorer | ||
- DATABASE_USERNAME=hppoc | ||
- DATABASE_PASSWD=password | ||
- LOG_LEVEL_APP=info | ||
- LOG_LEVEL_DB=info | ||
- LOG_LEVEL_CONSOLE=debug | ||
- LOG_CONSOLE_STDOUT=true | ||
- DISCOVERY_AS_LOCALHOST=false | ||
- PORT=${PORT:-8080} | ||
volumes: | ||
- ${EXPLORER_CONFIG_FILE_PATH}:/opt/explorer/app/platform/fabric/config.json | ||
- ${EXPLORER_PROFILE_DIR_PATH}:/opt/explorer/app/platform/fabric/connection-profile | ||
- ${FABRIC_CRYPTO_PATH}:/tmp/crypto | ||
- walletstore:/opt/explorer/wallet | ||
ports: | ||
- ${PORT:-8080}:${PORT:-8080} | ||
depends_on: | ||
explorerdb.mynetwork.com: | ||
condition: service_healthy | ||
networks: | ||
- test |
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
github.com/bits-and-blooms/bitset v1.2.1 h1:M+/hrU9xlMp7t4TyTDQW97d3tRPVuKFC6zBEK16QnXY= | ||
github.com/cenkalti/backoff v2.2.1+incompatible h1:tNowT99t7UNflLxfYYSlKYsBpXdEet03Pg2g16Swow4= | ||
github.com/dgraph-io/badger v1.6.2 h1:mNw0qs90GVgGGWylh0umH5iag1j6n/PeJtNvL6KY/x8= | ||
github.com/go-kit/log v0.2.1 h1:MRVx0/zhvdseW+Gza6N9rVzU/IVzaeE1SFI4raAhmBU= | ||
github.com/grpc-ecosystem/grpc-gateway v1.16.0 h1:gmcG1KaJ57LophUzW0Hy8NmPhnMZb4M0+kPpLofRdBo= | ||
github.com/russross/blackfriday v1.5.2 h1:HyvC0ARfnZBqnXwABFeSZHpKvJHJJfPz81GNueLj0oo= | ||
github.com/ugorji/go/codec v1.2.9 h1:rmenucSohSTiyL09Y+l2OCk+FrMxGMzho2+tjr5ticU= |
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
Oops, something went wrong.