From 4e169dcb6e1d237c9f2e75eb347efb3c94b54f74 Mon Sep 17 00:00:00 2001 From: Jacques Dafflon Date: Wed, 3 Apr 2019 19:22:52 +0200 Subject: [PATCH] Automatically merged updates to draft EIP(s) 777 Hi, I'm a bot! This change was automatically merged because: - It only modifies existing Draft or Last Call EIP(s) - The PR was approved or written by at least one author of each modified EIP - The build is passing --- EIPS/eip-777.md | 42 +++++++++++++++++------------------------- 1 file changed, 17 insertions(+), 25 deletions(-) diff --git a/EIPS/eip-777.md b/EIPS/eip-777.md index 521d2482..f2b4c8bf 100644 --- a/EIPS/eip-777.md +++ b/EIPS/eip-777.md @@ -292,7 +292,7 @@ Indicates the authorization of `operator` as an *operator* for `holder`. > **parameters** > `operator`: Address which became an *operator* of `holder`. -> `holder`: Address of a holder which authorized the `operator` address as an *operator*. +> `holder`: Address of a *holder* which authorized the `operator` address as an *operator*. **`RevokedOperator` event** @@ -306,7 +306,7 @@ Indicates the revocation of `operator` as an *operator* for `holder`. > **parameters** > `operator`: Address which was revoked as an *operator* of `holder`. -> `holder`: Address of a holder which revoked the `operator` address as an *operator*. +> `holder`: Address of a *holder* which revoked the `operator` address as an *operator*. The `defaultOperators`, `authorizeOperator`, `revokeOperator` and `isOperatorFor` functions described below MUST be implemented to manage *operators*. @@ -367,7 +367,7 @@ Indicate whether the `operator` address is an *operator* of the `holder` address > **parameters** > `operator`: Address which may be an *operator* of `holder`. -> `holder`: Address of a holder which may have the `operator` address as an *operator*. +> `holder`: Address of a *holder* which may have the `operator` address as an *operator*. > > **returns:** `true` if `operator` is an *operator* of `holder` and `false` otherwise. @@ -465,9 +465,9 @@ Indicate a send of `amount` of tokens from the `from` address to the `to` addres > **parameters** > `operator`: Address which triggered the send. -> `from`: Holder. -> `to`: Token recipient. -> `amount`: Number of tokens to send. +> `from`: *Holder* whose tokens were sent. +> `to`: Recipient of the tokens. +> `amount`: Number of tokens sent. > `data`: Information provided by the *holder*. > `operatorData`: Information provided by the *operator*. @@ -485,7 +485,7 @@ Send the `amount` of tokens from the address `msg.sender` to the address `to`. The *operator* and the *holder* MUST both be the `msg.sender`. > **parameters** -> `to`: Token recipient. +> `to`: Recipient of the tokens. > `amount`: Number of tokens to send. > `data`: Information provided by the *holder*. @@ -497,10 +497,6 @@ function operatorSend(address from, address to, uint256 amount, bytes calldata d Send the `amount` of tokens on behalf of the address `from` to the address `to`. -The *operator* MUST be `msg.sender`. -The value of `from` MAY be `0x0`, -then the `from` (*holder*) used for the send MUST be `msg.sender` (the `operator`). - *Reminder*: If the *operator* address is not an authorized operator of the `from` address, then the send process MUST `revert`. @@ -511,8 +507,8 @@ that the *operator* MAY specify an explicit value for `operatorData` (which cannot be done with the `send` function). > **parameters** -> `from`: Holder (or `0x0` to set `from` to `msg.sender`). -> `to`: Token recipient. +> `from`: *Holder* whose tokens are being sent. +> `to`: Recipient of the tokens. > `amount`: Number of tokens to send. > `data`: Information provided by the *holder*. > `operatorData`: Information provided by the *operator*. @@ -585,9 +581,9 @@ Indicate the minting of `amount` of tokens to the `to` address by the `operator` > **parameters** > `operator`: Address which triggered the mint. -> `to`: Token recipient. +> `to`: Recipient of the tokens. > `amount`: Number of tokens minted. -> `data`: Information provided by the *holder*. +> `data`: MUST be empty. > `operatorData`: Information provided by the *operator*. #### **Burning Tokens** @@ -661,7 +657,7 @@ Indicate the burning of `amount` of tokens from the `from` address by the `opera > **parameters** > `operator`: Address which triggered the burn. -> `from`: Holder whose tokens are burned. +> `from`: *Holder* whose tokens were burned. > `amount`: Number of tokens burned. > `data`: Information provided by the *holder*. > `operatorData`: Information provided by the *operator*. @@ -691,15 +687,11 @@ function operatorBurn(address from, uint256 amount, bytes calldata data, bytes c Burn the `amount` of tokens on behalf of the address `from`. -The *operator* MUST be `msg.sender`. -The value of `from` MAY be `0x0`, -then the `from` (*holder*) used for the burn MUST be `msg.sender` (the `operator`). - *Reminder*: If the *operator* address is not an authorized operator of the `from` address, then the burn process MUST `revert`. > **parameters** -> `from`: Holder whose tokens will be burned (or `0x0` to set `from` to `msg.sender`). +> `from`: *Holder* whose tokens will be burned. > `amount`: Number of tokens to burn. > `data`: Information provided by the *holder*. > `operatorData`: Information provided by the *operator*. @@ -750,8 +742,8 @@ by the `operator` address. > **parameters** > `operator`: Address which triggered the balance decrease (through sending or burning). -> `from`: *holder*. -> `to`: *token recipient* for a send and `0x` for a burn. +> `from`: *Holder* whose tokens were sent. +> `to`: Recipient of the tokens for a send (or `0x0` for a burn). > `amount`: Number of tokens the *holder* balance is decreased by. > `data`: Information provided by the *holder*. > `operatorData`: Information provided by the *operator*. @@ -835,8 +827,8 @@ by the `operator` address. > **parameters** > `operator`: Address which triggered the balance increase (through sending or minting). -> `from`: *holder* for a send and `0x` for a mint. -> `to`: *token recipient*. +> `from`: *Holder* whose tokens were sent (or `0x0` for a mint). +> `to`: Recipient of the tokens. > `amount`: Number of tokens the *recipient* balance is increased by. > `data`: Information provided by the *holder*. > `operatorData`: Information provided by the *operator*.