From 51025c215f53036454c2f098b4aa528519c8d4b3 Mon Sep 17 00:00:00 2001 From: JoeGruff Date: Thu, 25 Apr 2024 11:13:28 +0900 Subject: [PATCH] multi: Change to decred repo. --- .github/workflows/build.yml | 56 ------------------------------------- asset/dcr/loader.go | 2 +- asset/dcr/log.go | 2 +- asset/dcr/utils.go | 2 +- asset/dcr/wallet.go | 2 +- cgo/cgo.go | 4 +-- cgo/transactions.go | 2 +- cgo/walletloader.go | 4 +-- go.mod | 2 +- 9 files changed, 10 insertions(+), 66 deletions(-) delete mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index 7a31b37..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,56 +0,0 @@ -name: Build and Test -on: [push, pull_request] -permissions: - contents: read -jobs: - build-go: - name: Go CI - runs-on: ubuntu-latest - strategy: - matrix: - go: ['1.20', '1.21'] - steps: - - uses: awalsh128/cache-apt-pkgs-action@1850ee53f6e706525805321a3f2f863dcf73c962 #v1.3.0 - with: - packages: git-restore-mtime libgtk-3-dev libwebkit2gtk-4.0-dev - version: 1.0 - - - name: Set up Go - uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe #v4.1.0 - with: - go-version: ${{ matrix.go }} - - - name: Check out source - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac #v4.0.0 - with: - fetch-depth: 0 - # Restore original file modification times for test cache reasons - - name: restore timestamps - run: git restore-mtime - - name: Install Linters - run: "curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.54.2" - - name: Use test and module cache - uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 #v3.3.2 - with: - path: | - ~/.cache/go-build - ~/go/pkg/mod - key: go-test-${{ matrix.go }}-${{ github.sha }} - restore-keys: go-test-${{ matrix.go }} - - - name: Test - env: - GO111MODULE: "on" - run: | - ./run_tests.sh - - lint-docs: - name: Lint Markdown - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac #v4.0.0 - - uses: DavidAnson/markdownlint-cli2-action@3aaa38e446fbd2c288af4291aa0f55d64651050f #v12.0.0 - continue-on-error: true - with: - globs: | - *.md diff --git a/asset/dcr/loader.go b/asset/dcr/loader.go index b469730..9687d8e 100644 --- a/asset/dcr/loader.go +++ b/asset/dcr/loader.go @@ -10,7 +10,7 @@ import ( "decred.org/dcrwallet/v3/wallet" _ "decred.org/dcrwallet/v3/wallet/drivers/bdb" "github.com/decred/dcrd/hdkeychain/v3" - "github.com/itswisdomagain/libwallet/asset" + "github.com/decred/libwallet/asset" ) const ( diff --git a/asset/dcr/log.go b/asset/dcr/log.go index eec9aca..91ab709 100644 --- a/asset/dcr/log.go +++ b/asset/dcr/log.go @@ -11,7 +11,7 @@ import ( "decred.org/dcrwallet/v3/wallet/udb" "github.com/decred/dcrd/connmgr/v3" "github.com/decred/slog" - "github.com/itswisdomagain/libwallet/assetlog" + "github.com/decred/libwallet/assetlog" ) // loggingInited will be set when the log rotator has been initialized. diff --git a/asset/dcr/utils.go b/asset/dcr/utils.go index c8c550b..ce10ecf 100644 --- a/asset/dcr/utils.go +++ b/asset/dcr/utils.go @@ -8,7 +8,7 @@ import ( "decred.org/dcrwallet/v3/wallet" "decred.org/dcrwallet/v3/wallet/udb" "github.com/decred/dcrd/chaincfg/v3" - "github.com/itswisdomagain/libwallet/asset" + "github.com/decred/libwallet/asset" ) func ParseChainParams(network asset.Network) (*chaincfg.Params, error) { diff --git a/asset/dcr/wallet.go b/asset/dcr/wallet.go index 6207aff..e039fc0 100644 --- a/asset/dcr/wallet.go +++ b/asset/dcr/wallet.go @@ -9,7 +9,7 @@ import ( "decred.org/dcrwallet/v3/wallet" "github.com/decred/dcrd/chaincfg/v3" "github.com/decred/slog" - "github.com/itswisdomagain/libwallet/asset" + "github.com/decred/libwallet/asset" ) type mainWallet = wallet.Wallet diff --git a/cgo/cgo.go b/cgo/cgo.go index bbb03ea..542416e 100644 --- a/cgo/cgo.go +++ b/cgo/cgo.go @@ -14,8 +14,8 @@ import ( "sync" "github.com/decred/slog" - "github.com/itswisdomagain/libwallet/asset/dcr" - "github.com/itswisdomagain/libwallet/assetlog" + "github.com/decred/libwallet/asset/dcr" + "github.com/decred/libwallet/assetlog" ) var ( diff --git a/cgo/transactions.go b/cgo/transactions.go index 14f36f0..b520810 100644 --- a/cgo/transactions.go +++ b/cgo/transactions.go @@ -10,7 +10,7 @@ import ( dcrwallet "decred.org/dcrwallet/v3/wallet" "github.com/decred/dcrd/txscript/v4/stdaddr" - "github.com/itswisdomagain/libwallet/asset/dcr" + "github.com/decred/libwallet/asset/dcr" ) const defaultAccount = "default" diff --git a/cgo/walletloader.go b/cgo/walletloader.go index 23b587f..9bc5cd5 100644 --- a/cgo/walletloader.go +++ b/cgo/walletloader.go @@ -8,8 +8,8 @@ import ( "decred.org/dcrdex/client/mnemonic" "github.com/decred/slog" - "github.com/itswisdomagain/libwallet/asset" - "github.com/itswisdomagain/libwallet/asset/dcr" + "github.com/decred/libwallet/asset" + "github.com/decred/libwallet/asset/dcr" ) const emptyJsonObject = "{}" diff --git a/go.mod b/go.mod index a2a643e..6d6abed 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/itswisdomagain/libwallet +module github.com/decred/libwallet require ( decred.org/dcrdex v0.0.0-20240415203145-79c4689fd164