token-lists icon indicating copy to clipboard operation
token-lists copied to clipboard

https://raw.githubusercontent.com/The-Blockchain-Association/sec-notice-list/master/ba-sec-list.json

Open krasiva711 opened this issue 2 years ago • 9 comments

krasiva711 avatar Jun 27 '23 18:06 krasiva711

No description provided.

cyny39 avatar Jun 28 '23 06:06 cyny39

Transfer transfer = new Transfer();
//Supported networks
List<Blockchain> blockchains = new ArrayList<>();
//Evm series, the first parameter is Ethereum, the second parameter is the ChainId, like 1 is the ChainId for Ethereum.
blockchains.add(new Blockchain("ethereum", "56"));
transfer.setBlockchains(blockchains);

transfer.setProtocol("TokenPocket");
transfer.setVersion("1.0");
transfer.setDappName("Test demo");
transfer.setDappIcon("https://eosknights.io/img/icon.png");
//business id defined by developer
transfer.setActionId("web-db4c5466-1a03-438c-90c9-2172e8becea5");
//data,If it is a native token, you can add on-chain data
transfer.setMemo("0xe595a6");
transfer.setAction("transfer");
//sender
transfer.setFrom("0x52bc44d5378309ee2abf1539bf71de1b7d7be3b5");
//receiver
transfer.setTo("0x32ff06198da462f1c519d30f4d328b3fef295d19");
//contract address, if you are transferring ether, this parameter is optional
transfer.setContract("0xdAC17F958D2ee523a2206206994597C13D831ec7");
//token amount. For example, we transfer 0.01 USDT here, which is equivalent to passing 0.01 USDT. 
transfer.setAmount(0.01);
//Required
transfer.setDecimal(18);
transfer.setSymbol("USDT");
transfer.setDesc("Only for ui display, not on the chain");
//if developer set callback url, after the wallet operation is completed, the result will be called back to the callbak URL through the post application json method
transfer.setCallbackUrl("http://115.205.0.178:9011/taaBizApi/taaInitData");
TPManager.getInstance().transfer(this, transfer, new TPListener() {
    @Override
    public void onSuccess(String s) {
        //The result of the transfer. Note that developer needs to confirm the final result on chain with the hash. We just return the hash after sending transaction, it can not guarantee a successful transaction.
        Toast.makeText(EthTransferActivity.this, s, Toast.LENGTH_LONG).show();
    }

    @Override
    public void onError(String s) {
        Toast.makeText(EthTransferActivity.this, s, Toast.LENGTH_LONG).show();

    }

    @Override
    public void onCancel(String s) {
        Toast.makeText(EthTransferActivity.this, s, Toast.LENGTH_LONG).show();

    }
});

krasiva711 avatar Jul 07 '23 16:07 krasiva711

Transfer transfer = new Transfer();
//Supported networks
List<Blockchain> blockchains = new ArrayList<>();
//Evm series, the first parameter is Ethereum, the second parameter is the ChainId, like 1 is the ChainId for Ethereum.
blockchains.add(new Blockchain("ethereum", "56"));
transfer.setBlockchains(blockchains);

transfer.setProtocol("TokenPocket");
transfer.setVersion("1.0");
transfer.setDappName("Test demo");
transfer.setDappIcon("https://eosknights.io/img/icon.png");
//business id defined by developer
transfer.setActionId("web-db4c5466-1a03-438c-90c9-2172e8becea5");
//data,If it is a native token, you can add on-chain data
transfer.setMemo("0xe595a6");
transfer.setAction("transfer");
//sender
transfer.setFrom("0x52bc44d5378309ee2abf1539bf71de1b7d7be3b5");
//receiver
transfer.setTo("0x32ff06198da462f1c519d30f4d328b3fef295d19");
//contract address, if you are transferring ether, this parameter is optional
transfer.setContract("0xdAC17F958D2ee523a2206206994597C13D831ec7");
//token amount. For example, we transfer 0.01 USDT here, which is equivalent to passing 0.01 USDT. 
transfer.setAmount(0.01);
//Required
transfer.setDecimal(18);
transfer.setSymbol("USDT");
transfer.setDesc("Only for ui display, not on the chain");
//if developer set callback url, after the wallet operation is completed, the result will be called back to the callbak URL through the post application json method
transfer.setCallbackUrl("http://115.205.0.178:9011/taaBizApi/taaInitData");
TPManager.getInstance().transfer(this, transfer, new TPListener() {
    @Override
    public void onSuccess(String s) {
        //The result of the transfer. Note that developer needs to confirm the final result on chain with the hash. We just return the hash after sending transaction, it can not guarantee a successful transaction.
        Toast.makeText(EthTransferActivity.this, s, Toast.LENGTH_LONG).show();
    }

    @Override
    public void onError(String s) {
        Toast.makeText(EthTransferActivity.this, s, Toast.LENGTH_LONG).show();

    }

    @Override
    public void onCancel(String s) {
        Toast.makeText(EthTransferActivity.this, s, Toast.LENGTH_LONG).show();

    }
});

krasiva711 avatar Jul 07 '23 16:07 krasiva711

👌

Imebeez avatar Jul 13 '23 15:07 Imebeez

#404

krasiva711 avatar Jul 16 '23 17:07 krasiva711

##420

krasiva711 avatar Jul 16 '23 17:07 krasiva711

  • [ ] ****

Nnelson3222 avatar Jul 17 '23 00:07 Nnelson3222

@Imebeez

cyny39 avatar Jul 17 '23 00:07 cyny39

404Sent from my iPhoneOn Jul 16, 2023, at 10:47 AM, Nina naydenova @.***> wrote:

#404

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>

Nnelson3222 avatar Jul 17 '23 02:07 Nnelson3222