Skip to content

Commit

Permalink
Merge pull request #122 from Zondax/lotus_1.3.0
Browse files Browse the repository at this point in the history
Lotus 1.4.0
  • Loading branch information
jleni authored Jan 4, 2021
2 parents 349ac5b + 23ce308 commit 47f039f
Show file tree
Hide file tree
Showing 10 changed files with 88 additions and 32 deletions.
8 changes: 4 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ version: 2.1
commands:
ffi_deps:
steps:
- run: apt update && apt install -yy mesa-opencl-icd jq
- run: apt update && apt install -yy mesa-opencl-icd jq hwloc libhwloc-dev
- run: ln -s /usr/lib/x86_64-linux-gnu/libOpenCL.so.1 /usr/lib/libOpenCL.so
- run: git submodule update --init --recursive

jobs:
build:
docker:
- image: golang:1.14
- image: golang:1.15
working_directory: /rosetta-filecoin-lib
steps:
- checkout
Expand All @@ -20,7 +20,7 @@ jobs:

checks:
docker:
- image: golang:1.14
- image: golang:1.15
steps:
- checkout
- ffi_deps
Expand All @@ -31,7 +31,7 @@ jobs:

integration_testnet:
docker:
- image: golang:1.14
- image: golang:1.15
steps:
- checkout
- ffi_deps
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- uses: actions/checkout@v2.3.3
- uses: actions/setup-go@v2.1.3
with:
go-version: '^1.14.3' # The Go version to download (if necessary) and use.
go-version: '^1.15.6' # The Go version to download (if necessary) and use.
- run: git submodule update --init --recursive
- run: make build_CI
- run: |
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ build_ffi:
make -C extern/filecoin-ffi

install_lint:
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.31.0
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $$(go env GOPATH)/bin

check-modtidy:
go mod tidy
Expand All @@ -31,7 +31,7 @@ check-modtidy:
lint:
golangci-lint --version
golangci-lint run -E gofmt -E gosec -E goconst -E gocritic
# golangci-lint run -E stylecheck -E gosec -E goconst -E godox -E gocritic
# golangci-lint run -E stylecheck -E gosec -E goconst -E godox -E gocritic

test: build
go test -race ./rosetta/services
Expand Down
19 changes: 14 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,21 @@
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
[![CircleCI](https://circleci.com/gh/Zondax/rosetta-filecoin-proxy/tree/master.svg?style=shield)](https://circleci.com/gh/Zondax/rosetta-filecoin-proxy/tree/master)
[![Github-Actions](https://github.com/Zondax/rosetta-filecoin-proxy/workflows/rosetta-cli/badge.svg)](https://github.com/Zondax/rosetta-filecoin-proxy/actions)
To run a node (this will build the container if you haven't yet):
```

To build the proxy run:
```bash
make
```

You can rebuild by using
```
make rebuild
If you have upgraded and you find FFI issues, try:
```bash
make gitclean
make
```


If you want to install the linter we use try:

```bash
make install_lint
make lint
14 changes: 7 additions & 7 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
module github.com/zondax/rosetta-filecoin-proxy

go 1.14
go 1.15

require (
github.com/coinbase/rosetta-sdk-go v0.5.10
github.com/filecoin-project/go-address v0.0.5-0.20201103152444-f2023ef3f5bb
github.com/filecoin-project/go-bitfield v0.2.3-0.20201110211213-fe2c1862e816
github.com/filecoin-project/go-data-transfer v1.2.0
github.com/filecoin-project/go-fil-markets v1.0.5-0.20201113164554-c5eba40d5335
github.com/filecoin-project/go-jsonrpc v0.1.2-0.20201008195726-68c6a2704e49
github.com/filecoin-project/go-data-transfer v1.2.3
github.com/filecoin-project/go-fil-markets v1.0.10
github.com/filecoin-project/go-jsonrpc v0.1.2
github.com/filecoin-project/go-multistore v0.0.3
github.com/filecoin-project/go-state-types v0.0.0-20201102161440-c8033295a1fc
github.com/filecoin-project/lotus v1.2.1
github.com/filecoin-project/lotus v1.4.0
github.com/filecoin-project/specs-actors v0.9.13
github.com/filecoin-project/specs-actors/v2 v2.3.2
github.com/filecoin-project/specs-actors/v2 v2.3.3
github.com/google/uuid v1.1.2
github.com/ipfs/go-cid v0.0.7
github.com/ipfs/go-log v1.0.4
github.com/libp2p/go-libp2p-core v0.7.0
github.com/multiformats/go-multihash v0.0.14
github.com/orcaman/concurrent-map v0.0.0-20190826125027-8c72a8bb44f6
github.com/stretchr/testify v1.6.1
github.com/zondax/rosetta-filecoin-lib v1.201.0
github.com/zondax/rosetta-filecoin-lib v1.400.0
gotest.tools v2.2.0+incompatible
)

Expand Down
51 changes: 41 additions & 10 deletions go.sum

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions rosetta/services/mocks/fullnode_mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,22 @@ type FullNodeMock struct {
mock.Mock
}

func (f *FullNodeMock) NetBlockAdd(ctx context.Context, acl api.NetBlockList) error {
panic("implement me")
}

func (f *FullNodeMock) NetBlockRemove(ctx context.Context, acl api.NetBlockList) error {
panic("implement me")
}

func (f *FullNodeMock) NetBlockList(ctx context.Context) (api.NetBlockList, error) {
panic("implement me")
}

func (f *FullNodeMock) MarketWithdraw(ctx context.Context, wallet, addr address.Address, amt filTypes.BigInt) (cid.Cid, error) {
panic("implement me")
}

func (f *FullNodeMock) Session(ctx context.Context) (uuid.UUID, error) {
panic("implement me")
}
Expand Down
2 changes: 1 addition & 1 deletion rosetta/tests/rosetta_cli_test_PR.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ trap "exit 1" INT
GRN=$'\e[32;1m'
OFF=$'\e[0m'

go get github.com/coinbase/rosetta-cli@v0.5.22
go get github.com/coinbase/rosetta-cli@v0.6.6

rm -rf /tmp/rosetta-cli-test/*

Expand Down
2 changes: 1 addition & 1 deletion rosetta/tests/rosetta_cli_test_push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ trap "exit 1" INT
GRN=$'\e[32;1m'
OFF=$'\e[0m'

go get github.com/coinbase/rosetta-cli@v0.5.22
go get github.com/coinbase/rosetta-cli@v0.6.6

rm -rf /tmp/rosetta-cli-test/*

Expand Down

0 comments on commit 47f039f

Please sign in to comment.