TokenTransferProxy
Amir Bandeali - <amir@0xProject.com>, Will Warren - <will@0xProject.com>
TokenTransferProxy - Transfers tokens on behalf of contracts that have been approved via decentralized governance.
Methods
addAuthorizedAddress
function addAuthorizedAddress(address target) external nonpayable
Authorizes an address.
Parameters
Name | Type | Description |
---|---|---|
target | address | Address to authorize. |
authorized
function authorized(address) external view returns (bool)
Parameters
Name | Type | Description |
---|---|---|
_0 | address | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | bool | undefined |
owner
function owner() external view returns (address)
Returns the address of the current owner.
Returns
Name | Type | Description |
---|---|---|
_0 | address | undefined |
removeAuthorizedAddress
function removeAuthorizedAddress(address target) external nonpayable
Removes authorizion of an address.
Parameters
Name | Type | Description |
---|---|---|
target | address | Address to remove authorization from. |
renounceOwnership
function renounceOwnership() external nonpayable
Leaves the contract without owner. It will not be possible to call onlyOwner
functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.
transferFrom
function transferFrom(address token, address from, address to, uint256 value) external nonpayable
Calls into ERC20 Token contract, invoking transferFrom.
Parameters
Name | Type | Description |
---|---|---|
token | address | Address of token to transfer. |
from | address | Address to transfer token from. |
to | address | Address to transfer token to. |
value | uint256 | Amount of token to transfer. |
transferOwnership
function transferOwnership(address newOwner) external nonpayable
Transfers ownership of the contract to a new account (newOwner
). Can only be called by the current owner.
Parameters
Name | Type | Description |
---|---|---|
newOwner | address | undefined |
Events
LogAuthorizedAddressAdded
event LogAuthorizedAddressAdded(address indexed target, address indexed caller)
Parameters
Name | Type | Description |
---|---|---|
target indexed | address | undefined |
caller indexed | address | undefined |
LogAuthorizedAddressRemoved
event LogAuthorizedAddressRemoved(address indexed target, address indexed caller)
Parameters
Name | Type | Description |
---|---|---|
target indexed | address | undefined |
caller indexed | address | undefined |
OwnershipTransferred
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
Parameters
Name | Type | Description |
---|---|---|
previousOwner indexed | address | undefined |
newOwner indexed | address | undefined |