public BigInteger[] Get(StorageContext storage, Address address) { lock (storage) { var listKey = GetKeyForList(address); var list = new StorageList(listKey, storage); return(list.All <BigInteger>()); } }
public MarketAuction[] GetAuctions() { var ids = _auctionIDs.All <string>(); var auctions = new MarketAuction[ids.Length]; for (int i = 0; i < auctions.Length; i++) { auctions[i] = _auctionMap.Get <string, MarketAuction>(ids[i]); } return(auctions); }
public Address[] GetValidators() { return(_validatorList.All <Address>()); }
public AppInfo[] GetApps() { return(_apps.All <AppInfo>()); }
public string[] GetNames() { return(_nameList.All <string>()); }
public ExchangeProvider[] GetExchanges() { return(_exchanges.All <ExchangeProvider>()); }
public Address[] GetLenders() { return(_lenderList.All <Address>()); }
public AddressMessage[] GetMessages(Address target) { return(_messages.All <AddressMessage>()); }
public Address[] GetMasterAddresses() { return(_mastersList.All <EnergyMaster>().Select(x => x.address).ToArray()); }
public ExchangeOrder[] GetOTC() { return(_otcBook.All <ExchangeOrder>()); }
public Address[] GetActiveValidatorAddresses() { var addresses = _validatorList.All <Address>(); return(addresses.Select(x => _validatorMap.Get <Address, ValidatorEntry>(x)).Where(x => x.status == ValidatorStatus.Active).Select(x => x.address).ToArray()); }
public SaleInfo[] GetSales() { return(_saleList.All <SaleInfo>()); }
public Mail[] GetMessages(Address target) { return(_messages.All <Mail>()); }
public Address[] GetFriends(Address target) { return(_friends.All <Address>()); }