@0x/asset-proxy
: Add more functions to IDydx
.
`@0x/dev-utils`: Fix all the weird dydx base unit madness.
This commit is contained in:
parent
b0387245f0
commit
ae68c061d1
@ -189,4 +189,13 @@ interface IDydx {
|
|||||||
external
|
external
|
||||||
view
|
view
|
||||||
returns (Value memory supplyValue, Value memory borrowValue);
|
returns (Value memory supplyValue, Value memory borrowValue);
|
||||||
|
|
||||||
|
// @dev Approves/disapproves any number of operators. An operator is an external address that has the
|
||||||
|
// same permissions to manipulate an account as the owner of the account. Operators are simply
|
||||||
|
// addresses and therefore may either be externally-owned Ethereum accounts OR smart contracts.
|
||||||
|
// Operators are also able to act as AutoTrader contracts on behalf of the account owner if the
|
||||||
|
// operator is a smart contract and implements the IAutoTrader interface.
|
||||||
|
// @param args A list of OperatorArgs which have an address and a boolean. The boolean value
|
||||||
|
// denotes whether to approve (true) or revoke approval (false) for that address.
|
||||||
|
function setOperators(OperatorArg[] calldata args) external;
|
||||||
}
|
}
|
||||||
|
@ -226,6 +226,9 @@ contract TestDydxBridge is
|
|||||||
returns (Value memory supplyValue, Value memory borrowValue)
|
returns (Value memory supplyValue, Value memory borrowValue)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
/// @dev Unused.
|
||||||
|
function setOperators(OperatorArg[] calldata args) external {}
|
||||||
|
|
||||||
/// @dev overrides `_getDydxAddress()` from `DeploymentConstants` to return this address.
|
/// @dev overrides `_getDydxAddress()` from `DeploymentConstants` to return this address.
|
||||||
function _getDydxAddress()
|
function _getDydxAddress()
|
||||||
internal
|
internal
|
||||||
|
Loading…
x
Reference in New Issue
Block a user