Beispiel #1
0
        public Task <BigInteger> DelegatorShareQueryAsync(BigInteger stakingEpoch, BigInteger delegatorStaked, BigInteger validatorStaked, BigInteger totalStaked, BigInteger poolReward, BlockParameter blockParameter = null)
        {
            var delegatorShareFunction = new DelegatorShareFunction();

            delegatorShareFunction.StakingEpoch    = stakingEpoch;
            delegatorShareFunction.DelegatorStaked = delegatorStaked;
            delegatorShareFunction.ValidatorStaked = validatorStaked;
            delegatorShareFunction.TotalStaked     = totalStaked;
            delegatorShareFunction.PoolReward      = poolReward;

            return(ContractHandler.QueryAsync <DelegatorShareFunction, BigInteger>(delegatorShareFunction, blockParameter));
        }
Beispiel #2
0
 public Task <BigInteger> DelegatorShareQueryAsync(DelegatorShareFunction delegatorShareFunction, BlockParameter blockParameter = null)
 {
     return(ContractHandler.QueryAsync <DelegatorShareFunction, BigInteger>(delegatorShareFunction, blockParameter));
 }