Skip to content

TRON-US/go-btfs-common

Folders and files

NameName
Last commit message
Last commit date
Dec 2, 2019
Aug 5, 2020
Jan 2, 2020
Feb 5, 2021
Nov 12, 2019
Feb 17, 2022
Sep 13, 2020
Feb 17, 2022
Mar 8, 2021
Nov 20, 2019
Jan 6, 2020
Aug 23, 2019
Dec 9, 2020
Dec 3, 2019
Jan 6, 2020
Jan 6, 2021
Jan 6, 2021
Mar 20, 2020

Repository files navigation

go-btfs-common

Common packages among various go-btfs projects.

golang protobuf prototool
1.13 3.10.0 1.9.0

File Structure

.
├── LICENSE
├── Makefile
├── README.md
├── config
│   └── common.go
├── crypto
│   └── crypto.go
├── go.mod
├── go.sum
├── info
│   └── node.go (deprecating)
├── ledger
│   └── ledger.go
├── protos
│   ├── escrow
│   │   ├── escrow.pb.go
│   │   └── escrow.proto
│   ├── guard
│   │   ├── guard.pb.go
│   │   └── guard.proto
│   ├── ledger
│   │   ├── ledger.pb.go
│   │   └── ledger.proto
│   ├── node
│   │   ├── node.pb.go
│   │   └── node.proto
│   ├── shared
│   │   ├── shared.pb.go
│   │   └── shared.proto
│   └── status
│       ├── status.pb.go
│       └── status.proto
├── prototool.yaml
├── tree.txt
└── utils
    ├── grpc_health_check_provider.go
    ├── runtime.go
    └── runtime_test.go

Install Tools

install TRON version(pg support) protobuf

cd github.com/tron-us
git clone https://github.com/TRON-US/protobuf
cd protobuf && make

other tools

make install

Lint and Format

make

or

make lintf

Build/Complie

make build

Use docker container to run 'git diff protos/'

$ docker build -f Dockerfile -t "go-btfs-common" .
$ docker run -i go-btfs-common

Run interactive bash inside docker container for diagnosis

$ docker build -f Dockerfile -t "go-btfs-common" .
$ docker run -it go-btfs-common /bin/bash