Skip to content

Commit

Permalink
chore: use migrated fiattokenfactory (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnletey authored Oct 27, 2023
1 parent dc81b3e commit dce662f
Show file tree
Hide file tree
Showing 31 changed files with 284 additions and 2,276 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/unit-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,19 @@ name: Unit Tests

on:
pull_request:
push:

jobs:
unit-tests:

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Checkout Repository
uses: actions/checkout@v3

- name: Set up Go
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: 1.21

- name: Run Unit Tests
run: go test -race -v ./...
run: make test
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# CHANGELOG

Nothing to see here! Add some entries to get started.

15 changes: 12 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.PHONY: proto-setup proto-format proto-lint proto-gen format lint
all: proto-all format lint
.PHONY: proto-setup proto-format proto-lint proto-gen format lint test
all: proto-all format lint test

###############################################################################
### Formatting & Linting ###
Expand All @@ -22,7 +22,7 @@ lint:
### Protobuf ###
###############################################################################

BUF_VERSION=1.27.0
BUF_VERSION=1.27.1

proto-all: proto-format proto-lint proto-gen

Expand All @@ -48,3 +48,12 @@ proto-setup:
@echo "🤖 Setting up protobuf environment..."
@docker build --rm --tag noble-cctp-proto:latest --file proto/Dockerfile .
@echo "✅ Setup protobuf environment!"

###############################################################################
### Testing ###
###############################################################################

test:
@echo "🤖 Running tests..."
@go test -cover -race -v ./x/...
@echo "✅ Completed tests!"
4 changes: 0 additions & 4 deletions buf.yaml

This file was deleted.

167 changes: 80 additions & 87 deletions go.mod

Large diffs are not rendered by default.

798 changes: 172 additions & 626 deletions go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion proto/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM bufbuild/buf:1.27.0 as BUILDER
FROM bufbuild/buf:1.27.1 as BUILDER
FROM golang:1.21-alpine

RUN apk add --no-cache \
Expand Down
4 changes: 2 additions & 2 deletions proto/buf.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ deps:
- remote: buf.build
owner: noble
repository: cosmos-sdk
commit: b9d507c7c4c648009faeba7c9d645810
digest: shake256:da1d6e749b6b64dcbb6265081087fe25e1631220f91954425d2f90bcec05f2e65162c1780198884b2a5136ca33785a5892b541c94450d819baadf139dcab9f44
commit: b18b492ea3364d5fa88fe3ead0b57a95
digest: shake256:ce3896962b4241dbaa0776fa00e661184b8bdba629722b9f38bc7e221e04d379b3ad18531f33e2552ba675cca39381dcf0df693ec146c14db719741510c24852
2 changes: 1 addition & 1 deletion proto/buf.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version: v1
deps:
- buf.build/noble/cosmos-sdk:v0.45.15
- buf.build/noble/cosmos-sdk:v0.45.16
breaking:
use:
- FILE
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions testutil/keeper/fiattokenfactory.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ import (

sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"

"github.com/circlefin/noble-fiattokenfactory/x/fiattokenfactory/keeper"
"github.com/circlefin/noble-fiattokenfactory/x/fiattokenfactory/types"
"github.com/cosmos/cosmos-sdk/codec"
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
"github.com/cosmos/cosmos-sdk/store"
storetypes "github.com/cosmos/cosmos-sdk/store/types"
sdk "github.com/cosmos/cosmos-sdk/types"
typesparams "github.com/cosmos/cosmos-sdk/x/params/types"
"github.com/strangelove-ventures/noble/x/fiattokenfactory/keeper"
"github.com/strangelove-ventures/noble/x/fiattokenfactory/types"
"github.com/stretchr/testify/require"
"github.com/tendermint/tendermint/libs/log"
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
Expand Down
65 changes: 0 additions & 65 deletions testutil/keeper/tokenfactory.go

This file was deleted.

28 changes: 0 additions & 28 deletions testutil/keeper/transferkeeper.go

This file was deleted.

130 changes: 0 additions & 130 deletions testutil/network/network.go

This file was deleted.

1 change: 0 additions & 1 deletion tools/tools.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
package tools

import (
_ "github.com/btcsuite/btcd/chaincfg/chainhash"
_ "github.com/golangci/golangci-lint/cmd/golangci-lint"
_ "mvdan.cc/gofumpt"
)
Loading

0 comments on commit dce662f

Please sign in to comment.