From 06e989f07010ce58de1e4df53705630fe30e7a6e Mon Sep 17 00:00:00 2001 From: JonathanAmenechi <7217608+JonathanAmenechi@users.noreply.github.com> Date: Wed, 25 Jan 2023 20:10:49 -0500 Subject: [PATCH] fix: rm unused methods --- py_order_utils/config.py | 8 +------- setup.py | 2 +- tests/test_config.py | 2 -- 3 files changed, 2 insertions(+), 10 deletions(-) diff --git a/py_order_utils/config.py b/py_order_utils/config.py index 9de89ba..07ad144 100644 --- a/py_order_utils/config.py +++ b/py_order_utils/config.py @@ -1,16 +1,12 @@ class ContractConfig: - def __init__(self, exchange, executor, collateral, conditional): + def __init__(self, exchange, collateral, conditional): self.exchange = exchange - self.executor = executor self.collateral = collateral self.conditional = conditional def get_exchange(self): return self.exchange - def get_executor(self): - return self.executor - def get_collateral(self): return self.collateral @@ -25,13 +21,11 @@ def get_contract_config(chainID: int) -> ContractConfig: CONFIG = { 137: ContractConfig( exchange="0x4bFb41d5B3570DeFd03C39a9A4D8dE6Bd8B8982E", - executor="0xb2a29463Df393a4CAef36541544715e6B48b80B7", collateral="0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174", conditional="0x4D97DCd97eC945f40cF65F87097ACe5EA0476045", ), 80001: ContractConfig( exchange="0x4bFb41d5B3570DeFd03C39a9A4D8dE6Bd8B8982E", - executor="0xb2a29463Df393a4CAef36541544715e6B48b80B7", collateral="0x2E8DCfE708D44ae2e406a1c02DFE2Fa13012f961", conditional="0x7D8610E9567d2a6C9FBf66a5A13E9Ba8bb120d43", ), diff --git a/setup.py b/setup.py index 739477b..5357611 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name="py_order_utils", - version="0.1.2", + version="0.1.3", author="Polymarket Engineering", author_email="engineering@polymarket.com", maintainer="Polymarket Engineering", diff --git a/tests/test_config.py b/tests/test_config.py index d74b48a..f7c033a 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -7,13 +7,11 @@ def test_get_config(self): valid_config = get_contract_config(80001) self.assertIsNotNone(valid_config) self.assertIsNotNone(valid_config.get_exchange()) - self.assertIsNotNone(valid_config.get_executor()) self.assertIsNotNone(valid_config.get_collateral()) valid_config = get_contract_config(137) self.assertIsNotNone(valid_config) self.assertIsNotNone(valid_config.get_exchange()) - self.assertIsNotNone(valid_config.get_executor()) self.assertIsNotNone(valid_config.get_collateral()) # invalid config