예제 #1
0
        static int RunShowPendingChainWithdrawals(ShowPendingChainWithdrawals opts)
        {
            var sp = GetServiceProvider();

            ConsoleTasks.ShowPendingChainWithdrawals(sp, opts.Asset);
            return(0);
        }
예제 #2
0
        static int RunCheckChainDeposits(CheckChainDeposits opts)
        {
            var sp = GetServiceProvider();

            ConsoleTasks.CheckChainDeposits(sp, opts.Asset);
            return(0);
        }
예제 #3
0
        static int RunCompletedFiatWithdrawForBrokerOrder(CompletedFiatWithdrawForBrokerOrder opts)
        {
            var sp = GetServiceProvider();

            ConsoleTasks.CompletedFiatWithdrawForBrokerOrder(sp, opts.Token).GetAwaiter().GetResult();
            return(0);
        }
예제 #4
0
        static int RunProcessChainWithdrawal(ProcessChainWithdrawal opts)
        {
            var sp = GetServiceProvider();

            ConsoleTasks.ProcessChainWithdrawal(sp, opts.Asset, opts.SpendCode);
            return(0);
        }
예제 #5
0
        static int RunProcessFiatWithdrawal(ProcessFiatWithdrawal opts)
        {
            var sp = GetServiceProvider();

            ConsoleTasks.ProcessFiatWithdrawal(sp, opts.Asset, opts.DepositCode, opts.Date, opts.Amount, opts.BankMetadata).GetAwaiter().GetResult();
            return(0);
        }
예제 #6
0
        static int RunConsolidate(ConsolidateWallet opts)
        {
            var sp = GetServiceProvider();

            ConsoleTasks.ConsolidateWallet(sp, opts.Asset, opts.Emails, opts.All).GetAwaiter().GetResult();
            return(0);
        }
예제 #7
0
        static int RunChangeUserEmail(ChangeUserEmail opts)
        {
            var sp = GetServiceProvider();

            ConsoleTasks.ChangeUserEmail(sp, opts.OldEmail, opts.NewEmail).GetAwaiter().GetResult();
            return(0);
        }
예제 #8
0
        static int RunAddRole(AddRole opts)
        {
            var sp = GetServiceProvider();

            ConsoleTasks.GiveUserRole(sp, opts.Email, opts.Role).GetAwaiter().GetResult();
            return(0);
        }
예제 #9
0
        static int RunInitRoles(InitRoles opts)
        {
            var sp = GetServiceProvider();

            ConsoleTasks.CreateRoles(sp).GetAwaiter().GetResult();
            return(0);
        }