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

Allow preconfigured abi within subscription #18

Merged
merged 1 commit into from
Oct 20, 2022
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
3 changes: 2 additions & 1 deletion controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@ func New(cfg *Config, db *gorm.DB, helpers utils.Utils) (*Controller, error) {
// LoadABIsFromConfig loads all ABIPath and add results to Handler.ABI
func (c *Controller) LoadABIsFromConfig(lsConfig *LsConfig) (err error) {
for _, subscription := range lsConfig.Subscriptions {
if subscription.Handler.Contract == "" {
// if contract is not defined or abi is not nil then do nothing
if subscription.Handler.Contract == "" || subscription.Handler.ABI != nil {
continue
}
// load abi for handler
Expand Down
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@ go 1.17

require (
github.com/axieinfinity/bridge-contracts v0.0.0-20220731110242-d273b578b657
github.com/axieinfinity/ronin-kms-client v0.0.0-20220805072849-960e04981b70
github.com/ethereum/go-ethereum v1.10.21
github.com/kelseyhightower/envconfig v1.4.0
github.com/prometheus/client_golang v1.12.2
github.com/sony/gobreaker v0.5.0
golang.org/x/crypto v0.0.0-20211215153901-e495a2d5b3d3
golang.org/x/text v0.3.7
gorm.io/driver/postgres v1.3.5
gorm.io/driver/sqlite v1.3.2
Expand All @@ -18,7 +21,6 @@ require (
require (
github.com/StackExchange/wmi v1.2.1 // indirect
github.com/VictoriaMetrics/fastcache v1.6.0 // indirect
github.com/axieinfinity/ronin-kms-client v0.0.0-20220805072849-960e04981b70 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/btcsuite/btcd v0.20.1-beta // indirect
github.com/cespare/xxhash/v2 v2.1.2 // indirect
Expand Down Expand Up @@ -66,13 +68,11 @@ require (
github.com/prometheus/tsdb v0.7.1 // indirect
github.com/rjeczalik/notify v0.9.1 // indirect
github.com/shirou/gopsutil v3.21.4-0.20210419000835-c7a38de76ee5+incompatible // indirect
github.com/sony/gobreaker v0.5.0 // indirect
github.com/status-im/keycard-go v0.0.0-20190316090335-8537d3370df4 // indirect
github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 // indirect
github.com/tklauser/go-sysconf v0.3.5 // indirect
github.com/tklauser/numcpus v0.2.2 // indirect
github.com/tyler-smith/go-bip39 v1.0.1-0.20181017060643-dbb3b84ba2ef // indirect
golang.org/x/crypto v0.0.0-20211215153901-e495a2d5b3d3 // indirect
golang.org/x/net v0.0.0-20220607020251-c690dde0001d // indirect
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c // indirect
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a // indirect
Expand Down