Skip to content

Commit

Permalink
feat(shared): add shared tools and types
Browse files Browse the repository at this point in the history
- copy important types from lotus
- copy over address, cborutil, and crypto library
- switch to generating cbor through cbor-gen-for + go-generate
- run go fmt (hadn't been run)
- remove external depedencies on lotus
  • Loading branch information
hannahhoward committed Dec 17, 2019
1 parent c113158 commit 7951303
Show file tree
Hide file tree
Showing 39 changed files with 2,974 additions and 625 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ jobs:
default: golang
golangci-lint-version:
type: string
default: 1.17.1
default: 1.21.0
concurrency:
type: string
default: '2'
Expand Down
26 changes: 0 additions & 26 deletions datatransfer/cbor-gen/main.go

This file was deleted.

2 changes: 2 additions & 0 deletions datatransfer/impl/graphsync/graphsync_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ const (
ExtensionDataTransfer = graphsync.ExtensionName("fil/data-transfer")
)

//go:generate cbor-gen-for ExtensionDataTransferData

// ExtensionDataTransferData is the extension data for
// the graphsync extension.
type ExtensionDataTransferData struct {
Expand Down

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

27 changes: 0 additions & 27 deletions datatransfer/impl/graphsync/run_cbor_gen.go

This file was deleted.

Loading

0 comments on commit 7951303

Please sign in to comment.