Skip to main content

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

NameTypeDescription
targetaddressAddress to authorize.

authorized

function authorized(address) external view returns (bool)

Parameters

NameTypeDescription
_0addressundefined

Returns

NameTypeDescription
_0boolundefined

owner

function owner() external view returns (address)

Returns the address of the current owner.

Returns

NameTypeDescription
_0addressundefined

removeAuthorizedAddress

function removeAuthorizedAddress(address target) external nonpayable

Removes authorizion of an address.

Parameters

NameTypeDescription
targetaddressAddress 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

NameTypeDescription
tokenaddressAddress of token to transfer.
fromaddressAddress to transfer token from.
toaddressAddress to transfer token to.
valueuint256Amount 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

NameTypeDescription
newOwneraddressundefined

Events

LogAuthorizedAddressAdded

event LogAuthorizedAddressAdded(address indexed target, address indexed caller)

Parameters

NameTypeDescription
target indexedaddressundefined
caller indexedaddressundefined

LogAuthorizedAddressRemoved

event LogAuthorizedAddressRemoved(address indexed target, address indexed caller)

Parameters

NameTypeDescription
target indexedaddressundefined
caller indexedaddressundefined

OwnershipTransferred

event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

Parameters

NameTypeDescription
previousOwner indexedaddressundefined
newOwner indexedaddressundefined