Skip to content

Commit

Permalink
Bugfix dispatcher panic (#1560)
Browse files Browse the repository at this point in the history
* deps: Update gocelery to e80a61d

* events: Ensure that correct Claims event is used

* events: Remove cent specific events since they are part of chain-custom-types

* test: Check error when creating account IDs

* update cent events

* notification: Use httptest server

* build: Pin ethereum/go-client image to v1.10.17

* deps: Update gsprc lib to v4.0.7

* deps: Update gsrpc lib to v4.0.8

* events: Ensure that the cent chain event is used for Claims

* git: Revert submodule changes

* deps: Update gocelery to 3b07af1b49a6

Co-authored-by: Miguel Hervas <[email protected]>
  • Loading branch information
cdamian and mikiquantum authored Nov 2, 2022
1 parent 6943a93 commit 6bb6598
Show file tree
Hide file tree
Showing 8 changed files with 66 additions and 53 deletions.
19 changes: 4 additions & 15 deletions centchain/events.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package centchain

import (
centEvents "github.com/centrifuge/chain-custom-types"
centEvents "github.com/centrifuge/chain-custom-types/pkg/events"
"github.com/centrifuge/go-substrate-rpc-client/v4/types"
)

Expand Down Expand Up @@ -217,18 +217,7 @@ type cEvents = centEvents.Events
type Events struct {
types.EventRecords
cEvents
ChainBridge_FungibleTransfer []EventFungibleTransfer //nolint:stylecheck,revive
ChainBridge_NonFungibleTransfer []EventNonFungibleTransfer //nolint:stylecheck,revive
ChainBridge_GenericTransfer []EventGenericTransfer //nolint:stylecheck,revive
ChainBridge_ChainWhitelisted []EventChainWhitelisted //nolint:stylecheck,revive
ChainBridge_RelayerAdded []EventRelayerAdded //nolint:stylecheck,revive
ChainBridge_RelayerThresholdChanged []EventRelayerThresholdChanged //nolint:stylecheck,revive
Fees_FeeChanged []EventFeesFeeChanged //nolint:stylecheck,revive
Fees_FeeToAuthor []EventFeesFeeToAuthor //nolint:stylecheck,revive
Fees_FeeToBurn []EventFeesFeeToBurn //nolint:stylecheck,revive
Fees_FeeToTreasury []EventFeesFeeToTreasury //nolint:stylecheck,revive
Registry_RegistryCreated []EventRegistryCreated //nolint:stylecheck,revive
Registry_Mint []EventNFTMint //nolint:stylecheck,revive
Nft_Transferred []EventNFTTransferred //nolint:stylecheck,revive
TransactionPayment_TransactionFeePaid []EventTransactionPaymentTransactionFeePaid //nolint:stylecheck,revive

// Ensure that the centrifuge Claims_Claimed event is used.
Claims_Claimed []centEvents.EventClaimsClaimed //nolint:stylecheck,revive
}
13 changes: 8 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ go 1.18
require (
github.com/Masterminds/semver v1.5.0
github.com/centrifuge/centrifuge-protobufs v0.0.0-20210311165003-6866e980f58c
github.com/centrifuge/chain-custom-types v0.0.0-20220323235722-1cdf9a3ad7f1
github.com/centrifuge/go-substrate-rpc-client/v4 v4.0.1-0.20220323235529-414c4553ce7c
github.com/centrifuge/gocelery/v2 v2.0.0-20210312150236-4ff19a2b741d
github.com/centrifuge/chain-custom-types v0.0.0-20220930191018-30c81a036072
github.com/centrifuge/go-substrate-rpc-client/v4 v4.0.8
github.com/centrifuge/gocelery/v2 v2.0.0-20221101190423-3b07af1b49a6
github.com/centrifuge/precise-proofs v0.0.0-20210311192744-14bb51c630b9
github.com/common-nighthawk/go-figure v0.0.0-20200609044655-c4b36f998cf2
github.com/ethereum/go-ethereum v1.10.16
github.com/ethereum/go-ethereum v1.10.17
github.com/gavv/httpexpect v2.0.0+incompatible
github.com/go-chi/chi v4.1.2+incompatible
github.com/go-chi/render v1.0.1
Expand Down Expand Up @@ -59,6 +59,7 @@ require (
github.com/benbjohnson/clock v1.1.0 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/btcsuite/btcd v0.22.0-beta // indirect
github.com/btcsuite/btcd/btcec/v2 v2.1.2 // indirect
github.com/cespare/xxhash/v2 v2.1.1 // indirect
github.com/cheekybits/genny v1.0.0 // indirect
github.com/containerd/cgroups v0.0.0-20201119153540-4cbc285b3327 // indirect
Expand All @@ -70,6 +71,7 @@ require (
github.com/deckarep/golang-set v1.8.0 // indirect
github.com/decred/base58 v1.0.3 // indirect
github.com/decred/dcrd/crypto/blake256 v1.0.0 // indirect
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1 // indirect
github.com/deepmap/oapi-codegen v1.8.2 // indirect
github.com/docker/go-units v0.4.0 // indirect
github.com/edsrzf/mmap-go v1.0.0 // indirect
Expand All @@ -91,6 +93,7 @@ require (
github.com/go-stack/stack v1.8.1 // indirect
github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0 // indirect
github.com/godbus/dbus/v5 v5.0.3 // indirect
github.com/golang-jwt/jwt/v4 v4.3.0 // indirect
github.com/golang/snappy v0.0.4 // indirect
github.com/google/go-querystring v1.0.0 // indirect
github.com/google/gopacket v1.1.19 // indirect
Expand All @@ -106,7 +109,7 @@ require (
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/holiman/bloomfilter/v2 v2.0.3 // indirect
github.com/holiman/uint256 v1.2.0 // indirect
github.com/huin/goupnp v1.0.2 // indirect
github.com/huin/goupnp v1.0.3-0.20220313090229-ca81a64b4204 // indirect
github.com/imkira/go-interpol v1.1.0 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/influxdata/influxdb v1.8.3 // indirect
Expand Down
Loading

0 comments on commit 6bb6598

Please sign in to comment.