Skip to content

Commit

Permalink
Ln/nifties (#71)
Browse files Browse the repository at this point in the history
* Fix nil pointer error on invalid file upload

* Add lock to seed BitClout and monkey-patch blockchain.com last_price bug

* Trigger rebuild

* Trigger rebuild

* return graylist and blacklist status in get-single-profile request (#55)

* Ln/send seed bitclout (#56)

* retry sending BitClout once in the event of an error after sleeping for 5 seconds. glog the errors

* more glog

* add more details in error logs when send seed bitclout fails

* Don't use the 24h price when fetching from Blockchain.com

* Track last hour of pricing data (#59)

* keep one hours worth of last trade price history and take the max of those values

* add more comments to explain the culling logic

* add datadog logging

* [stable] Release 1.0.4

* Move github actions to buildkite

* Upgrade badgerdb

* [stable] Release 1.0.5

* rename WyreBTCAddress to BuyBitCloutBTCAddress to more accurately reflect this flag's purpose (#61)

* Ln/txn ids only (#62)

* add support for IDsOnly as described in the documentation

* only set the TransactionIdBase58Check in the Transactions slice

* omit transaction response fields if empty

* [stable] Release 1.0.6

* fix IDsOnly mempool transactions for public key (#64)

* add get nfts for user logic

Co-authored-by: maebeam <[email protected]>
Co-authored-by: diamondhands0 <[email protected]>
  • Loading branch information
3 people authored Jul 6, 2021
1 parent bf7f00c commit 8a07d85
Show file tree
Hide file tree
Showing 18 changed files with 594 additions and 292 deletions.
131 changes: 0 additions & 131 deletions .github/workflows/ci.yml

This file was deleted.

8 changes: 5 additions & 3 deletions cmd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ type Config struct {
WyreAccountId string
WyreApiKey string
WyreSecretKey string
WyreBTCAddress string
BuyBitCloutBTCAddress string
BuyBitCloutSeed string
}

Expand Down Expand Up @@ -113,8 +113,10 @@ func LoadConfig(coreConfig *coreCmd.Config) *Config {
config.WyreAccountId = viper.GetString("wyre-account-id")
config.WyreApiKey = viper.GetString("wyre-api-key")
config.WyreSecretKey = viper.GetString("wyre-secret-key")
config.WyreBTCAddress = viper.GetString("wyre-btc-address")
// Seed from which BitClout will be sent for orders placed through Wyre

// BTC address to send all Bitcoin received from Wyre purchases and "Buy With BTC" purchases.
config.BuyBitCloutBTCAddress = viper.GetString("buy-bitclout-btc-address")
// Seed from which BitClout will be sent for orders placed through Wyre and "Buy With BTC" purchases"
config.BuyBitCloutSeed = viper.GetString("buy-bitclout-seed")
return &config
}
2 changes: 1 addition & 1 deletion cmd/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func (node *Node) Start() {
node.Config.WyreAccountId,
node.Config.WyreApiKey,
node.Config.WyreSecretKey,
node.Config.WyreBTCAddress,
node.Config.BuyBitCloutBTCAddress,
node.Config.BuyBitCloutSeed,
)
if err != nil {
Expand Down
4 changes: 2 additions & 2 deletions cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ func init() {
runCmd.PersistentFlags().String("wyre-url", "", "Wyre API URL")
runCmd.PersistentFlags().String("wyre-api-key", "", "Wyre API Key")
runCmd.PersistentFlags().String("wyre-secret-key", "", "Wyre Secret Key")
runCmd.PersistentFlags().String("wyre-btc-address", "", "BTC Address for all Wyre Wallet Orders")
runCmd.PersistentFlags().String("buy-bitclout-seed", "", "Seed phrase from which BitClout will be sent for orders placed through Wyre")
runCmd.PersistentFlags().String("buy-bitclout-btc-address", "", "BTC Address for all Wyre Wallet Orders and 'Buy With BTC' purchases")
runCmd.PersistentFlags().String("buy-bitclout-seed", "", "Seed phrase from which BitClout will be sent for orders placed through Wyre and 'Buy With BTC' purchases")
runCmd.PersistentFlags().VisitAll(func(flag *pflag.Flag) {
viper.BindPFlag(flag.Name, flag)
})
Expand Down
5 changes: 3 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ require (
github.com/bitclout/core v0.0.0-00010101000000-000000000000
github.com/btcsuite/btcd v0.21.0-beta
github.com/btcsuite/btcutil v1.0.2
github.com/dgraph-io/badger/v3 v3.2011.1
github.com/dgraph-io/badger/v3 v3.2103.0
github.com/dgrijalva/jwt-go/v4 v4.0.0-preview1
github.com/fatih/structs v1.1.0
github.com/golang/glog v0.0.0-20210429001901-424d2337a529
github.com/gorilla/mux v1.8.0
github.com/h2non/bimg v1.1.5
github.com/kevinburke/rest v0.0.0-20210506044642-5611499aa33c // indirect
github.com/kevinburke/twilio-go v0.0.0-20210327194925-1623146bcf73
github.com/laser/go-merkle-tree v0.0.0-20180821204614-16c2f6ea4444
github.com/mitchellh/go-homedir v1.1.0
github.com/montanaflynn/stats v0.0.0-20171201202039-1bf9dbcd8cbe
github.com/nyaruka/phonenumbers v1.0.69
Expand All @@ -32,6 +32,7 @@ require (
github.com/spf13/pflag v1.0.5
github.com/spf13/viper v1.7.1
github.com/stretchr/testify v1.7.0
github.com/ttacon/libphonenumber v1.2.1 // indirect
github.com/tyler-smith/go-bip39 v1.1.0
golang.org/x/crypto v0.0.0-20210513164829-c07d793c2f9a // indirect
google.golang.org/api v0.46.0
Expand Down
Loading

0 comments on commit 8a07d85

Please sign in to comment.