This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VERSION BUILD=1011 RECORDER=CR | |
SET !LOOP -99999 | |
SET !ERRORIGNORE YES | |
URL GOTO=https://www.cotps.com/trade#/pages/transaction/transaction | |
WAIT SECONDS=5 | |
URL GOTO=https://www.cotps.com/trade#/pages/transaction/transaction | |
WAIT SECONDS=8 | |
TAG POS=1 TYPE=UNI-BUTTON ATTR=TXT:Immediate<SP>competition<SP>for<SP>orders | |
WAIT SECONDS=8 | |
TAG POS=1 TYPE=UNI-BUTTON ATTR=TXT:Sell |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
This script allows you to sign your loginToken the proper way | |
to better authenticate to the Maiar DEX API. | |
Prerequisite: | |
You need to install the pip package erdpy. | |
> pip3 install erdpy | |
""" | |
from erdpy.accounts import Account | |
from erdpy.wallet.signing import sign_message |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from erdpy.accounts import Account | |
from erdpy.wallet.signing import sign_message | |
from Cryptodome.Hash import keccak | |
PREFIX = "\x17Elrond Signed Message:\n" | |
def sign_access_token(login_token, account): | |
"""This function generates the signature of the login_token+public_key. |