This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
dido:public:ra:xapend:xapend.b_stds:defact:ethereum:eip:erc_0777 [2021/08/13 13:20] murphy |
dido:public:ra:xapend:xapend.b_stds:defact:ethereum:eip:erc_0777 [2021/08/18 11:18] (current) murphy |
||
|---|---|---|---|
| Line 26: | Line 26: | ||
| //This standard tries to improve upon the widely used ERC20 token standard. The main advantages of this standard are:// | //This standard tries to improve upon the widely used ERC20 token standard. The main advantages of this standard are:// | ||
| - | * //Uses the same philosophy as [[dido:public:ra:xapend:xapend.a_glossary:e:ether|Ether]] in that tokens are sent with send(dest, value, data).// | + | * //Uses the same philosophy as [[dido:public:ra:xapend:xapend.a_glossary:e:ether|Ether]] in that [[dido:public:ra:xapend:xapend.a_glossary:t:tokens|tokens]] are sent with send(dest, value, data).// |
| * //Both contracts and regular addresses can control and reject which token they send by registering a ''tokensToSend'' hook. (Rejection is done by ''revert''ing in the hook function.)// | * //Both contracts and regular addresses can control and reject which token they send by registering a ''tokensToSend'' hook. (Rejection is done by ''revert''ing in the hook function.)// | ||
| Line 38: | Line 38: | ||
| * //Every token transaction contains ''data'' and ''operatorData'' bytes fields to be used freely to pass data from the holder and the operator, respectively.// | * //Every token transaction contains ''data'' and ''operatorData'' bytes fields to be used freely to pass data from the holder and the operator, respectively.// | ||
| - | It is backward compatible with wallets that do not contain the ''tokensReceived'' hook function by deploying a proxy contract implementing the ''tokensReceived'' hook for the wallet. | + | It is backward compatible with [[dido:public:ra:xapend:xapend.a_glossary:w:wallet|wallets]] that do not contain the ''tokensReceived'' hook function by deploying a proxy contract implementing the ''tokensReceived'' hook for the wallet. |