-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #85 from Cerebellum-Network/feature/add-missing-ev…
…ents Add missing events
- Loading branch information
Showing
7 changed files
with
194 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
package pallets | ||
|
||
import "github.com/centrifuge/go-substrate-rpc-client/v4/types" | ||
|
||
// Events | ||
type ( | ||
// These commented-out names are already defined in go-substrate-rpc-client, but some other | ||
// types are missing. | ||
// https://github.com/centrifuge/go-substrate-rpc-client/blob/8f01d19/types/event_record.go#L127 | ||
// | ||
// EventContractsCodeRemoved | ||
// EventContractsCodeStored | ||
// EventContractsContractCodeUpdated | ||
// EventContractsContractEmitted | ||
// EventContractsInstantiated | ||
// EventContractsTerminated | ||
|
||
EventContractsCalled struct { | ||
Phase types.Phase | ||
Caller types.AccountID | ||
Contract types.AccountID | ||
Topics []types.Hash | ||
} | ||
|
||
EventContractsDelegateCalled struct { | ||
Phase types.Phase | ||
Contract types.AccountID | ||
CodeHash types.Hash | ||
Topics []types.Hash | ||
} | ||
|
||
EventContractsStorageDepositTransferredAndHeld struct { | ||
Phase types.Phase | ||
From types.AccountID | ||
To types.AccountID | ||
Amount types.U128 | ||
Topics []types.Hash | ||
} | ||
|
||
EventContractsStorageDepositTransferredAndReleased struct { | ||
Phase types.Phase | ||
From types.AccountID | ||
To types.AccountID | ||
Amount types.U128 | ||
Topics []types.Hash | ||
} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
package pallets | ||
|
||
import "github.com/centrifuge/go-substrate-rpc-client/v4/types" | ||
|
||
// Events | ||
type ( | ||
EventDdcStakingBonded struct { | ||
Phase types.Phase | ||
Stash types.AccountID | ||
Amount types.U128 | ||
Topics []types.Hash | ||
} | ||
|
||
EventDdcStakingChilled struct { | ||
Phase types.Phase | ||
Stash types.AccountID | ||
Topics []types.Hash | ||
} | ||
|
||
EventDdcStakingChillSoon struct { | ||
Phase types.Phase | ||
Stash types.AccountID | ||
ClusterId ClusterId | ||
Block types.BlockNumber | ||
Topics []types.Hash | ||
} | ||
|
||
EventDdcStakingUnbonded struct { | ||
Phase types.Phase | ||
Stash types.AccountID | ||
Amount types.U128 | ||
Topics []types.Hash | ||
} | ||
|
||
EventDdcStakingWithdrawn struct { | ||
Phase types.Phase | ||
Stash types.AccountID | ||
Amount types.U128 | ||
Topics []types.Hash | ||
} | ||
|
||
EventDdcStakingActivated struct { | ||
Phase types.Phase | ||
Stash types.AccountID | ||
Topics []types.Hash | ||
} | ||
|
||
EventDdcStakingLeaveSoon struct { | ||
Phase types.Phase | ||
Stash types.AccountID | ||
Topics []types.Hash | ||
} | ||
|
||
EventDdcStakingLeft struct { | ||
Phase types.Phase | ||
Stash types.AccountID | ||
Topics []types.Hash | ||
} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.