-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add missing events of
pallet-contracts
- Loading branch information
Showing
1 changed file
with
48 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
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 | ||
} | ||
) |