Skip to content

Commit

Permalink
fix(vocher): update and fix pactus grpc client
Browse files Browse the repository at this point in the history
  • Loading branch information
mj committed Jun 24, 2024
1 parent 4be9a74 commit e7e1933
Show file tree
Hide file tree
Showing 186 changed files with 4,795 additions and 3,853 deletions.
41 changes: 22 additions & 19 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,52 +6,55 @@ require (
github.com/PaulSonOfLars/gotgbot/v2 v2.0.0-rc.26
github.com/bwmarrin/discordgo v0.28.1
github.com/labstack/echo/v4 v4.12.0
github.com/pactus-project/pactus v1.1.4
github.com/spf13/cobra v1.8.0
github.com/pactus-project/pactus v1.2.0
github.com/spf13/cobra v1.8.1
github.com/stretchr/testify v1.9.0
google.golang.org/grpc v1.63.2
google.golang.org/grpc v1.64.0
gorm.io/driver/mysql v1.5.6
gorm.io/gorm v1.25.10
)

require (
github.com/go-sql-driver/mysql v1.7.0 // indirect
github.com/google/pprof v0.0.0-20240409012703-83162a5b38cd // indirect
github.com/google/pprof v0.0.0-20240622144329-c177fd99eaa9 // indirect
github.com/ipfs/boxo v0.21.0 // indirect
github.com/prometheus/common v0.54.0 // indirect
github.com/quic-go/quic-go v0.45.1 // indirect
)

require (
github.com/NathanBaulch/protoc-gen-cobra v1.2.1 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.3.0 // indirect
github.com/fxamacker/cbor/v2 v2.6.0 // indirect
github.com/fxamacker/cbor/v2 v2.7.0 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/gorilla/websocket v1.5.1 // indirect
github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.1 // indirect
github.com/gorilla/websocket v1.5.3 // indirect
github.com/grpc-ecosystem/grpc-gateway/v2 v2.20.0 // indirect
github.com/iancoleman/strcase v0.3.0 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/ipfs/go-cid v0.4.1 // indirect
github.com/jinzhu/inflection v1.0.0 // indirect
github.com/jinzhu/now v1.1.5 // indirect
github.com/kilic/bls12-381 v0.1.0 // indirect
github.com/klauspost/cpuid/v2 v2.2.7 // indirect
github.com/klauspost/cpuid/v2 v2.2.8 // indirect
github.com/labstack/gommon v0.4.2 // indirect
github.com/libp2p/go-buffer-pool v0.1.0 // indirect
github.com/libp2p/go-libp2p v0.33.2
github.com/libp2p/go-libp2p v0.35.1
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/minio/sha256-simd v1.0.1 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/mr-tron/base58 v1.2.0 // indirect
github.com/multiformats/go-base32 v0.1.0 // indirect
github.com/multiformats/go-base36 v0.2.0 // indirect
github.com/multiformats/go-multiaddr v0.12.3 // indirect
github.com/multiformats/go-multiaddr v0.12.4 // indirect
github.com/multiformats/go-multibase v0.2.0 // indirect
github.com/multiformats/go-multicodec v0.9.0 // indirect
github.com/multiformats/go-multihash v0.2.3 // indirect
github.com/multiformats/go-varint v0.0.7 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/rogpeppe/go-internal v1.12.0 // indirect
github.com/rs/zerolog v1.32.0
github.com/rs/zerolog v1.33.0
github.com/spaolacci/murmur3 v1.1.0 // indirect
github.com/spf13/cast v1.6.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
Expand All @@ -60,14 +63,14 @@ require (
github.com/valyala/fasttemplate v1.2.2 // indirect
github.com/x448/float16 v0.8.4 // indirect
go.uber.org/mock v0.4.0
golang.org/x/crypto v0.23.0 // indirect
golang.org/x/exp v0.0.0-20240506185415-9bf2ced13842 // indirect
golang.org/x/net v0.25.0 // indirect
golang.org/x/sys v0.20.0 // indirect
golang.org/x/text v0.15.0 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20240506185236-b8a5c65736ae // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240506185236-b8a5c65736ae // indirect
google.golang.org/protobuf v1.34.1
golang.org/x/crypto v0.24.0 // indirect
golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8 // indirect
golang.org/x/net v0.26.0 // indirect
golang.org/x/sys v0.21.0 // indirect
golang.org/x/text v0.16.0 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20240624140628-dc46fd24d27d // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240624140628-dc46fd24d27d // indirect
google.golang.org/protobuf v1.34.2
gopkg.in/natefinch/lumberjack.v2 v2.2.1
gopkg.in/yaml.v3 v3.0.1
lukechampine.com/blake3 v1.3.0 // indirect
Expand Down
187 changes: 113 additions & 74 deletions go.sum

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions internal/engine/command/network/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ type NetStatus struct {
NetworkName string
ConnectedPeersCount uint32
ValidatorsCount int32
TotalBytesSent uint32
TotalBytesReceived uint32
TotalBytesSent int64
TotalBytesReceived int64
CurrentBlockHeight uint32
TotalNetworkPower int64
TotalCommitteePower int64
Expand Down
2 changes: 1 addition & 1 deletion internal/engine/command/voucher/claim.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func (v *Voucher) claimHandler(cmd command.Command, _ entity.AppID, _ string, ar
}

pubKey := validatorInfo.GetValidator().GetPublicKey()
txHash, err := v.wallet.BondTransaction(pubKey, address, "Voucher claim fro bond in validator", int64(voucher.Amount))
txHash, err := v.wallet.BondTransaction(pubKey, address, "Voucher claim for bond in validator", int64(voucher.Amount))
if err != nil {
return cmd.ErrorResult(err)
}
Expand Down
3 changes: 1 addition & 2 deletions pkg/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ type Client struct {
}

func NewClient(endpoint string) (*Client, error) {
conn, err := grpc.Dial(endpoint,
grpc.WithTransportCredentials(insecure.NewCredentials()))
conn, err := grpc.NewClient(endpoint, grpc.WithTransportCredentials(insecure.NewCredentials()))
if err != nil {
return nil, err
}
Expand Down
53 changes: 40 additions & 13 deletions vendor/github.com/fxamacker/cbor/v2/.golangci.yml

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

29 changes: 23 additions & 6 deletions vendor/github.com/fxamacker/cbor/v2/README.md

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

4 changes: 2 additions & 2 deletions vendor/github.com/fxamacker/cbor/v2/bytestring.go

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

Loading

0 comments on commit e7e1933

Please sign in to comment.