예제 #1
0
 def run(i):
     print(
         pushaction("grandpacoins", "mine", [i, "4,BTC", "gy2dgmztgqge"],
                    i))
     print(
         pushaction("grandpacoins", "mine", [i, "4,ETH", "gy2dgmztgqge"],
                    i))
     print(
         pushaction("grandpacoins", "mine", [i, "4,DOGE", "gy2dgmztgqge"],
                    i))
예제 #2
0
def run(account):
    memo = f"luckdraw|{getrandom(account)}"
    x = pushaction("eosgetadmin1", "luckdraw", [account, memo], account)
    print(x)
    if not b"eosio_assert_message" in x:
        tx = re.findall(b"executed transaction: (.*?) ", x)[0]
        tx = str(tx, encoding="utf8")
        block_num = getinfo()
        data = {"transaction_id": tx, "block_num": block_num}
        z1 = s.post("https://dice.eosget.io/eos/luckdrawReport", data=data)
        print(z1.text)
예제 #3
0
def createUser1(publicKey, f, _amount=0.64, name=None):
    "使用 signupeoseos 来注册匿名账号,http://signupeoseos.com/#/"
    if not name:
        name = genrateRandomName()
    # 直到随机到一个没有注册的用户名.
    amount = "%.4f EOS" % _amount
    while True:
        if checkName(name):
            break
        name = genrateRandomName()
    memo = "{}-{}".format(name, publicKey)
    t = pushaction("eosio.token", "transfer",
                   [f, "signupeoseos", amount, memo], f)

    logger.info("account:{}".format(name))
    logger.info(t)
예제 #4
0
def play(myaccount, password):
    logger.info("#" * 60)
    logger.info("开始玩...")
    account = "betdicetoken"
    action = "transfer"
    count = 0
    while True:
        while True:
            for _amount in rules:
                if count > 6:
                    logger.info("连续输了6吧了...等待60s再继续...")
                    sleep(60)
                amout = "%.4f DICE" % _amount
                memo = (
                    "action:bet,seed:p9PlfQYTo0p1B3O1wO,rollUnder:50,ref:bbheasxtlatd"
                )
                logger.info("投入的金额为:{}".format(_amount))
                data = [myaccount, "betdiceadmin", amout, memo]

                t = pushaction(account, action, data, myaccount)
                send_t = arrow.utcnow()
                sleep(1)
                if b"Locked" in t:
                    logger.info("cleos 没有解锁,正在解锁")
                    unlock(password)
                    break  # 重头循环开始玩.
                elif b"transaction:" in t:
                    logger.info("请求发送成功,正在获取游戏结果.")
                    isWin = getData(myaccount, "betdiceadmin", send_t)
                    if isWin:  # 我赢了
                        logger.info("赢了.")
                        count = 0
                        break  # 重头循环开始玩.
                    else:
                        logger.info("输了.")

                elif b"has one game not yet" in t:
                    logger.info("玩的太快了,上一次玩的还没有出结果")
                    sleep(10)
                    break
                else:
                    logger.info("发送请求失败,报错为:{}".format(t))
                    sleep(10)
                    break
                # 每次玩等待2s
                count += 1
                sleep(2)
예제 #5
0
def shijia(count, account):
    memo = {
        "type": "sell-market",
        "symbol": "eosroyaleroy-roy-eos",
        "price": "0.0000000",
        "count": count,
        "amount": 0,
        "channel": "web",
        "ref": "Scatter",
    }
    data = {
        "from": account,
        "to": to,
        "quantity": "%.4f ROY" % count,
        "memo": f"{memo}",
    }
    print(pushaction("eosroyaleroy", "transfer", data, account))
예제 #6
0
def run(ref):
    """https://lottery.eosplay.co/link"""
    accounts = getAccounts()
    for i in range(5, len(accounts) - 5):
        account = accounts[i]
        if i % 2 == 0:
            memo = "lottery:o@{}".format(ref)
        else:
            memo = "lottery:e@{}".format(ref)
        t = pushaction(
            "eosio.token",
            "transfer",
            [account, "eosplaybrand", "0.1000 EOS", memo],
            account,
        )
        if b"transaction" not in t:
            logger.info("转账失败:{}".format(account))
            logger.info("原因为:{}".format(t))
예제 #7
0
def run(ref, accounts):
    """https://lottery.eosplay.co/link"""
    for i in range(0, len(accounts)):
        account = accounts[i]
        if i % 2 == 0:  # lottery:o,lottery:e 一个是猜单,一个是猜双,这段代码的目的是 55开,这样可以保证2次肯定有一次赢.
            memo = "lottery:o@{}".format(ref)
        else:
            memo = "lottery:e@{}".format(ref)
        t = pushaction(
            "eosio.token",
            "transfer",
            [account, "eosplaybrand", "0.1000 EOS", memo],
            account,
        )
        if b"transaction" not in t:
            logger.info("转账失败:{}".format(account))
            logger.info("原因为:{}".format(t))
        else:
            print("{} 操作成".format(account))
예제 #8
0
def run(count, price, account):
    amount = count * price
    memo = {
        "type": "sell-limit",
        "symbol": "fishjoytoken-fish-eos",
        "price": f"{price}",
        "count": f"{count}",
        "amount": f"{amount}",
        "channel": "web",
        "ref": "Scatter",
    }
    data = {
        "from": account,
        "to": to,
        "quantity": "%.4f FISH" % count,
        "memo": f"{memo}",
    }
    print(data)
    print(pushaction("fishjoytoken", "transfer", data, account))
예제 #9
0
def tranferBase(contract, symbol, f, to, n, m="", decimal=4, node="eos"):
    return pushaction(contract,
                      "transfer",
                      [f, to, f"%.{decimal}f {symbol}" % n, m],
                      f,
                      node=node)
예제 #10
0
def main(password):
    x = getAccounts()
    unlock(password)
    for i in x[:1]:
        print(pushaction("betdicetoken", "signup", [i, "1000.0000 DICE"],
                         i))  # 1000dice
def transferEos(f, to, n):
    return pushaction("eosio.token", "transfer",
                      [f, to, "%.4f EOS" % n, ""], f)
예제 #12
0
def getdraw(account):
    b, c = randomN(account)
    print(pushaction("betdicelucky", "draw", [account, b, c], account))
예제 #13
0
def tranferEsa(f, to, n, m=""):
    return pushaction("shadowbanker", "transfer", [f, to, "%.4f ESA" % n, m], f)
예제 #14
0
def tranferAdd(f, to, n, m=""):
    return pushaction("eosadddddddd", "transfer", [f, to, "%.4f ADD" % n, m], f)
예제 #15
0
def playdice(account):  # 投掷骰子
    return pushaction(RICHCONTRACT, "playdice", [account, "2010"], account)
예제 #16
0
def payrent(account):  # 支付押金
    return pushaction(RICHCONTRACT, "payrent", [account], account)
def tranferDice(f, to, n):
    return pushaction("betdicetoken", "transfer",
                      [f, to, "%.4f DICE" % n, ""], f)
예제 #18
0
 def run(i):
     print(pushaction("poormantoken", "signup", [i, "0.0000 POOR"], i))
     print(pushaction("trybenetwork", "claim", [i], i))
     print(pushaction("wizznetwork1", "signup", [i, "0.0000 WIZZ"], i))
예제 #19
0
def main(password):
    x = getAccounts()
    unlock(password)
    for i in x:
        print(pushaction("betdicelucky", "draw", [i], i))
예제 #20
0
def pushit(f, t, a):
    return pushaction("crazytownftg", "setaccount", [t, a], f)
예제 #21
0
def run(account):
    print(pushaction("dhboneplay11", "getfree", [account], account))
예제 #22
0
def clear(scope):
    return pushaction("cryptomeetup", "newland", [scope, "0.0000 EOS"],
                      "cryptomeetup")
예제 #23
0
def withdraw():
    print(pushaction("bid.game", "withdraw", ["gy2dgmztgqge"], "gy2dgmztgqge"))
예제 #24
0
def transferCMU(f, to, n, m=""):
    return pushaction("dacincubator", "transfer",
                      [f, to, "%.4f CMU" % n, m], f)
예제 #25
0
def transferEos(f, to):
    return pushaction("eosio.token", "transfer", [f, to, "0.2000 EOS", ""], f)