private async Task ContributeAndDistribute(ProfitContractImplContainer.ProfitContractImplStub creator, int contributeAmountEachTime, int period) { await creator.ContributeProfits.SendAsync(new ContributeProfitsInput { Amount = contributeAmountEachTime, Symbol = ProfitContractTestConstants.NativeTokenSymbol, SchemeId = schemeId }); await creator.DistributeProfits.SendAsync(new DistributeProfitsInput { SchemeId = schemeId, Period = period, }); }
private async Task <long> AddBeneficiaries(ProfitContractImplContainer.ProfitContractImplStub creator) { await creator.AddBeneficiaries.SendAsync(new AddBeneficiariesInput { SchemeId = schemeId, BeneficiaryShares = { new BeneficiaryShare { Beneficiary = Accounts[11].Address, Shares = 1 }, new BeneficiaryShare { Beneficiary = Accounts[12].Address, Shares = 1 }, new BeneficiaryShare { Beneficiary = Accounts[13].Address, Shares = 1 }, new BeneficiaryShare { Beneficiary = Accounts[14].Address, Shares = 1 }, new BeneficiaryShare { Beneficiary = Accounts[15].Address, Shares = 1 }, } }); return(5); }