SYMBOL INDEX (1735 symbols across 72 files) FILE: pymaker/__init__.py function web3_via_http (line 56) | def web3_via_http(endpoint_uri: str, timeout=60, http_pool_size=20): class NonceCalculation (line 73) | class NonceCalculation(Enum): function _get_nonce_calc (line 80) | def _get_nonce_calc(web3: Web3) -> NonceCalculation: function register_filter_thread (line 100) | def register_filter_thread(filter_thread): function any_filter_thread_present (line 104) | def any_filter_thread_present() -> bool: function all_filter_threads_alive (line 108) | def all_filter_threads_alive() -> bool: function filter_thread_alive (line 112) | def filter_thread_alive(filter_thread) -> bool: function stop_all_filter_threads (line 118) | def stop_all_filter_threads(): function _track_status (line 126) | def _track_status(f): class Address (line 145) | class Address: method __init__ (line 157) | def __init__(self, address): method zero (line 164) | def zero(): method as_bytes (line 167) | def as_bytes(self) -> bytes: method __str__ (line 171) | def __str__(self): method __repr__ (line 174) | def __repr__(self): method __hash__ (line 177) | def __hash__(self): method __eq__ (line 180) | def __eq__(self, other): method __lt__ (line 184) | def __lt__(self, other): class Contract (line 189) | class Contract: method _deploy (line 193) | def _deploy(web3: Web3, abi: list, bytecode: str, args: list) -> Address: method _get_contract (line 206) | def _get_contract(web3: Web3, abi: list, address: Address): method _past_events (line 216) | def _past_events(self, contract, event, cls, number_of_past_blocks, ev... method _past_events_in_block_range (line 221) | def _past_events_in_block_range(self, contract, event, cls, from_block... method _load_abi (line 244) | def _load_abi(package, resource) -> list: method _load_bin (line 248) | def _load_bin(package, resource) -> str: class Calldata (line 252) | class Calldata: method __init__ (line 258) | def __init__(self, value): method from_signature (line 270) | def from_signature(cls, web3: Web3, fn_sign: str, fn_args: list): method from_contract_abi (line 291) | def from_contract_abi(cls, web3: Web3, fn_sign: str, fn_args: list, co... method as_bytes (line 305) | def as_bytes(self) -> bytes: method __str__ (line 309) | def __str__(self): method __repr__ (line 312) | def __repr__(self): method __hash__ (line 315) | def __hash__(self): method __eq__ (line 318) | def __eq__(self, other): class Invocation (line 323) | class Invocation(object): method __init__ (line 330) | def __init__(self, address: Address, calldata: Calldata): class Receipt (line 337) | class Receipt: method __init__ (line 353) | def __init__(self, receipt): method logs (line 409) | def logs(self): class TransactStatus (line 413) | class TransactStatus(Enum): function get_pending_transactions (line 419) | def get_pending_transactions(web3: Web3, address: Address = None) -> list: class Transact (line 446) | class Transact: method __init__ (line 452) | def __init__(self, method _get_receipt (line 489) | def _get_receipt(self, transaction_hash: str) -> Optional[Receipt]: method _as_dict (line 500) | def _as_dict(self, dict_or_none) -> dict: method _gas (line 506) | def _gas(self, gas_estimate: int, **kwargs) -> int: method _func (line 517) | def _func(self, from_account: str, gas: int, gas_price: Optional[int],... method _contract_function (line 538) | def _contract_function(self): method name (line 547) | def name(self) -> str: method estimated_gas (line 567) | def estimated_gas(self, from_address: Address) -> int: method transact (line 595) | def transact(self, **kwargs) -> Optional[Receipt]: method transact_async (line 620) | async def transact_async(self, **kwargs) -> Optional[Receipt]: method invocation (line 782) | def invocation(self) -> Invocation: class RecoveredTransact (line 796) | class RecoveredTransact(Transact): method __init__ (line 802) | def __init__(self, web3: Web3, method name (line 819) | def name(self): method transact_async (line 823) | async def transact_async(self, **kwargs) -> Optional[Receipt]: method cancel (line 827) | def cancel(self, gas_price: GasPrice): method cancel_async (line 830) | async def cancel_async(self, gas_price: GasPrice): class Transfer (line 864) | class Transfer: method __init__ (line 876) | def __init__(self, token_address: Address, from_address: Address, to_a... method __eq__ (line 886) | def __eq__(self, other): method __hash__ (line 893) | def __hash__(self): function eth_transfer (line 897) | def eth_transfer(web3: Web3, to: Address, amount: Wad) -> Transact: FILE: pymaker/approval.py function directly (line 27) | def directly(**kwargs): function via_tx_manager (line 47) | def via_tx_manager(tx_manager: TxManager, **kwargs): function hope_directly (line 67) | def hope_directly(**kwargs): FILE: pymaker/auctions.py function toBytes (line 36) | def toBytes(string: str): class AuctionContract (line 44) | class AuctionContract(Contract): method __init__ (line 46) | def __init__(self, web3: Web3, address: Address, abi: list): method approve (line 66) | def approve(self, source: Address, approval_function): method wards (line 83) | def wards(self, address: Address) -> bool: method vat (line 88) | def vat(self) -> Address: method get_past_lognotes (line 95) | def get_past_lognotes(self, abi: list, from_block: int, to_block: int ... method parse_event (line 131) | def parse_event(self, event): class DealableAuctionContract (line 135) | class DealableAuctionContract(AuctionContract): class DealLog (line 138) | class DealLog: method __init__ (line 139) | def __init__(self, lognote: LogNote): method __repr__ (line 146) | def __repr__(self): method __init__ (line 149) | def __init__(self, web3: Web3, address: Address, abi: list, bids: call... method active_auctions (line 156) | def active_auctions(self) -> list: method beg (line 168) | def beg(self) -> Wad: method ttl (line 176) | def ttl(self) -> int: method tau (line 184) | def tau(self) -> int: method kicks (line 192) | def kicks(self) -> int: method deal (line 200) | def deal(self, id: int) -> Transact: method tick (line 205) | def tick(self, id: int) -> Transact: class Flipper (line 212) | class Flipper(DealableAuctionContract): class Bid (line 235) | class Bid: method __init__ (line 236) | def __init__(self, id: int, bid: Rad, lot: Wad, guy: Address, tic: i... method __repr__ (line 258) | def __repr__(self): class KickLog (line 261) | class KickLog: method __init__ (line 262) | def __init__(self, log): method __repr__ (line 273) | def __repr__(self): class TendLog (line 276) | class TendLog: method __init__ (line 277) | def __init__(self, lognote: LogNote): method __repr__ (line 285) | def __repr__(self): class DentLog (line 288) | class DentLog: method __init__ (line 289) | def __init__(self, lognote: LogNote): method __repr__ (line 297) | def __repr__(self): method __init__ (line 300) | def __init__(self, web3: Web3, address: Address): method bids (line 303) | def bids(self, id: int) -> Bid: method tend (line 326) | def tend(self, id: int, lot: Wad, bid: Rad) -> Transact: method dent (line 333) | def dent(self, id: int, lot: Wad, bid: Rad) -> Transact: method past_logs (line 340) | def past_logs(self, from_block: int, to_block: int = None, chunk_size=... method parse_event (line 357) | def parse_event(self, event): method __repr__ (line 367) | def __repr__(self): class Flapper (line 371) | class Flapper(DealableAuctionContract): class Bid (line 393) | class Bid: method __init__ (line 394) | def __init__(self, id: int, bid: Wad, lot: Rad, guy: Address, tic: i... method __repr__ (line 409) | def __repr__(self): class KickLog (line 412) | class KickLog: method __init__ (line 413) | def __init__(self, log): method __repr__ (line 421) | def __repr__(self): class TendLog (line 424) | class TendLog: method __init__ (line 425) | def __init__(self, lognote: LogNote): method __repr__ (line 433) | def __repr__(self): method __init__ (line 436) | def __init__(self, web3: Web3, address: Address): method live (line 439) | def live(self) -> bool: method bids (line 442) | def bids(self, id: int) -> Bid: method tend (line 462) | def tend(self, id: int, lot: Rad, bid: Wad) -> Transact: method yank (line 469) | def yank(self, id: int) -> Transact: method past_logs (line 475) | def past_logs(self, from_block: int, to_block: int = None, chunk_size=... method parse_event (line 490) | def parse_event(self, event): method __repr__ (line 500) | def __repr__(self): class Flopper (line 504) | class Flopper(DealableAuctionContract): class Bid (line 526) | class Bid: method __init__ (line 527) | def __init__(self, id: int, bid: Rad, lot: Wad, guy: Address, tic: i... method __repr__ (line 542) | def __repr__(self): class KickLog (line 545) | class KickLog: method __init__ (line 546) | def __init__(self, log): method __repr__ (line 555) | def __repr__(self): class DentLog (line 558) | class DentLog: method __init__ (line 559) | def __init__(self, lognote: LogNote): method __repr__ (line 567) | def __repr__(self): method __init__ (line 570) | def __init__(self, web3: Web3, address: Address): method live (line 576) | def live(self) -> bool: method pad (line 579) | def pad(self) -> Wad: method bids (line 584) | def bids(self, id: int) -> Bid: method dent (line 604) | def dent(self, id: int, lot: Wad, bid: Rad) -> Transact: method yank (line 611) | def yank(self, id: int) -> Transact: method past_logs (line 617) | def past_logs(self, from_block: int, to_block: int = None, chunk_size=... method parse_event (line 632) | def parse_event(self, event): method __repr__ (line 642) | def __repr__(self): class Clipper (line 646) | class Clipper(AuctionContract): class KickLog (line 660) | class KickLog: method __init__ (line 661) | def __init__(self, log): method __repr__ (line 673) | def __repr__(self): class TakeLog (line 676) | class TakeLog: method __init__ (line 677) | def __init__(self, log, sender): method __repr__ (line 690) | def __repr__(self): class RedoLog (line 693) | class RedoLog(KickLog): method __repr__ (line 695) | def __repr__(self): class Sale (line 698) | class Sale: method __init__ (line 699) | def __init__(self, id: int, pos: int, tab: Rad, lot: Wad, usr: Addre... method __repr__ (line 716) | def __repr__(self): method __init__ (line 719) | def __init__(self, web3: Web3, address: Address): method active_auctions (line 740) | def active_auctions(self) -> list: method ilk_name (line 749) | def ilk_name(self) -> str: method buf (line 753) | def buf(self) -> Ray: method tail (line 757) | def tail(self) -> int: method cusp (line 761) | def cusp(self) -> Ray: method chip (line 765) | def chip(self) -> Wad: method tip (line 769) | def tip(self) -> Rad: method chost (line 773) | def chost(self) -> Rad: method kicks (line 777) | def kicks(self) -> int: method active_count (line 781) | def active_count(self) -> int: method status (line 785) | def status(self, id: int) -> (bool, Ray, Wad, Rad): method sales (line 796) | def sales(self, id: int) -> Sale: method validate_take (line 815) | def validate_take(self, id: int, amt: Wad, max: Ray, our_address: Addr... method take (line 848) | def take(self, id: int, amt: Wad, max: Ray, who: Address = None, data=... method redo (line 869) | def redo(self, id: int, kpr: Address = None) -> Transact: method upchost (line 884) | def upchost(self): method past_logs (line 888) | def past_logs(self, from_block: int, to_block: int = None, chunk_size=... method parse_event (line 903) | def parse_event(self, event): method _get_sender_for_eventlog (line 919) | def _get_sender_for_eventlog(self, event_data) -> Address: method __repr__ (line 924) | def __repr__(self): FILE: pymaker/auth.py class DSGuard (line 24) | class DSGuard(Contract): method __init__ (line 40) | def __init__(self, web3: Web3, address: Address): method deploy (line 49) | def deploy(web3: Web3): method permit (line 52) | def permit(self, src, dst, sig: bytes) -> Transact: method __repr__ (line 77) | def __repr__(self): class DSAuth (line 82) | class DSAuth(Contract): method __init__ (line 87) | def __init__(self, web3: Web3, address: Address): method deploy (line 96) | def deploy(web3: Web3): method get_owner (line 99) | def get_owner(self) -> Address: method set_owner (line 102) | def set_owner(self, owner: Address) -> Transact: method set_authority (line 108) | def set_authority(self, ds_authority: Address): FILE: pymaker/cdpmanager.py class CdpManager (line 26) | class CdpManager(Contract): method __init__ (line 35) | def __init__(self, web3: Web3, address: Address): method open (line 44) | def open(self, ilk: Ilk, address: Address) -> Transact: method urn (line 51) | def urn(self, cdpid: int) -> Urn: method owns (line 61) | def owns(self, cdpid: int) -> Address: method ilk (line 68) | def ilk(self, cdpid: int) -> Ilk: method first (line 75) | def first(self, address: Address) -> int: method last (line 82) | def last(self, address: Address) -> int: method count (line 89) | def count(self, address: Address) -> int: method __repr__ (line 96) | def __repr__(self): FILE: pymaker/collateral.py class Collateral (line 32) | class Collateral: method __init__ (line 38) | def __init__(self, ilk: Ilk, gem: ERC20Token, adapter: GemJoin, auctio... method approve (line 59) | def approve(self, usr: Address, **kwargs): FILE: pymaker/deployment.py function deploy_contract (line 48) | def deploy_contract(web3: Web3, contract_name: str, args: Optional[list]... class Deployment (line 73) | class Deployment: method __init__ (line 80) | def __init__(self): method reset (line 138) | def reset(self): method time_travel_by (line 143) | def time_travel_by(self, seconds: int): class DssDeployment (line 148) | class DssDeployment: class Config (line 160) | class Config: method __init__ (line 161) | def __init__(self, pause: DSPause, vat: Vat, vow: Vow, jug: Jug, cat... method from_json (line 190) | def from_json(web3: Web3, conf: str): method _infer_collaterals_from_addresses (line 264) | def _infer_collaterals_from_addresses(keys: []) -> List: method to_dict (line 277) | def to_dict(self) -> dict: method to_json (line 320) | def to_json(self) -> str: method __init__ (line 323) | def __init__(self, web3: Web3, config: Config): method from_json (line 353) | def from_json(web3: Web3, conf: str): method to_json (line 356) | def to_json(self) -> str: method from_node (line 360) | def from_node(web3: Web3): method from_network (line 368) | def from_network(web3: Web3, network: str): method approve_dai (line 377) | def approve_dai(self, usr: Address, **kwargs): method active_auctions (line 391) | def active_auctions(self) -> dict: method __repr__ (line 408) | def __repr__(self): FILE: pymaker/dsr.py class Dsr (line 30) | class Dsr: method __init__ (line 36) | def __init__(self, mcd: DssDeployment, owner: Address): method has_proxy (line 43) | def has_proxy(self) -> bool: method get_proxy (line 46) | def get_proxy(self) -> DSProxy: method build_proxy (line 49) | def build_proxy(self) -> Transact: method chi (line 52) | def chi(self) -> Ray: method get_total_dai (line 55) | def get_total_dai(self) -> Wad: method dsr (line 58) | def dsr(self) -> Ray: method get_balance (line 61) | def get_balance(self, proxy: Address) -> Wad: method join (line 74) | def join(self, amount: Wad, proxy: DSProxy) -> Transact: method exit (line 89) | def exit(self, amount: Wad, proxy: DSProxy) -> Transact: method exit_all (line 104) | def exit_all(self, proxy: DSProxy) -> Transact: FILE: pymaker/dsrmanager.py class DsrManager (line 28) | class DsrManager(Contract): method __init__ (line 39) | def __init__(self, web3: Web3, address: Address): method pot (line 47) | def pot(self) -> Pot: method dai (line 51) | def dai(self) -> DSToken: method dai_adapter (line 55) | def dai_adapter(self) -> DaiJoin: method supply (line 59) | def supply(self) -> Wad: method pie_of (line 63) | def pie_of(self, usr: Address) -> Wad: method dai_of (line 69) | def dai_of(self, usr: Address) -> Rad: method join (line 83) | def join(self, dst: Address, dai: Wad) -> Transact: method exit (line 91) | def exit(self, dst: Address, dai: Wad) -> Transact: method exitAll (line 99) | def exitAll(self, dst: Address) -> Transact: method __repr__ (line 105) | def __repr__(self): FILE: pymaker/dss.py class Urn (line 35) | class Urn: method __init__ (line 40) | def __init__(self, address: Address, ilk: Ilk = None, ink: Wad = None,... method toBytes (line 51) | def toBytes(self): method fromBytes (line 56) | def fromBytes(urn: bytes): method __eq__ (line 62) | def __eq__(self, other): method __repr__ (line 67) | def __repr__(self): class Vat (line 80) | class Vat(Contract): class LogFrob (line 87) | class LogFrob: method __init__ (line 88) | def __init__(self, lognote: LogNote): method __repr__ (line 100) | def __repr__(self): class LogMove (line 104) | class LogMove: method __init__ (line 105) | def __init__(self, lognote: LogNote): method __repr__ (line 114) | def __repr__(self): class LogFork (line 118) | class LogFork: method __init__ (line 119) | def __init__(self, lognote: LogNote): method __repr__ (line 130) | def __repr__(self): method __init__ (line 136) | def __init__(self, web3: Web3, address: Address): method init (line 144) | def init(self, ilk: Ilk) -> Transact: method live (line 149) | def live(self) -> bool: method wards (line 152) | def wards(self, address: Address): method hope (line 157) | def hope(self, address: Address): method can (line 162) | def can(self, sender: Address, usr: Address): method ilk (line 168) | def ilk(self, name: str) -> Ilk: method gem (line 177) | def gem(self, ilk: Ilk, urn: Address) -> Wad: method dai (line 183) | def dai(self, urn: Address) -> Rad: method sin (line 188) | def sin(self, urn: Address) -> Rad: method urn (line 193) | def urn(self, ilk: Ilk, address: Address) -> Urn: method debt (line 200) | def debt(self) -> Rad: method vice (line 203) | def vice(self) -> Rad: method line (line 206) | def line(self) -> Rad: method flux (line 210) | def flux(self, ilk: Ilk, src: Address, dst: Address, wad: Wad) -> Tran... method move (line 227) | def move(self, src: Address, dst: Address, rad: Rad) -> Transact: method fork (line 242) | def fork(self, ilk: Ilk, src: Address, dst: Address, dink: Wad, dart: ... method frob (line 261) | def frob(self, ilk: Ilk, urn_address: Address, dink: Wad, dart: Wad, c... method get_wipe_all_dart (line 297) | def get_wipe_all_dart(self, ilk: Ilk, urn: Address) -> Wad: method validate_frob (line 309) | def validate_frob(self, ilk: Ilk, address: Address, dink: Wad, dart: W... method past_frobs (line 363) | def past_frobs(self, from_block: int, to_block: int = None, ilk: Ilk =... method past_logs (line 376) | def past_logs(self, from_block: int, to_block: int = None, ilk: Ilk = ... method heal (line 446) | def heal(self, vice: Rad) -> Transact: method __eq__ (line 451) | def __eq__(self, other): method __repr__ (line 455) | def __repr__(self): class Spotter (line 459) | class Spotter(Contract): method __init__ (line 469) | def __init__(self, web3: Web3, address: Address): method poke (line 477) | def poke(self, ilk: Ilk) -> Transact: method vat (line 482) | def vat(self) -> Address: method par (line 485) | def par(self) -> Ray: method mat (line 488) | def mat(self, ilk: Ilk) -> Ray: method __repr__ (line 494) | def __repr__(self): class Vow (line 498) | class Vow(Contract): method __init__ (line 508) | def __init__(self, web3: Web3, address: Address): method rely (line 517) | def rely(self, guy: Address) -> Transact: method live (line 522) | def live(self) -> bool: method flapper (line 525) | def flapper(self) -> Address: method flopper (line 528) | def flopper(self) -> Address: method sin (line 531) | def sin(self) -> Rad: method sin_of (line 534) | def sin_of(self, era: int) -> Rad: method ash (line 537) | def ash(self) -> Rad: method woe (line 540) | def woe(self) -> Rad: method wait (line 543) | def wait(self) -> int: method dump (line 546) | def dump(self) -> Wad: method sump (line 549) | def sump(self) -> Rad: method bump (line 552) | def bump(self) -> Rad: method hump (line 555) | def hump(self) -> Rad: method flog (line 558) | def flog(self, era: int) -> Transact: method heal (line 563) | def heal(self, rad: Rad) -> Transact: method kiss (line 569) | def kiss(self, rad: Rad) -> Transact: method flop (line 574) | def flop(self) -> Transact: method flap (line 580) | def flap(self) -> Transact: method __repr__ (line 586) | def __repr__(self): class Jug (line 590) | class Jug(Contract): method __init__ (line 599) | def __init__(self, web3: Web3, address: Address): method init (line 609) | def init(self, ilk: Ilk) -> Transact: method wards (line 614) | def wards(self, address: Address): method drip (line 619) | def drip(self, ilk: Ilk) -> Transact: method base (line 624) | def base(self) -> Ray: method duty (line 627) | def duty(self, ilk: Ilk) -> Ray: method rho (line 632) | def rho(self, ilk: Ilk) -> int: method __repr__ (line 637) | def __repr__(self): class Cat (line 641) | class Cat(Contract): class LogBite (line 649) | class LogBite: method __init__ (line 650) | def __init__(self, log): method era (line 660) | def era(self, web3: Web3): method __eq__ (line 663) | def __eq__(self, other): method __repr__ (line 667) | def __repr__(self): method __init__ (line 673) | def __init__(self, web3: Web3, address: Address): method live (line 683) | def live(self) -> bool: method can_bite (line 686) | def can_bite(self, ilk: Ilk, urn: Urn) -> bool: method bite (line 721) | def bite(self, ilk: Ilk, urn: Urn) -> Transact: method chop (line 740) | def chop(self, ilk: Ilk) -> Wad: method dunk (line 746) | def dunk(self, ilk: Ilk) -> Rad: method flipper (line 752) | def flipper(self, ilk: Ilk) -> Address: method box (line 758) | def box(self) -> Rad: method litter (line 761) | def litter(self) -> Rad: method past_bites (line 764) | def past_bites(self, number_of_past_blocks: int, event_filter: dict = ... method __repr__ (line 781) | def __repr__(self): class Dog (line 785) | class Dog(Contract): class LogBark (line 793) | class LogBark: method __init__ (line 794) | def __init__(self, log): method era (line 804) | def era(self, web3: Web3): method __eq__ (line 807) | def __eq__(self, other): method __repr__ (line 811) | def __repr__(self): method __init__ (line 817) | def __init__(self, web3: Web3, address: Address): method live (line 829) | def live(self) -> bool: method clipper (line 832) | def clipper(self, ilk: Ilk) -> Address: method chop (line 838) | def chop(self, ilk: Ilk) -> Wad: method hole (line 843) | def hole(self, ilk: Ilk) -> Rad: method dirt (line 848) | def dirt(self, ilk: Ilk) -> Rad: method dog_hole (line 853) | def dog_hole(self) -> Rad: method dog_dirt (line 856) | def dog_dirt(self) -> Rad: method bark (line 859) | def bark(self, ilk: Ilk, urn: Urn, kpr: Address = None) -> Transact: method past_barks (line 883) | def past_barks(self, number_of_past_blocks: int, event_filter: dict = ... class Pot (line 901) | class Pot(Contract): method __init__ (line 910) | def __init__(self, web3: Web3, address: Address): method approve (line 918) | def approve(self, source: Address, approval_function, **kwargs): method pie_of (line 925) | def pie_of(self, address: Address) -> Wad: method pie (line 929) | def pie(self) -> Wad: method dsr (line 933) | def dsr(self) -> Ray: method chi (line 937) | def chi(self) -> Ray: method rho (line 941) | def rho(self) -> datetime: method drip (line 945) | def drip(self) -> Transact: method __repr__ (line 950) | def __repr__(self): class TokenFaucet (line 954) | class TokenFaucet(Contract): method __init__ (line 963) | def __init__(self, web3: Web3, address: Address): method gulp (line 971) | def gulp(self, address: Address): FILE: pymaker/etherdelta.py class Order (line 37) | class Order: method __init__ (line 52) | def __init__(self, ether_delta, maker: Address, pay_token: Address, pa... method sell_to_buy_price (line 79) | def sell_to_buy_price(self) -> Wad: method buy_to_sell_price (line 83) | def buy_to_sell_price(self) -> Wad: method remaining_buy_amount (line 87) | def remaining_buy_amount(self) -> Wad: method remaining_sell_amount (line 91) | def remaining_sell_amount(self) -> Wad: method from_json (line 95) | def from_json(ether_delta, data: dict): method to_json (line 102) | def to_json(self) -> dict: method __eq__ (line 115) | def __eq__(self, other): method __hash__ (line 128) | def __hash__(self): method __str__ (line 140) | def __str__(self): method __repr__ (line 145) | def __repr__(self): class LogTrade (line 149) | class LogTrade: method __init__ (line 150) | def __init__(self, log): method __repr__ (line 159) | def __repr__(self): class EtherDelta (line 163) | class EtherDelta(Contract): method deploy (line 180) | def deploy(web3: Web3, method __init__ (line 205) | def __init__(self, web3: Web3, address: Address): method approve (line 213) | def approve(self, tokens: List[ERC20Token], approval_function): method admin (line 229) | def admin(self) -> Address: method fee_account (line 237) | def fee_account(self) -> Address: method account_levels_addr (line 245) | def account_levels_addr(self) -> Address: method fee_make (line 253) | def fee_make(self) -> Wad: method fee_take (line 261) | def fee_take(self) -> Wad: method fee_rebate (line 269) | def fee_rebate(self) -> Wad: method past_trade (line 279) | def past_trade(self, number_of_past_blocks: int, event_filter: dict = ... method deposit (line 296) | def deposit(self, amount: Wad) -> Transact: method withdraw (line 308) | def withdraw(self, amount: Wad) -> Transact: method balance_of (line 322) | def balance_of(self, user: Address) -> Wad: method deposit_token (line 334) | def deposit_token(self, token: Address, amount: Wad) -> Transact: method withdraw_token (line 353) | def withdraw_token(self, token: Address, amount: Wad) -> Transact: method balance_of_token (line 370) | def balance_of_token(self, token: Address, user: Address) -> Wad: method create_order (line 384) | def create_order(self, method amount_available (line 433) | def amount_available(self, order: Order) -> Wad: method amount_filled (line 458) | def amount_filled(self, order: Order) -> Wad: method trade (line 486) | def trade(self, order: Order, amount: Wad) -> Transact: method can_trade (line 519) | def can_trade(self, order: Order, amount: Wad) -> bool: method cancel_order (line 548) | def cancel_order(self, order: Order) -> Transact: method random_nonce (line 573) | def random_nonce(): method __repr__ (line 576) | def __repr__(self): class EtherDeltaApi (line 580) | class EtherDeltaApi: method __init__ (line 596) | def __init__(self, method publish_order (line 617) | def publish_order(self, order: Order): method __repr__ (line 653) | def __repr__(self): FILE: pymaker/feed.py class DSValue (line 24) | class DSValue(DSAuth): method deploy (line 52) | def deploy(web3: Web3): method __init__ (line 55) | def __init__(self, web3: Web3, address: Address): method has_value (line 63) | def has_value(self) -> bool: method read (line 71) | def read(self) -> bytes: method read_as_hex (line 81) | def read_as_hex(self) -> str: method read_as_int (line 91) | def read_as_int(self) -> int: method poke (line 104) | def poke(self, new_value: bytes) -> Transact: method poke_with_int (line 117) | def poke_with_int(self, new_value: int) -> Transact: method void (line 135) | def void(self) -> Transact: method __repr__ (line 143) | def __repr__(self): FILE: pymaker/gas.py class GasPrice (line 23) | class GasPrice(object): method get_gas_price (line 41) | def get_gas_price(self, time_elapsed: int) -> Optional[int]: class DefaultGasPrice (line 61) | class DefaultGasPrice(GasPrice): method get_gas_price (line 68) | def get_gas_price(self, time_elapsed: int) -> Optional[int]: class NodeAwareGasPrice (line 72) | class NodeAwareGasPrice(GasPrice): method __init__ (line 78) | def __init__(self, web3: Web3): method get_gas_price (line 84) | def get_gas_price(self, time_elapsed: int) -> Optional[int]: method get_node_gas_price (line 89) | def get_node_gas_price(self): class FixedGasPrice (line 93) | class FixedGasPrice(GasPrice): method __init__ (line 103) | def __init__(self, gas_price: int): method update_gas_price (line 107) | def update_gas_price(self, new_gas_price: int): method get_gas_price (line 124) | def get_gas_price(self, time_elapsed: int) -> Optional[int]: class IncreasingGasPrice (line 129) | class IncreasingGasPrice(GasPrice): method __init__ (line 142) | def __init__(self, initial_price: int, increase_by: int, every_secs: i... method get_gas_price (line 158) | def get_gas_price(self, time_elapsed: int) -> Optional[int]: class GeometricGasPrice (line 168) | class GeometricGasPrice(GasPrice): method __init__ (line 181) | def __init__(self, initial_price: int, every_secs: int, coefficient=1.... method get_gas_price (line 196) | def get_gas_price(self, time_elapsed: int) -> Optional[int]: FILE: pymaker/governance.py class DSPause (line 29) | class DSPause(Contract): class Plan (line 40) | class Plan: method __init__ (line 41) | def __init__(self, usr: Address, fax: bytes, eta: datetime): method __init__ (line 60) | def __init__(self, web3: Web3, address: Address): method deploy (line 69) | def deploy(web3: Web3, delay: int, owner: Address, ds_auth: DSAuth): method drop (line 77) | def drop(self, plan: Plan): method exec (line 80) | def exec(self, plan: Plan) -> Transact: method _transact (line 83) | def _transact(self, plan: Plan, function_name: str) -> Transact: class DSRoles (line 92) | class DSRoles(Contract): method __init__ (line 106) | def __init__(self, web3: Web3, address: Address): method is_root_user (line 114) | def is_root_user(self, who: Address) -> bool: method set_root_user (line 119) | def set_root_user(self, who: Address, enabled=True) -> Transact: method has_user_role (line 125) | def has_user_role(self, who: Address, role: int) -> bool: method set_user_role (line 132) | def set_user_role(self, who: Address, role: int, enabled=True) -> Tran... class Etch (line 141) | class Etch: method __init__ (line 142) | def __init__(self, log): method __repr__ (line 149) | def __repr__(self): class DSChief (line 153) | class DSChief(Contract): method __init__ (line 167) | def __init__(self, web3: Web3, address: Address): method live (line 175) | def live(self) -> bool: method iou (line 178) | def iou(self) -> DSToken: method get_votes (line 181) | def get_votes(self, address): method get_yay (line 184) | def get_yay(self, slate, position) -> str: method get_deposits (line 187) | def get_deposits(self, address) -> Wad: method get_approvals (line 190) | def get_approvals(self, address) -> Wad: method get_hat (line 193) | def get_hat(self) -> Address: method get_max_yays (line 196) | def get_max_yays(self) -> int: method launch (line 199) | def launch(self) -> Transact: method lock (line 202) | def lock(self, amount: Wad) -> Transact: method free (line 207) | def free(self, amount: Wad) -> Transact: method etch (line 212) | def etch(self, yays: List) -> Transact: method vote_yays (line 217) | def vote_yays(self, yays: List) -> Transact: method vote_etch (line 222) | def vote_etch(self, etch: Etch) -> Transact: method lift (line 227) | def lift(self, whom: Address) -> Transact: method past_etch (line 232) | def past_etch(self, number_of_past_blocks: int, event_filter: dict = N... method past_etch_in_range (line 249) | def past_etch_in_range(self, from_block: int, to_block: int, event_fil... FILE: pymaker/ilk.py class Ilk (line 24) | class Ilk: method __init__ (line 30) | def __init__(self, name: str, rate: Optional[Ray] = None, method toBytes (line 52) | def toBytes(self): method fromBytes (line 56) | def fromBytes(ilk: bytes): method __eq__ (line 62) | def __eq__(self, other): method __repr__ (line 73) | def __repr__(self): FILE: pymaker/join.py class Join (line 31) | class Join(Contract): method __init__ (line 32) | def __init__(self, web3: Web3, address: Address): method approve (line 41) | def approve(self, approval_function, source: Address): method approve_token (line 47) | def approve_token(self, approval_function, **kwargs): method join (line 50) | def join(self, usr: Address, value: Wad) -> Transact: method exit (line 57) | def exit(self, usr: Address, value: Wad) -> Transact: class DaiJoin (line 65) | class DaiJoin(Join): method __init__ (line 74) | def __init__(self, web3: Web3, address: Address): method dai (line 78) | def dai(self) -> DSToken: class GemJoin (line 83) | class GemJoin(Join): method __init__ (line 92) | def __init__(self, web3: Web3, address: Address): method ilk (line 96) | def ilk(self): method gem (line 99) | def gem(self) -> DSToken: method dec (line 103) | def dec(self) -> int: class GemJoin5 (line 107) | class GemJoin5(GemJoin): method __init__ (line 115) | def __init__(self, web3: Web3, address: Address): method dec (line 119) | def dec(self) -> int: FILE: pymaker/keys.py function register_keys (line 30) | def register_keys(web3: Web3, keys: Optional[list]): function register_key (line 35) | def register_key(web3: Web3, key: str): function register_key_file (line 46) | def register_key_file(web3: Web3, key_file: str, pass_file: Optional[str... function get_private_key (line 62) | def get_private_key(web3: Web3, key: str): function register_private_key (line 83) | def register_private_key(web3: Web3, private_key): FILE: pymaker/lifecycle.py function trigger_event (line 33) | def trigger_event(event: threading.Event): class Lifecycle (line 39) | class Lifecycle: method __init__ (line 80) | def __init__(self, web3: Web3 = None): method __enter__ (line 99) | def __enter__(self): method __exit__ (line 102) | def __exit__(self, exc_type, exc_val, exc_tb): method _wait_for_init (line 191) | def _wait_for_init(self): method _check_account_unlocked (line 210) | def _check_account_unlocked(self): method wait_for_sync (line 218) | def wait_for_sync(self, wait_for_sync: bool): method initial_delay (line 223) | def initial_delay(self, initial_delay: int): method wait_for (line 237) | def wait_for(self, initial_check, max_wait: int): method on_startup (line 253) | def on_startup(self, callback): method on_shutdown (line 264) | def on_shutdown(self, callback): method terminate (line 275) | def terminate(self, message=None): method on_block (line 281) | def on_block(self, callback): method on_event (line 293) | def on_event(self, event: threading.Event, min_frequency_in_seconds: i... method every (line 309) | def every(self, frequency_in_seconds: int, callback): method _sigint_sigterm_handler (line 318) | def _sigint_sigterm_handler(self, sig, frame): method _start_watching_blocks (line 325) | def _start_watching_blocks(self): method _start_thread_safely (line 373) | def _start_thread_safely(self, t: threading.Thread): method _start_every_timers (line 384) | def _start_every_timers(self): method _start_every_timer (line 397) | def _start_every_timer(self, idx: int, frequency_in_seconds: int, call... method _start_event_timer (line 425) | def _start_event_timer(self, idx: int, event: threading.Event, min_fre... method _main_loop (line 459) | def _main_loop(self): FILE: pymaker/logging.py class LogNote (line 27) | class LogNote: method __init__ (line 28) | def __init__(self, log): method from_event (line 40) | def from_event(cls, event: dict, contract_abi: list): method get_bytes_at_index (line 53) | def get_bytes_at_index(self, index: int) -> bytes: method __eq__ (line 61) | def __eq__(self, other): method __repr__ (line 65) | def __repr__(self): FILE: pymaker/model.py class Token (line 25) | class Token: method __init__ (line 26) | def __init__(self, name: str, address: Optional[Address], decimals: int): method normalize_amount (line 37) | def normalize_amount(self, amount: Wad) -> Wad: method unnormalize_amount (line 42) | def unnormalize_amount(self, amount: Wad) -> Wad: method is_eth (line 47) | def is_eth(self) -> bool: method __eq__ (line 50) | def __eq__(self, other): method __hash__ (line 56) | def __hash__(self): method __str__ (line 59) | def __str__(self): method __repr__ (line 62) | def __repr__(self): class TokenConfig (line 66) | class TokenConfig: method __init__ (line 67) | def __init__(self, data: dict): method set_token_list (line 73) | def set_token_list(self, data): method get_token_list (line 81) | def get_token_list(self) -> List[Token]: method __repr__ (line 84) | def __repr__(self): FILE: pymaker/numeric.py class Wad (line 28) | class Wad: method __init__ (line 42) | def __init__(self, value): method from_number (line 63) | def from_number(cls, number): method __repr__ (line 69) | def __repr__(self): method __str__ (line 72) | def __str__(self): method __add__ (line 76) | def __add__(self, other): method __sub__ (line 82) | def __sub__(self, other): method __mod__ (line 88) | def __mod__(self, other): method __mul__ (line 95) | def __mul__(self, other): method __truediv__ (line 110) | def __truediv__(self, other): method __abs__ (line 116) | def __abs__(self): method __eq__ (line 119) | def __eq__(self, other): method __hash__ (line 125) | def __hash__(self): method __lt__ (line 128) | def __lt__(self, other): method __int__ (line 134) | def __int__(self): method __float__ (line 137) | def __float__(self): method __round__ (line 140) | def __round__(self, ndigits: int = 0): method __sqrt__ (line 143) | def __sqrt__(self): method min (line 147) | def min(*args): method max (line 152) | def max(*args): class Ray (line 158) | class Ray: method __init__ (line 172) | def __init__(self, value): method from_number (line 193) | def from_number(cls, number): method __repr__ (line 199) | def __repr__(self): method __str__ (line 202) | def __str__(self): method __add__ (line 206) | def __add__(self, other): method __sub__ (line 212) | def __sub__(self, other): method __mod__ (line 218) | def __mod__(self, other): method __mul__ (line 224) | def __mul__(self, other): method __truediv__ (line 239) | def __truediv__(self, other): method __abs__ (line 245) | def __abs__(self): method __eq__ (line 248) | def __eq__(self, other): method __hash__ (line 254) | def __hash__(self): method __lt__ (line 257) | def __lt__(self, other): method __int__ (line 263) | def __int__(self): method __float__ (line 266) | def __float__(self): method __round__ (line 269) | def __round__(self, ndigits: int = 0): method __sqrt__ (line 272) | def __sqrt__(self): method min (line 276) | def min(*args): method max (line 281) | def max(*args): class Rad (line 287) | class Rad: method __init__ (line 301) | def __init__(self, value): method from_number (line 322) | def from_number(cls, number): method __repr__ (line 328) | def __repr__(self): method __str__ (line 331) | def __str__(self): method __add__ (line 335) | def __add__(self, other): method __sub__ (line 341) | def __sub__(self, other): method __mod__ (line 347) | def __mod__(self, other): method __mul__ (line 353) | def __mul__(self, other): method __truediv__ (line 368) | def __truediv__(self, other): method __abs__ (line 374) | def __abs__(self): method __eq__ (line 377) | def __eq__(self, other): method __hash__ (line 383) | def __hash__(self): method __lt__ (line 386) | def __lt__(self, other): method __int__ (line 392) | def __int__(self): method __float__ (line 395) | def __float__(self): method __round__ (line 398) | def __round__(self, ndigits: int = 0): method __sqrt__ (line 401) | def __sqrt__(self): method min (line 405) | def min(*args): method max (line 410) | def max(*args): FILE: pymaker/oasis.py class Order (line 34) | class Order: method __init__ (line 50) | def __init__(self, market, order_id: int, maker: Address, pay_token: A... method sell_to_buy_price (line 70) | def sell_to_buy_price(self) -> Wad: method buy_to_sell_price (line 74) | def buy_to_sell_price(self) -> Wad: method remaining_buy_amount (line 78) | def remaining_buy_amount(self) -> Wad: method remaining_sell_amount (line 82) | def remaining_sell_amount(self) -> Wad: method __eq__ (line 85) | def __eq__(self, other): method __hash__ (line 89) | def __hash__(self): method __repr__ (line 92) | def __repr__(self): class LogMake (line 96) | class LogMake: method __init__ (line 97) | def __init__(self, log): method from_receipt (line 108) | def from_receipt(cls, receipt: Receipt): method __repr__ (line 120) | def __repr__(self): class LogBump (line 124) | class LogBump: method __init__ (line 125) | def __init__(self, log): method __repr__ (line 135) | def __repr__(self): class LogTake (line 139) | class LogTake: method __init__ (line 140) | def __init__(self, log): method from_event (line 152) | def from_event(cls, event: dict): method __eq__ (line 163) | def __eq__(self, other): method __repr__ (line 167) | def __repr__(self): class LogKill (line 171) | class LogKill: method __init__ (line 172) | def __init__(self, log): method __repr__ (line 182) | def __repr__(self): class SimpleMarket (line 186) | class SimpleMarket(Contract): method __init__ (line 203) | def __init__(self, web3: Web3, address: Address): method deploy (line 212) | def deploy(web3: Web3): method approve (line 223) | def approve(self, tokens: List[ERC20Token], approval_function): method past_make (line 239) | def past_make(self, number_of_past_blocks: int, event_filter: dict = N... method past_bump (line 256) | def past_bump(self, number_of_past_blocks: int, event_filter: dict = N... method past_take (line 273) | def past_take(self, number_of_past_blocks: int, event_filter: dict = N... method past_kill (line 290) | def past_kill(self, number_of_past_blocks: int, event_filter: dict = N... method get_last_order_id (line 307) | def get_last_order_id(self) -> int: method get_order (line 315) | def get_order(self, order_id: int, block_ident: Optional[str] = None) ... method get_orders (line 340) | def get_orders(self, pay_token: Address = None, buy_token: Address = N... method get_orders_by_maker (line 364) | def get_orders_by_maker(self, maker: Address) -> List[Order]: method make (line 392) | def make(self, pay_token: Address, pay_amount: Wad, buy_token: Address... method bump (line 420) | def bump(self, order_id: int) -> Transact: method take (line 437) | def take(self, order_id: int, quantity: Wad) -> Transact: method kill (line 457) | def kill(self, order_id: int) -> Transact: method _make_order_id_result_function (line 473) | def _make_order_id_result_function(receipt): method __repr__ (line 476) | def __repr__(self): class MatchingMarket (line 480) | class MatchingMarket(SimpleMarket): method __init__ (line 497) | def __init__(self, web3: Web3, address: Address, support_address: Opti... method deploy (line 507) | def deploy(web3: Web3, dust_token: Address, dust_limit: Wad, price_ora... method add_token_pair_whitelist (line 532) | def add_token_pair_whitelist(self, base_token: Address, quote_token: A... method get_orders (line 550) | def get_orders(self, p_token: Token = None, b_token: Token = None, bl... method make (line 627) | def make(self, p_token: Token, pay_amount: Wad, b_token: Token, buy_am... method position (line 681) | def position(self, p_token: Token, pay_amount: Wad, b_token: Token, bu... method __repr__ (line 723) | def __repr__(self): FILE: pymaker/oracles.py class OSM (line 25) | class OSM(Contract): method __init__ (line 39) | def __init__(self, web3: Web3, address: Address): method poke (line 47) | def poke(self) -> Transact: method peek (line 50) | def peek(self) -> Wad: method peep (line 53) | def peep(self) -> Wad: method zzz (line 56) | def zzz(self) -> int: method _extract_price (line 59) | def _extract_price(self, storage_slot: int) -> int: method __repr__ (line 63) | def __repr__(self): class OldUniv2LpOSM (line 67) | class OldUniv2LpOSM(OSM): method __init__ (line 74) | def __init__(self, web3: Web3, address: Address): method peek (line 77) | def peek(self) -> Wad: method peep (line 80) | def peep(self) -> Wad: FILE: pymaker/proxy.py class DSProxyCache (line 30) | class DSProxyCache(Contract): method __init__ (line 39) | def __init__(self, web3: Web3, address: Address): method deploy (line 48) | def deploy(cls, web3: Web3): method read (line 51) | def read(self, code: str) -> Optional[Address]: method write (line 65) | def write(self, code: str): method __repr__ (line 75) | def __repr__(self): class DSProxy (line 79) | class DSProxy(Contract): method __init__ (line 88) | def __init__(self, web3: Web3, address: Address): method authority (line 96) | def authority(self) -> Address: method set_authority (line 104) | def set_authority(self, address: Address) -> Transact: method deploy (line 117) | def deploy(cls, web3: Web3, cache: Address): method execute (line 120) | def execute(self, code: str, calldata: Calldata) -> Transact: method call (line 132) | def call(self, code: str, calldata: Calldata) -> (Address, HexBytes): method execute_at (line 141) | def execute_at(self, address: Address, calldata: Calldata) -> Transact: method call_at (line 148) | def call_at(self, address: Address, calldata: Calldata) -> Transact: method set_cache (line 157) | def set_cache(self, address: Address) -> Transact: method cache (line 162) | def cache(self) -> Address: method __repr__ (line 165) | def __repr__(self): class LogCreated (line 170) | class LogCreated: method __init__ (line 171) | def __init__(self, log): method from_event (line 179) | def from_event(cls, event: dict): method __eq__ (line 192) | def __eq__(self, other): class DSProxyFactory (line 197) | class DSProxyFactory(Contract): method __init__ (line 206) | def __init__(self, web3: Web3, address: Address): method deploy (line 215) | def deploy(cls, web3: Web3): method build (line 218) | def build(self) -> Transact: method build_for (line 221) | def build_for(self, address: Address) -> Transact: method cache (line 226) | def cache(self) -> Address: method is_proxy (line 229) | def is_proxy(self, address: Address) -> bool: method past_build (line 234) | def past_build(self, number_of_past_blocks: int, event_filter: dict = ... method log_created (line 252) | def log_created(cls, receipt: Receipt) -> List[LogCreated]: method __repr__ (line 264) | def __repr__(self): class ProxyRegistry (line 268) | class ProxyRegistry(Contract): method __init__ (line 277) | def __init__(self, web3: Web3, address: Address): method build (line 285) | def build(self, owner: Address) -> Transact: method proxies (line 289) | def proxies(self, owner: Address) -> Address: method __repr__ (line 293) | def __repr__(self): class DssProxyActionsDsr (line 297) | class DssProxyActionsDsr(Contract): method __init__ (line 306) | def __init__(self, web3: Web3, address: Address): FILE: pymaker/reloadable_config.py class ReloadableConfig (line 19) | class ReloadableConfig: method __init__ (line 32) | def __init__(self, filename: str): method _import_callback (line 42) | def _import_callback(self, paths: list): method _load_mtimes (line 53) | def _load_mtimes(self, imported_paths: List[str]) -> dict: method _mtimes_changed (line 56) | def _mtimes_changed(self, imported_paths_to_mtimes: dict) -> bool: method get_config (line 63) | def get_config(self): FILE: pymaker/sai.py class Cup (line 28) | class Cup: method __init__ (line 41) | def __init__(self, cup_id: int, lad: Address, ink: Wad, art: Wad): method __repr__ (line 51) | def __repr__(self): class Tub (line 55) | class Tub(Contract): method __init__ (line 76) | def __init__(self, web3: Web3, address: Address): method deploy (line 85) | def deploy(web3: Web3, sai: Address, sin: Address, skr: Address, gem: ... method set_authority (line 100) | def set_authority(self, address: Address) -> Transact: method approve (line 104) | def approve(self, approval_function): method era (line 120) | def era(self) -> int: method tap (line 128) | def tap(self) -> Address: method sai (line 136) | def sai(self) -> Address: method sin (line 144) | def sin(self) -> Address: method gov (line 152) | def gov(self) -> Address: method vox (line 160) | def vox(self) -> Address: method pit (line 168) | def pit(self) -> Address: method skr (line 176) | def skr(self) -> Address: method gem (line 184) | def gem(self) -> Address: method pip (line 192) | def pip(self) -> Address: method pep (line 200) | def pep(self) -> Address: method axe (line 208) | def axe(self) -> Ray: method cap (line 216) | def cap(self) -> Wad: method mat (line 224) | def mat(self) -> Ray: method tax (line 232) | def tax(self) -> Ray: method reg (line 240) | def reg(self) -> int: method fit (line 248) | def fit(self) -> Ray: method rho (line 256) | def rho(self) -> int: method tau (line 264) | def tau(self) -> int: method chi (line 272) | def chi(self) -> Ray: method mold_axe (line 284) | def mold_axe(self, new_axe: Ray) -> Transact: method mold_cap (line 296) | def mold_cap(self, new_cap: Wad) -> Transact: method mold_mat (line 308) | def mold_mat(self, new_mat: Ray) -> Transact: method mold_tax (line 320) | def mold_tax(self, new_tax: Ray) -> Transact: method mold_gap (line 332) | def mold_gap(self, new_gap: Wad) -> Transact: method drip (line 344) | def drip(self) -> Transact: method prod (line 352) | def prod(self) -> Transact: method din (line 360) | def din(self) -> Wad: method pie (line 368) | def pie(self) -> Wad: method air (line 376) | def air(self) -> Wad: method tag (line 384) | def tag(self) -> Ray: method per (line 395) | def per(self) -> Ray: method gap (line 406) | def gap(self) -> Wad: method bid (line 414) | def bid(self, amount: Wad) -> Wad: method ask (line 424) | def ask(self, amount: Wad) -> Wad: method cupi (line 434) | def cupi(self) -> int: method cups (line 442) | def cups(self, cup_id: int) -> Cup: method tab (line 455) | def tab(self, cup_id: int) -> Wad: method ink (line 467) | def ink(self, cup_id: int) -> Wad: method lad (line 479) | def lad(self, cup_id: int) -> Address: method safe (line 491) | def safe(self, cup_id: int) -> bool: method join (line 503) | def join(self, amount_in_skr: Wad) -> Transact: method exit (line 515) | def exit(self, amount_in_skr: Wad) -> Transact: method open (line 528) | def open(self) -> Transact: method shut (line 536) | def shut(self, cup_id: int) -> Transact: method lock (line 551) | def lock(self, cup_id: int, amount_in_skr: Wad) -> Transact: method free (line 566) | def free(self, cup_id: int, amount_in_skr: Wad) -> Transact: method draw (line 581) | def draw(self, cup_id: int, amount_in_sai: Wad) -> Transact: method wipe (line 596) | def wipe(self, cup_id: int, amount_in_sai: Wad) -> Transact: method give (line 611) | def give(self, cup_id: int, new_lad: Address) -> Transact: method bite (line 626) | def bite(self, cup_id: int) -> Transact: method __eq__ (line 638) | def __eq__(self, other): method __repr__ (line 642) | def __repr__(self): class Tap (line 646) | class Tap(Contract): method __init__ (line 657) | def __init__(self, web3: Web3, address: Address): method deploy (line 666) | def deploy(web3: Web3, tub: Address): method set_authority (line 670) | def set_authority(self, address: Address) -> Transact: method approve (line 674) | def approve(self, approval_function): method tub (line 691) | def tub(self) -> Address: method sai (line 699) | def sai(self) -> Address: method sin (line 707) | def sin(self) -> Address: method skr (line 715) | def skr(self) -> Address: method woe (line 723) | def woe(self) -> Wad: method fog (line 731) | def fog(self) -> Wad: method joy (line 740) | def joy(self) -> Wad: method gap (line 750) | def gap(self) -> Wad: method mold_gap (line 758) | def mold_gap(self, new_gap: Wad) -> Transact: method s2s (line 770) | def s2s(self) -> Ray: method bid (line 778) | def bid(self, amount_in_skr: Wad) -> Wad: method ask (line 787) | def ask(self, amount_in_skr: Wad) -> Wad: method boom (line 796) | def boom(self, amount_in_skr: Wad) -> Transact: method bust (line 808) | def bust(self, amount_in_skr: Wad) -> Transact: method cash (line 820) | def cash(self, amount_in_sai: Wad) -> Transact: method mock (line 831) | def mock(self, amount_in_sai: Wad) -> Transact: method __eq__ (line 842) | def __eq__(self, other): method __repr__ (line 846) | def __repr__(self): class Top (line 850) | class Top(Contract): method __init__ (line 861) | def __init__(self, web3: Web3, address: Address): method deploy (line 870) | def deploy(web3: Web3, tub: Address, tap: Address): method set_authority (line 875) | def set_authority(self, address: Address) -> Transact: method fix (line 879) | def fix(self) -> Ray: method cage (line 887) | def cage(self) -> Transact: method __eq__ (line 897) | def __eq__(self, other): method __repr__ (line 901) | def __repr__(self): class Vox (line 905) | class Vox(Contract): method __init__ (line 916) | def __init__(self, web3: Web3, address: Address): method deploy (line 925) | def deploy(web3: Web3, per: Ray): method set_authority (line 929) | def set_authority(self, address: Address) -> Transact: method era (line 933) | def era(self) -> int: method par (line 941) | def par(self) -> Ray: method __eq__ (line 953) | def __eq__(self, other): method __repr__ (line 957) | def __repr__(self): FILE: pymaker/shutdown.py class ShutdownModule (line 34) | class ShutdownModule(Contract): method __init__ (line 46) | def __init__(self, web3: Web3, address: Address): method sum (line 54) | def sum(self) -> Wad: method sum_of (line 58) | def sum_of(self, address: Address) -> Wad: method min (line 64) | def min(self) -> Wad: method join (line 68) | def join(self, value: Wad) -> Transact: method fire (line 73) | def fire(self): method deny (line 78) | def deny(self, address: Address): method burn (line 82) | def burn(self): class End (line 87) | class End(Contract): method __init__ (line 99) | def __init__(self, web3: Web3, address: Address): method live (line 107) | def live(self) -> bool: method when (line 111) | def when(self) -> datetime: method wait (line 116) | def wait(self) -> int: method debt (line 120) | def debt(self) -> Rad: method tag (line 124) | def tag(self, ilk: Ilk) -> Ray: method gap (line 129) | def gap(self, ilk: Ilk) -> Wad: method art (line 134) | def art(self, ilk: Ilk) -> Wad: method fix (line 139) | def fix(self, ilk: Ilk) -> Ray: method bag (line 144) | def bag(self, address: Address) -> Wad: method out (line 149) | def out(self, ilk: Ilk, address: Address) -> Wad: method cage (line 154) | def cage(self, ilk: Ilk) -> Transact: method snip (line 159) | def snip(self, ilk: Ilk, clip_id: int) -> Transact: method skip (line 165) | def skip(self, ilk: Ilk, flip_id: int) -> Transact: method skim (line 171) | def skim(self, ilk: Ilk, address: Address) -> Transact: method free (line 178) | def free(self, ilk: Ilk) -> Transact: method thaw (line 183) | def thaw(self): method flow (line 187) | def flow(self, ilk: Ilk) -> Transact: method pack (line 192) | def pack(self, dai: Wad) -> Transact: method cash (line 197) | def cash(self, ilk: Ilk, dai: Wad): FILE: pymaker/sign.py function eth_sign (line 31) | def eth_sign(message: bytes, web3: Web3, key=None, in_hexbytes=False, ac... function to_vrs (line 75) | def to_vrs(signature: str) -> Tuple[int, bytes, bytes]: FILE: pymaker/tightly_packed.py function encode_address (line 23) | def encode_address(address: Address) -> bytes: function encode_uint256 (line 27) | def encode_uint256(value: int) -> bytes: function encode_bytes (line 31) | def encode_bytes(value: bytes) -> bytes: FILE: pymaker/token.py class ERC20Token (line 26) | class ERC20Token(Contract): method __init__ (line 37) | def __init__(self, web3: Web3, address: Address): method name (line 45) | def name(self) -> str: method symbol (line 57) | def symbol(self) -> str: method total_supply (line 69) | def total_supply(self) -> Wad: method balance_of (line 77) | def balance_of(self, address: Address) -> Wad: method balance_at_block (line 90) | def balance_at_block(self, address: Address, block_identifier: int = '... method allowance_of (line 105) | def allowance_of(self, address: Address, payee: Address) -> Wad: method transfer (line 123) | def transfer(self, address: Address, value: Wad) -> Transact: method transfer_from (line 138) | def transfer_from(self, source_address: Address, destination_address: ... method approve (line 157) | def approve(self, payee: Address, limit: Wad = Wad(2**256 - 1)) -> Tra... method __eq__ (line 179) | def __eq__(self, other): method __repr__ (line 182) | def __repr__(self): class DSToken (line 186) | class DSToken(ERC20Token): method deploy (line 201) | def deploy(web3: Web3, symbol: str): method authority (line 214) | def authority(self) -> Address: method set_authority (line 222) | def set_authority(self, address: Address) -> Transact: method mint (line 234) | def mint(self, amount: Wad) -> Transact: method mint_to (line 246) | def mint_to(self, address: Address, amount: Wad) -> Transact: method burn (line 261) | def burn(self, amount: Wad) -> Transact: method burn_from (line 273) | def burn_from(self, address: Address, amount: Wad) -> Transact: method __repr__ (line 287) | def __repr__(self): class DSEthToken (line 291) | class DSEthToken(ERC20Token): method deploy (line 310) | def deploy(web3: Web3): method __init__ (line 321) | def __init__(self, web3, address): method deposit (line 325) | def deposit(self, amount: Wad) -> Transact: method withdraw (line 337) | def withdraw(self, amount: Wad) -> Transact: method __repr__ (line 351) | def __repr__(self): class EthToken (line 355) | class EthToken(): method __init__ (line 363) | def __init__(self, web3: Web3, address: Address): method balance_of (line 370) | def balance_of(self, address): FILE: pymaker/transactional.py class TxManager (line 28) | class TxManager(Contract): method __init__ (line 52) | def __init__(self, web3: Web3, address: Address): method deploy (line 61) | def deploy(web3: Web3): method approve (line 64) | def approve(self, tokens: List[ERC20Token], approval_function): method owner (line 80) | def owner(self) -> Address: method execute (line 83) | def execute(self, tokens: List[Address], invocations: List[Invocation]... method __repr__ (line 110) | def __repr__(self): FILE: pymaker/util.py function chain (line 27) | def chain(web3: Web3) -> str: function http_response_summary (line 41) | def http_response_summary(response) -> str: function synchronize (line 47) | def synchronize(futures) -> list: function eth_balance (line 58) | def eth_balance(web3: Web3, address) -> Wad: function is_contract_at (line 62) | def is_contract_at(web3: Web3, address): function int_to_bytes32 (line 67) | def int_to_bytes32(value: int) -> bytes: function bytes_to_int (line 72) | def bytes_to_int(value) -> int: function bytes_to_hexstring (line 83) | def bytes_to_hexstring(value) -> str: function hexstring_to_bytes (line 94) | def hexstring_to_bytes(value: str) -> bytes: class AsyncCallback (line 100) | class AsyncCallback: method __init__ (line 116) | def __init__(self, callback): method trigger (line 120) | def trigger(self, on_start=None, on_finish=None) -> bool: method wait (line 156) | def wait(self): FILE: pymaker/vault.py class DSVault (line 23) | class DSVault(Contract): method __init__ (line 37) | def __init__(self, web3: Web3, address: Address): method deploy (line 46) | def deploy(web3: Web3): method authority (line 57) | def authority(self) -> Address: method set_authority (line 65) | def set_authority(self, address: Address) -> Transact: method __repr__ (line 77) | def __repr__(self): FILE: pymaker/zrx.py class Order (line 40) | class Order: method __init__ (line 41) | def __init__(self, exchange, maker: Address, taker: Address, maker_fee... method order_id (line 80) | def order_id(self): method sell_to_buy_price (line 84) | def sell_to_buy_price(self) -> Wad: method buy_to_sell_price (line 88) | def buy_to_sell_price(self) -> Wad: method remaining_buy_amount (line 92) | def remaining_buy_amount(self) -> Wad: method remaining_sell_amount (line 96) | def remaining_sell_amount(self) -> Wad: method from_json (line 106) | def from_json(exchange, data: dict): method to_json_without_fees (line 126) | def to_json_without_fees(self) -> dict: method to_json (line 139) | def to_json(self) -> dict: method __eq__ (line 160) | def __eq__(self, other): method __hash__ (line 178) | def __hash__(self): method __str__ (line 195) | def __str__(self): method __repr__ (line 200) | def __repr__(self): class LogCancel (line 204) | class LogCancel: method __init__ (line 205) | def __init__(self, log): method __repr__ (line 216) | def __repr__(self): class LogFill (line 220) | class LogFill: method __init__ (line 221) | def __init__(self, log): method from_event (line 236) | def from_event(cls, event: dict): method __eq__ (line 246) | def __eq__(self, other): method __repr__ (line 250) | def __repr__(self): class ZrxExchange (line 254) | class ZrxExchange(Contract): method deploy (line 271) | def deploy(web3: Web3, zrx_token: Address, token_transfer_proxy: Addre... method __init__ (line 288) | def __init__(self, web3: Web3, address: Address): method zrx_token (line 296) | def zrx_token(self) -> Address: method token_transfer_proxy (line 304) | def token_transfer_proxy(self) -> Address: method approve (line 312) | def approve(self, tokens: List[ERC20Token], approval_function): method past_fill (line 333) | def past_fill(self, number_of_past_blocks: int, event_filter: dict = N... method past_cancel (line 350) | def past_cancel(self, number_of_past_blocks: int, event_filter: dict =... method create_order (line 367) | def create_order(self, method get_order_hash (line 412) | def get_order_hash(self, order: Order) -> str: method get_unavailable_buy_amount (line 429) | def get_unavailable_buy_amount(self, order: Order) -> Wad: method sign_order (line 444) | def sign_order(self, order: Order) -> Order: method fill_order (line 467) | def fill_order(self, order: Order, fill_buy_amount: Wad) -> Transact: method cancel_order (line 486) | def cancel_order(self, order: Order) -> Transact: method _order_values (line 501) | def _order_values(order): method _order_addresses (line 510) | def _order_addresses(order): method generate_salt (line 518) | def generate_salt() -> int: method __repr__ (line 521) | def __repr__(self): class ZrxRelayerApi (line 525) | class ZrxRelayerApi: method __init__ (line 537) | def __init__(self, exchange: ZrxExchange, api_server: str): method get_orders (line 544) | def get_orders(self, pay_token: Address, buy_token: Address, per_page:... method get_orders_by_maker (line 572) | def get_orders_by_maker(self, maker: Address, per_page: int = 100) -> ... method calculate_fees (line 599) | def calculate_fees(self, order: Order) -> Order: method submit_order (line 633) | def submit_order(self, order: Order) -> bool: method __repr__ (line 654) | def __repr__(self): FILE: pymaker/zrxv2.py class Asset (line 42) | class Asset: method deserialize (line 44) | def deserialize(asset: str): method serialize (line 53) | def serialize(self) -> str: method __repr__ (line 56) | def __repr__(self): class ERC20Asset (line 60) | class ERC20Asset(Asset): method __init__ (line 63) | def __init__(self, token_address: Address): method serialize (line 68) | def serialize(self) -> str: method __hash__ (line 71) | def __hash__(self): method __eq__ (line 74) | def __eq__(self, other): class UnknownAsset (line 78) | class UnknownAsset(Asset): method __init__ (line 79) | def __init__(self, asset: str): method serialize (line 84) | def serialize(self) -> str: method __hash__ (line 87) | def __hash__(self): method __eq__ (line 90) | def __eq__(self, other): class Order (line 94) | class Order: method __init__ (line 95) | def __init__(self, exchange, sender: Address, maker: Address, taker: A... method order_id (line 132) | def order_id(self): method sell_to_buy_price (line 136) | def sell_to_buy_price(self) -> Wad: method buy_to_sell_price (line 140) | def buy_to_sell_price(self) -> Wad: method remaining_buy_amount (line 144) | def remaining_buy_amount(self) -> Wad: method remaining_sell_amount (line 148) | def remaining_sell_amount(self) -> Wad: method from_json (line 158) | def from_json(exchange, data: dict): method to_json_without_fees (line 177) | def to_json_without_fees(self) -> dict: method to_json (line 189) | def to_json(self) -> dict: method __eq__ (line 207) | def __eq__(self, other): method __hash__ (line 224) | def __hash__(self): method __str__ (line 240) | def __str__(self): method __repr__ (line 245) | def __repr__(self): class LogCancel (line 249) | class LogCancel: method __init__ (line 250) | def __init__(self, log): method __repr__ (line 259) | def __repr__(self): class LogFill (line 263) | class LogFill: method __init__ (line 264) | def __init__(self, log): method from_event (line 279) | def from_event(cls, event: dict): method __eq__ (line 293) | def __eq__(self, other): method __repr__ (line 297) | def __repr__(self): class ZrxExchangeV2 (line 301) | class ZrxExchangeV2(Contract): method deploy (line 320) | def deploy(web3: Web3, zrx_asset: str): method __init__ (line 333) | def __init__(self, web3: Web3, address: Address): method zrx_asset (line 341) | def zrx_asset(self) -> str: method zrx_token (line 349) | def zrx_token(self) -> Address: method asset_transfer_proxy (line 357) | def asset_transfer_proxy(self, proxy_id: str) -> Address: method approve (line 367) | def approve(self, tokens: List[ERC20Token], approval_function): method past_fill (line 388) | def past_fill(self, number_of_past_blocks: int, event_filter: dict = N... method past_cancel (line 405) | def past_cancel(self, number_of_past_blocks: int, event_filter: dict =... method create_order (line 422) | def create_order(self, method _get_order_info (line 466) | def _get_order_info(self, order): method get_order_hash (line 478) | def get_order_hash(self, order: Order) -> str: method get_unavailable_buy_amount (line 494) | def get_unavailable_buy_amount(self, order: Order) -> Wad: method sign_order (line 519) | def sign_order(self, order: Order) -> Order: method fill_order (line 542) | def fill_order(self, order: Order, fill_buy_amount: Wad) -> Transact: method cancel_order (line 565) | def cancel_order(self, order: Order) -> Transact: method _order_tuple (line 585) | def _order_tuple(order): method generate_salt (line 600) | def generate_salt() -> int: method __repr__ (line 603) | def __repr__(self): class ZrxRelayerApiV2 (line 607) | class ZrxRelayerApiV2: method __init__ (line 619) | def __init__(self, exchange: ZrxExchangeV2, api_server: str): method get_book (line 626) | def get_book(self, pay_token: Address, buy_token: Address, depth: int ... method get_orders (line 644) | def get_orders(self, pay_token: Address, buy_token: Address, per_page:... method get_order (line 676) | def get_order(self, order_hash: str) -> Order: method get_orders_by_maker (line 685) | def get_orders_by_maker(self, maker: Address, per_page: int = 100) -> ... method configure_order (line 716) | def configure_order(self, order: Order) -> Order: method submit_order (line 753) | def submit_order(self, order: Order) -> bool: method __repr__ (line 774) | def __repr__(self): FILE: tests/conftest.py function new_deployment (line 31) | def new_deployment() -> Deployment: function deployment (line 36) | def deployment(new_deployment: Deployment) -> Deployment: function web3 (line 42) | def web3() -> Web3: function our_address (line 63) | def our_address(web3) -> Address: function other_address (line 68) | def other_address(web3) -> Address: function deployment_address (line 73) | def deployment_address(web3) -> Address: function mcd (line 79) | def mcd(web3) -> DssDeployment: function validate_contracts_loaded (line 87) | def validate_contracts_loaded(deployment: DssDeployment): function initialize_collaterals (line 106) | def initialize_collaterals(deployment: DssDeployment): FILE: tests/dss_token.py class GemMock (line 24) | class GemMock(Contract): method __init__ (line 31) | def __init__(self, web3: Web3, address: Address): method deploy (line 40) | def deploy(web3: Web3, vat: Address, ilk: Ilk, gem: Address): method ilk (line 49) | def ilk(self): method join (line 52) | def join(self, urn: Urn, value: Wad) -> Transact: method hope (line 59) | def hope(self, guy: Address) -> Transact: method __eq__ (line 65) | def __eq__(self, other): method __repr__ (line 68) | def __repr__(self): FILE: tests/helpers.py function is_hashable (line 24) | def is_hashable(v): function wait_until_mock_called (line 33) | def wait_until_mock_called(mock: Mock): function time_travel_by (line 39) | def time_travel_by(web3: Web3, seconds: int): function snapshot (line 54) | def snapshot(web3: Web3): function reset (line 60) | def reset(web3: Web3, snap_id): FILE: tests/manual_test_async_tx.py class TestApp (line 52) | class TestApp: method main (line 53) | def main(self): method test_replacement (line 58) | def test_replacement(self): method test_simultaneous (line 70) | def test_simultaneous(self): method shutdown (line 77) | def shutdown(self): method _run_future (line 87) | def _run_future(future): FILE: tests/manual_test_goerli.py class TestApp (line 70) | class TestApp: method main (line 71) | def main(self): method on_block (line 75) | def on_block(self): FILE: tests/manual_test_node.py class TestApp (line 58) | class TestApp: method __init__ (line 59) | def __init__(self): method main (line 63) | def main(self): method on_block (line 68) | def on_block(self): method request_history (line 80) | def request_history(self): method on_shutdown (line 84) | def on_shutdown(self): FILE: tests/manual_test_tx_recovery.py class TestApp (line 49) | class TestApp: method main (line 50) | def main(self): method startup (line 70) | def startup(self): method shutdown (line 73) | def shutdown(self): method _run_future (line 77) | def _run_future(future): FILE: tests/test_approval.py class FailingTransact (line 33) | class FailingTransact: method transact (line 34) | def transact(self): method transact_async (line 37) | async def transact_async(self): function setup_module (line 41) | def setup_module(): function setup_function (line 50) | def setup_function(): function test_direct_approval (line 55) | def test_direct_approval(): function test_direct_approval_should_obey_from_address (line 66) | def test_direct_approval_should_obey_from_address(): function test_direct_approval_should_obey_gas_price (line 81) | def test_direct_approval_should_obey_gas_price(): function test_direct_approval_should_not_approve_if_already_approved (line 92) | def test_direct_approval_should_not_approve_if_already_approved(): function test_direct_approval_should_raise_exception_if_approval_fails (line 104) | def test_direct_approval_should_raise_exception_if_approval_fails(): function test_via_tx_manager_approval (line 114) | def test_via_tx_manager_approval(): function test_via_tx_manager_approval_should_obey_gas_price (line 126) | def test_via_tx_manager_approval_should_obey_gas_price(): function test_via_tx_manager_approval_should_not_approve_if_already_approved (line 138) | def test_via_tx_manager_approval_should_not_approve_if_already_approved(): function test_via_tx_manager_approval_should_raise_exception_if_approval_fails (line 151) | def test_via_tx_manager_approval_should_raise_exception_if_approval_fail... FILE: tests/test_auctions.py function create_surplus (line 32) | def create_surplus(mcd: DssDeployment, flapper: Flapper, deployment_addr... function create_debt (line 56) | def create_debt(web3: Web3, mcd: DssDeployment, our_address: Address, de... function check_active_auctions (line 123) | def check_active_auctions(auction: DealableAuctionContract): class TestFlapper (line 131) | class TestFlapper: method flapper (line 133) | def flapper(self, mcd: DssDeployment) -> Flapper: method tend (line 137) | def tend(flapper: Flapper, id: int, address: Address, lot: Rad, bid: W... method last_log (line 163) | def last_log(flapper: Flapper): method test_getters (line 167) | def test_getters(self, mcd, flapper): method test_scenario (line 174) | def test_scenario(self, web3, mcd, flapper, our_address, other_address... class TestFlipper (line 228) | class TestFlipper: method collateral (line 230) | def collateral(self, mcd: DssDeployment) -> Collateral: method flipper (line 234) | def flipper(self, collateral, deployment_address) -> Flipper: method tend (line 238) | def tend(flipper: Flipper, id: int, address: Address, lot: Wad, bid: R... method dent (line 257) | def dent(flipper: Flipper, id: int, address: Address, lot: Wad, bid: R... method last_log (line 276) | def last_log(flipper: Flipper): method test_getters (line 280) | def test_getters(self, mcd, flipper): method test_scenario (line 287) | def test_scenario(self, web3, mcd, collateral, flipper, our_address, o... class TestClipper (line 429) | class TestClipper: method collateral (line 431) | def collateral(self, mcd: DssDeployment) -> Collateral: method clipper (line 435) | def clipper(self, collateral, deployment_address) -> Clipper: method last_log (line 439) | def last_log(clipper: Clipper): method test_getters (line 443) | def test_getters(self, mcd, clipper): method test_scenario (line 459) | def test_scenario(self, web3, mcd, collateral, clipper, our_address, o... class TestFlopper (line 623) | class TestFlopper: method flopper (line 625) | def flopper(self, mcd: DssDeployment) -> Flopper: method dent (line 629) | def dent(flopper: Flopper, id: int, address: Address, lot: Wad, bid: R... method last_log (line 655) | def last_log(flopper: Flopper): method test_getters (line 659) | def test_getters(self, mcd, flopper): method test_scenario (line 667) | def test_scenario(self, web3, mcd, flopper, our_address, other_address... FILE: tests/test_auth.py class TestDSGuard (line 26) | class TestDSGuard: method setup_method (line 27) | def setup_method(self): method can_call (line 33) | def can_call(self, src: str, dst: str, sig: str) -> bool: method test_fail_when_no_contract_under_that_address (line 36) | def test_fail_when_no_contract_under_that_address(self): method test_no_permit_by_default (line 41) | def test_no_permit_by_default(self): method test_permit_any_to_any_with_any_sig (line 47) | def test_permit_any_to_any_with_any_sig(self): method test_permit_specific_addresses_and_sig (line 56) | def test_permit_specific_addresses_and_sig(self): class TestDSAuth (line 76) | class TestDSAuth: method setup_method (line 77) | def setup_method(self): method test_owner (line 85) | def test_owner(self): FILE: tests/test_cdpmanager.py class TestCdpManager (line 23) | class TestCdpManager: method test_none (line 25) | def test_none(self, our_address: Address, mcd: DssDeployment): method test_open (line 30) | def test_open(self, our_address: Address, mcd: DssDeployment): method test_one (line 38) | def test_one(self, our_address: Address, mcd: DssDeployment): FILE: tests/test_dsrmanager.py function mint_dai (line 28) | def mint_dai(mcd: DssDeployment, amount: Wad, ilkName: str, our_address:... class TestDsrManager (line 51) | class TestDsrManager: method test_getters (line 53) | def test_getters(self, mcd: DssDeployment): method test_join (line 61) | def test_join(self, mcd: DssDeployment, our_address: Address): method test_supply_pie_dai (line 76) | def test_supply_pie_dai(self, mcd: DssDeployment, our_address: Address): method test_exit (line 92) | def test_exit(self, mcd: DssDeployment, our_address: Address): FILE: tests/test_dss.py function urn (line 37) | def urn(our_address: Address, mcd: DssDeployment): function wrap_eth (line 45) | def wrap_eth(mcd: DssDeployment, address: Address, amount: Wad): function mint_mkr (line 56) | def mint_mkr(mkr: DSToken, recipient_address: Address, amount: Wad): function get_collateral_price (line 69) | def get_collateral_price(collateral: Collateral): function set_collateral_price (line 74) | def set_collateral_price(mcd: DssDeployment, collateral: Collateral, pri... function frob (line 90) | def frob(mcd: DssDeployment, collateral: Collateral, address: Address, d... function max_dart (line 112) | def max_dart(mcd: DssDeployment, collateral: Collateral, our_address: Ad... function cleanup_urn (line 144) | def cleanup_urn(mcd: DssDeployment, collateral: Collateral, address: Add... function bite (line 177) | def bite(web3: Web3, mcd: DssDeployment, our_address: Address): function bite_event (line 201) | def bite_event(web3: Web3, mcd: DssDeployment, our_address: Address): class TestConfig (line 207) | class TestConfig: method test_from_json (line 208) | def test_from_json(self, web3: Web3, mcd: DssDeployment): method test_to_json (line 215) | def test_to_json(self, web3: Web3, mcd: DssDeployment): method test_from_node (line 222) | def test_from_node(self, web3: Web3): method test_collaterals (line 226) | def test_collaterals(self, mcd): method test_account_transfers (line 237) | def test_account_transfers(self, web3: Web3, mcd, our_address, other_a... method test_get_active_auctions (line 256) | def test_get_active_auctions(self, mcd): class TestVat (line 263) | class TestVat: method ensure_clean_urn (line 265) | def ensure_clean_urn(mcd: DssDeployment, collateral: Collateral, addre... method test_getters (line 275) | def test_getters(self, mcd): method test_ilk (line 278) | def test_ilk(self, mcd): method test_gem (line 289) | def test_gem(self, web3: Web3, mcd: DssDeployment, our_address: Address): method test_gem_join (line 313) | def test_gem_join(self, mcd: DssDeployment): method test_dai (line 322) | def test_dai(self, mcd, urn): method test_sin (line 326) | def test_sin(self, mcd, urn): method test_debt (line 331) | def test_debt(self, mcd): method test_urn (line 336) | def test_urn(self, urn): method test_frob_noop (line 343) | def test_frob_noop(self, mcd, our_address): method test_frob_add_ink (line 354) | def test_frob_add_ink(self, mcd, our_address): method test_frob_add_art (line 370) | def test_frob_add_art(self, mcd, our_address: Address): method test_frob_other_account (line 386) | def test_frob_other_account(self, web3, mcd, other_address): method test_past_frob (line 408) | def test_past_frob(self, mcd, our_address, other_address): method test_heal (line 464) | def test_heal(self, mcd): method test_flux (line 467) | def test_flux(self, mcd, our_address, other_address): method test_move (line 486) | def test_move(self, mcd, our_address, other_address): method test_fork (line 515) | def test_fork(self, mcd, our_address, other_address): class TestCat (line 550) | class TestCat: method test_getters (line 551) | def test_getters(self, mcd): class TestDog (line 564) | class TestDog: method test_getters (line 565) | def test_getters(self, mcd): class TestSpotter (line 580) | class TestSpotter: method test_mat (line 581) | def test_mat(self, mcd): class TestVow (line 591) | class TestVow: method test_getters (line 592) | def test_getters(self, mcd): method test_empty_flog (line 607) | def test_empty_flog(self, mcd): method test_heal (line 610) | def test_heal(self, mcd): method test_kiss (line 613) | def test_kiss(self, mcd): class TestJug (line 617) | class TestJug: method test_getters (line 618) | def test_getters(self, mcd, our_address): method test_drip (line 627) | def test_drip(self, mcd): class TestPot (line 639) | class TestPot: method test_getters (line 640) | def test_getters(self, mcd): method test_drip (line 649) | def test_drip(self, mcd): class TestOsm (line 660) | class TestOsm: method test_price (line 661) | def test_price(self, web3, mcd): class TestMcd (line 671) | class TestMcd: method test_healthy_cdp (line 672) | def test_healthy_cdp(self, mcd, our_address): method test_faucet (line 736) | def test_faucet(self, mcd, our_address): method test_empty_auctions_collection (line 743) | def test_empty_auctions_collection(self, mcd): FILE: tests/test_etherdelta.py class TestEtherDelta (line 32) | class TestEtherDelta: method setup_method (line 33) | def setup_method(self): method test_fail_when_no_contract_under_that_address (line 49) | def test_fail_when_no_contract_under_that_address(self): method test_addresses (line 54) | def test_addresses(self): method test_fees (line 60) | def test_fees(self): method test_deposit_and_withdraw_eth (line 66) | def test_deposit_and_withdraw_eth(self): method test_deposit_and_withdraw_token (line 79) | def test_deposit_and_withdraw_token(self): method test_offchain_order_happy_path (line 95) | def test_offchain_order_happy_path(self): method test_no_past_events_on_startup (line 147) | def test_no_past_events_on_startup(self): method test_past_take (line 150) | def test_past_take(self): method test_order_comparison (line 175) | def test_order_comparison(self): method test_order_hashable (line 191) | def test_order_hashable(self): method test_should_have_printable_representation (line 200) | def test_should_have_printable_representation(self): class TestEtherDeltaApi (line 204) | class TestEtherDeltaApi: method setup_method (line 205) | def setup_method(self): method test_should_have_printable_representation (line 213) | def test_should_have_printable_representation(self): FILE: tests/test_feed.py class TestDSValue (line 25) | class TestDSValue: method setup_method (line 26) | def setup_method(self): method test_fail_when_no_contract_under_that_address (line 31) | def test_fail_when_no_contract_under_that_address(self): method test_address (line 36) | def test_address(self): method test_no_value_after_deploy (line 39) | def test_no_value_after_deploy(self): method test_poke (line 49) | def test_poke(self): method test_poke_with_int (line 64) | def test_poke_with_int(self): method test_void (line 76) | def test_void(self): method test_should_have_printable_representation (line 87) | def test_should_have_printable_representation(self): FILE: tests/test_gas.py class TestGasPrice (line 26) | class TestGasPrice: method test_not_implemented (line 27) | def test_not_implemented(self): method test_gwei (line 31) | def test_gwei(self): class TestDefaultGasPrice (line 35) | class TestDefaultGasPrice: method test_should_always_be_default (line 36) | def test_should_always_be_default(self): class TestNodeAwareGasPrice (line 46) | class TestNodeAwareGasPrice: class DumbSampleImplementation (line 47) | class DumbSampleImplementation(NodeAwareGasPrice): method get_gas_price (line 48) | def get_gas_price(self, time_elapsed: int) -> Optional[int]: class BadImplementation (line 51) | class BadImplementation(NodeAwareGasPrice): method test_retrieve_node_gas_price (line 54) | def test_retrieve_node_gas_price(self, web3): method test_not_implemented (line 59) | def test_not_implemented(self, web3): class TestFixedGasPrice (line 68) | class TestFixedGasPrice: method test_gas_price_should_stay_the_same (line 69) | def test_gas_price_should_stay_the_same(self): method test_gas_price_should_be_updated_by_update_gas_price_method (line 84) | def test_gas_price_should_be_updated_by_update_gas_price_method(self): class TestIncreasingGasPrice (line 107) | class TestIncreasingGasPrice: method test_gas_price_should_increase_with_time (line 108) | def test_gas_price_should_increase_with_time(self): method test_gas_price_should_obey_max_value (line 121) | def test_gas_price_should_obey_max_value(self): method test_should_require_positive_initial_price (line 136) | def test_should_require_positive_initial_price(self): method test_should_require_positive_increase_by_value (line 143) | def test_should_require_positive_increase_by_value(self): method test_should_require_positive_every_secs_value (line 150) | def test_should_require_positive_every_secs_value(self): method test_should_require_positive_max_price_if_provided (line 157) | def test_should_require_positive_max_price_if_provided(self): class TestGeometricGasPrice (line 165) | class TestGeometricGasPrice: method test_gas_price_should_increase_with_time (line 166) | def test_gas_price_should_increase_with_time(self): method test_gas_price_should_obey_max_value (line 180) | def test_gas_price_should_obey_max_value(self): method test_behaves_with_realistic_values (line 195) | def test_behaves_with_realistic_values(self): method test_should_require_positive_initial_price (line 210) | def test_should_require_positive_initial_price(self): method test_should_require_positive_every_secs_value (line 217) | def test_should_require_positive_every_secs_value(self): method test_should_require_positive_coefficient (line 224) | def test_should_require_positive_coefficient(self): method test_should_require_positive_max_price_if_provided (line 234) | def test_should_require_positive_max_price_if_provided(self): method test_max_price_should_exceed_initial_price (line 241) | def test_max_price_should_exceed_initial_price(self): FILE: tests/test_general.py class TestConnect (line 31) | class TestConnect: method test_connect_to_testchain (line 32) | def test_connect_to_testchain(self, our_address): method test_unsupported_url (line 45) | def test_unsupported_url(self): class TestAddress (line 50) | class TestAddress: method test_creation_from_various_representations (line 51) | def test_creation_from_various_representations(self): method test_creation_from_another_address (line 58) | def test_creation_from_another_address(self): method test_should_fail_creation_from_invalid_representation (line 65) | def test_should_fail_creation_from_invalid_representation(self): method test_as_bytes (line 74) | def test_as_bytes(self): method test_string_value (line 79) | def test_string_value(self): method test_repr (line 84) | def test_repr(self): method test_should_be_hashable (line 89) | def test_should_be_hashable(self): method test_equality (line 92) | def test_equality(self): method test_ordering (line 103) | def test_ordering(self): class TestCalldata (line 120) | class TestCalldata: method test_creation (line 121) | def test_creation(self): method test_creation_from_bytes (line 125) | def test_creation_from_bytes(self): method test_should_fail_creation_from_invalid_calldata (line 129) | def test_should_fail_creation_from_invalid_calldata(self): method test_as_bytes (line 134) | def test_as_bytes(self): method test_string_value (line 138) | def test_string_value(self): method test_repr (line 142) | def test_repr(self): method test_should_be_hashable (line 146) | def test_should_be_hashable(self): method test_equality (line 149) | def test_equality(self): method test_from_signature (line 160) | def test_from_signature(self, web3): method test_from_contract_abi (line 186) | def test_from_contract_abi(self, web3): class TestReceipt (line 201) | class TestReceipt: method receipt_success (line 203) | def receipt_success(self) -> dict: method receipt_failed (line 250) | def receipt_failed(self) -> dict: method test_parsing_receipt (line 262) | def test_parsing_receipt(self, receipt_success): method test_should_recognize_successful_and_failed_transactions (line 276) | def test_should_recognize_successful_and_failed_transactions(self, rec... class TestTransfer (line 282) | class TestTransfer: method test_equality (line 283) | def test_equality(self): FILE: tests/test_general2.py class TestTransact (line 31) | class TestTransact: method setup_method (line 32) | def setup_method(self): method test_can_only_execute_once (line 41) | def test_can_only_execute_once(self): method test_can_only_execute_once_even_if_tx_failed (line 51) | def test_can_only_execute_once_even_if_tx_failed(self): method test_should_update_status_when_finished (line 65) | def test_should_update_status_when_finished(self): method test_should_update_status_to_finished_even_if_tx_failed (line 75) | def test_should_update_status_to_finished_even_if_tx_failed(self): method test_default_gas (line 88) | def test_default_gas(self): method test_default_gas_async (line 95) | def test_default_gas_async(self): method test_custom_gas (line 102) | def test_custom_gas(self): method test_custom_gas_async (line 109) | def test_custom_gas_async(self): method test_custom_gas_buffer (line 116) | def test_custom_gas_buffer(self): method test_gas_and_gas_buffer_not_allowed_at_the_same_time (line 123) | def test_gas_and_gas_buffer_not_allowed_at_the_same_time(self): method test_gas_and_gas_buffer_not_allowed_at_the_same_time_async (line 128) | def test_gas_and_gas_buffer_not_allowed_at_the_same_time_async(self): method test_custom_gas_price (line 134) | def test_custom_gas_price(self): method test_custom_gas_price_async (line 144) | def test_custom_gas_price_async(self): method test_custom_from_address (line 154) | def test_custom_from_address(self): method test_name_formatting (line 164) | def test_name_formatting(self): method test_name_formatting_with_hexstrings (line 171) | def test_name_formatting_with_hexstrings(self): method test_eth_transfer (line 182) | def test_eth_transfer(self): method test_eth_transfer_from_other_account (line 192) | def test_eth_transfer_from_other_account(self): method test_should_raise_exception_on_unknown_kwarg (line 204) | def test_should_raise_exception_on_unknown_kwarg(self): class TestTransactReplace (line 214) | class TestTransactReplace: method setup_method (line 215) | def setup_method(self): method test_transaction_replace (line 225) | async def test_transaction_replace(self): method test_transaction_replace_of_failed_transaction (line 266) | def test_transaction_replace_of_failed_transaction(self): class TestTransactRecover (line 300) | class TestTransactRecover: method setup_method (line 301) | def setup_method(self): method test_nothing_pending (line 307) | def test_nothing_pending(self): method test_recover_pending_tx (line 315) | async def test_recover_pending_tx(self, other_address): FILE: tests/test_governance.py function mint_approve_lock (line 30) | def mint_approve_lock(mcd: DssDeployment, amount: Wad, address: Address): function approve_iou_free_mkr (line 40) | def approve_iou_free_mkr(mcd: DssDeployment, amount: Wad, address: Addre... function launch_chief (line 48) | def launch_chief(mcd: DssDeployment, address: Address): class TestDSPause (line 62) | class TestDSPause: method setup_method (line 63) | def setup_method(self): method test_drop (line 75) | def test_drop(self): method test_exec (line 79) | def test_exec(self): class TestDSChief (line 83) | class TestDSChief: method test_launch (line 85) | def test_launch(self, mcd: DssDeployment, our_address: Address): method test_scenario (line 90) | def test_scenario(self, mcd: DssDeployment, our_address: Address, othe... FILE: tests/test_keys.py function test_local_accounts (line 25) | def test_local_accounts(): function test_local_accounts_register_key (line 50) | def test_local_accounts_register_key(): function test_multiple_local_accounts (line 75) | def test_multiple_local_accounts(): FILE: tests/test_lifecycle.py class TestLifecycle (line 32) | class TestLifecycle: method setup_method (line 33) | def setup_method(self): method use_web3 (line 43) | def use_web3(self, with_web3: bool): method test_should_always_exit (line 47) | def test_should_always_exit(self, with_web3): method test_should_start_instantly_if_no_initial_delay (line 53) | def test_should_start_instantly_if_no_initial_delay(self, with_web3): method test_should_obey_initial_delay (line 67) | def test_should_obey_initial_delay(self, with_web3): method test_should_check_initial_checks (line 81) | def test_should_check_initial_checks(self, with_web3): method test_should_time_out_initial_checks_even_if_they_constantly_return_false (line 97) | def test_should_time_out_initial_checks_even_if_they_constantly_return... method test_should_call_startup_callback (line 111) | def test_should_call_startup_callback(self, with_web3): method test_should_fail_to_register_two_startup_callbacks (line 124) | def test_should_fail_to_register_two_startup_callbacks(self, with_web3): method test_should_call_shutdown_callback (line 132) | def test_should_call_shutdown_callback(self, with_web3): method test_should_fail_to_register_two_shutdown_callbacks (line 148) | def test_should_fail_to_register_two_shutdown_callbacks(self, with_web3): method test_should_fail_to_register_two_block_callbacks (line 155) | def test_should_fail_to_register_two_block_callbacks(self): method test_should_fail_to_register_block_callback_if_no_web3 (line 162) | def test_should_fail_to_register_block_callback_if_no_web3(self): method test_every (line 169) | def test_every(self, with_web3): method test_on_event_fires_whenever_event_triggered (line 190) | def test_on_event_fires_whenever_event_triggered(self, with_web3): method test_on_event_fires_every_min_frequency_if_event_not_triggered (line 215) | def test_on_event_fires_every_min_frequency_if_event_not_triggered(sel... method test_every_does_not_start_operating_until_startup_callback_is_finished (line 236) | def test_every_does_not_start_operating_until_startup_callback_is_fini... method test_event_does_not_start_operating_until_startup_callback_is_finished (line 258) | def test_event_does_not_start_operating_until_startup_callback_is_fini... method test_every_should_not_fire_when_keeper_is_already_terminating (line 280) | def test_every_should_not_fire_when_keeper_is_already_terminating(self... method test_events_should_not_fire_when_keeper_is_already_terminating (line 301) | def test_events_should_not_fire_when_keeper_is_already_terminating(sel... method test_should_not_call_shutdown_until_every_timer_has_finished (line 322) | def test_should_not_call_shutdown_until_every_timer_has_finished(self,... method test_should_not_call_shutdown_until_every_event_has_finished (line 349) | def test_should_not_call_shutdown_until_every_event_has_finished(self,... FILE: tests/test_model.py class TestToken (line 22) | class TestToken: method setup_class (line 23) | def setup_class(self): method test_convert (line 26) | def test_convert(self): method test_min_amount (line 35) | def test_min_amount(self): FILE: tests/test_numeric.py class TestWad (line 25) | class TestWad: method test_should_support_negative_values (line 26) | def test_should_support_negative_values(self): method test_should_support_values_greater_than_uint256 (line 29) | def test_should_support_values_greater_than_uint256(self): method test_should_instantiate_from_a_wad (line 34) | def test_should_instantiate_from_a_wad(self): method test_should_instantiate_from_a_ray (line 37) | def test_should_instantiate_from_a_ray(self): method test_should_instantiate_from_an_int (line 41) | def test_should_instantiate_from_an_int(self): method test_should_fail_to_instantiate_from_a_float (line 44) | def test_should_fail_to_instantiate_from_a_float(self): method test_should_format_to_string_nicely (line 48) | def test_should_format_to_string_nicely(self): method test_should_have_nice_printable_representation (line 56) | def test_should_have_nice_printable_representation(self): method test_add (line 60) | def test_add(self): method test_add_should_not_work_with_rays (line 63) | def test_add_should_not_work_with_rays(self): method test_add_should_not_work_with_ints (line 67) | def test_add_should_not_work_with_ints(self): method test_subtract (line 71) | def test_subtract(self): method test_subtract_should_not_work_with_rays (line 75) | def test_subtract_should_not_work_with_rays(self): method test_modulo (line 79) | def test_modulo(self): method test_modulo_should_not_work_with_rays (line 84) | def test_modulo_should_not_work_with_rays(self): method test_multiply (line 88) | def test_multiply(self): method test_multiply_by_ray (line 94) | def test_multiply_by_ray(self): method test_multiply_by_int (line 102) | def test_multiply_by_int(self): method test_should_fail_to_multiply_by_float (line 106) | def test_should_fail_to_multiply_by_float(self): method test_divide (line 110) | def test_divide(self): method test_should_fail_to_divide_by_rays (line 118) | def test_should_fail_to_divide_by_rays(self): method test_should_fail_to_divide_by_ints (line 122) | def test_should_fail_to_divide_by_ints(self): method test_should_support_abs (line 126) | def test_should_support_abs(self): method test_should_compare_wads_with_each_other (line 131) | def test_should_compare_wads_with_each_other(self): method test_should_reject_comparison_with_rays (line 141) | def test_should_reject_comparison_with_rays(self): method test_should_reject_comparison_with_ints (line 159) | def test_should_reject_comparison_with_ints(self): method test_should_cast_to_int (line 177) | def test_should_cast_to_int(self): method test_should_cast_to_float (line 185) | def test_should_cast_to_float(self): method test_should_be_hashable (line 193) | def test_should_be_hashable(self): method test_min_value (line 196) | def test_min_value(self): method test_min_value_should_reject_comparison_with_rays (line 201) | def test_min_value_should_reject_comparison_with_rays(self): method test_min_value_should_reject_comparison_with_ints (line 207) | def test_min_value_should_reject_comparison_with_ints(self): method test_max_value (line 213) | def test_max_value(self): method test_max_value_should_reject_comparison_with_rays (line 218) | def test_max_value_should_reject_comparison_with_rays(self): method test_max_value_should_reject_comparison_with_ints (line 224) | def test_max_value_should_reject_comparison_with_ints(self): method test_round (line 230) | def test_round(self): method test_round_inequality (line 235) | def test_round_inequality(self): method test_square_root (line 243) | def test_square_root(self): class TestRay (line 249) | class TestRay: method test_should_support_negative_values (line 250) | def test_should_support_negative_values(self): method test_should_support_values_greater_than_uint256 (line 253) | def test_should_support_values_greater_than_uint256(self): method test_should_instantiate_from_a_ray (line 258) | def test_should_instantiate_from_a_ray(self): method test_should_instantiate_from_a_wad (line 261) | def test_should_instantiate_from_a_wad(self): method test_should_instantiate_from_an_int (line 264) | def test_should_instantiate_from_an_int(self): method test_should_fail_to_instantiate_from_a_float (line 267) | def test_should_fail_to_instantiate_from_a_float(self): method test_should_format_to_string_nicely (line 271) | def test_should_format_to_string_nicely(self): method test_should_have_nice_printable_representation (line 279) | def test_should_have_nice_printable_representation(self): method test_add (line 283) | def test_add(self): method test_add_should_not_work_with_wads (line 286) | def test_add_should_not_work_with_wads(self): method test_add_should_not_work_with_ints (line 290) | def test_add_should_not_work_with_ints(self): method test_subtract (line 294) | def test_subtract(self): method test_subtract_should_not_work_with_wads (line 298) | def test_subtract_should_not_work_with_wads(self): method test_modulo (line 302) | def test_modulo(self): method test_modulo_should_not_work_with_wads (line 307) | def test_modulo_should_not_work_with_wads(self): method test_multiply (line 311) | def test_multiply(self): method test_multiply_by_wad (line 317) | def test_multiply_by_wad(self): method test_multiply_by_int (line 324) | def test_multiply_by_int(self): method test_should_fail_to_multiply_by_float (line 328) | def test_should_fail_to_multiply_by_float(self): method test_divide (line 332) | def test_divide(self): method test_should_fail_to_divide_by_wads (line 340) | def test_should_fail_to_divide_by_wads(self): method test_should_fail_to_divide_by_ints (line 344) | def test_should_fail_to_divide_by_ints(self): method test_should_support_abs (line 348) | def test_should_support_abs(self): method test_should_compare_rays_with_each_other (line 353) | def test_should_compare_rays_with_each_other(self): method test_should_reject_comparison_with_wads (line 363) | def test_should_reject_comparison_with_wads(self): method test_should_reject_comparison_with_ints (line 381) | def test_should_reject_comparison_with_ints(self): method test_should_cast_to_int (line 399) | def test_should_cast_to_int(self): method test_should_cast_to_float (line 407) | def test_should_cast_to_float(self): method test_should_be_hashable (line 415) | def test_should_be_hashable(self): method test_min_value (line 418) | def test_min_value(self): method test_min_value_should_reject_comparison_with_wads (line 423) | def test_min_value_should_reject_comparison_with_wads(self): method test_min_value_should_reject_comparison_with_ints (line 429) | def test_min_value_should_reject_comparison_with_ints(self): method test_max_value (line 435) | def test_max_value(self): method test_max_value_should_reject_comparison_with_wads (line 440) | def test_max_value_should_reject_comparison_with_wads(self): method test_max_value_should_reject_comparison_with_ints (line 446) | def test_max_value_should_reject_comparison_with_ints(self): method test_round (line 452) | def test_round(self): method test_square_root (line 457) | def test_square_root(self): class TestRad (line 463) | class TestRad: method test_should_support_negative_values (line 464) | def test_should_support_negative_values(self): method test_should_support_values_greater_than_uint256 (line 467) | def test_should_support_values_greater_than_uint256(self): method test_should_instantiate_from_a_rad (line 472) | def test_should_instantiate_from_a_rad(self): method test_should_instantiate_from_a_wad (line 475) | def test_should_instantiate_from_a_wad(self): method test_should_instantiate_from_a_ray (line 478) | def test_should_instantiate_from_a_ray(self): method test_should_instantiate_from_an_int (line 481) | def test_should_instantiate_from_an_int(self): method test_should_fail_to_instantiate_from_a_float (line 484) | def test_should_fail_to_instantiate_from_a_float(self): method test_should_format_to_string_nicely (line 488) | def test_should_format_to_string_nicely(self): method test_should_have_nice_printable_representation (line 496) | def test_should_have_nice_printable_representation(self): method test_add (line 500) | def test_add(self): method test_add_should_not_work_with_wads (line 503) | def test_add_should_not_work_with_wads(self): method test_add_should_not_work_with_rays (line 507) | def test_add_should_not_work_with_rays(self): method test_add_should_not_work_with_ints (line 511) | def test_add_should_not_work_with_ints(self): method test_subtract (line 515) | def test_subtract(self): method test_subtract_should_not_work_with_wads (line 519) | def test_subtract_should_not_work_with_wads(self): method test_subtract_should_not_work_with_rays (line 523) | def test_subtract_should_not_work_with_rays(self): method test_modulo (line 527) | def test_modulo(self): method test_modulo_should_not_work_with_wads (line 532) | def test_modulo_should_not_work_with_wads(self): method test_multiply (line 536) | def test_multiply(self): method test_multiply_by_wad (line 542) | def test_multiply_by_wad(self): method test_multiply_by_ray (line 549) | def test_multiply_by_ray(self): method test_multiply_by_int (line 556) | def test_multiply_by_int(self): method test_should_fail_to_multiply_by_float (line 560) | def test_should_fail_to_multiply_by_float(self): method test_divide (line 564) | def test_divide(self): method test_should_fail_to_divide_by_wads (line 572) | def test_should_fail_to_divide_by_wads(self): method test_should_fail_to_divide_by_rays (line 576) | def test_should_fail_to_divide_by_rays(self): method test_should_fail_to_divide_by_ints (line 580) | def test_should_fail_to_divide_by_ints(self): method test_should_support_abs (line 584) | def test_should_support_abs(self): method test_should_compare_rays_with_each_other (line 589) | def test_should_compare_rays_with_each_other(self): method test_should_reject_comparison_with_wads (line 599) | def test_should_reject_comparison_with_wads(self): method test_should_reject_comparison_with_rays (line 617) | def test_should_reject_comparison_with_rays(self): method test_should_reject_comparison_with_ints (line 635) | def test_should_reject_comparison_with_ints(self): method test_should_cast_to_int (line 653) | def test_should_cast_to_int(self): method test_should_cast_to_float (line 661) | def test_should_cast_to_float(self): method test_should_be_hashable (line 669) | def test_should_be_hashable(self): method test_min_value (line 672) | def test_min_value(self): method test_min_value_should_reject_comparison_with_wads (line 677) | def test_min_value_should_reject_comparison_with_wads(self): method test_min_value_should_reject_comparison_with_rays (line 683) | def test_min_value_should_reject_comparison_with_rays(self): method test_min_value_should_reject_comparison_with_ints (line 689) | def test_min_value_should_reject_comparison_with_ints(self): method test_max_value (line 695) | def test_max_value(self): method test_max_value_should_reject_comparison_with_wads (line 700) | def test_max_value_should_reject_comparison_with_wads(self): method test_max_value_should_reject_comparison_with_rays (line 706) | def test_max_value_should_reject_comparison_with_rays(self): method test_max_value_should_reject_comparison_with_ints (line 712) | def test_max_value_should_reject_comparison_with_ints(self): method test_round (line 718) | def test_round(self): method test_square_root (line 723) | def test_square_root(self): FILE: tests/test_oasis.py class OasisMockPriceOracle (line 38) | class OasisMockPriceOracle(Contract): method __init__ (line 44) | def __init__(self, web3: Web3, address: Address): method deploy (line 53) | def deploy(web3: Web3): method set_price (line 57) | def set_price(self, price: Wad): method __eq__ (line 61) | def __eq__(self, other): method __repr__ (line 64) | def __repr__(self): class GeneralMarketTest (line 68) | class GeneralMarketTest: method setup_method (line 69) | def setup_method(self): method test_approve_and_make_and_getters (line 93) | def test_approve_and_make_and_getters(self): method test_make_returns_new_order_ids (line 125) | def test_make_returns_new_order_ids(self): method test_get_orders_by_pair (line 145) | def test_get_orders_by_pair(self): method test_get_orders_by_maker (line 211) | def test_get_orders_by_maker(self): method test_get_orders_by_block (line 250) | def test_get_orders_by_block(self): method test_order_comparison (line 276) | def test_order_comparison(self): method test_order_hashable (line 301) | def test_order_hashable(self): method test_take_partial (line 318) | def test_take_partial(self): method test_remaining_sell_and_buy_amounts (line 342) | def test_remaining_sell_and_buy_amounts(self): method test_take_complete (line 368) | def test_take_complete(self): method test_kill (line 391) | def test_kill(self): method test_no_past_events_on_startup (line 413) | def test_no_past_events_on_startup(self): method test_past_make (line 419) | def test_past_make(self): method test_past_bump (line 445) | def test_past_bump(self): method test_past_take (line 472) | def test_past_take(self): method test_past_take_with_filter (line 503) | def test_past_take_with_filter(self): method test_past_kill (line 527) | def test_past_kill(self): class TestSimpleMarket (line 557) | class TestSimpleMarket(GeneralMarketTest): method setup_method (line 558) | def setup_method(self): method test_fail_when_no_contract_under_that_address (line 562) | def test_fail_when_no_contract_under_that_address(self): method test_should_have_printable_representation (line 567) | def test_should_have_printable_representation(self): class TestMatchingMarket (line 571) | class TestMatchingMarket(GeneralMarketTest): method setup_method (line 572) | def setup_method(self): method test_fail_when_no_contract_under_that_address (line 579) | def test_fail_when_no_contract_under_that_address(self): method test_simple_matching (line 584) | def test_simple_matching(self): method test_advanced_matching (line 602) | def test_advanced_matching(self): method test_should_have_printable_representation (line 639) | def test_should_have_printable_representation(self): class TestMatchingMarketWithSupportContract (line 643) | class TestMatchingMarketWithSupportContract(TestMatchingMarket): method setup_method (line 644) | def setup_method(self): method test_fail_when_no_support_contract_under_that_address (line 657) | def test_fail_when_no_support_contract_under_that_address(self): class TestMatchingMarketDecimal (line 665) | class TestMatchingMarketDecimal: method setup_method (line 666) | def setup_method(self): method test_get_orders (line 686) | def test_get_orders(self): class TestMatchingMarketPosition (line 704) | class TestMatchingMarketPosition: method setup_method (line 705) | def setup_method(self): method test_should_calculate_correct_order_position (line 723) | def test_should_calculate_correct_order_position(self): method test_should_use_correct_order_position_by_default (line 729) | def test_should_use_correct_order_position_by_default(self): method test_calculated_order_position_should_bring_gas_savings (line 748) | def test_calculated_order_position_should_bring_gas_savings(self): FILE: tests/test_proxy.py function web3 (line 26) | def web3(): function our_address (line 33) | def our_address(web3): function other_address (line 38) | def other_address(web3): function proxy_cache (line 43) | def proxy_cache(web3): function proxy_factory (line 48) | def proxy_factory(web3): function proxy (line 53) | def proxy(web3, proxy_cache): class TestProxyCache (line 57) | class TestProxyCache: method test_read (line 60) | def test_read(self, proxy_cache: DSProxyCache): method test_write_invalid (line 63) | def test_write_invalid(self, proxy_cache: DSProxyCache): method test_write (line 71) | def test_write(self, proxy_cache: DSProxyCache): class TestProxyFactory (line 79) | class TestProxyFactory: method test_build (line 82) | def test_build(self, proxy_factory: DSProxyFactory): method test_past_build (line 85) | def test_past_build(self, proxy_factory: DSProxyFactory, our_address): method test_build_for (line 104) | def test_build_for(self, proxy_factory: DSProxyFactory, other_address): method test_cache (line 118) | def test_cache(self, proxy_factory: DSProxyFactory, other_address): class TestProxy (line 122) | class TestProxy: method test_execute (line 125) | def test_execute(self, proxy: DSProxy): method test_execute_at (line 128) | def test_execute_at(self, proxy: DSProxy): method test_call (line 144) | def test_call(self, proxy: DSProxy): method test_call_at (line 153) | def test_call_at(self, proxy: DSProxy): FILE: tests/test_reloadable_config.py class TestReloadableConfig (line 23) | class TestReloadableConfig: method write_sample_config (line 25) | def write_sample_config(tmpdir): method write_advanced_config (line 31) | def write_advanced_config(tmpdir, value): method write_global_config (line 37) | def write_global_config(tmpdir, val1, val2): method write_importing_config (line 45) | def write_importing_config(tmpdir): method test_should_read_simple_file (line 55) | def test_should_read_simple_file(self, tmpdir): method test_should_read_advanced_file (line 63) | def test_should_read_advanced_file(self, tmpdir): method test_should_read_file_again_if_changed (line 72) | def test_should_read_file_again_if_changed(self, tmpdir): method test_should_import_other_config_file (line 98) | def test_should_import_other_config_file(self, tmpdir): method test_should_reevaluate_if_other_config_file_changed (line 108) | def test_should_reevaluate_if_other_config_file_changed(self, tmpdir): FILE: tests/test_sai.py class TestTub (line 28) | class TestTub: method test_fail_when_no_contract_under_that_address (line 29) | def test_fail_when_no_contract_under_that_address(self, deployment: De... method test_tap (line 34) | def test_tap(self, deployment: Deployment): method test_era (line 38) | def test_era(self, deployment: Deployment): method test_join_and_pie_and_exit (line 46) | def test_join_and_pie_and_exit(self, deployment: Deployment): method test_mold_cap_and_cap (line 67) | def test_mold_cap_and_cap(self, deployment: Deployment): method test_mold_tax_and_tax (line 77) | def test_mold_tax_and_tax(self, deployment: Deployment): method test_mold_mat_and_mat (line 87) | def test_mold_mat_and_mat(self, deployment: Deployment): method test_mold_axe_and_axe (line 97) | def test_mold_axe_and_axe(self, deployment: Deployment): method test_sai (line 108) | def test_sai(self, deployment: Deployment): method test_sin (line 111) | def test_sin(self, deployment: Deployment): method test_gem (line 114) | def test_gem(self, deployment: Deployment): method test_skr (line 117) | def test_skr(self, deployment: Deployment): method test_gov (line 120) | def test_gov(self, deployment: Deployment): method test_vox (line 123) | def test_vox(self, deployment: Deployment): method test_pip_and_pep (line 126) | def test_pip_and_pep(self, deployment: Deployment): method test_pit (line 130) | def test_pit(self, deployment: Deployment): method test_per (line 133) | def test_per(self, deployment: Deployment): method test_tag (line 136) | def test_tag(self, deployment: Deployment): method test_drip_and_chi_and_rho (line 143) | def test_drip_and_chi_and_rho(self, deployment: Deployment): method test_open_and_cupi (line 157) | def test_open_and_cupi(self, deployment: Deployment): method test_cups (line 164) | def test_cups(self, deployment: Deployment): method test_not_empty_cups (line 173) | def test_not_empty_cups(self, deployment: Deployment): method test_safe (line 190) | def test_safe(self, deployment: Deployment): method test_ink (line 202) | def test_ink(self, deployment: Deployment): method test_lad (line 209) | def test_lad(self, deployment: Deployment): method test_give (line 216) | def test_give(self, deployment: Deployment): method test_shut (line 226) | def test_shut(self, deployment: Deployment): method test_lock_and_free (line 237) | def test_lock_and_free(self, deployment: Deployment): method test_draw_and_tab_and_din_and_wipe (line 258) | def test_draw_and_tab_and_din_and_wipe(self, deployment: Deployment): method test_bite_and_safe (line 284) | def test_bite_and_safe(self, deployment: Deployment): method test_mold_gap_and_gap (line 310) | def test_mold_gap_and_gap(self, deployment: Deployment): method test_bid_and_ask (line 320) | def test_bid_and_ask(self, deployment: Deployment): method test_comparison (line 328) | def test_comparison(self, deployment: Deployment): class TestTap (line 334) | class TestTap: method test_fail_when_no_contract_under_that_address (line 335) | def test_fail_when_no_contract_under_that_address(self, deployment: De... method test_tub (line 340) | def test_tub(self, deployment: Deployment): method test_sai (line 343) | def test_sai(self, deployment: Deployment): method test_sin (line 346) | def test_sin(self, deployment: Deployment): method test_skr (line 349) | def test_skr(self, deployment: Deployment): method test_mold_gap_and_gap (line 352) | def test_mold_gap_and_gap(self, deployment: Deployment): method test_woe (line 362) | def test_woe(self, deployment: Deployment): method test_fog (line 365) | def test_fog(self, deployment: Deployment): method test_joy (line 368) | def test_joy(self, deployment: Deployment): method test_s2s_and_bid_and_ask (line 371) | def test_s2s_and_bid_and_ask(self, deployment: Deployment): method test_joy_and_boom (line 381) | def test_joy_and_boom(self, deployment: Deployment): method test_fog_and_woe_and_bust (line 412) | def test_fog_and_woe_and_bust(self, deployment: Deployment): method test_cash (line 442) | def test_cash(self, deployment: Deployment): method test_mock (line 471) | def test_mock(self, deployment: Deployment): method test_comparison (line 494) | def test_comparison(self, deployment: Deployment): class TestTop (line 501) | class TestTop: method test_fail_when_no_contract_under_that_address (line 502) | def test_fail_when_no_contract_under_that_address(self, deployment: De... method test_comparison (line 507) | def test_comparison(self, deployment: Deployment): method test_default_fix (line 513) | def test_default_fix(self, deployment: Deployment): method test_cage (line 517) | def test_cage(self, deployment: Deployment): class TestVox (line 535) | class TestVox: method test_fail_when_no_contract_under_that_address (line 536) | def test_fail_when_no_contract_under_that_address(self, deployment: De... method test_comparison (line 541) | def test_comparison(self, deployment: Deployment): method test_era (line 548) | def test_era(self, deployment: Deployment): method test_default_par (line 556) | def test_default_par(self, deployment: Deployment): FILE: tests/test_savings.py function dsr (line 29) | def dsr(our_address: Address, mcd: DssDeployment) -> Dsr: function test_proxy (line 34) | def test_proxy(dsr): function test_join_and_exit (line 42) | def test_join_and_exit(dsr): FILE: tests/test_shutdown.py function open_cdp (line 33) | def open_cdp(mcd: DssDeployment, collateral: Collateral, address: Address): function create_flap_auction (line 47) | def create_flap_auction(mcd: DssDeployment, deployment_address: Address,... class TestShutdownModule (line 69) | class TestShutdownModule: method test_init (line 72) | def test_init(self, mcd, deployment_address, our_address): method test_join (line 86) | def test_join(self, mcd, our_address): method test_fire (line 105) | def test_fire(self, mcd, our_address): class TestEnd (line 112) | class TestEnd: method test_init (line 115) | def test_init(self, mcd): method test_getters (line 120) | def test_getters(self, mcd): method test_cage (line 133) | def test_cage(self, mcd): method test_yank (line 141) | def test_yank(self, mcd): method test_skim (line 158) | def test_skim(self, mcd, our_address): method test_close_cdp (line 176) | def test_close_cdp(self, web3, mcd, our_address): method test_pack (line 192) | def test_pack(self, mcd, our_address): FILE: tests/test_sign.py function test_signing (line 26) | def test_signing(): function test_signing_with_key_and_rpc_should_return_same_result (line 39) | def test_signing_with_key_and_rpc_should_return_same_result(): FILE: tests/test_token.py class TestERC20Token (line 28) | class TestERC20Token: method setup_method (line 29) | def setup_method(self): method test_fail_when_no_token_with_that_address (line 38) | def test_fail_when_no_token_with_that_address(self): method test_symbol_for_dstoken_which_returns_bytes32 (line 42) | def test_symbol_for_dstoken_which_returns_bytes32(self): method test_total_supply (line 45) | def test_total_supply(self): method test_balance_of (line 48) | def test_balance_of(self): method test_balance_at_block (line 52) | def test_balance_at_block(self): method test_transfer (line 69) | def test_transfer(self): method test_transfer_async (line 78) | def test_transfer_async(self): method test_transfer_failed (line 87) | def test_transfer_failed(self): method test_transfer_failed_async (line 96) | def test_transfer_failed_async(self): method test_transfer_out_of_gas (line 105) | def test_transfer_out_of_gas(self): method test_transfer_out_of_gas_async (line 114) | def test_transfer_out_of_gas_async(self): method test_transfer_generates_transfer (line 123) | def test_transfer_generates_transfer(self): method test_transfer_from (line 134) | def test_transfer_from(self): method test_allowance_of (line 144) | def test_allowance_of(self): method test_approve (line 147) | def test_approve(self): method test_equals (line 154) | def test_equals(self): method test_should_have_printable_representation (line 166) | def test_should_have_printable_representation(self): class TestDSToken (line 171) | class TestDSToken: method setup_method (line 172) | def setup_method(self): method test_fail_when_no_contract_under_that_address (line 179) | def test_fail_when_no_contract_under_that_address(self): method test_authority (line 184) | def test_authority(self): method test_mint (line 194) | def test_mint(self): method test_mint_to_other_address (line 201) | def test_mint_to_other_address(self): method test_mint_generates_transfer (line 208) | def test_mint_generates_transfer(self): method test_burn (line 219) | def test_burn(self): method test_burn_from_other_address (line 229) | def test_burn_from_other_address(self): method test_burn_generates_transfer (line 240) | def test_burn_generates_transfer(self): method test_should_have_printable_representation (line 254) | def test_should_have_printable_representation(self): class TestDSEthToken (line 258) | class TestDSEthToken: method setup_method (line 259) | def setup_method(self): method test_fail_when_no_contract_under_that_address (line 265) | def test_fail_when_no_contract_under_that_address(self): method test_deposit (line 270) | def test_deposit(self): method test_withdraw (line 277) | def test_withdraw(self): method test_should_have_printable_representation (line 287) | def test_should_have_printable_representation(self): FILE: tests/test_transactional.py class TestTxManager (line 28) | class TestTxManager: method setup_method (line 29) | def setup_method(self): method test_fail_when_no_contract_under_that_address (line 40) | def test_fail_when_no_contract_under_that_address(self): method test_owner (line 45) | def test_owner(self): method test_approve (line 48) | def test_approve(self): method test_execute_zero_calls (line 60) | def test_execute_zero_calls(self): method test_execute_one_call (line 70) | def test_execute_one_call(self): method test_execute_one_call_fails_if_no_approval (line 83) | def test_execute_one_call_fails_if_no_approval(self): method test_execute_multiple_calls_with_multiple_tokens (line 96) | def test_execute_multiple_calls_with_multiple_tokens(self): method test_should_have_printable_representation (line 113) | def test_should_have_printable_representation(self): FILE: tests/test_util.py function async_return (line 30) | async def async_return(result): function async_exception (line 34) | async def async_exception(): function mocked_web3 (line 39) | def mocked_web3(block_0_hash: str) -> Web3: function test_chain_should_recognize_ethlive (line 52) | def test_chain_should_recognize_ethlive(): function test_chain_should_recognize_kovan (line 60) | def test_chain_should_recognize_kovan(): function test_chain_should_recognize_ropsten (line 68) | def test_chain_should_recognize_ropsten(): function test_chain_should_recognize_morden (line 76) | def test_chain_should_recognize_morden(): function test_chain_should_report_unknown_chains_as_unknown (line 84) | def test_chain_should_report_unknown_chains_as_unknown(): function mocked_web3_transaction_count (line 92) | def mocked_web3_transaction_count(address: Address, latest: int, pending... function test_synchronize_should_return_empty_list_for_no_futures (line 108) | def test_synchronize_should_return_empty_list_for_no_futures(): function test_synchronize_should_return_results_of_all_async_calls (line 112) | def test_synchronize_should_return_results_of_all_async_calls(): function test_synchronize_should_pass_exceptions (line 118) | def test_synchronize_should_pass_exceptions(): function test_int_to_bytes32 (line 123) | def test_int_to_bytes32(): function test_bytes_to_int (line 145) | def test_bytes_to_int(): function test_bytes_to_int_from_string (line 175) | def test_bytes_to_int_from_string(): function test_bytes_to_int_from_int_should_fail (line 183) | def test_bytes_to_int_from_int_should_fail(): function test_bytes_to_hexstring (line 188) | def test_bytes_to_hexstring(): function test_hexstring_to_bytes (line 194) | def test_hexstring_to_bytes(): class TestAsyncCallback (line 200) | class TestAsyncCallback: method callbacks (line 202) | def callbacks(self): method test_should_call_callback (line 215) | def test_should_call_callback(self, callbacks): method test_should_not_call_callback_if_previous_one_is_still_running (line 226) | def test_should_not_call_callback_if_previous_one_is_still_running(sel... method test_should_call_callback_again_if_previous_one_is_finished (line 242) | def test_should_call_callback_again_if_previous_one_is_finished(self, ... method test_should_wait_for_the_callback_to_finish (line 259) | def test_should_wait_for_the_callback_to_finish(self, callbacks): method test_should_call_on_start_and_on_finish_before_and_after_the_callback (line 271) | def test_should_call_on_start_and_on_finish_before_and_after_the_callb... FILE: tests/test_vault.py class TestDSVault (line 25) | class TestDSVault: method setup_method (line 26) | def setup_method(self): method test_fail_when_no_contract_under_that_address (line 32) | def test_fail_when_no_contract_under_that_address(self): method test_authority (line 37) | def test_authority(self): method test_should_have_printable_representation (line 47) | def test_should_have_printable_representation(self): FILE: tests/test_zrx.py class TestZrx (line 36) | class TestZrx: method setup_method (line 37) | def setup_method(self): method test_fail_when_no_contract_under_that_address (line 53) | def test_fail_when_no_contract_under_that_address(self): method test_correct_deployment (line 58) | def test_correct_deployment(self): method test_approval (line 65) | def test_approval(self): method test_create_order (line 77) | def test_create_order(self): method test_get_order_hash (line 101) | def test_get_order_hash(self): method test_sign_order (line 115) | def test_sign_order(self): method test_cancel_order (line 132) | def test_cancel_order(self): method test_fill_order (line 152) | def test_fill_order(self): method test_remaining_buy_amount_and_remaining_sell_amount (line 172) | def test_remaining_buy_amount_and_remaining_sell_amount(self): method test_past_fill (line 194) | def test_past_fill(self): method test_past_cancel (line 221) | def test_past_cancel(self): method test_should_have_printable_representation (line 245) | def test_should_have_printable_representation(self): class TestOrder (line 249) | class TestOrder: method test_should_be_comparable (line 250) | def test_should_be_comparable(self): method test_should_be_hashable (line 301) | def test_should_be_hashable(self): method test_parse_signed_json_order (line 323) | def test_parse_signed_json_order(self): method test_parse_unsigned_json_order (line 366) | def test_parse_unsigned_json_order(self): method test_serialize_order_to_json_without_fees (line 404) | def test_serialize_order_to_json_without_fees(self): method test_serialize_order_to_json (line 439) | def test_serialize_order_to_json(self): FILE: tests/test_zrxv2.py class TestZrxV2 (line 38) | class TestZrxV2: method setup_method (line 39) | def setup_method(self): method test_fail_when_no_contract_under_that_address (line 58) | def test_fail_when_no_contract_under_that_address(self): method test_correct_deployment (line 63) | def test_correct_deployment(self): method test_approval (line 71) | def test_approval(self): method test_create_order (line 84) | def test_create_order(self): method test_get_order_hash (line 108) | def test_get_order_hash(self): method test_sign_order (line 122) | def test_sign_order(self): method test_cancel_order (line 137) | def test_cancel_order(self): method test_fill_order (line 157) | def test_fill_order(self): method test_remaining_buy_amount_and_remaining_sell_amount (line 177) | def test_remaining_buy_amount_and_remaining_sell_amount(self): method test_past_fill (line 199) | def test_past_fill(self): method test_past_cancel (line 226) | def test_past_cancel(self): method test_should_have_printable_representation (line 248) | def test_should_have_printable_representation(self): class TestOrder (line 252) | class TestOrder: method test_should_be_comparable (line 253) | def test_should_be_comparable(self): method test_should_be_hashable (line 302) | def test_should_be_hashable(self): method test_parse_signed_json_order (line 323) | def test_parse_signed_json_order(self): method test_parse_unsigned_json_order (line 362) | def test_parse_unsigned_json_order(self): method test_serialize_order_to_json_without_fees (line 399) | def test_serialize_order_to_json_without_fees(self): method test_serialize_order_to_json (line 432) | def test_serialize_order_to_json(self): FILE: utils/etherdelta-client/main.js function publishOrder (line 26) | function publishOrder() {