Skip to content

Commit

Permalink
Add missing events of pallet-contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
khssnv committed Apr 22, 2024
1 parent 554f5af commit a857d18
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions blockchain/pallets/contracts.go
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
}
)

0 comments on commit a857d18

Please sign in to comment.