-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add EIP: Inter-Dapp tracking standard #8035
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
--- | ||
eip: 7580 | ||
title: Inter-Dapp tracking standard inferface | ||
Check failure on line 3 in EIPS/eip-7580.md GitHub Actions / EIP Walidatorpreamble header `title` should not contain `standard` (or similar words.)
|
||
description: Share an inter-dapp tracking standard inferface for dapp interactions and support for more complicated business logics | ||
Check failure on line 4 in EIPS/eip-7580.md GitHub Actions / EIP Walidatorpreamble header `description` should not contain `standard` (or similar words.)
|
||
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 | ||
Check failure on line 9 in EIPS/eip-7580.md GitHub Actions / EIP Walidatorpreamble header `category` has an unrecognized value
|
||
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). | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A number hasn't been assigned yet. Please move this to the ERC repo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops. Got it