lib/contract_interact/simple_stake.js
function () {

    const oThis = this;

    const callback = async function (response) {
      if (response.isFailure()) {
        return response;
      }
      return responseHelper.successWithData({allTimeStakedAmount: response.data.getTotalStake});
    };

    return oThis._callMethod('getTotalStake').then(callback);

  }
function () {

    const oThis = this;

    const callback = async function (response) {
      if (response.isFailure()) {
        return response;
      }
      return responseHelper.successWithData({allTimeStakedAmount: response.data.getTotalStake});
    };

    return oThis._callMethod('getTotalStake').then(callback);

  }
function ( ) { const oThis = this ; const callback = async function ( response ) { if ( response . isFailure ( ) ) { return response ; } return responseHelper . successWithData ( { allTimeStakedAmount : response . data . getTotalStake } ) ; } ; return oThis . _callMethod ( 'getTotalStake' ) . then ( callback ) ; }
Fetch all time staked amount

@return {promise<result>}
Fetch all time staked amount