Skip to content

Commit e238735

Browse files
authored
Feat/missing events (#76)
1 parent 2237cdb commit e238735

4 files changed

Lines changed: 712 additions & 5 deletions

File tree

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ clean: ##clean vendor folder. Should be run before a make install
2020
@echo 'done cleaning'
2121

2222
install: ## installs dependencies
23-
@command -v dep >/dev/null 2>&1 || go get -u github.com/golang/dep/...
24-
@command -v golangci-lint >/dev/null 2>&1 || go get -u github.com/golangci/golangci-lint/cmd/golangci-lint
23+
@command -v dep >/dev/null 2>&1 || curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
24+
@command -v golangci-lint >/dev/null 2>&1 || curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(GOPATH)/bin v1.25.0
2525
@dep ensure
2626

2727
lint: ## runs linters on go code

types/event_record.go

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,64 @@ type EventRecords struct {
8181
System_CodeUpdated []EventSystemCodeUpdated //nolint:stylecheck,golint
8282
System_NewAccount []EventSystemNewAccount //nolint:stylecheck,golint
8383
System_KilledAccount []EventSystemKilledAccount //nolint:stylecheck,golint
84+
Assets_Issued []EventAssetIssued //nolint:stylecheck,golint
85+
Assets_Transferred []EventAssetTransferred //nolint:stylecheck,golint
86+
Assets_Destroyed []EventAssetDestroyed //nolint:stylecheck,golint
87+
Democracy_Proposed []EventDemocracyProposed //nolint:stylecheck,golint
88+
Democracy_Tabled []EventDemocracyTabled //nolint:stylecheck,golint
89+
Democracy_ExternalTabled []EventDemocracyExternalTabled //nolint:stylecheck,golint
90+
Democracy_Started []EventDemocracyStarted //nolint:stylecheck,golint
91+
Democracy_Passed []EventDemocracyPassed //nolint:stylecheck,golint
92+
Democracy_NotPassed []EventDemocracyNotPassed //nolint:stylecheck,golint
93+
Democracy_Cancelled []EventDemocracyCancelled //nolint:stylecheck,golint
94+
Democracy_Executed []EventDemocracyExecuted //nolint:stylecheck,golint
95+
Democracy_Delegated []EventDemocracyDelegated //nolint:stylecheck,golint
96+
Democracy_Undelegated []EventDemocracyUndelegated //nolint:stylecheck,golint
97+
Democracy_Vetoed []EventDemocracyVetoed //nolint:stylecheck,golint
98+
Democracy_PreimageNoted []EventDemocracyPreimageNoted //nolint:stylecheck,golint
99+
Democracy_PreimageUsed []EventDemocracyPreimageUsed //nolint:stylecheck,golint
100+
Democracy_PreimageInvalid []EventDemocracyPreimageInvalid //nolint:stylecheck,golint
101+
Democracy_PreimageMissing []EventDemocracyPreimageMissing //nolint:stylecheck,golint
102+
Democracy_PreimageReaped []EventDemocracyPreimageReaped //nolint:stylecheck,golint
103+
Democracy_Unlocked []EventDemocracyUnlocked //nolint:stylecheck,golint
104+
Elections_NewTerm []EventElectionsNewTerm //nolint:stylecheck,golint
105+
Elections_EmptyTerm []EventElectionsEmptyTerm //nolint:stylecheck,golint
106+
Elections_MemberKicked []EventElectionsMemberKicked //nolint:stylecheck,golint
107+
Elections_MemberRenounced []EventElectionsMemberRenounced //nolint:stylecheck,golint
108+
Elections_VoterReported []EventElectionsVoterReported //nolint:stylecheck,golint
109+
Identity_IdentitySet []EventIdentitySet //nolint:stylecheck,golint
110+
Identity_IdentityCleared []EventIdentityCleared //nolint:stylecheck,golint
111+
Identity_IdentityKilled []EventIdentityKilled //nolint:stylecheck,golint
112+
Identity_JudgementRequested []EventIdentityJudgementRequested //nolint:stylecheck,golint
113+
Identity_JudgementUnrequested []EventIdentityJudgementUnrequested //nolint:stylecheck,golint
114+
Identity_JudgementGiven []EventIdentityJudgementGiven //nolint:stylecheck,golint
115+
Identity_RegistrarAdded []EventIdentityRegistrarAdded //nolint:stylecheck,golint
116+
Recovery_RecoveryCreated []EventRecoveryCreated //nolint:stylecheck,golint
117+
Recovery_RecoveryInitiated []EventRecoveryInitiated //nolint:stylecheck,golint
118+
Recovery_RecoveryVouched []EventRecoveryVouched //nolint:stylecheck,golint
119+
Recovery_RecoveryClosed []EventRecoveryClosed //nolint:stylecheck,golint
120+
Recovery_AccountRecovered []EventRecoveryAccountRecovered //nolint:stylecheck,golint
121+
Recovery_RecoveryRemoved []EventRecoveryRemoved //nolint:stylecheck,golint
122+
Sudo_Sudid []EventSudoSudid //nolint:stylecheck,golint
123+
Sudo_KeyChanged []EventSudoKeyChanged //nolint:stylecheck,golint
124+
Sudo_SudoAsDone []EventSudoAsDone //nolint:stylecheck,golint
125+
Treasury_Proposed []EventTreasuryProposed //nolint:stylecheck,golint
126+
Treasury_Spending []EventTreasurySpending //nolint:stylecheck,golint
127+
Treasury_Awarded []EventTreasuryAwarded //nolint:stylecheck,golint
128+
Treasury_Rejected []EventTreasuryRejected //nolint:stylecheck,golint
129+
Treasury_Burnt []EventTreasuryBurnt //nolint:stylecheck,golint
130+
Treasury_Rollover []EventTreasuryRollover //nolint:stylecheck,golint
84131
Treasury_Deposit []EventTreasuryDeposit //nolint:stylecheck,golint
132+
Treasury_NewTip []EventTreasuryNewTip //nolint:stylecheck,golint
133+
Treasury_TipClosing []EventTreasuryTipClosing //nolint:stylecheck,golint
134+
Treasury_TipClosed []EventTreasuryTipClosed //nolint:stylecheck,golint
135+
Treasury_TipRetracted []EventTreasuryTipRetracted //nolint:stylecheck,golint
136+
Utility_BatchInterrupted []EventUtilityBatchInterrupted //nolint:stylecheck,golint
137+
Utility_BatchCompleted []EventUtilityBatchCompleted //nolint:stylecheck,golint
138+
Utility_NewMultisig []EventUtilityNewMultisig //nolint:stylecheck,golint
139+
Utility_MultisigApproval []EventUtilityMultisigApproval //nolint:stylecheck,golint
140+
Utility_MultisigExecuted []EventUtilityMultisigExecuted //nolint:stylecheck,golint
141+
Utility_MultisigCancelled []EventUtilityMultisigCancelled //nolint:stylecheck,golint
85142
}
86143

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

0 commit comments

Comments
 (0)