-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
43 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
from py_order_utils.model.order import OrderData, Order, SignedOrder | ||
from py_order_utils.model.signatures import EOA, POLY_PROXY, POLY_GNOSIS_SAFE | ||
from py_order_utils.model.sides import BUY, SELL | ||
from py_order_utils.model.contract_config import ContractConfig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
from dataclasses import dataclass | ||
|
||
@dataclass | ||
class ContractConfig: | ||
""" | ||
Contract Configuration | ||
""" | ||
|
||
exchange: str | ||
""" | ||
The exchange contract responsible for matching orders | ||
""" | ||
|
||
collateral: str | ||
""" | ||
The ERC20 token used as collateral for the exchange's markets | ||
""" | ||
|
||
conditional: str | ||
""" | ||
The ERC1155 conditional tokens contract | ||
""" |