Skip to content

Commit

Permalink
sqlite包更换,相关升级
Browse files Browse the repository at this point in the history
  • Loading branch information
smirkcat committed Sep 26, 2024
1 parent 452650d commit e218770
Show file tree
Hide file tree
Showing 10 changed files with 727 additions and 690 deletions.
733 changes: 503 additions & 230 deletions api/api_grpc.pb.go

Large diffs are not rendered by default.

28 changes: 20 additions & 8 deletions api/zksnark_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions gen-proto.bat
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@


go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest

protoc -I=./protocol -I./third_party/googleapis --go_out=. --go-grpc_out=. ./protocol/api/*.proto
protoc -I=./protocol -I./third_party/googleapis --go_out=. --go-grpc_out=. ./protocol/core/*.proto
protoc -I=./protocol -I./third_party/googleapis --go_out=. --go-grpc_out=. ./protocol/core/contract/*.proto
protoc -I./protocol -I./third_party/googleapis --go_out=. --go-grpc_out=. ./protocol/api/*.proto
protoc -I./protocol -I./third_party/googleapis --go_out=. --go-grpc_out=. ./protocol/core/*.proto
protoc -I./protocol -I./third_party/googleapis --go_out=. --go-grpc_out=. ./protocol/core/contract/*.proto
70 changes: 43 additions & 27 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,46 +1,62 @@
module tron

go 1.20
go 1.23

require (
github.com/BurntSushi/toml v1.3.2
github.com/ethereum/go-ethereum v1.13.11
github.com/ethereum/go-ethereum v1.14.9
github.com/go-sql-driver/mysql v1.7.1
github.com/mattn/go-sqlite3 v1.14.21
github.com/semrush/zenrpc/v2 v2.1.1
github.com/shopspring/decimal v1.3.1
github.com/smirkcat/hdwallet v0.0.0-20240202015538-b4b7e122f82e
github.com/takama/daemon v1.0.0
go.uber.org/zap v1.26.0
golang.org/x/crypto v0.18.0
google.golang.org/genproto v0.0.0-20240125205218-1f4bbc51befe // indirect
google.golang.org/grpc v1.61.0
google.golang.org/protobuf v1.32.0
golang.org/x/crypto v0.27.0 // indirect
google.golang.org/grpc v1.67.0
google.golang.org/protobuf v1.34.2
gopkg.in/natefinch/lumberjack.v2 v2.2.1
xorm.io/xorm v1.3.7
)

require google.golang.org/genproto/googleapis/api v0.0.0-20240125205218-1f4bbc51befe
require google.golang.org/genproto/googleapis/api v0.0.0-20240814211410-ddb44dafa142

require (
github.com/crate-crypto/go-ipa v0.0.0-20240724233137-53bbb0ceb27a // indirect
github.com/dustin/go-humanize v1.0.1 // indirect
github.com/ethereum/go-verkle v0.1.1-0.20240829091221-dffa7562dbe9 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/ncruces/go-strftime v0.1.9 // indirect
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
golang.org/x/net v0.29.0 // indirect
golang.org/x/tools v0.25.0 // indirect
modernc.org/gc/v3 v3.0.0-20240107210532-573471604cb6 // indirect
modernc.org/libc v1.55.3 // indirect
modernc.org/mathutil v1.6.0 // indirect
modernc.org/memory v1.8.0 // indirect
modernc.org/strutil v1.2.0 // indirect
modernc.org/token v1.1.0 // indirect
)

require (
github.com/beorn7/perks v1.0.1 // indirect
github.com/bits-and-blooms/bitset v1.13.0 // indirect
github.com/btcsuite/btcd v0.24.0 // indirect
github.com/btcsuite/btcd/btcec/v2 v2.3.2 // indirect
github.com/btcsuite/btcd/btcutil v1.1.5 // indirect
github.com/bits-and-blooms/bitset v1.14.3 // indirect
github.com/btcsuite/btcd v0.24.2 // indirect
github.com/btcsuite/btcd/btcec/v2 v2.3.4 // indirect
github.com/btcsuite/btcd/btcutil v1.1.6 // indirect
github.com/btcsuite/btcd/chaincfg/chainhash v1.1.0 // indirect
github.com/cespare/xxhash/v2 v2.2.0 // indirect
github.com/consensys/bavard v0.1.13 // indirect
github.com/consensys/gnark-crypto v0.12.1 // indirect
github.com/crate-crypto/go-kzg-4844 v0.7.0 // indirect
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 // indirect
github.com/ethereum/c-kzg-4844 v0.4.0 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/consensys/bavard v0.1.17 // indirect
github.com/consensys/gnark-crypto v0.14.0 // indirect
github.com/crate-crypto/go-kzg-4844 v1.1.0 // indirect
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.3.0 // indirect
github.com/ethereum/c-kzg-4844 v1.0.3 // indirect
github.com/goccy/go-json v0.10.2 // indirect
github.com/gofrs/uuid v4.4.0+incompatible // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb // indirect
github.com/gorilla/websocket v1.5.1 // indirect
github.com/holiman/uint256 v1.2.4 // indirect
github.com/holiman/uint256 v1.3.1 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/mmcloughlin/addchain v0.4.0 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
Expand All @@ -50,16 +66,16 @@ require (
github.com/prometheus/common v0.46.0 // indirect
github.com/prometheus/procfs v0.12.0 // indirect
github.com/shengdoushi/base58 v1.0.0 // indirect
github.com/supranational/blst v0.3.11 // indirect
github.com/supranational/blst v0.3.13 // indirect
github.com/syndtr/goleveldb v1.0.1-0.20220614013038-64ee5596c38a // indirect
github.com/tyler-smith/go-bip39 v1.1.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
golang.org/x/exp v0.0.0-20240119083558-1b970713d09a // indirect
golang.org/x/net v0.20.0 // indirect
golang.org/x/sync v0.6.0 // indirect
golang.org/x/sys v0.16.0 // indirect
golang.org/x/text v0.14.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240125205218-1f4bbc51befe // indirect
golang.org/x/exp v0.0.0-20240909161429-701f63a606c0 // indirect
golang.org/x/sync v0.8.0 // indirect
golang.org/x/sys v0.25.0 // indirect
golang.org/x/text v0.18.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240924160255-9d4c2d233b61 // indirect
modernc.org/sqlite v1.33.1
rsc.io/tmplfunc v0.0.3 // indirect
xorm.io/builder v0.3.13 // indirect
)
Loading

0 comments on commit e218770

Please sign in to comment.