public static byte[] GetBlockHeightFedReef(byte[] reef) { byte[] keyOfBlockHeightFedReef = KeyOfBlockHeightFedReef(reef); return(GenericDao.Get(keyOfBlockHeightFedReef)); }
public static void UpdateBlockHeightFedReef(byte[] reef, byte[] fish) { byte[] keyOfBlockHeightFedReef = KeyOfBlockHeightFedReef(reef); GenericDao.Put(keyOfBlockHeightFedReef, fish); }
public static byte[] GetReefFishesDead(byte[] reef) { byte[] keyOfFromReefFishesDead = KeyOfReefFishesDead(reef); return(GenericDao.Get(keyOfFromReefFishesDead)); }
public static void UpdateReefFishesDead(byte[] reef, byte[] fish) { byte[] keyOfToReefFishesDead = KeyOfReefFishesDead(reef); GenericDao.Put(keyOfToReefFishesDead, fish); }
public static byte[] GetReefFishesAlive(byte[] reef) { byte[] keyOfFromReefFishesAlive = KeyOfReefFishesAlive(reef); return(GenericDao.Get(keyOfFromReefFishesAlive)); }
public static void UpdateReefFishesAlive(byte[] reef, byte[] fish) { byte[] keyOfToReefFishesAlive = KeyOfReefFishesAlive(reef); GenericDao.Put(keyOfToReefFishesAlive, fish); }
internal static void UpdateExchangeByScriptHash(byte[] scriptHash, BigInteger value) { byte[] exchangedKey = KeyOfExchangedByScriptHash(scriptHash); GenericDao.Put(exchangedKey, value.AsByteArray()); }
public static void SetTotalSupply(BigInteger maximumSupply) { byte[] maximumSupplyByteArray = maximumSupply.AsByteArray(); byte[] totalSupplyKey = KeyOfTotalSupply(); GenericDao.Put(totalSupplyKey, maximumSupplyByteArray); }
public static void UpdateBalance(byte[] reef, BigInteger value) { byte[] balanceKey = KeyOfBalance(reef); GenericDao.Put(balanceKey, value.AsByteArray()); }
public static void UpdateKYCStatus(byte[] scriptHash, BigInteger status) { byte[] kycKey = KeyOfKyc(scriptHash); GenericDao.Put(kycKey, status.AsByteArray()); }
public static BigInteger GetKycStatus(byte[] scriptHash) { byte[] kycKey = KeyOfKyc(scriptHash); return(GenericDao.Get(kycKey).AsBigInteger()); }