github.com/Night-mk/quorum@v21.1.0+incompatible/extension/extensionContracts/extensionHandler.go (about) 1 package extensionContracts 2 3 import "github.com/ethereum/go-ethereum/common" 4 5 func UnpackStateSharedLog(logData []byte) (common.Address, string, string, error) { 6 decodedLog := new(ContractExtenderStateShared) 7 if err := ContractExtenderParsedABI.Unpack(decodedLog, "StateShared", logData); err != nil { 8 return common.Address{}, "", "", err 9 } 10 return decodedLog.ToExtend, decodedLog.Tesserahash, decodedLog.Uuid, nil 11 } 12 13 func UnpackNewExtensionCreatedLog(data []byte) (*ContractExtenderNewContractExtensionContractCreated, error) { 14 newExtensionEvent := new(ContractExtenderNewContractExtensionContractCreated) 15 err := ContractExtenderParsedABI.Unpack(newExtensionEvent, "NewContractExtensionContractCreated", data) 16 17 return newExtensionEvent, err 18 }