Skip to content

Commit be614e5

Browse files
authored
Add new events + types (#111)
* Revert "Add ExtrinsicSignatureV5 (#68)" This reverts commit 461cf42. * Added new events + types * Add tests * Remove fmt * typo
1 parent c136426 commit be614e5

12 files changed

Lines changed: 303 additions & 22 deletions

go.mod

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ go 1.15
44

55
require (
66
github.com/aristanetworks/goarista v0.0.0-20190712234253-ed1100a1c015 // indirect
7+
github.com/btcsuite/btcutil v1.0.2
78
github.com/davecgh/go-spew v1.1.1
89
github.com/deckarep/golang-set v1.7.1
910
github.com/ethereum/go-ethereum v1.9.3
@@ -13,7 +14,7 @@ require (
1314
github.com/pierrec/xxHash v0.1.5
1415
github.com/rs/cors v1.6.0
1516
github.com/stretchr/testify v1.3.0
16-
golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4
17+
golang.org/x/crypto v0.0.0-20200115085410-6d4e4cb37c7d
1718
golang.org/x/sys v0.0.0-20190712062909-fae7ac547cb7 // indirect
1819
gopkg.in/check.v1 v1.0.0-20200902074654-038fdea0a05b // indirect
1920
gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce

go.sum

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,42 @@
1+
github.com/aead/siphash v1.0.1/go.mod h1:Nywa3cDsYNNK3gaciGTWPwHt0wlpNV15vwmswBAUSII=
12
github.com/aristanetworks/goarista v0.0.0-20190712234253-ed1100a1c015 h1:7ABPr1+uJdqESAdlVevnc/2FJGiC/K3uMg1JiELeF+0=
23
github.com/aristanetworks/goarista v0.0.0-20190712234253-ed1100a1c015/go.mod h1:D/tb0zPVXnP7fmsLZjtdUhSsumbK/ij54UXjjVgMGxQ=
4+
github.com/btcsuite/btcd v0.20.1-beta/go.mod h1:wVuoA8VJLEcwgqHBwHmzLRazpKxTv13Px/pDuV7OomQ=
5+
github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f/go.mod h1:TdznJufoqS23FtqVCzL0ZqgP5MqXbb4fg/WgDys70nA=
6+
github.com/btcsuite/btcutil v0.0.0-20190425235716-9e5f4b9a998d/go.mod h1:+5NJ2+qvTyV9exUAL/rxXi3DcLg2Ts+ymUAY5y4NvMg=
7+
github.com/btcsuite/btcutil v1.0.2 h1:9iZ1Terx9fMIOtq1VrwdqfsATL9MC2l8ZrUY6YZ2uts=
8+
github.com/btcsuite/btcutil v1.0.2/go.mod h1:j9HUFwoQRsZL3V4n+qG+CUnEGHOarIxfC3Le2Yhbcts=
9+
github.com/btcsuite/go-socks v0.0.0-20170105172521-4720035b7bfd/go.mod h1:HHNXQzUsZCxOoE+CPiyCTO6x34Zs86zZUiwtpXoGdtg=
10+
github.com/btcsuite/goleveldb v0.0.0-20160330041536-7834afc9e8cd/go.mod h1:F+uVaaLLH7j4eDXPRvw78tMflu7Ie2bzYOH4Y8rRKBY=
11+
github.com/btcsuite/snappy-go v0.0.0-20151229074030-0bdef8d06723/go.mod h1:8woku9dyThutzjeg+3xrA5iCpBRH8XEEg3lh6TiUghc=
12+
github.com/btcsuite/websocket v0.0.0-20150119174127-31079b680792/go.mod h1:ghJtEyQwv5/p4Mg4C0fgbePVuGr935/5ddU9Z3TmDRY=
13+
github.com/btcsuite/winsvc v1.0.0/go.mod h1:jsenWakMcC0zFBFurPLEAyrnc/teJEM1O46fmI40EZs=
14+
github.com/davecgh/go-spew v0.0.0-20171005155431-ecdeabc65495/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
315
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
416
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
517
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
618
github.com/deckarep/golang-set v1.7.1 h1:SCQV0S6gTtp6itiFrTqI+pfmJ4LN85S1YzhDf9rTHJQ=
719
github.com/deckarep/golang-set v1.7.1/go.mod h1:93vsz/8Wt4joVM7c2AVqh+YRMiUSc14yDtF28KmMOgQ=
820
github.com/ethereum/go-ethereum v1.9.3 h1:v3bE4abkXknLcyWCf4TRFn+Ecmm9thPtfLFvTEQ+1+U=
921
github.com/ethereum/go-ethereum v1.9.3/go.mod h1:PwpWDrCLZrV+tfrhqqF6kPknbISMHaJv9Ln3kPCZLwY=
22+
github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
1023
github.com/go-stack/stack v1.8.0 h1:5SgMzNM5HxrEjV0ww2lTmX6E2Izsfxas4+YHWRs3Lsk=
1124
github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY=
25+
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
1226
github.com/gorilla/websocket v1.4.1 h1:q7AeDBpnBk8AogcD4DSag/Ukw/KV+YhzLj2bP5HvKCM=
1327
github.com/gorilla/websocket v1.4.1/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=
28+
github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU=
29+
github.com/jessevdk/go-flags v0.0.0-20141203071132-1679536dcc89/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI=
30+
github.com/jrick/logrotate v1.0.0/go.mod h1:LNinyqDIJnpAur+b8yyulnQw/wDuN1+BYKlTRt3OuAQ=
31+
github.com/kkdai/bstream v0.0.0-20161212061736-f391b8402d23/go.mod h1:J+Gs4SYgM6CZQHDETBtE9HaSEkGmuNXF86RwHhHUvq4=
1432
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
1533
github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=
1634
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
1735
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e h1:fD57ERR4JtEqsWbfPhv4DMiApHyliiK5xCTNVSPiaAs=
1836
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno=
37+
github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
38+
github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
39+
github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY=
1940
github.com/pierrec/xxHash v0.1.5 h1:n/jBpwTHiER4xYvK3/CdPVnLDPchj8eTJFFLUb4QHBo=
2041
github.com/pierrec/xxHash v0.1.5/go.mod h1:w2waW5Zoa/Wc4Yqe0wgrIYAGKqRMf7czn2HNKXmuL+I=
2142
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
@@ -25,16 +46,26 @@ github.com/rs/cors v1.6.0/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU=
2546
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
2647
github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0Q=
2748
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
49+
golang.org/x/crypto v0.0.0-20170930174604-9419663f5a44/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
2850
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
2951
golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4 h1:HuIa8hRrWRSrqYzx1qI49NNxhdi2PrY7gxVSq1JjLDc=
3052
golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
53+
golang.org/x/crypto v0.0.0-20200115085410-6d4e4cb37c7d h1:2+ZP7EfsZV7Vvmx3TIqSlSzATMkTAKqM14YGFPoSKjI=
54+
golang.org/x/crypto v0.0.0-20200115085410-6d4e4cb37c7d/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
55+
golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
3156
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
57+
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
58+
golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
3259
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
3360
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
3461
golang.org/x/sys v0.0.0-20190712062909-fae7ac547cb7 h1:LepdCS8Gf/MVejFIt8lsiexZATdoGVyp5bcyS+rYoUI=
3562
golang.org/x/sys v0.0.0-20190712062909-fae7ac547cb7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
3663
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
64+
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
3765
gopkg.in/check.v1 v1.0.0-20200902074654-038fdea0a05b h1:QRR6H1YWRnHb4Y/HeNFCTJLFVxaq6wH4YuVdsUOr75U=
3866
gopkg.in/check.v1 v1.0.0-20200902074654-038fdea0a05b/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
67+
gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys=
3968
gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce h1:+JknDZhAj8YMt7GC73Ei8pv4MzjDUNPHgQWJdtMAaDU=
4069
gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce/go.mod h1:5AcXVHNjg+BDxry382+8OKon8SEWiKktQR07RKPsv1c=
70+
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw=
71+
gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=

hash/blake2b.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,8 @@ func NewBlake2b128(k []byte) (hash.Hash, error) {
7676
func NewBlake2b256(k []byte) (hash.Hash, error) {
7777
return blake2b.New256(k)
7878
}
79+
80+
// NewBlake2b512 returns blake2b-512 hasher
81+
func NewBlake2b512(k []byte) (hash.Hash, error) {
82+
return blake2b.New512(k)
83+
}

hash/blake2b_test.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,19 @@ func TestBlake2_128Concat(t *testing.T) {
3636
h.Reset()
3737
assert.Equal(t, 16, h.Size())
3838
}
39+
40+
func TestBlake2b_512(t *testing.T) {
41+
h, err := NewBlake2b512(nil)
42+
assert.NoError(t, err)
43+
n, err := h.Write([]byte("abc"))
44+
assert.NoError(t, err)
45+
assert.Equal(t, 3, n)
46+
assert.Equal(t, []byte{
47+
0xba, 0x80, 0xa5, 0x3f, 0x98, 0x1c, 0x4d, 0xd, 0x6a, 0x27, 0x97, 0xb6, 0x9f, 0x12, 0xf6, 0xe9, 0x4c, 0x21, 0x2f,
48+
0x14, 0x68, 0x5a, 0xc4, 0xb7, 0x4b, 0x12, 0xbb, 0x6f, 0xdb, 0xff, 0xa2, 0xd1, 0x7d, 0x87, 0xc5, 0x39, 0x2a, 0xab,
49+
0x79, 0x2d, 0xc2, 0x52, 0xd5, 0xde, 0x45, 0x33, 0xcc, 0x95, 0x18, 0xd3, 0x8a, 0xa8, 0xdb, 0xf1, 0x92, 0x5a, 0xb9,
50+
0x23, 0x86, 0xed, 0xd4, 0x0, 0x99, 0x23,
51+
}, h.Sum(nil))
52+
assert.Equal(t, 128, h.BlockSize())
53+
assert.Equal(t, 64, h.Size())
54+
}

main_test.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ func Example_makeASimpleTransfer() {
241241
Nonce: types.NewUCompactFromUInt(uint64(nonce)),
242242
SpecVersion: rv.SpecVersion,
243243
Tip: types.NewUCompactFromUInt(0),
244+
TransactionVersion: rv.TransactionVersion,
244245
}
245246

246247
// Sign the transaction using Alice's default account
@@ -375,7 +376,7 @@ func Example_displaySystemEvents() {
375376
fmt.Printf("\tSystem:ExtrinsicSuccess:: (phase=%#v)\n", e.Phase)
376377
}
377378
for _, e := range events.System_ExtrinsicFailed {
378-
fmt.Printf("\tSystem:ErtrinsicFailed:: (phase=%#v)\n", e.Phase)
379+
fmt.Printf("\tSystem:ExtrinsicFailed:: (phase=%#v)\n", e.Phase)
379380
fmt.Printf("\t\t%v\n", e.DispatchError)
380381
}
381382
for _, e := range events.System_CodeUpdated {
@@ -422,9 +423,6 @@ func Example_transactionWithEvents() {
422423

423424
// Create the extrinsic
424425
ext := types.NewExtrinsic(c)
425-
if err != nil {
426-
panic(err)
427-
}
428426

429427
genesisHash, err := api.RPC.Chain.GetBlockHash(0)
430428
if err != nil {
@@ -457,6 +455,7 @@ func Example_transactionWithEvents() {
457455
Nonce: types.NewUCompactFromUInt(uint64(nonce)),
458456
SpecVersion: rv.SpecVersion,
459457
Tip: types.NewUCompactFromUInt(0),
458+
TransactionVersion: rv.TransactionVersion,
460459
}
461460

462461
fmt.Printf("Sending %v from %#x to %#x with nonce %v", amount, signature.TestKeyringPairAlice.PublicKey, bob.AsAccountID, nonce)

teste2e/author_submit_and_watch_extrinsic_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ func TestAuthor_SubmitAndWatchExtrinsic(t *testing.T) {
9696
Nonce: types.NewUCompactFromUInt(uint64(nonce)),
9797
SpecVersion: rv.SpecVersion,
9898
Tip: types.NewUCompactFromUInt(0),
99-
TransactionVersion: 1,
99+
TransactionVersion: rv.TransactionVersion,
100100
}
101101

102102
err = ext.Sign(from, o)

teste2e/author_submit_extrinsic_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ func TestChain_SubmitExtrinsic(t *testing.T) {
139139
Nonce: types.NewUCompactFromUInt(uint64(nonce + i)),
140140
SpecVersion: rv.SpecVersion,
141141
Tip: types.NewUCompactFromUInt(0),
142-
TransactionVersion: 1,
142+
TransactionVersion: rv.TransactionVersion,
143143
}
144144

145145
extI := ext

types/address_test.go

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,26 @@ import (
2020
"encoding/binary"
2121
"testing"
2222

23+
"github.com/btcsuite/btcutil/base58"
24+
"github.com/centrifuge/go-substrate-rpc-client/hash"
2325
. "github.com/centrifuge/go-substrate-rpc-client/types"
26+
"github.com/stretchr/testify/assert"
2427
)
2528

29+
func TestChecksum(t *testing.T) {
30+
//verify checksum from ss58
31+
contextPrefix := []byte("SS58PRE")
32+
ss58d := base58.Decode("4ecQzsMCwbJXu6Cad597T7gZx1MTZWQi8jZZC2DmsQq72knj")
33+
assert.Equal(t, uint8(36), ss58d[0]) // Centrifuge network version check
34+
noSum := ss58d[:len(ss58d)-2]
35+
all := append(contextPrefix, noSum...)
36+
checksum, err := hash.NewBlake2b512(nil)
37+
assert.NoError(t, err)
38+
checksum.Write(all)
39+
res := checksum.Sum(nil)
40+
assert.Equal(t, ss58d[len(ss58d)-2:], res[:2]) // Verified checksum
41+
}
42+
2643
func TestAddress_EncodeDecode(t *testing.T) {
2744
assertRoundtrip(t, NewAddressFromAccountID([]byte{128, 42}))
2845
assertRoundtrip(t, NewAddressFromAccountIndex(421))

types/event_record.go

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ type EventRecords struct {
111111
Democracy_PreimageMissing []EventDemocracyPreimageMissing //nolint:stylecheck,golint
112112
Democracy_PreimageReaped []EventDemocracyPreimageReaped //nolint:stylecheck,golint
113113
Democracy_Unlocked []EventDemocracyUnlocked //nolint:stylecheck,golint
114+
Democracy_Blacklisted []EventDemocracyBlacklisted //nolint:stylecheck,golint
114115
Council_Proposed []EventCollectiveProposed //nolint:stylecheck,golint
115116
Council_Voted []EventCollectiveProposed //nolint:stylecheck,golint
116117
Council_Approved []EventCollectiveApproved //nolint:stylecheck,golint
@@ -125,8 +126,15 @@ type EventRecords struct {
125126
TechnicalCommittee_Executed []EventTechnicalCommitteeExecuted //nolint:stylecheck,golint
126127
TechnicalCommittee_MemberExecuted []EventTechnicalCommitteeMemberExecuted //nolint:stylecheck,golint
127128
TechnicalCommittee_Closed []EventTechnicalCommitteeClosed //nolint:stylecheck,golint
129+
TechnicalMembership_MemberAdded []EventTechnicalMembershipMemberAdded //nolint:stylecheck,golint
130+
TechnicalMembership_MemberRemoved []EventTechnicalMembershipMemberRemoved //nolint:stylecheck,golint
131+
TechnicalMembership_MembersSwapped []EventTechnicalMembershipMembersSwapped //nolint:stylecheck,golint
132+
TechnicalMembership_MembersReset []EventTechnicalMembershipMembersReset //nolint:stylecheck,golint
133+
TechnicalMembership_KeyChanged []EventTechnicalMembershipKeyChanged //nolint:stylecheck,golint
134+
TechnicalMembership_Dummy []EventTechnicalMembershipDummy //nolint:stylecheck,golint
128135
Elections_NewTerm []EventElectionsNewTerm //nolint:stylecheck,golint
129136
Elections_EmptyTerm []EventElectionsEmptyTerm //nolint:stylecheck,golint
137+
Elections_ElectionError []EventElectionsElectionError //nolint:stylecheck,golint
130138
Elections_MemberKicked []EventElectionsMemberKicked //nolint:stylecheck,golint
131139
Elections_MemberRenounced []EventElectionsMemberRenounced //nolint:stylecheck,golint
132140
Elections_VoterReported []EventElectionsVoterReported //nolint:stylecheck,golint
@@ -169,6 +177,7 @@ type EventRecords struct {
169177
Scheduler_Dispatched []EventSchedulerDispatched //nolint:stylecheck,golint
170178
Proxy_ProxyExecuted []EventProxyProxyExecuted //nolint:stylecheck,golint
171179
Proxy_AnonymousCreated []EventProxyAnonymousCreated //nolint:stylecheck,golint
180+
Proxy_Announced []EventProxyAnnounced //nolint:stylecheck,golint
172181
Sudo_Sudid []EventSudoSudid //nolint:stylecheck,golint
173182
Sudo_KeyChanged []EventSudoKeyChanged //nolint:stylecheck,golint
174183
Sudo_SudoAsDone []EventSudoAsDone //nolint:stylecheck,golint
@@ -183,6 +192,13 @@ type EventRecords struct {
183192
Treasury_TipClosing []EventTreasuryTipClosing //nolint:stylecheck,golint
184193
Treasury_TipClosed []EventTreasuryTipClosed //nolint:stylecheck,golint
185194
Treasury_TipRetracted []EventTreasuryTipRetracted //nolint:stylecheck,golint
195+
Treasury_BountyProposed []EventTreasuryBountyProposed //nolint:stylecheck,golint
196+
Treasury_BountyRejected []EventTreasuryBountyRejected //nolint:stylecheck,golint
197+
Treasury_BountyBecameActive []EventTreasuryBountyBecameActive //nolint:stylecheck,golint
198+
Treasury_BountyAwarded []EventTreasuryBountyAwarded //nolint:stylecheck,golint
199+
Treasury_BountyClaimed []EventTreasuryBountyClaimed //nolint:stylecheck,golint
200+
Treasury_BountyCanceled []EventTreasuryBountyCanceled //nolint:stylecheck,golint
201+
Treasury_BountyExtended []EventTreasuryBountyExtended //nolint:stylecheck,golint
186202
Contracts_Instantiated []EventContractsInstantiated //nolint:stylecheck,golint
187203
Contracts_Evicted []EventContractsEvicted //nolint:stylecheck,golint
188204
Contracts_Restored []EventContractsRestored //nolint:stylecheck,golint
@@ -191,10 +207,10 @@ type EventRecords struct {
191207
Contracts_ContractExecution []EventContractsContractExecution //nolint:stylecheck,golint
192208
Utility_BatchInterrupted []EventUtilityBatchInterrupted //nolint:stylecheck,golint
193209
Utility_BatchCompleted []EventUtilityBatchCompleted //nolint:stylecheck,golint
194-
Multisig_New []EventMultisigNewMultisig //nolint:stylecheck,golint
195-
Multisig_Approval []EventMultisigApproval //nolint:stylecheck,golint
196-
Multisig_Executed []EventMultisigExecuted //nolint:stylecheck,golint
197-
Multisig_Cancelled []EventMultisigCancelled //nolint:stylecheck,golint
210+
Multisig_NewMultisig []EventMultisigNewMultisig //nolint:stylecheck,golint
211+
Multisig_MultisigApproval []EventMultisigApproval //nolint:stylecheck,golint
212+
Multisig_MultisigExecuted []EventMultisigExecuted //nolint:stylecheck,golint
213+
Multisig_MultisigCancelled []EventMultisigCancelled //nolint:stylecheck,golint
198214
}
199215

200216
// DecodeEventRecords decodes the events records from an EventRecordRaw into a target t using the given Metadata m

0 commit comments

Comments
 (0)