Skip to content
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 ERC: Advertisement Tracking Interface #165

Merged
merged 11 commits into from
Apr 24, 2024
Prev Previous commit
Next Next commit
feat: update the routine part
wartstone committed Mar 21, 2024
commit 85f498c1031fc76dce8b9e5363030efa6a83757b
10 changes: 9 additions & 1 deletion ERCS/erc-7580.md
Original file line number Diff line number Diff line change
@@ -66,6 +66,14 @@ interface IERCXXX {
}
```

## Routine

Imaging we have two roles here: promotion/ads business role and projects role who adopted the promotion service. And project contracts implemented the above interfaces. Then we would have a routine:
1. projects get a seed id (hash) from promotion side
2. before the target promotion action starts, project contracts called the interface ‘onTrackStart(id, contract_address, function_hash)’
3. after the target promotion action ends, project contracts called the inferface ‘onTrackEnd(id, contract_address, function_hash)’
wartstone marked this conversation as resolved.
Show resolved Hide resolved
4. promotion contract collect the project action info and distribute the rewards back to projects


## Rationale

@@ -85,4 +93,4 @@ This proposal is fully backwards compatible with earlier standard, extending the

## Copyright

Copyright and related rights waived via [CC0](../LICENSE.md).
Copyright and related rights waived via [CC0](../LICENSE.md).