Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
50 lines (36 sloc) 1.84 KB

A DelegateFactory deploys Delegate contracts. View the code on GitHub.

Functions

constructor

Create a new DelegateFactory contract.

constructor(
  ISwap factorySwapContract,
  IIndexer factoryIndexerContract
) public
Param Type Description
factorySwapContract ISwap Instance of the swap contract used to settle trades.
factoryIndexerContract ISwap Instance of the indexer contract the delegate will deploy with.

createDelegate

Create a new Delegate contract. Implements IDelegateFactory.createDelegate.

function createDelegate(
  address delegateContractOwner,
  address delegateTradeWallet
) external returns (address delegateContractAddress)
Param Type Description
delegateContractOwner address Address of the owner of the new delegate contract.
delegateTradeWallet address Address of the wallet that holds funds to be traded.

has

Check to see whether the factory has deployed a delegate by locator. Implements ILocatorWhitelist.has.

function has(
  bytes32 locator
) external view returns (bool)
Param Type Description
locator bytes32 The locator in question. Expects a contract address in the first 20 bytes.
You can’t perform that action at this time.