github.com/fibonacci-chain/fbc@v0.0.0-20231124064014-c7636198c1e9/x/wasm/types/events.go (about) 1 package types 2 3 const ( 4 // WasmModuleEventType is stored with any contract TX that returns non empty EventAttributes 5 WasmModuleEventType = "wasm" 6 // CustomContractEventPrefix contracts can create custom events. To not mix them with other system events they got the `wasm-` prefix. 7 CustomContractEventPrefix = "wasm-" 8 9 EventTypeStoreCode = "store_code" 10 EventTypeInstantiate = "instantiate" 11 EventTypeExecute = "execute" 12 EventTypeMigrate = "migrate" 13 EventTypePinCode = "pin_code" 14 EventTypeUnpinCode = "unpin_code" 15 EventTypeSudo = "sudo" 16 EventTypeReply = "reply" 17 EventTypeGovContractResult = "gov_contract_result" 18 ) 19 20 // event attributes returned from contract execution 21 const ( 22 AttributeReservedPrefix = "_" 23 24 AttributeKeyContractAddr = "_contract_address" 25 AttributeKeyCodeID = "code_id" 26 AttributeKeyResultDataHex = "result" 27 AttributeKeyFeature = "feature" 28 )