def deploy(): print("deleting child chain pickle") shutil.rmtree(plasma_config["PICKLE_DIR"], ignore_errors=True) deployer = Deployer() deployer.compile_all() deployer.deploy_contract("RootChain") deployer = Deployer(CONTRACTS_DIR=CONTRACTS_DIR, OUTPUT_DIR=OUTPUT_DIR) deployer.compile_all() erc721_contract = deployer.deploy_contract("ERC721Token", args=("My ERC721 Token", "MET721")) erc20_contract = deployer.deploy_contract("EIP20", args=(100000000 * (10 ** 18), "FEX", 18, "FEX")) print("minting erc721 ...") erc721_contract.mint(plasma_config["COINBASE"], 1, transact={'from': plasma_config["COINBASE"]}) erc721_contract.mint(plasma_config["COINBASE"], 888, transact={'from': plasma_config["COINBASE"]}) print("erc721 initialized") erc20_contract_2 = deployer.deploy_contract("EIP20", args=(100000000 * (10 ** 18), "TEST", 18, "TEST")) deployer.w3.eth.sendTransaction({'from': plasma_config["COINBASE"], 'to': to_checksum_address('0xd03ce696c376882fab5e808aad2ffeae2789a712'), 'value': deployer.w3.toWei(50, 'ether')}) # wallet seed: desert allow payment inmate ribbon still hero claim return wear retreat stuff print("test wallet eth sent")
from plasma.root_chain.deployer import Deployer deployer = Deployer() deployer.compile_all() deployer.deploy_contract("RootChain")