Exemplo n.º 1
0
def create_eosish_balance(user, eth_address, btc_address, memo_str):
    eosish = SubSite.objects.get(site_name=EOSISH_URL)
    UserSiteBalance(user=user,
                    subsite=eosish,
                    eth_address=eth_address,
                    btc_address=btc_address,
                    memo=memo_str).save()
Exemplo n.º 2
0
def create_swaps_balance(user, eth_address, btc_address, memo_str):
    swaps = SubSite.objects.get(site_name=SWAPS_URL)
    UserSiteBalance(user=user,
                    subsite=swaps,
                    eth_address=eth_address,
                    btc_address=btc_address,
                    tron_address='41' + eth_address[2:],
                    memo=memo_str).save()
Exemplo n.º 3
0
def create_tron_balance(user, eth_address, btc_address, memo_str):
    tron = SubSite.objects.get(site_name=TRON_URL)
    UserSiteBalance(user=user,
                    subsite=tron,
                    eth_address=eth_address,
                    btc_address=btc_address,
                    tron_address='41' + eth_address[2:],
                    memo=memo_str).save()
Exemplo n.º 4
0
def create_wish_balance(user, eth_address, btc_address, memo_str):
    wish = SubSite.objects.get(site_name=MY_WISH_URL)
    UserSiteBalance(user=user,
                    subsite=wish,
                    eth_address=eth_address,
                    btc_address=btc_address,
                    tron_address='41' + eth_address[2:],
                    memo=memo_str).save()
Exemplo n.º 5
0
def create_protector_balance(user, eth_address, btc_address, memo_str):
    protector = SubSite.objects.get(site_name=TOKEN_PROTECTOR_URL)
    UserSiteBalance(user=user,
                    subsite=protector,
                    eth_address=eth_address,
                    btc_address=btc_address,
                    tron_address='41' + eth_address[2:],
                    memo=memo_str).save()