Exemple #1
0
    async Task DespositToken(System.Numerics.BigInteger amount)
    {
        var matic = Setting1.GetMatic();
        var from  = Setting1.FROM_ADDRESS;
        var token = Settings.ROPSTEN_TEST_TOKEN;
        await matic.ApproveERC20TokensForDeposit(from, token, amount);

        Debug.Log($"ApproveERC20TokensForDeposit finished");
        await matic.DepositERC20Tokens(from, from, token, amount);

        Debug.Log($"DepositERC20Tokens finished");
    }
Exemple #2
0
    public static async Task <System.Numerics.BigInteger> BalanceOfERC20()
    {
        var matic = Setting1.GetMatic();

        return(await matic.BalanceOfERC20(Setting1.FROM_ADDRESS, Setting1.MATIC_TEST_TOKEN));
    }