Skip to content

Instantly share code, notes, and snippets.

@memento
memento / macro_cotps.txt
Last active April 25, 2022 10:48
iMacros code to automate your trades on cotps.com. Search chrome extension "iMacros" or download it here: https://chrome.google.com/webstore/detail/tronlink/ibnejdfjmmkpcnlpebklmnkoeoihofec . This code works great for me and I don't miss any trade at night but it comes with no warranty. Use it at your own risk. If you want to thank me, use my re…
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
@memento
memento / tokensign.py
Last active May 17, 2023 12:23
This script allows to you sign your loginToken the proper way to better authenticate to the Maiar DEX API.
"""
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
@memento
memento / tokensign
Created November 27, 2021 20:44
When This script is useful to sign your login token
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.