Skip to content

Commit c3ed826

Browse files
authored
Merge pull request #123 from renproject/feat/cosmos_upgrade
updated cosmos apis to v0.44.0
2 parents e164a09 + e15f2bf commit c3ed826

File tree

11 files changed

+850
-605
lines changed

11 files changed

+850
-605
lines changed

.github/workflows/test.yml

+145-144
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ jobs:
77
FILECOIN_FFI_COMMIT: 8b97bd8230b77bd32f4f27e4766a6d8a03b4e801
88
SOLANA_FFI_COMMIT: 1428533377eb4ce00e81d04a53bad92f5339db00
99
steps:
10-
- uses: actions/setup-go@v2
10+
- name: Set up Go 1.16
11+
uses: actions/setup-go@v1
1112
with:
12-
go-version: "1.15.5"
13+
go-version: 1.16
1314

1415
- name: Configure git for Private Modules
1516
env:
@@ -93,7 +94,7 @@ jobs:
9394
9495
- name: Setup environment for Solana tests
9596
run: |
96-
sh -c "$(curl -sSfL https://release.solana.com/v1.7.0/install)"
97+
sh -c "$(curl -sSfL https://release.solana.com/v1.7.12/install)"
9798
cd $GITHUB_WORKSPACE
9899
export PATH="/home/runner/.local/share/solana/install/active_release/bin:$PATH"
99100
echo ${{ secrets.SOLANA_KEY }} > ~/.config/solana/id.json
@@ -119,10 +120,10 @@ jobs:
119120
FILECOIN_FFI_COMMIT: 8b97bd8230b77bd32f4f27e4766a6d8a03b4e801
120121
SOLANA_FFI_COMMIT: 1428533377eb4ce00e81d04a53bad92f5339db00
121122
steps:
122-
- name: Set up Go 1.13
123+
- name: Set up Go 1.16
123124
uses: actions/setup-go@v1
124125
with:
125-
go-version: 1.13
126+
go-version: 1.16
126127
id: go
127128

128129
- name: Configure git for Private Modules
@@ -238,140 +239,140 @@ jobs:
238239
-fil=true \
239240
-timeout 1500s
240241
241-
test-zcash:
242-
runs-on: ubuntu-latest
243-
env:
244-
FILECOIN_FFI_COMMIT: 8b97bd8230b77bd32f4f27e4766a6d8a03b4e801
245-
SOLANA_FFI_COMMIT: 1428533377eb4ce00e81d04a53bad92f5339db00
246-
steps:
247-
- name: Set up Go 1.13
248-
uses: actions/setup-go@v1
249-
with:
250-
go-version: 1.13
251-
id: go
252-
253-
- name: Configure git for Private Modules
254-
env:
255-
TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
256-
run: git config --global url."https://roynalnaruto:${TOKEN}@github.com".insteadOf "https://github.com"
257-
258-
- name: Check out code into the Go module directory
259-
uses: actions/checkout@v1
260-
with:
261-
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
262-
submodules: recursive
263-
264-
- name: Caching modules
265-
uses: actions/cache@v1
266-
with:
267-
path: ~/go/pkg/mod
268-
key: ${{ runner.os }}-go-aw-${{ hashFiles('**/go.sum') }}
269-
270-
- name: Cache extern dependencies (FFI)
271-
id: cache-extern
272-
uses: actions/cache@v2
273-
env:
274-
cache-name: cache-externs
275-
with:
276-
path: .extern
277-
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ env.FILECOIN_FFI_COMMIT }}-${{ env.SOLANA_FFI_COMMIT }}
278-
279-
# Remove apt repos that are known to break from time to time
280-
# See https://github.com/actions/virtual-environments/issues/323
281-
- name: Install dependency packages
282-
run: |
283-
for apt_file in `grep -lr microsoft /etc/apt/sources.list.d/`; do sudo rm $apt_file; done
284-
sudo apt-get update
285-
sudo apt-get install -y build-essential
286-
sudo apt-get install -y jq mesa-opencl-icd ocl-icd-opencl-dev pkg-config libudev-dev hwloc libhwloc-dev
287-
curl https://sh.rustup.rs -sSf | sh -s -- -y
288-
source $HOME/.cargo/env
289-
290-
- name: Get dependencies
291-
run: |
292-
export PATH=$PATH:$(go env GOPATH)/bin
293-
source $HOME/.cargo/env
294-
go get -u github.com/onsi/ginkgo/ginkgo
295-
go get -u github.com/onsi/gomega/...
296-
go get -u golang.org/x/lint/golint
297-
go get -u github.com/loongy/covermerge
298-
go get -u github.com/mattn/goveralls
299-
go get -u github.com/xlab/c-for-go
300-
301-
- name: Install dependencies (Filecoin FFI)
302-
if: steps.cache-extern.outputs.cache-hit != 'true'
303-
run: |
304-
export PATH=$PATH:$(go env GOPATH)/bin
305-
source $HOME/.cargo/env
306-
cd $GITHUB_WORKSPACE
307-
mkdir .extern && cd .extern
308-
git clone https://github.com/filecoin-project/filecoin-ffi.git
309-
cd filecoin-ffi
310-
git checkout ${{ env.FILECOIN_FFI_COMMIT }}
311-
make
312-
313-
- name: Install dependencies (Solana FFI)
314-
if: steps.cache-extern.outputs.cache-hit != 'true'
315-
run: |
316-
export PATH=$PATH:$(go env GOPATH)/bin
317-
source $HOME/.cargo/env
318-
cd $GITHUB_WORKSPACE/.extern
319-
git clone https://github.com/renproject/solana-ffi.git
320-
cd solana-ffi
321-
git checkout ${{ env.SOLANA_FFI_COMMIT }}
322-
make clean
323-
make
324-
325-
- name: Run vetting
326-
run: |
327-
export PATH=$PATH:$(go env GOPATH)/bin
328-
source $HOME/.cargo/env
329-
go mod edit -replace=github.com/filecoin-project/filecoin-ffi=./.extern/filecoin-ffi
330-
go mod edit -replace=github.com/renproject/solana-ffi=./.extern/solana-ffi
331-
go vet ./...
332-
333-
- name: Run linting
334-
run: |
335-
cd $GITHUB_WORKSPACE
336-
export PATH=$PATH:$(go env GOPATH)/bin
337-
go get -u golang.org/x/lint/golint
338-
golint $(go list ./... | grep -v filecoin-ffi)
339-
340-
- name: Run multichain infrastructure
341-
run: |
342-
cd $GITHUB_WORKSPACE/infra
343-
source .env
344-
docker-compose up -d --build zcash
345-
346-
- name: Sleep until the nodes are up
347-
uses: jakejarvis/wait-action@master
348-
with:
349-
time: '1m'
350-
351-
- name: Check on docker containers
352-
run: docker ps -a
353-
354-
- name: Run tests and report test coverage
355-
env:
356-
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
357-
run: |
358-
export PATH=$PATH:$(go env GOPATH)/bin
359-
source ./infra/.env
360-
cd $GITHUB_WORKSPACE
361-
go test \
362-
-zec=true \
363-
-timeout 1500s
242+
# test-zcash:
243+
# runs-on: ubuntu-latest
244+
# env:
245+
# FILECOIN_FFI_COMMIT: 8b97bd8230b77bd32f4f27e4766a6d8a03b4e801
246+
# SOLANA_FFI_COMMIT: 1428533377eb4ce00e81d04a53bad92f5339db00
247+
# steps:
248+
# - name: Set up Go 1.16
249+
# uses: actions/setup-go@v1
250+
# with:
251+
# go-version: 1.16
252+
# id: go
253+
#
254+
# - name: Configure git for Private Modules
255+
# env:
256+
# TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
257+
# run: git config --global url."https://roynalnaruto:${TOKEN}@github.com".insteadOf "https://github.com"
258+
#
259+
# - name: Check out code into the Go module directory
260+
# uses: actions/checkout@v1
261+
# with:
262+
# token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
263+
# submodules: recursive
264+
#
265+
# - name: Caching modules
266+
# uses: actions/cache@v1
267+
# with:
268+
# path: ~/go/pkg/mod
269+
# key: ${{ runner.os }}-go-aw-${{ hashFiles('**/go.sum') }}
270+
#
271+
# - name: Cache extern dependencies (FFI)
272+
# id: cache-extern
273+
# uses: actions/cache@v2
274+
# env:
275+
# cache-name: cache-externs
276+
# with:
277+
# path: .extern
278+
# key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ env.FILECOIN_FFI_COMMIT }}-${{ env.SOLANA_FFI_COMMIT }}
279+
#
280+
# # Remove apt repos that are known to break from time to time
281+
# # See https://github.com/actions/virtual-environments/issues/323
282+
# - name: Install dependency packages
283+
# run: |
284+
# for apt_file in `grep -lr microsoft /etc/apt/sources.list.d/`; do sudo rm $apt_file; done
285+
# sudo apt-get update
286+
# sudo apt-get install -y build-essential
287+
# sudo apt-get install -y jq mesa-opencl-icd ocl-icd-opencl-dev pkg-config libudev-dev hwloc libhwloc-dev
288+
# curl https://sh.rustup.rs -sSf | sh -s -- -y
289+
# source $HOME/.cargo/env
290+
#
291+
# - name: Get dependencies
292+
# run: |
293+
# export PATH=$PATH:$(go env GOPATH)/bin
294+
# source $HOME/.cargo/env
295+
# go get -u github.com/onsi/ginkgo/ginkgo
296+
# go get -u github.com/onsi/gomega/...
297+
# go get -u golang.org/x/lint/golint
298+
# go get -u github.com/loongy/covermerge
299+
# go get -u github.com/mattn/goveralls
300+
# go get -u github.com/xlab/c-for-go
301+
#
302+
# - name: Install dependencies (Filecoin FFI)
303+
# if: steps.cache-extern.outputs.cache-hit != 'true'
304+
# run: |
305+
# export PATH=$PATH:$(go env GOPATH)/bin
306+
# source $HOME/.cargo/env
307+
# cd $GITHUB_WORKSPACE
308+
# mkdir .extern && cd .extern
309+
# git clone https://github.com/filecoin-project/filecoin-ffi.git
310+
# cd filecoin-ffi
311+
# git checkout ${{ env.FILECOIN_FFI_COMMIT }}
312+
# make
313+
#
314+
# - name: Install dependencies (Solana FFI)
315+
# if: steps.cache-extern.outputs.cache-hit != 'true'
316+
# run: |
317+
# export PATH=$PATH:$(go env GOPATH)/bin
318+
# source $HOME/.cargo/env
319+
# cd $GITHUB_WORKSPACE/.extern
320+
# git clone https://github.com/renproject/solana-ffi.git
321+
# cd solana-ffi
322+
# git checkout ${{ env.SOLANA_FFI_COMMIT }}
323+
# make clean
324+
# make
325+
#
326+
# - name: Run vetting
327+
# run: |
328+
# export PATH=$PATH:$(go env GOPATH)/bin
329+
# source $HOME/.cargo/env
330+
# go mod edit -replace=github.com/filecoin-project/filecoin-ffi=./.extern/filecoin-ffi
331+
# go mod edit -replace=github.com/renproject/solana-ffi=./.extern/solana-ffi
332+
# go vet ./...
333+
#
334+
# - name: Run linting
335+
# run: |
336+
# cd $GITHUB_WORKSPACE
337+
# export PATH=$PATH:$(go env GOPATH)/bin
338+
# go get -u golang.org/x/lint/golint
339+
# golint $(go list ./... | grep -v filecoin-ffi)
340+
#
341+
# - name: Run multichain infrastructure
342+
# run: |
343+
# cd $GITHUB_WORKSPACE/infra
344+
# source .env
345+
# docker-compose up -d --build zcash
346+
#
347+
# - name: Sleep until the nodes are up
348+
# uses: jakejarvis/wait-action@master
349+
# with:
350+
# time: '1m'
351+
#
352+
# - name: Check on docker containers
353+
# run: docker ps -a
354+
#
355+
# - name: Run tests and report test coverage
356+
# env:
357+
# COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
358+
# run: |
359+
# export PATH=$PATH:$(go env GOPATH)/bin
360+
# source ./infra/.env
361+
# cd $GITHUB_WORKSPACE
362+
# go test \
363+
# -zec=true \
364+
# -timeout 1500s
364365

365366
test-terra:
366367
runs-on: ubuntu-latest
367368
env:
368369
FILECOIN_FFI_COMMIT: 8b97bd8230b77bd32f4f27e4766a6d8a03b4e801
369370
SOLANA_FFI_COMMIT: 1428533377eb4ce00e81d04a53bad92f5339db00
370371
steps:
371-
- name: Set up Go 1.13
372+
- name: Set up Go 1.16
372373
uses: actions/setup-go@v1
373374
with:
374-
go-version: 1.13
375+
go-version: 1.16
375376
id: go
376377

377378
- name: Configure git for Private Modules
@@ -492,10 +493,10 @@ jobs:
492493
FILECOIN_FFI_COMMIT: 8b97bd8230b77bd32f4f27e4766a6d8a03b4e801
493494
SOLANA_FFI_COMMIT: 1428533377eb4ce00e81d04a53bad92f5339db00
494495
steps:
495-
- name: Set up Go 1.13
496+
- name: Set up Go 1.16
496497
uses: actions/setup-go@v1
497498
with:
498-
go-version: 1.13
499+
go-version: 1.16
499500
id: go
500501

501502
- name: Configure git for Private Modules
@@ -616,10 +617,10 @@ jobs:
616617
FILECOIN_FFI_COMMIT: 8b97bd8230b77bd32f4f27e4766a6d8a03b4e801
617618
SOLANA_FFI_COMMIT: 1428533377eb4ce00e81d04a53bad92f5339db00
618619
steps:
619-
- name: Set up Go 1.13
620+
- name: Set up Go 1.16
620621
uses: actions/setup-go@v1
621622
with:
622-
go-version: 1.13
623+
go-version: 1.16
623624
id: go
624625

625626
- name: Configure git for Private Modules
@@ -742,10 +743,10 @@ jobs:
742743
FILECOIN_FFI_COMMIT: 8b97bd8230b77bd32f4f27e4766a6d8a03b4e801
743744
SOLANA_FFI_COMMIT: 1428533377eb4ce00e81d04a53bad92f5339db00
744745
steps:
745-
- name: Set up Go 1.13
746+
- name: Set up Go 1.16
746747
uses: actions/setup-go@v1
747748
with:
748-
go-version: 1.13
749+
go-version: 1.16
749750
id: go
750751

751752
- name: Configure git for Private Modules
@@ -865,10 +866,10 @@ jobs:
865866
FILECOIN_FFI_COMMIT: 8b97bd8230b77bd32f4f27e4766a6d8a03b4e801
866867
SOLANA_FFI_COMMIT: 1428533377eb4ce00e81d04a53bad92f5339db00
867868
steps:
868-
- name: Set up Go 1.13
869+
- name: Set up Go 1.16
869870
uses: actions/setup-go@v1
870871
with:
871-
go-version: 1.13
872+
go-version: 1.16
872873
id: go
873874

874875
- name: Configure git for Private Modules
@@ -988,10 +989,10 @@ jobs:
988989
FILECOIN_FFI_COMMIT: 8b97bd8230b77bd32f4f27e4766a6d8a03b4e801
989990
SOLANA_FFI_COMMIT: 1428533377eb4ce00e81d04a53bad92f5339db00
990991
steps:
991-
- name: Set up Go 1.13
992+
- name: Set up Go 1.16
992993
uses: actions/setup-go@v1
993994
with:
994-
go-version: 1.13
995+
go-version: 1.16
995996
id: go
996997

997998
- name: Configure git for Private Modules
@@ -1111,10 +1112,10 @@ jobs:
11111112
FILECOIN_FFI_COMMIT: 8b97bd8230b77bd32f4f27e4766a6d8a03b4e801
11121113
SOLANA_FFI_COMMIT: 1428533377eb4ce00e81d04a53bad92f5339db00
11131114
steps:
1114-
- name: Set up Go 1.13
1115+
- name: Set up Go 1.16
11151116
uses: actions/setup-go@v1
11161117
with:
1117-
go-version: 1.13
1118+
go-version: 1.16
11181119
id: go
11191120

11201121
- name: Configure git for Private Modules
@@ -1234,10 +1235,10 @@ jobs:
12341235
FILECOIN_FFI_COMMIT: 8b97bd8230b77bd32f4f27e4766a6d8a03b4e801
12351236
SOLANA_FFI_COMMIT: 1428533377eb4ce00e81d04a53bad92f5339db00
12361237
steps:
1237-
- name: Set up Go 1.13
1238+
- name: Set up Go 1.16
12381239
uses: actions/setup-go@v1
12391240
with:
1240-
go-version: 1.13
1241+
go-version: 1.16
12411242
id: go
12421243

12431244
- name: Configure git for Private Modules

0 commit comments

Comments
 (0)