diff --git a/EIPS/eip-7580.md b/EIPS/eip-7580.md new file mode 100644 index 00000000000000..eb8802bb1c6ba8 --- /dev/null +++ b/EIPS/eip-7580.md @@ -0,0 +1,57 @@ +--- +eip: 7580 +title: Inter-Dapp tracking standard inferface +description: Share an inter-dapp tracking standard inferface for dapp interactions and support for more complicated business logics +author: wart (@wartstone) +discussions-to: https://ethereum-magicians.org/t/any-eip-erc-related-with-airdrop-status-existing/16976 +status: Draft +type: Standards Track +category: Application +created: 2023-12-13 +--- + +## Abstract + +Share an inter-dapp tracking standard inferface for dapp interactions and support for more complicated business logics + +## Motivation + +Currently there's no shared standard for dapp communication to support inter-dapp logics cooperations. With such standard, we would facilitate far more complicated business on chain, especially on social/game category. There's one obvious usage for this standard: Promotion (or Ads). Project contracts could adopt this standard to track promotion for better benefits. + +## Specification + +The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119. + +```solidity +pragma solidity ^0.4.20; + +interface ERC7580 { +/// onTrackStart called when appointed task begins +function onTrackStart(uint256 track_id, address contract_address, bytes32 function_hash); + +/// onTrackStart called when appointed task ends +function onTrackEnd(uint256 track_id, address contract_address, bytes32 function_hash); +} +``` + +### Execution layer + +This requires no changes to the Execution Layer. + +### Consensus layer + +This requires no changes to the Consensus Layer. + +## Rationale + +### Deprecation strategy + +## Backwards Compatibility + + +## Security Considerations + +## Copyright + +Copyright and related rights waived via [CC0](../LICENSE.md). +