From 94b7b04fc4a191d20238473d30e3d89871cced95 Mon Sep 17 00:00:00 2001 From: MacLane S Wilkison Date: Wed, 16 Sep 2026 14:19:20 -0500 Subject: [PATCH] chore: prepare threshold-common module rebrand --- .github/workflows/client.yml | 4 +- .github/workflows/release.yml | 2 +- CHANGELOG.md | 5 +- CONTRIBUTING.adoc | 6 +- MIGRATION.md | 87 +++++++++++++++++++ README.adoc | 26 +++--- RELEASE.md | 48 +++++++--- go.mod | 2 +- pkg/chain/ethereum/balance_monitor.go | 2 +- pkg/chain/ethereum/ethutil/adapter.go | 2 +- pkg/chain/ethereum/ethutil/adapter_test.go | 2 +- pkg/chain/ethereum/ethutil/balance_monitor.go | 2 +- .../ethereum/ethutil/error_resolver_test.go | 2 +- pkg/chain/ethereum/ethutil/ethutil.go | 2 +- pkg/chain/ethereum/ethutil/ethutil_test.go | 2 +- pkg/chain/ethereum/ethutil/mining_waiter.go | 2 +- .../ethereum/ethutil/mining_waiter_test.go | 2 +- pkg/chain/ethereum/ethutil/rate_limiter.go | 2 +- .../ethereum/ethutil/rate_limiter_test.go | 2 +- pkg/cmd/cmd.go | 4 +- pkg/cmd/flag/flag_wei.go | 2 +- pkg/cmd/flag/flag_wei_test.go | 2 +- pkg/persistence/encrypted_persistence.go | 2 +- pkg/persistence/encrypted_persistence_test.go | 2 +- tools/generators/ethereum/command.go.tmpl | 2 +- .../ethereum/command_template_content.go | 2 +- tools/generators/ethereum/contract.go | 12 +-- tools/generators/ethereum/contract.go.tmpl | 4 +- .../ethereum/contract_template_content.go | 4 +- .../promise/gen/bigintpromise_test.go | 2 +- tools/generators/promise/promise.go | 4 +- tools/generators/template/template.go | 2 +- 32 files changed, 180 insertions(+), 66 deletions(-) create mode 100644 MIGRATION.md diff --git a/.github/workflows/client.yml b/.github/workflows/client.yml index b373ef4..cd51908 100644 --- a/.github/workflows/client.yml +++ b/.github/workflows/client.yml @@ -22,7 +22,7 @@ jobs: cache: true - name: Run Go generators - run: go generate ./.../gen + run: go generate ./... - name: Ensure generated code is clean run: git diff --exit-code @@ -69,7 +69,7 @@ jobs: cache: true - name: Run Go generators - run: go generate ./.../gen + run: go generate ./... - name: Install golint run: go install golang.org/x/lint/golint@latest diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5e78985..0355179 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,7 +24,7 @@ jobs: cache: true - name: Run Go generators - run: go generate ./.../gen + run: go generate ./... - name: Ensure generated code is clean run: git diff --exit-code diff --git a/CHANGELOG.md b/CHANGELOG.md index 147dd25..b54ecc4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,8 +4,11 @@ All notable changes to this project will be documented in this file. The format is based on Keep a Changelog and this fork follows Semantic Versioning for tagged releases. ## Unreleased +### Breaking +- Rename the Go module to `github.com/threshold-network/threshold-common`. Consumers must migrate imports, generator invocations, and module requirements together; see [MIGRATION.md](MIGRATION.md). Existing tags retain their original module identity. + ### Added -- Release guide and initial changelog stub for the fork of `keep-core/keep-common`. +- Release guide and initial changelog stub for the fork of `keep-network/keep-common`. ### Changed - Bump minimum Go toolchain to 1.26.8 to include standard library security fixes; CI and releases read this version from `go.mod`. diff --git a/CONTRIBUTING.adoc b/CONTRIBUTING.adoc index 1856dea..c5401bd 100644 --- a/CONTRIBUTING.adoc +++ b/CONTRIBUTING.adoc @@ -9,10 +9,10 @@ to this document in a pull request. == Getting started -1. Fork https://github.com/keep-network/keep-common[`keep-network/keep-common`] +1. Fork https://github.com/threshold-network/threshold-common[`threshold-network/threshold-common`] 2. Clone your fork 3. Follow the -https://github.com/keep-network/keep-common/blob/main/README.adoc[installation +https://github.com/threshold-network/threshold-common/blob/main/README.adoc[installation steps] in the README. 4. Enable https://help.github.com/en/articles/about-commit-signature-verification[commit @@ -26,6 +26,6 @@ unit tests for new features) === Continuous Integration -Keep uses +Threshold uses https://docs.github.com/en/actions/learn-github-actions/understanding-github-actions[Github Actions] for continuous integration. All workflows must be green to merge a PR. diff --git a/MIGRATION.md b/MIGRATION.md new file mode 100644 index 0000000..99447ae --- /dev/null +++ b/MIGRATION.md @@ -0,0 +1,87 @@ +# Migrating to threshold-common + +The new repository and Go module are +`github.com/threshold-network/threshold-common`. Package names and exported APIs +are unchanged by the rebrand, but import paths are part of Go package identity. +Update an application's complete dependency graph consistently. + +There is one root Go module in this repository, including the command-line code +generators. There is no npm, Python, Rust, or container publication configured +here. GitHub releases are published by `.github/workflows/release.yml`. + +## Release order + +1. Review and test the module/import/template changes while the repository is + still named `threshold-network/keep-common`. +2. An administrator renames that repository to `threshold-common`. Coordinate + this with merging the rebrand; the new module cannot be fetched from its new + location before the repository exists there. Verify repository integrations, + branch protections, scheduled jobs, and release permissions after the rename. +3. Update local remotes, badges, and external automation. Preserve GitHub's old + repository redirect: do not create another `threshold-network/keep-common` + repository. Keep all historical tags unchanged. +4. Publish the first new-path release (planned `v1.8.0`) using [RELEASE.md](RELEASE.md). + Validate a clean external download through the Go proxy/checksum database and + directly from GitHub before advancing consumers. +5. Finalize and merge downstream PRs, including `go.mod`, `go.sum`, generated + bindings, and generator invocations. An unreleased version or a local testing + replacement must not be merged into a consumer's release branch. + +GitHub redirects repository URLs, but that does not change the `module` +declaration in a tagged commit. Old tags still declare +`github.com/keep-network/keep-common`; they are not releases of the new module. +The original upstream `keep-network/keep-common` is a separate repository, not +an alias for this Threshold fork. Do not redirect its historical issue links to +this repository. + +## Consumer changes + +- Replace `github.com/keep-network/keep-common` imports and generator commands + with `github.com/threshold-network/threshold-common`. +- Remove any replacement such as + `github.com/keep-network/keep-common => github.com/threshold-network/keep-common`. +- Require the published new-path release directly. Run `go mod tidy` to generate + authentic checksums; do not rename existing `go.sum` entries by hand. +- Regenerate contract/command bindings from their ABI inputs with the renamed + generator. Update `.go.tmpl` sources and their embedded Go templates together. +- Verify `go list -m all` and `go list -deps ./...` contain no unintended old + common module. A mixed graph can contain distinct named Go types even when + source declarations match. A `replace` in this library's `go.mod` would not + propagate to consumers and is not a compatibility solution. +- Match the minimum Go version in this module's `go.mod` (currently 1.26.8) in + consumer builds, CI, and Docker builders. Account for the existing dependency + upgrade to go-ethereum 1.17.3 when moving from an older common release. + +For pre-release testing, use a temporary `go.work` or an uncommitted local +replacement pointing to the reviewed common checkout. This validates source +compatibility only; it does not validate the future published version or its +checksums. Remove the testing override and repeat validation after publication. + +## Downstream baseline + +The migration baseline is `threshold-network/keep-core` **dev**, the release +candidate that is expected to merge to main before this rename is actioned. +As verified on 2026-09-16 at `a90ce1bf0738a35e4e3881f634f07520c2b8529e`: + +- [PR #4327](https://github.com/threshold-network/keep-core/pull/4327) absorbed + both runtime packages and generators into keep-core. `go.mod`, `go.sum`, + imports, and generator invocations no longer depend on this repository. +- The sole remaining `keep-common` reference is a link to original upstream + issue #117 in the tBTC generator Makefile. It describes a historical ABI + workaround and should stay unchanged. +- [PR #4256](https://github.com/threshold-network/keep-core/pull/4256) tracks the + release to main. Verify it has landed before the cutover. The older main + branch still uses a replacement at `v1.7.1-tlabs.0`; do not reintroduce that + external dependency into dev just to rename it. + +Search maintained branches, private build tooling, and external consumers before +closing the cutover issue: GitHub code search primarily covers default branches +and is not proof that every consumer has been found. Consumers of the original +upstream or of another organization's fork are not automatically consumers of +this Threshold fork. Historical release snapshots should retain their pins +unless their owners explicitly choose to migrate them. + +## References + +- [Go module paths and replacement rules](https://go.dev/ref/mod) +- [GitHub repository rename behavior](https://docs.github.com/en/repositories/creating-and-managing-repositories/renaming-a-repository) diff --git a/README.adoc b/README.adoc index 6862a75..2d983ff 100644 --- a/README.adoc +++ b/README.adoc @@ -1,27 +1,29 @@ -= `keep-common` += `threshold-common` -https://github.com/keep-network/keep-common/actions/workflows/client.yml[image:https://img.shields.io/github/actions/workflow/status/keep-network/keep-common/client.yml?branch=main&event=push&label=Go build[Go build status]] +https://github.com/threshold-network/threshold-common/actions/workflows/client.yml[image:https://img.shields.io/github/actions/workflow/status/threshold-network/threshold-common/client.yml?branch=main&event=push&label=Go build[Go build status]] https://docs.threshold.network[image:https://img.shields.io/badge/docs-website-green.svg[Docs]] https://discord.gg/threshold[image:https://img.shields.io/badge/chat-Discord-5865f2.svg[Chat with us on Discord]] -Common libraries and tools used across Keep repositories. This repository is a -fork of https://github.com/keep-core/keep-common[`keep-core/keep-common`], +Common Go libraries and tools used across Threshold repositories. This repository is a +fork of https://github.com/keep-network/keep-common[`keep-network/keep-common`], continuing independently from the upstream `v1.7.0` tag. See link:RELEASE.md[Release guide] and link:CHANGELOG.md[Changelog] for versioning, -tagging, and history. +tagging, and history. See link:MIGRATION.md[Migration guide] for the +`github.com/threshold-network/threshold-common` module path and coordinated +repository rename. == Getting started ``` go mod tidy -go generate ./.../gen +go generate ./... go test ./... ``` == Toolchain & CI -- Go: 1.26.8 or newer (CI uses `actions/setup-go@v6` with the version from `go.mod` and module cache). +- Go: 1.26.8 or newer (CI uses `actions/setup-go@v7` with the version from `go.mod` and module cache). - Checks: `go generate` (enforced clean), `go vet`, `go build`, `go test` via `gotestsum`. - Security: `govulncheck` (blocking in CI and releases), `gosec` pinned version. - Lint: `golint` installed via `go install`. @@ -32,12 +34,12 @@ See link:RELEASE.md[Release guide] for versioning, tagging, and publishing steps == Directory structure -The directory structure used in the `keep-common` repository is the same as -used on other Keep repositories, and very similar to that used in other Go +The directory structure used in the `threshold-common` repository is the same as +used on other Threshold repositories, and very similar to that used in other Go projects: ``` -keep-common/ +threshold-common/ tools/ <1> generators/ <2> pkg/ <3> @@ -49,7 +51,7 @@ keep-common/ relay/ relay.go, *.go ``` -<1> Keep tools have categorized directories here, which are typically Go +<1> Threshold tools have categorized directories here, which are typically Go commands that can be used from other repositories. <2> Code generators in particular live in this subtree. <3> All additional Go packages live in `pkg/`. @@ -67,7 +69,7 @@ keep-common/ * Clone this repo * Install Go v1.26.8 or newer -* Generate go files: `$ go generate ./.../gen` +* Generate go files: `$ go generate ./...` * Build the project: `$ go build ./...` * Run tests: `$ go test ./...` diff --git a/RELEASE.md b/RELEASE.md index 41af3ad..f3cc4a9 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -1,19 +1,41 @@ # Release Guide -Process for publishing tagged Go module releases for this fork of `keep-common`. +Publish tagged releases of the `github.com/threshold-network/threshold-common` +Go module. This repository continues the history of `keep-common`; historical +tags keep their original module declarations and checksums. ## Versioning -1) Use SemVer tags on `main`: `vX.Y.Z` when matching upstream versions; append `-tlabs.N` for fork-only releases (increment `N` for subsequent fork tags at the same base version). -2) Latest known upstream tag is `v1.7.0` from https://github.com/keep-network/keep-common (tracked via git tags). Upstream is unmaintained, so future releases proceed independently on this fork. -## Pre-release Checklist -1) Sync with upstream: pull the latest upstream tag/commit, resolve conflicts, and ensure CI is green. -2) Generators: `go generate ./.../gen`; verify the worktree is clean afterward. -3) Module sanity: `go mod tidy` (expect no diff) and `go list ./...` to confirm dependencies and packages resolve. -4) Quality gates: `go vet ./...`, `go test ./...`, and `govulncheck ./...` using the Go version in `go.mod`. Install the pinned scanner with `go install golang.org/x/vuln/cmd/govulncheck@v1.8.0`; add `go test -race ./...` for concurrency-heavy changes. -5) Changelog: update `CHANGELOG.md` with Added/Changed/Fixed/Breaking notes and mention the upstream commit/tag you synced. +Use immutable SemVer tags on `main`. The first release under the new module path +is planned as `v1.8.0`, after the repository rename and the checks in +[MIGRATION.md](MIGRATION.md). Confirm that the tag is unused before publishing. +Do not move or reuse the inherited `v1.7.0` or `v1.7.1-tlabs.*` tags. The old +`-tlabs.N` suffix records the fork's earlier releases; it is not required for +new Threshold releases. -## Tagging & Publishing -1) Tag: `git tag -a vX.Y.Z -m "Release vX.Y.Z"` (or `vX.Y.Z-tlabs.N` for fork-specific releases). -2) Push tag: `git push origin vX.Y.Z[-tlabs.N]`. -3) CI: pushing a `v*` tag triggers the release workflow to regenerate code, run vet/tests and blocking vulnerability checks, and publish a GitHub release with a placeholder body referencing `CHANGELOG.md`. Edit the GitHub release afterward to paste the changelog excerpt and upstream baseline notes. +## Pre-release checklist + +1. Complete the coordinated repository/module cutover in [MIGRATION.md](MIGRATION.md). +2. Run `go generate ./...` and verify `git diff --exit-code`. This includes the + generator templates themselves, as well as the promise fixtures. +3. Run `go mod tidy -diff` and `go list ./...`. +4. Run `go vet ./...`, `go build ./...`, `go test ./...`, and `govulncheck ./...` + using the Go version in `go.mod`. Install the pinned scanner with + `go install golang.org/x/vuln/cmd/govulncheck@v1.8.0`. Add `go test -race ./...` + for concurrency changes. +5. Move the appropriate `CHANGELOG.md` entries into the release section, + explicitly documenting the new module path and consumer migration. + +## Tagging and publishing + +1. From the reviewed commit on `main`, create an annotated `vX.Y.Z` tag and push + that tag to the renamed repository. +2. The `v*` tag workflow regenerates code, runs vet/build/tests and vulnerability + checks, and publishes a GitHub release. Replace its placeholder body with the + changelog excerpt and migration link. +3. In a fresh module outside this checkout, run + `go get github.com/threshold-network/threshold-common@vX.Y.Z` and verify + `go list -m all`. Repeat with the default Go proxy/checksum database and with + `GOPROXY=direct` to check both distribution paths. +4. Finalize downstream version pins and checksums only after the release is + resolvable. Complete their builds and generator checks before merging. diff --git a/go.mod b/go.mod index c082339..69d2ba3 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/keep-network/keep-common +module github.com/threshold-network/threshold-common go 1.26.8 diff --git a/pkg/chain/ethereum/balance_monitor.go b/pkg/chain/ethereum/balance_monitor.go index b481cad..a28424b 100644 --- a/pkg/chain/ethereum/balance_monitor.go +++ b/pkg/chain/ethereum/balance_monitor.go @@ -5,7 +5,7 @@ import ( "fmt" "time" - "github.com/keep-network/keep-common/pkg/wrappers" + "github.com/threshold-network/threshold-common/pkg/wrappers" ) // BalanceSource provides a balance info for the given address. diff --git a/pkg/chain/ethereum/ethutil/adapter.go b/pkg/chain/ethereum/ethutil/adapter.go index d072766..cf3ce56 100644 --- a/pkg/chain/ethereum/ethutil/adapter.go +++ b/pkg/chain/ethereum/ethutil/adapter.go @@ -7,7 +7,7 @@ import ( "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core/types" - chainEthereum "github.com/keep-network/keep-common/pkg/chain/ethereum" + chainEthereum "github.com/threshold-network/threshold-common/pkg/chain/ethereum" ) type ethereumAdapter struct { diff --git a/pkg/chain/ethereum/ethutil/adapter_test.go b/pkg/chain/ethereum/ethutil/adapter_test.go index 8678b0f..f28f2b8 100644 --- a/pkg/chain/ethereum/ethutil/adapter_test.go +++ b/pkg/chain/ethereum/ethutil/adapter_test.go @@ -12,7 +12,7 @@ import ( "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core/types" - chainEthereum "github.com/keep-network/keep-common/pkg/chain/ethereum" + chainEthereum "github.com/threshold-network/threshold-common/pkg/chain/ethereum" ) func TestEthereumAdapter_HeaderByNumber(t *testing.T) { diff --git a/pkg/chain/ethereum/ethutil/balance_monitor.go b/pkg/chain/ethereum/ethutil/balance_monitor.go index 551e898..6ea8bfe 100644 --- a/pkg/chain/ethereum/ethutil/balance_monitor.go +++ b/pkg/chain/ethereum/ethutil/balance_monitor.go @@ -5,7 +5,7 @@ import ( "time" "github.com/ethereum/go-ethereum/common" - "github.com/keep-network/keep-common/pkg/chain/ethereum" + "github.com/threshold-network/threshold-common/pkg/chain/ethereum" ) // BalanceSource provides a balance info for the given address. diff --git a/pkg/chain/ethereum/ethutil/error_resolver_test.go b/pkg/chain/ethereum/ethutil/error_resolver_test.go index e166a9e..6ca53df 100644 --- a/pkg/chain/ethereum/ethutil/error_resolver_test.go +++ b/pkg/chain/ethereum/ethutil/error_resolver_test.go @@ -8,7 +8,7 @@ import ( "strings" "testing" - "github.com/keep-network/keep-common/pkg/chain/ethereum/ethutil" + "github.com/threshold-network/threshold-common/pkg/chain/ethereum/ethutil" "github.com/ethereum/go-ethereum" "github.com/ethereum/go-ethereum/accounts/abi" diff --git a/pkg/chain/ethereum/ethutil/ethutil.go b/pkg/chain/ethereum/ethutil/ethutil.go index 2887f40..0a77108 100644 --- a/pkg/chain/ethereum/ethutil/ethutil.go +++ b/pkg/chain/ethereum/ethutil/ethutil.go @@ -8,7 +8,7 @@ import ( "io/ioutil" "math/big" - chainEthereum "github.com/keep-network/keep-common/pkg/chain/ethereum" + chainEthereum "github.com/threshold-network/threshold-common/pkg/chain/ethereum" "github.com/ipfs/go-log" diff --git a/pkg/chain/ethereum/ethutil/ethutil_test.go b/pkg/chain/ethereum/ethutil/ethutil_test.go index 99e3714..e81cbec 100644 --- a/pkg/chain/ethereum/ethutil/ethutil_test.go +++ b/pkg/chain/ethereum/ethutil/ethutil_test.go @@ -5,7 +5,7 @@ import ( "testing" "github.com/ethereum/go-ethereum/common" - "github.com/keep-network/keep-common/pkg/chain/ethereum/ethutil" + "github.com/threshold-network/threshold-common/pkg/chain/ethereum/ethutil" ) func TestKeyFileDecryption(t *testing.T) { diff --git a/pkg/chain/ethereum/ethutil/mining_waiter.go b/pkg/chain/ethereum/ethutil/mining_waiter.go index a38761a..7bb4d2a 100644 --- a/pkg/chain/ethereum/ethutil/mining_waiter.go +++ b/pkg/chain/ethereum/ethutil/mining_waiter.go @@ -8,7 +8,7 @@ import ( "github.com/ethereum/go-ethereum/accounts/abi/bind" "github.com/ethereum/go-ethereum/core/types" - "github.com/keep-network/keep-common/pkg/chain/ethereum" + "github.com/threshold-network/threshold-common/pkg/chain/ethereum" ) var ( diff --git a/pkg/chain/ethereum/ethutil/mining_waiter_test.go b/pkg/chain/ethereum/ethutil/mining_waiter_test.go index e512e37..c192910 100644 --- a/pkg/chain/ethereum/ethutil/mining_waiter_test.go +++ b/pkg/chain/ethereum/ethutil/mining_waiter_test.go @@ -8,7 +8,7 @@ import ( "github.com/ethereum/go-ethereum/accounts/abi/bind" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core/types" - "github.com/keep-network/keep-common/pkg/chain/ethereum" + "github.com/threshold-network/threshold-common/pkg/chain/ethereum" ) var config = ethereum.Config{ diff --git a/pkg/chain/ethereum/ethutil/rate_limiter.go b/pkg/chain/ethereum/ethutil/rate_limiter.go index 89d8321..9b3dd97 100644 --- a/pkg/chain/ethereum/ethutil/rate_limiter.go +++ b/pkg/chain/ethereum/ethutil/rate_limiter.go @@ -8,7 +8,7 @@ import ( "github.com/ethereum/go-ethereum" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core/types" - "github.com/keep-network/keep-common/pkg/rate" + "github.com/threshold-network/threshold-common/pkg/rate" ) type rateLimiter struct { diff --git a/pkg/chain/ethereum/ethutil/rate_limiter_test.go b/pkg/chain/ethereum/ethutil/rate_limiter_test.go index a3bc792..d16292d 100644 --- a/pkg/chain/ethereum/ethutil/rate_limiter_test.go +++ b/pkg/chain/ethereum/ethutil/rate_limiter_test.go @@ -11,7 +11,7 @@ import ( "github.com/ethereum/go-ethereum" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core/types" - "github.com/keep-network/keep-common/pkg/rate" + "github.com/threshold-network/threshold-common/pkg/rate" ) func TestRateLimiter(t *testing.T) { diff --git a/pkg/cmd/cmd.go b/pkg/cmd/cmd.go index 728ed63..d7bac73 100644 --- a/pkg/cmd/cmd.go +++ b/pkg/cmd/cmd.go @@ -7,8 +7,8 @@ import ( "math/big" "github.com/ethereum/go-ethereum/common" - "github.com/keep-network/keep-common/pkg/chain/ethereum" - "github.com/keep-network/keep-common/pkg/cmd/flag" + "github.com/threshold-network/threshold-common/pkg/chain/ethereum" + "github.com/threshold-network/threshold-common/pkg/cmd/flag" "github.com/spf13/cobra" ) diff --git a/pkg/cmd/flag/flag_wei.go b/pkg/cmd/flag/flag_wei.go index 05e246f..1274397 100644 --- a/pkg/cmd/flag/flag_wei.go +++ b/pkg/cmd/flag/flag_wei.go @@ -1,7 +1,7 @@ package flag import ( - "github.com/keep-network/keep-common/pkg/chain/ethereum" + "github.com/threshold-network/threshold-common/pkg/chain/ethereum" "github.com/spf13/pflag" ) diff --git a/pkg/cmd/flag/flag_wei_test.go b/pkg/cmd/flag/flag_wei_test.go index bfadce0..e87cae3 100644 --- a/pkg/cmd/flag/flag_wei_test.go +++ b/pkg/cmd/flag/flag_wei_test.go @@ -5,7 +5,7 @@ import ( "math/big" "testing" - "github.com/keep-network/keep-common/pkg/chain/ethereum" + "github.com/threshold-network/threshold-common/pkg/chain/ethereum" pflag "github.com/spf13/pflag" ) diff --git a/pkg/persistence/encrypted_persistence.go b/pkg/persistence/encrypted_persistence.go index c21535b..87e37fb 100644 --- a/pkg/persistence/encrypted_persistence.go +++ b/pkg/persistence/encrypted_persistence.go @@ -3,7 +3,7 @@ package persistence import ( "crypto/sha256" - "github.com/keep-network/keep-common/pkg/encryption" + "github.com/threshold-network/threshold-common/pkg/encryption" ) // KeyLength represents the byte size of the key. diff --git a/pkg/persistence/encrypted_persistence_test.go b/pkg/persistence/encrypted_persistence_test.go index 2c08437..a0fea48 100644 --- a/pkg/persistence/encrypted_persistence_test.go +++ b/pkg/persistence/encrypted_persistence_test.go @@ -7,7 +7,7 @@ import ( "crypto/sha256" - "github.com/keep-network/keep-common/pkg/encryption" + "github.com/threshold-network/threshold-common/pkg/encryption" ) const accountPassword = "grzeski" diff --git a/tools/generators/ethereum/command.go.tmpl b/tools/generators/ethereum/command.go.tmpl index 483b113..758f985 100644 --- a/tools/generators/ethereum/command.go.tmpl +++ b/tools/generators/ethereum/command.go.tmpl @@ -12,7 +12,7 @@ import ( "{{.HostChainModule}}/ethclient" chainutil "{{.ChainUtilPackage}}" - "github.com/keep-network/keep-common/pkg/cmd" + "github.com/threshold-network/threshold-common/pkg/cmd" "github.com/spf13/cobra" ) diff --git a/tools/generators/ethereum/command_template_content.go b/tools/generators/ethereum/command_template_content.go index 5c521e9..48dd039 100644 --- a/tools/generators/ethereum/command_template_content.go +++ b/tools/generators/ethereum/command_template_content.go @@ -15,7 +15,7 @@ import ( "{{.HostChainModule}}/ethclient" chainutil "{{.ChainUtilPackage}}" - "github.com/keep-network/keep-common/pkg/cmd" + "github.com/threshold-network/threshold-common/pkg/cmd" "github.com/spf13/cobra" ) diff --git a/tools/generators/ethereum/contract.go b/tools/generators/ethereum/contract.go index 80cff66..a48b4c8 100644 --- a/tools/generators/ethereum/contract.go +++ b/tools/generators/ethereum/contract.go @@ -1,8 +1,8 @@ -//go:generate go run github.com/keep-network/keep-common/tools/generators/template contract_const_methods.go.tmpl contract_const_methods_template_content.go -//go:generate go run github.com/keep-network/keep-common/tools/generators/template contract_non_const_methods.go.tmpl contract_non_const_methods_template_content.go -//go:generate go run github.com/keep-network/keep-common/tools/generators/template contract_events.go.tmpl contract_events_template_content.go -//go:generate go run github.com/keep-network/keep-common/tools/generators/template contract.go.tmpl contract_template_content.go -//go:generate go run github.com/keep-network/keep-common/tools/generators/template command.go.tmpl command_template_content.go +//go:generate go run github.com/threshold-network/threshold-common/tools/generators/template contract_const_methods.go.tmpl contract_const_methods_template_content.go +//go:generate go run github.com/threshold-network/threshold-common/tools/generators/template contract_non_const_methods.go.tmpl contract_non_const_methods_template_content.go +//go:generate go run github.com/threshold-network/threshold-common/tools/generators/template contract_events.go.tmpl contract_events_template_content.go +//go:generate go run github.com/threshold-network/threshold-common/tools/generators/template contract.go.tmpl contract_template_content.go +//go:generate go run github.com/threshold-network/threshold-common/tools/generators/template command.go.tmpl command_template_content.go package main @@ -50,7 +50,7 @@ func main() { chainUtilPackage := flag.String( "chain-util-package", - "github.com/keep-network/keep-common/pkg/chain/ethereum/ethutil", + "github.com/threshold-network/threshold-common/pkg/chain/ethereum/ethutil", "Host chain utils package imported from the generated code", ) diff --git a/tools/generators/ethereum/contract.go.tmpl b/tools/generators/ethereum/contract.go.tmpl index f4b43ed..71e3cdb 100644 --- a/tools/generators/ethereum/contract.go.tmpl +++ b/tools/generators/ethereum/contract.go.tmpl @@ -18,8 +18,8 @@ import ( "github.com/ipfs/go-log" chainutil "{{.ChainUtilPackage}}" - "github.com/keep-network/keep-common/pkg/chain/ethereum" - "github.com/keep-network/keep-common/pkg/subscription" + "github.com/threshold-network/threshold-common/pkg/chain/ethereum" + "github.com/threshold-network/threshold-common/pkg/subscription" ) // Create a package-level logger for this contract. The logger exists at diff --git a/tools/generators/ethereum/contract_template_content.go b/tools/generators/ethereum/contract_template_content.go index 99bcb69..9e1448c 100644 --- a/tools/generators/ethereum/contract_template_content.go +++ b/tools/generators/ethereum/contract_template_content.go @@ -21,8 +21,8 @@ import ( "github.com/ipfs/go-log" chainutil "{{.ChainUtilPackage}}" - "github.com/keep-network/keep-common/pkg/chain/ethereum" - "github.com/keep-network/keep-common/pkg/subscription" + "github.com/threshold-network/threshold-common/pkg/chain/ethereum" + "github.com/threshold-network/threshold-common/pkg/subscription" ) // Create a package-level logger for this contract. The logger exists at diff --git a/tools/generators/promise/gen/bigintpromise_test.go b/tools/generators/promise/gen/bigintpromise_test.go index 8c3f430..4e78547 100644 --- a/tools/generators/promise/gen/bigintpromise_test.go +++ b/tools/generators/promise/gen/bigintpromise_test.go @@ -9,7 +9,7 @@ import ( "testing" "time" - "github.com/keep-network/keep-common/tools/generators/promise/gen/async" + "github.com/threshold-network/threshold-common/tools/generators/promise/gen/async" ) func TestBigIntPromiseOnSuccessFulfill(t *testing.T) { diff --git a/tools/generators/promise/promise.go b/tools/generators/promise/promise.go index 2e0c5ae..8ea3024 100644 --- a/tools/generators/promise/promise.go +++ b/tools/generators/promise/promise.go @@ -1,4 +1,4 @@ -//go:generate go run github.com/keep-network/keep-common/tools/generators/template promise.go.tmpl promise_template_content.go +//go:generate go run github.com/threshold-network/threshold-common/tools/generators/template promise.go.tmpl promise_template_content.go // Code generation execution command requires the package to be set to `main`. package main @@ -11,7 +11,7 @@ import ( "strings" "text/template" - "github.com/keep-network/keep-common/pkg/generate" + "github.com/threshold-network/threshold-common/pkg/generate" ) // Directory to which generated code will be exported by default. diff --git a/tools/generators/template/template.go b/tools/generators/template/template.go index 276a0f7..648ac17 100644 --- a/tools/generators/template/template.go +++ b/tools/generators/template/template.go @@ -8,7 +8,7 @@ import ( "path/filepath" "strings" - "github.com/keep-network/keep-common/pkg/generate" + "github.com/threshold-network/threshold-common/pkg/generate" ) const (