Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
chore(BUX-175): replace tonicpow/go-paymail
Browse files Browse the repository at this point in the history
  • Loading branch information
pawellewandowski98 committed Sep 11, 2023
1 parent df98654 commit d01f2fe
Show file tree
Hide file tree
Showing 18 changed files with 29 additions and 57 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ This repository was created using [MrZ's `go-template`](https://github.com/mrz18
- [robfig/cron](https://github.com/robfig/cron)
- [stretchr/testify](https://github.com/stretchr/testify)
- [tonicpow/go-minercraft](https://github.com/tonicpow/go-minercraft)
- [tonicpow/go-paymail](https://github.com/tonicpow/go-paymail)
- [bitcoin-sv/go-paymail](https://github.com/bitcoin-sv/go-paymail)
- [vmihailenco/taskq](https://github.com/vmihailenco/taskq)
</details>

Expand Down
4 changes: 2 additions & 2 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ import (
"github.com/BuxOrg/bux/cluster"
"github.com/BuxOrg/bux/notifications"
"github.com/BuxOrg/bux/taskmanager"
"github.com/bitcoin-sv/go-paymail"
"github.com/bitcoin-sv/go-paymail/server"
"github.com/mrz1836/go-cachestore"
"github.com/mrz1836/go-datastore"
zLogger "github.com/mrz1836/go-logger"
"github.com/newrelic/go-agent/v3/newrelic"
"github.com/tonicpow/go-paymail"
"github.com/tonicpow/go-paymail/server"
)

type (
Expand Down
4 changes: 2 additions & 2 deletions client_internal.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import (
"github.com/BuxOrg/bux/cluster"
"github.com/BuxOrg/bux/notifications"
"github.com/BuxOrg/bux/taskmanager"
"github.com/bitcoin-sv/go-paymail"
"github.com/bitcoin-sv/go-paymail/server"
"github.com/mrz1836/go-cachestore"
"github.com/mrz1836/go-datastore"
"github.com/tonicpow/go-paymail"
"github.com/tonicpow/go-paymail/server"
)

// loadCache will load caching configuration and start the Cachestore client
Expand Down
4 changes: 2 additions & 2 deletions client_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import (
"github.com/BuxOrg/bux/taskmanager"
"github.com/bitcoin-sv/go-broadcast-client/broadcast"
broadcastclient "github.com/bitcoin-sv/go-broadcast-client/broadcast/broadcast-client"
"github.com/bitcoin-sv/go-paymail"
"github.com/bitcoin-sv/go-paymail/server"
"github.com/coocood/freecache"
"github.com/go-redis/redis/v8"
"github.com/mrz1836/go-cache"
Expand All @@ -21,8 +23,6 @@ import (
zLogger "github.com/mrz1836/go-logger"
"github.com/newrelic/go-agent/v3/newrelic"
"github.com/tonicpow/go-minercraft/v2"
"github.com/tonicpow/go-paymail"
"github.com/tonicpow/go-paymail/server"
taskq "github.com/vmihailenco/taskq/v3"
"go.mongodb.org/mongo-driver/mongo"
)
Expand Down
2 changes: 1 addition & 1 deletion client_options_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"github.com/BuxOrg/bux/taskmanager"
"github.com/BuxOrg/bux/tester"
"github.com/BuxOrg/bux/utils"
"github.com/bitcoin-sv/go-paymail"
"github.com/coocood/freecache"
"github.com/go-redis/redis/v8"
"github.com/mrz1836/go-cachestore"
Expand All @@ -19,7 +20,6 @@ import (
"github.com/newrelic/go-agent/v3/newrelic"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/tonicpow/go-paymail"
)

// TestNewRelicOptions will test the method enable()
Expand Down
2 changes: 1 addition & 1 deletion client_paymail.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package bux

import (
"github.com/tonicpow/go-paymail"
"github.com/bitcoin-sv/go-paymail"
)

// PaymailClient will return the Paymail if it exists
Expand Down
2 changes: 1 addition & 1 deletion client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import (
"testing"

"github.com/BuxOrg/bux/tester"
"github.com/bitcoin-sv/go-paymail"
"github.com/mrz1836/go-cachestore"
"github.com/mrz1836/go-datastore"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/tonicpow/go-paymail"
)

// todo: finish unit tests!
Expand Down
13 changes: 2 additions & 11 deletions go.mod

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

27 changes: 4 additions & 23 deletions go.sum

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

2 changes: 1 addition & 1 deletion interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ import (
"github.com/BuxOrg/bux/cluster"
"github.com/BuxOrg/bux/notifications"
"github.com/BuxOrg/bux/taskmanager"
"github.com/bitcoin-sv/go-paymail"
"github.com/libsv/go-bc"
"github.com/mrz1836/go-cachestore"
"github.com/mrz1836/go-datastore"
zLogger "github.com/mrz1836/go-logger"
"github.com/tonicpow/go-paymail"
)

// AccessKeyService is the access key actions
Expand Down
2 changes: 1 addition & 1 deletion model_paymail_addresses.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"errors"

"github.com/BuxOrg/bux/utils"
"github.com/bitcoin-sv/go-paymail"
"github.com/bitcoinschema/go-bitcoin/v2"
"github.com/libsv/go-bk/bip32"
"github.com/mrz1836/go-datastore"
"github.com/tonicpow/go-paymail"
)

// PaymailAddress is an "external model example" - this model is not part of the standard models loaded and runtime
Expand Down
2 changes: 1 addition & 1 deletion model_sync_transactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ import (
"github.com/BuxOrg/bux/chainstate"
"github.com/BuxOrg/bux/notifications"
"github.com/BuxOrg/bux/taskmanager"
"github.com/bitcoin-sv/go-paymail"
"github.com/libsv/go-bt/v2"
"github.com/mrz1836/go-datastore"
customTypes "github.com/mrz1836/go-datastore/custom_types"
"github.com/tonicpow/go-paymail"
)

// SyncTransaction is an object representing the chain-state sync configuration and results for a given transaction
Expand Down
2 changes: 1 addition & 1 deletion model_transaction_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import (
"time"

"github.com/BuxOrg/bux/utils"
"github.com/bitcoin-sv/go-paymail"
magic "github.com/bitcoinschema/go-map"
"github.com/libsv/go-bt/v2/bscript"
"github.com/mrz1836/go-cachestore"
"github.com/tonicpow/go-paymail"
)

// TransactionConfig is the configuration used to start a transaction
Expand Down
2 changes: 1 addition & 1 deletion paymail.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"strings"
"time"

"github.com/bitcoin-sv/go-paymail"
"github.com/mrz1836/go-cachestore"
"github.com/tonicpow/go-paymail"
)

// getCapabilities is a utility function to retrieve capabilities for a Paymail provider
Expand Down
4 changes: 2 additions & 2 deletions paymail_mocks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package bux
import (
"context"

"github.com/tonicpow/go-paymail"
"github.com/tonicpow/go-paymail/server"
"github.com/bitcoin-sv/go-paymail"
"github.com/bitcoin-sv/go-paymail/server"
)

// Mock implementation of a service provider
Expand Down
4 changes: 2 additions & 2 deletions paymail_service_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ import (
"time"

"github.com/BuxOrg/bux/utils"
"github.com/bitcoin-sv/go-paymail"
"github.com/bitcoin-sv/go-paymail/server"
"github.com/bitcoinschema/go-bitcoin/v2"
"github.com/libsv/go-bk/bec"
"github.com/libsv/go-bt/v2"
"github.com/mrz1836/go-datastore"
customTypes "github.com/mrz1836/go-datastore/custom_types"
"github.com/tonicpow/go-paymail"
"github.com/tonicpow/go-paymail/server"
)

// PaymailDefaultServiceProvider is an interface for overriding the paymail actions in go-paymail/server
Expand Down
4 changes: 2 additions & 2 deletions paymail_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ import (
"github.com/BuxOrg/bux/chainstate"
"github.com/BuxOrg/bux/taskmanager"
xtester "github.com/BuxOrg/bux/tester"
"github.com/bitcoin-sv/go-paymail"
"github.com/bitcoin-sv/go-paymail/server"
"github.com/jarcoal/httpmock"
"github.com/mrz1836/go-cache"
"github.com/mrz1836/go-datastore"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/tonicpow/go-paymail"
"github.com/tonicpow/go-paymail/server"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions tester/paymail.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"net"
"time"

"github.com/tonicpow/go-paymail"
"github.com/tonicpow/go-paymail/tester"
"github.com/bitcoin-sv/go-paymail"
"github.com/bitcoin-sv/go-paymail/tester"
)

// PaymailMockClient will return a client for testing purposes
Expand Down

0 comments on commit d01f2fe

Please sign in to comment.