public BigInteger[] Get(StorageContext storage, Address address)
 {
     lock (storage)
     {
         var listKey = GetKeyForList(address);
         var list    = new StorageList(listKey, storage);
         return(list.All <BigInteger>());
     }
 }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 public Address[] GetValidators()
 {
     return(_validatorList.All <Address>());
 }
Esempio n. 4
0
 public AppInfo[] GetApps()
 {
     return(_apps.All <AppInfo>());
 }
 public string[] GetNames()
 {
     return(_nameList.All <string>());
 }
Esempio n. 6
0
 public ExchangeProvider[] GetExchanges()
 {
     return(_exchanges.All <ExchangeProvider>());
 }
Esempio n. 7
0
 public Address[] GetLenders()
 {
     return(_lenderList.All <Address>());
 }
Esempio n. 8
0
 public AddressMessage[] GetMessages(Address target)
 {
     return(_messages.All <AddressMessage>());
 }
Esempio n. 9
0
 public Address[] GetMasterAddresses()
 {
     return(_mastersList.All <EnergyMaster>().Select(x => x.address).ToArray());
 }
Esempio n. 10
0
 public ExchangeOrder[] GetOTC()
 {
     return(_otcBook.All <ExchangeOrder>());
 }
Esempio n. 11
0
        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());
        }
Esempio n. 12
0
 public SaleInfo[] GetSales()
 {
     return(_saleList.All <SaleInfo>());
 }
Esempio n. 13
0
 public Mail[] GetMessages(Address target)
 {
     return(_messages.All <Mail>());
 }
 public Address[] GetFriends(Address target)
 {
     return(_friends.All <Address>());
 }