Skip to content

Commit

Permalink
Merge branch 'pr/45' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
nykma committed Nov 25, 2022
2 parents 1c9eda1 + c9552be commit d053f88
Show file tree
Hide file tree
Showing 6 changed files with 475 additions and 43 deletions.
7 changes: 7 additions & 0 deletions config/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ type DBConfig struct {

type PlatformConfig struct {
Twitter TwitterPlatformConfig `json:"twitter"`
Telegram TelegramPlatformConfig `json:"telegram"`
Ethereum EthereumPlatformConfig `json:"ethereum"`
Discord DiscordPlatformConfig `json:"discord"`
}
Expand All @@ -49,6 +50,12 @@ type TwitterPlatformConfig struct {
ConsumerSecret string `json:"consumer_secret"`
}

type TelegramPlatformConfig struct {
ApiID int `json:"api_id"`
ApiHash string `json:"api_hash"`
BotToken string `json:"bot_token"`
}

type EthereumPlatformConfig struct {
RPCServer string `json:"rpc_server"`
}
Expand Down
40 changes: 26 additions & 14 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ require (
github.com/gagliardetto/solana-go v1.4.0
github.com/gin-gonic/gin v1.7.7
github.com/go-resty/resty/v2 v2.7.0
github.com/gotd/td v0.71.0
github.com/mr-tron/base58 v1.2.0
github.com/sirupsen/logrus v1.9.0
github.com/spf13/viper v1.11.0
github.com/wealdtech/go-ens/v3 v3.5.5
)

require (
Expand Down Expand Up @@ -48,6 +50,9 @@ require (
github.com/gagliardetto/binary v0.6.1 // indirect
github.com/gagliardetto/treeout v0.1.4 // indirect
github.com/gin-contrib/sse v0.1.0 // indirect
github.com/go-faster/errors v0.6.1 // indirect
github.com/go-faster/jx v0.40.0 // indirect
github.com/go-faster/xor v0.3.0 // indirect
github.com/go-ole/go-ole v1.2.1 // indirect
github.com/go-playground/locales v0.14.0 // indirect
github.com/go-playground/universal-translator v0.18.0 // indirect
Expand All @@ -58,6 +63,8 @@ require (
github.com/golang/protobuf v1.5.2 // indirect
github.com/google/go-querystring v1.1.0 // indirect
github.com/gorilla/websocket v1.5.0 // indirect
github.com/gotd/ige v0.2.2 // indirect
github.com/gotd/neo v0.1.5 // indirect
github.com/hamba/avro v1.5.6 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/inconshreveable/log15 v0.0.0-20201112154412-8562bdadbbac // indirect
Expand All @@ -73,13 +80,13 @@ require (
github.com/jinzhu/inflection v1.0.0 // indirect
github.com/jinzhu/now v1.1.5 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/klauspost/compress v1.13.6 // indirect
github.com/klauspost/compress v1.15.12 // indirect
github.com/klauspost/cpuid/v2 v2.0.9 // indirect
github.com/leodido/go-urn v1.2.1 // indirect
github.com/logrusorgru/aurora v2.0.3+incompatible // indirect
github.com/magiconair/properties v1.8.6 // indirect
github.com/mattn/go-colorable v0.1.12 // indirect
github.com/mattn/go-isatty v0.0.14 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.16 // indirect
github.com/minio/sha256-simd v1.0.0 // indirect
github.com/mitchellh/go-testing-interface v1.14.1 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
Expand All @@ -96,6 +103,7 @@ require (
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/rjeczalik/notify v0.9.1 // indirect
github.com/segmentio/asm v1.2.0 // indirect
github.com/shirou/gopsutil v3.21.4-0.20210419000835-c7a38de76ee5+incompatible // indirect
github.com/shopspring/decimal v1.3.1 // indirect
github.com/spaolacci/murmur3 v1.1.0 // indirect
Expand All @@ -111,24 +119,28 @@ require (
github.com/tklauser/go-sysconf v0.3.5 // indirect
github.com/tklauser/numcpus v0.2.2 // indirect
github.com/ugorji/go/codec v1.2.7 // indirect
github.com/wealdtech/go-ens/v3 v3.5.5 // indirect
github.com/wealdtech/go-multicodec v1.4.0 // indirect
go.opencensus.io v0.23.0 // indirect
go.uber.org/atomic v1.7.0 // indirect
go.uber.org/multierr v1.6.0 // indirect
go.uber.org/zap v1.16.0 // indirect
golang.org/x/crypto v0.0.0-20220926161630-eccd6366d1be // indirect
golang.org/x/exp v0.0.0-20220921164117-439092de6870 // indirect
golang.org/x/net v0.0.0-20220622184535-263ec571b305 // indirect
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 // indirect
golang.org/x/text v0.3.7 // indirect
go.opentelemetry.io/otel v1.11.1 // indirect
go.opentelemetry.io/otel/trace v1.11.1 // indirect
go.uber.org/atomic v1.10.0 // indirect
go.uber.org/multierr v1.8.0 // indirect
go.uber.org/zap v1.23.0 // indirect
golang.org/x/crypto v0.1.0 // indirect
golang.org/x/exp v0.0.0-20221002003631-540bb7301a08 // indirect
golang.org/x/net v0.1.0 // indirect
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4 // indirect
golang.org/x/term v0.1.0 // indirect
golang.org/x/text v0.4.0 // indirect
google.golang.org/protobuf v1.28.0 // indirect
gopkg.in/ini.v1 v1.66.4 // indirect
gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
gorm.io/driver/mysql v1.3.3 // indirect
lukechampine.com/blake3 v1.1.6 // indirect
nhooyr.io/websocket v1.8.7 // indirect
rsc.io/qr v0.2.0 // indirect
)

require (
Expand All @@ -140,8 +152,8 @@ require (
github.com/google/go-github/v41 v41.0.0
github.com/google/uuid v1.3.0
github.com/samber/lo v1.28.2
github.com/stretchr/testify v1.7.2
golang.org/x/sys v0.0.0-20220926163933-8cfa568d3c25 // indirect
github.com/stretchr/testify v1.8.1
golang.org/x/sys v0.1.0 // indirect
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2
gorm.io/datatypes v1.0.6
gorm.io/driver/postgres v1.3.5
Expand Down
Loading

0 comments on commit d053f88

Please sign in to comment.