Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for arweave transactions #171

Merged
merged 3 commits into from
Feb 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions commentapi/comment.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ type CreateArgs struct {
IsProtected bool `json:"is_protected"`
Amount *float64 `json:"amount"`
DryRun bool `json:"dry_run"`
PaymentTxID *string `json:"payment_tx_id"`
}

// CreateResponse response for the comment.Create rpc call
Expand Down
9 changes: 8 additions & 1 deletion config/config.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package config

import (
"strings"

"github.com/OdyseeTeam/commentron/db"
"github.com/OdyseeTeam/commentron/env"
"github.com/OdyseeTeam/commentron/helper"
Expand All @@ -13,7 +15,7 @@ import (
// SocketyToken token used to communicate with Sockety
var SocketyToken string

//IsTestMode turns off validations for local testing
// IsTestMode turns off validations for local testing
var IsTestMode bool

// InitializeConfiguration inits the base configuration of commentron
Expand Down Expand Up @@ -51,6 +53,11 @@ func initSlack(config *env.Config) {
Channel: slackChannel,
IconEmoji: ":speech_balloon:",
Username: "Commentron",
Filters: []slackrus.Filter{
func(entry *logrus.Entry) bool {
return !strings.Contains(entry.Message, "could not get claim from sdk")
},
},
})
}
}
38 changes: 19 additions & 19 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ require (
github.com/btcsuite/btcd v0.0.0-20190213025234-306aecffea32
github.com/btcsuite/btcutil v0.0.0-20190425235716-9e5f4b9a998d
github.com/caarlos0/env v3.5.0+incompatible
github.com/coreos/go-oidc/v3 v3.11.0
github.com/fatih/color v1.17.0
github.com/coreos/go-oidc/v3 v3.12.0
github.com/fatih/color v1.18.0
github.com/fatih/structs v1.1.0
github.com/friendsofgo/errors v0.9.2
github.com/go-co-op/gocron v1.37.0
github.com/go-sql-driver/mysql v1.8.1
github.com/go-sql-driver/mysql v1.9.0
github.com/gorilla/mux v1.8.1
github.com/gorilla/rpc v1.2.1
github.com/gorilla/websocket v1.5.3
Expand All @@ -27,20 +27,20 @@ require (
github.com/lbryio/ozzo-validation v3.0.3-0.20170512160344-202201e212ec+incompatible
github.com/mitchellh/mapstructure v1.5.0
github.com/pkg/profile v1.7.0
github.com/prometheus/client_golang v1.20.4
github.com/prometheus/client_golang v1.21.0
github.com/rs/cors v1.11.1
github.com/rubenv/sql-migrate v1.7.0
github.com/rubenv/sql-migrate v1.7.1
github.com/sirupsen/logrus v1.9.3
github.com/spf13/cast v1.7.0
github.com/spf13/cobra v1.8.1
github.com/spf13/cast v1.7.1
github.com/spf13/cobra v1.9.1
github.com/spf13/viper v1.19.0
github.com/stretchr/testify v1.9.0
github.com/stretchr/testify v1.10.0
github.com/stripe/stripe-go v70.15.0+incompatible
github.com/volatiletech/null/v8 v8.1.2
github.com/volatiletech/sqlboiler/v4 v4.16.2
github.com/volatiletech/strmangle v0.0.6
github.com/volatiletech/sqlboiler/v4 v4.18.0
github.com/volatiletech/strmangle v0.0.8
github.com/ybbus/jsonrpc/v2 v2.1.7
golang.org/x/sync v0.8.0
golang.org/x/sync v0.11.0
)

require (
Expand All @@ -61,7 +61,7 @@ require (
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/johntdyer/slack-go v0.0.0-20230314151037-c5bf334f9b6e // indirect
github.com/klauspost/compress v1.17.9 // indirect
github.com/klauspost/compress v1.17.11 // indirect
github.com/lbryio/types v0.0.0-20220224142228-73610f6654a6 // indirect
github.com/magiconair/properties v1.8.7 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
Expand All @@ -70,7 +70,7 @@ require (
github.com/pelletier/go-toml/v2 v2.2.2 // indirect
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
github.com/prometheus/client_model v0.6.1 // indirect
github.com/prometheus/common v0.55.0 // indirect
github.com/prometheus/common v0.62.0 // indirect
github.com/prometheus/procfs v0.15.1 // indirect
github.com/robfig/cron/v3 v3.0.1 // indirect
github.com/sagikazarmark/locafero v0.4.0 // indirect
Expand All @@ -79,19 +79,19 @@ require (
github.com/slack-go/slack v0.12.1 // indirect
github.com/sourcegraph/conc v0.3.0 // indirect
github.com/spf13/afero v1.11.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/spf13/pflag v1.0.6 // indirect
github.com/subosito/gotenv v1.6.0 // indirect
github.com/volatiletech/inflect v0.0.1 // indirect
github.com/volatiletech/randomize v0.0.1 // indirect
go.uber.org/atomic v1.10.0 // indirect
go.uber.org/multierr v1.9.0 // indirect
golang.org/x/crypto v0.25.0 // indirect
golang.org/x/crypto v0.31.0 // indirect
golang.org/x/exp v0.0.0-20230905200255-921286631fa9 // indirect
golang.org/x/oauth2 v0.21.0 // indirect
golang.org/x/sys v0.22.0 // indirect
golang.org/x/text v0.16.0 // indirect
golang.org/x/oauth2 v0.24.0 // indirect
golang.org/x/sys v0.28.0 // indirect
golang.org/x/text v0.21.0 // indirect
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
google.golang.org/protobuf v1.34.2 // indirect
google.golang.org/protobuf v1.36.1 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/nullbio/null.v6 v6.0.0-20161116030900-40264a2e6b79 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
Expand Down
Loading