Skip to content

Commit

Permalink
Update EIP-6909: update eip-6909
Browse files Browse the repository at this point in the history
Merged by EIP-Bot.
  • Loading branch information
banteg authored Aug 18, 2023
1 parent cd7c5e6 commit 18726c8
Showing 1 changed file with 23 additions and 5 deletions.
28 changes: 23 additions & 5 deletions EIPS/eip-6909.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ MUST revert when the caller's balance for the token `id` is insufficient.

MUST log the `Transfer` event.

MUST return True.

```yaml
- name: transfer
type: function
Expand All @@ -143,7 +145,9 @@ MUST log the `Transfer` event.
- name: amount
type: uint256
outputs: []
outputs:
- name: success
type: bool
```

#### `transferFrom`
Expand All @@ -162,6 +166,8 @@ SHOULD NOT decrease the caller's `allowance` for the token `id` for the `sender`

SHOULD NOT decrease the caller's `allowance` for the token `id` for the `sender` if the caller is an operator.

MUST return True.

```yaml
- name: transferFrom
type: function
Expand All @@ -177,7 +183,9 @@ SHOULD NOT decrease the caller's `allowance` for the token `id` for the `sender`
- name: amount
type: uint256
outputs: []
outputs:
- name: success
type: bool
```

#### `approve`
Expand All @@ -188,6 +196,8 @@ MUST set the `allowance` of the `spender` of the token `id` for the caller to th

MUST log the `Approval` event.

MUST return True.

```yaml
- name: approve
type: function
Expand All @@ -201,7 +211,9 @@ MUST log the `Approval` event.
- name: amount
type: uint256
outputs: []
outputs:
- name: success
type: bool
```

#### `setOperator`
Expand All @@ -212,6 +224,8 @@ MUST set the operator status to the `approved` value.

MUST log the `OperatorSet` event.

MUST return True.

```yaml
- name: setOperator
type: function
Expand All @@ -222,6 +236,10 @@ MUST log the `OperatorSet` event.
type: address
- name: approved
type: bool
outputs:
- name: success
type: bool
```

### Events
Expand Down Expand Up @@ -249,10 +267,10 @@ SHOULD be logged with the `receiver` address as the zero address when an `amount
type: address
- name: id
indexed: true
type: address
type: uint256
- name: amount
indexed: false
type: address
type: uint256
```

#### `OperatorSet`
Expand Down

0 comments on commit 18726c8

Please sign in to comment.