Skip to main content

Smart Contract Deploy Events

Contract deploy events are generated when a transaction involves either the deployment of a smart contract or an upgrade to an existing contract.

Contract deploy event

The contract deploy event is generated upon the successful execution of a transaction that includes the deployment of a smart contract, without encountering any errors.

FieldValue
identifierSCDeploy
addressthe address of the deployed contract
topicstopics[0] - the address bytes of the deployed contract base64 encoded
topics[1] - the address bytes of the deployer of the smart contract base64 encoded
topics[2] - the code hash bytes of the deployer smart contract base64 encoded
dataempty

Contract upgrade event

The contract upgrade event is generated when a transaction, involving an upgrade, is successfully executed without any errors.

FieldValue
identifierSCUpgrade
addressthe address of the deployed contract
topicstopics[0] - the address bytes of the upgraded contract base64 encoded
topics[1] - the address bytes of the upgrader of the smart contract base64 encoded
topics[2] - the code hash bytes of the upgraded smart contract base64 encoded
dataempty

Change owner event

The ChangeOwnerAddress event is generated upon the successful execution of a transaction that specifically involves a ChangeOwnerAddress built-in function call, and this execution must occur without encountering any errors.

FieldValue
identifierChangeOwnerAddress
addressthe address of the contract
topicstopics[0] - the address bytes of the new contract owner base64 encoded
dataempty