예제 #1
0
 public static byte[] GetBlockHeightFedReef(byte[] reef)
 {
     byte[] keyOfBlockHeightFedReef = KeyOfBlockHeightFedReef(reef);
     return(GenericDao.Get(keyOfBlockHeightFedReef));
 }
예제 #2
0
 public static void UpdateBlockHeightFedReef(byte[] reef, byte[] fish)
 {
     byte[] keyOfBlockHeightFedReef = KeyOfBlockHeightFedReef(reef);
     GenericDao.Put(keyOfBlockHeightFedReef, fish);
 }
예제 #3
0
 public static byte[] GetReefFishesDead(byte[] reef)
 {
     byte[] keyOfFromReefFishesDead = KeyOfReefFishesDead(reef);
     return(GenericDao.Get(keyOfFromReefFishesDead));
 }
예제 #4
0
 public static void UpdateReefFishesDead(byte[] reef, byte[] fish)
 {
     byte[] keyOfToReefFishesDead = KeyOfReefFishesDead(reef);
     GenericDao.Put(keyOfToReefFishesDead, fish);
 }
예제 #5
0
 public static byte[] GetReefFishesAlive(byte[] reef)
 {
     byte[] keyOfFromReefFishesAlive = KeyOfReefFishesAlive(reef);
     return(GenericDao.Get(keyOfFromReefFishesAlive));
 }
예제 #6
0
 public static void UpdateReefFishesAlive(byte[] reef, byte[] fish)
 {
     byte[] keyOfToReefFishesAlive = KeyOfReefFishesAlive(reef);
     GenericDao.Put(keyOfToReefFishesAlive, fish);
 }
예제 #7
0
 internal static void UpdateExchangeByScriptHash(byte[] scriptHash, BigInteger value)
 {
     byte[] exchangedKey = KeyOfExchangedByScriptHash(scriptHash);
     GenericDao.Put(exchangedKey, value.AsByteArray());
 }
예제 #8
0
 public static void SetTotalSupply(BigInteger maximumSupply)
 {
     byte[] maximumSupplyByteArray = maximumSupply.AsByteArray();
     byte[] totalSupplyKey         = KeyOfTotalSupply();
     GenericDao.Put(totalSupplyKey, maximumSupplyByteArray);
 }
예제 #9
0
 public static void UpdateBalance(byte[] reef, BigInteger value)
 {
     byte[] balanceKey = KeyOfBalance(reef);
     GenericDao.Put(balanceKey, value.AsByteArray());
 }
예제 #10
0
 public static void UpdateKYCStatus(byte[] scriptHash, BigInteger status)
 {
     byte[] kycKey = KeyOfKyc(scriptHash);
     GenericDao.Put(kycKey, status.AsByteArray());
 }
예제 #11
0
 public static BigInteger GetKycStatus(byte[] scriptHash)
 {
     byte[] kycKey = KeyOfKyc(scriptHash);
     return(GenericDao.Get(kycKey).AsBigInteger());
 }