From e45de8bad28609b75f28821629add3f21f440f88 Mon Sep 17 00:00:00 2001 From: hacpy Date: Tue, 23 Nov 2021 17:49:03 +0800 Subject: [PATCH] Add new balances events --- expand/extra/extra.go | 1 - expand/extra/origin.go | 19 +++++++++++-------- go.mod | 2 +- go.sum | 2 ++ 4 files changed, 14 insertions(+), 10 deletions(-) diff --git a/expand/extra/extra.go b/expand/extra/extra.go index 6d2fea4..57d0325 100644 --- a/expand/extra/extra.go +++ b/expand/extra/extra.go @@ -11,7 +11,6 @@ type ExtraEvents struct { type ExtraEventRecord struct { // Fix some events - Balances_ReserveRepatriated []gsrpcTypes.EventBalancesReserveRepatriated System_Remarked []Remarked Scheduler_Dispatched []SchedulerDispatched Scheduler_Scheduled []SchedulerScheduled diff --git a/expand/extra/origin.go b/expand/extra/origin.go index 21112a1..54fe83a 100644 --- a/expand/extra/origin.go +++ b/expand/extra/origin.go @@ -16,14 +16,17 @@ type OriginEvents struct { type OriginEventRecord struct { // refer origin - Claims_Claimed []gsrpcTypes.EventClaimsClaimed //nolint:stylecheck,golint - Balances_Endowed []gsrpcTypes.EventBalancesEndowed //nolint:stylecheck,golint - Balances_DustLost []gsrpcTypes.EventBalancesDustLost //nolint:stylecheck,golint - Balances_Transfer []gsrpcTypes.EventBalancesTransfer //nolint:stylecheck,golint - Balances_BalanceSet []gsrpcTypes.EventBalancesBalanceSet //nolint:stylecheck,golint - Balances_Deposit []gsrpcTypes.EventBalancesDeposit //nolint:stylecheck,golint - Balances_Reserved []gsrpcTypes.EventBalancesReserved //nolint:stylecheck,golint - Balances_Unreserved []gsrpcTypes.EventBalancesUnreserved //nolint:stylecheck,golint + Claims_Claimed []gsrpcTypes.EventClaimsClaimed //nolint:stylecheck,golint + Balances_Endowed []gsrpcTypes.EventBalancesEndowed //nolint:stylecheck,golint + Balances_DustLost []gsrpcTypes.EventBalancesDustLost //nolint:stylecheck,golint + Balances_Transfer []gsrpcTypes.EventBalancesTransfer //nolint:stylecheck,golint + Balances_BalanceSet []gsrpcTypes.EventBalancesBalanceSet //nolint:stylecheck,golint + Balances_Reserved []gsrpcTypes.EventBalancesReserved //nolint:stylecheck,golint + Balances_Unreserved []gsrpcTypes.EventBalancesUnreserved //nolint:stylecheck,golint + Balances_ReserveRepatriated []gsrpcTypes.EventBalancesReserveRepatriated + Balances_Deposit []gsrpcTypes.EventBalancesDeposit //nolint:stylecheck,golint + Balances_Withdraw []gsrpcTypes.EventBalancesWithdraw + Balances_Slashed []gsrpcTypes.EventBalancesSlashed //Balances_ReservedRepatriated []gsrpcTypes.EventBalancesReserveRepatriated //nolint:stylecheck,golint Grandpa_NewAuthorities []gsrpcTypes.EventGrandpaNewAuthorities //nolint:stylecheck,golint Grandpa_Paused []gsrpcTypes.EventGrandpaPaused //nolint:stylecheck,golint diff --git a/go.mod b/go.mod index 12d998c..639b9df 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/Platdot-Network/substrate-go go 1.15 require ( - github.com/Platdot-Network/go-substrate-rpc-client/v3 v3.0.9 + github.com/Platdot-Network/go-substrate-rpc-client/v3 v3.0.10 github.com/ethereum/go-ethereum v1.10.12 github.com/hacpy/chainbridge-substrate-events v1.0.0 github.com/huandu/xstrings v1.3.2 diff --git a/go.sum b/go.sum index bb45f43..c3f0300 100644 --- a/go.sum +++ b/go.sum @@ -40,6 +40,8 @@ github.com/ChainSafe/go-schnorrkel v0.0.0-20210318173838-ccb5cd955283 h1:bCAjrlK github.com/ChainSafe/go-schnorrkel v0.0.0-20210318173838-ccb5cd955283/go.mod h1:URdX5+vg25ts3aCh8H5IFZybJYKWhJHYMTnf+ULtoC4= github.com/DATA-DOG/go-sqlmock v1.3.3/go.mod h1:f/Ixk793poVmq4qj/V1dPUg2JEAKC73Q5eFN3EC/SaM= github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= +github.com/Platdot-Network/go-substrate-rpc-client/v3 v3.0.10 h1:QP1DjI/sGt05qcdE56pClRdYR2FIM/2JsAkZeR24b50= +github.com/Platdot-Network/go-substrate-rpc-client/v3 v3.0.10/go.mod h1:R1XC66btlxDwmmtIiqIv9UZuw9xGwznsKfuauLQZV80= github.com/StackExchange/wmi v0.0.0-20180116203802-5d049714c4a6 h1:fLjPD/aNc3UIOA6tDi6QXUemppXK3P9BI7mr2hd6gx8= github.com/StackExchange/wmi v0.0.0-20180116203802-5d049714c4a6/go.mod h1:3eOhrUMpNV+6aFIbp5/iudMxNCF27Vw2OZgy4xEx0Fg= github.com/VictoriaMetrics/fastcache v1.5.7/go.mod h1:ptDBkNMQI4RtmVo8VS/XwRY6RoTu1dAWCbrk+6WsEM8=