Skip to content

Commit

Permalink
feat: update the routine part
Browse files Browse the repository at this point in the history
  • Loading branch information
wartstone committed Dec 26, 2023
1 parent dea675b commit 2baeb4e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion ERCS/erc-7580.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,14 @@ interface IERCXXX {
}
```

## Routine

Check failure on line 69 in ERCS/erc-7580.md

View workflow job for this annotation

GitHub Actions / EIP Walidator

body has extra section(s)

error[markdown-order-section]: body has extra section(s) --> ERCS/erc-7580.md | 69 | ## Routine | = help: see https://ethereum.github.io/eipw/markdown-order-section/

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)’
4. promotion contract collect the project action info and distribute the rewards back to projects


## Rationale

Expand All @@ -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).

0 comments on commit 2baeb4e

Please sign in to comment.