Example #1
0
 def deploy(web3: Web3, jar: Address, jug: Address, pot: Address, pit: Address, tip: Address):
     assert(isinstance(jar, Address))
     assert(isinstance(jug, Address))
     assert(isinstance(pot, Address))
     assert(isinstance(pit, Address))
     assert(isinstance(tip, Address))
     return Tub(web3=web3, address=Contract._deploy(web3, Tub.abiTub, Tub.binTub,
                                                    [jar.address, jug.address, pot.address, pit.address, tip.address]))
Example #2
0
 def deploy(web3: Web3):
     return DSVault(web3=web3,
                    address=Contract._deploy(web3, DSVault.abi, DSVault.bin,
                                             []))
Example #3
0
 def deploy(web3: Web3, tub: Address, tap: Address):
     assert(isinstance(tub, Address))
     assert(isinstance(tap, Address))
     return Top(web3=web3, address=Contract._deploy(web3, Top.abi, Top.bin, [tub.address, tap.address]))
Example #4
0
 def deploy(web3: Web3, args=[]):
     return DSEthToken(web3=web3,
                       address=Contract._deploy(web3, DSEthToken.abi,
                                                DSEthToken.bin, args))
Example #5
0
 def deploy(web3: Web3, tub: Address, pit: Address):
     assert(isinstance(tub, Address))
     assert(isinstance(pit, Address))
     return Tap(web3=web3, address=Contract._deploy(web3, Tap.abi, Tap.bin, [tub.address, pit.address]))
Example #6
0
 def deploy(web3: Web3, symbol: str):
     assert (isinstance(symbol, str))
     return DSToken(web3=web3,
                    address=Contract._deploy(web3, DSToken.abi, DSToken.bin,
                                             [symbol]))
Example #7
0
 def deploy(web3: Web3, *args):
     return DSValue(web3=web3,
                    address=Contract._deploy(web3, DSValue.abi, DSValue.bin,
                                             args))
Example #8
0
 def deploy(web3: Web3):
     return TxManager(web3=web3,
                      address=Contract._deploy(web3, TxManager.abi,
                                               TxManager.bin, []))
Example #9
0
 def deploy(web3: Web3):
     return DSRoles(web3=web3, address=Contract._deploy(web3, DSRoles.abi, DSRoles.bin, []))
Example #10
0
 def deploy(web3: Web3):
     return DSGuard(web3=web3, address=Contract._deploy(web3, DSGuard.abi, DSGuard.bin, []))