コード例 #1
0
 public static void UpdateReefFishesDead(byte[] reef, byte[] fish)
 {
     byte[] keyOfToReefFishesDead = KeyOfReefFishesDead(reef);
     GenericDao.Put(keyOfToReefFishesDead, fish);
 }
コード例 #2
0
 public static void UpdateBlockHeightFedReef(byte[] reef, byte[] fish)
 {
     byte[] keyOfBlockHeightFedReef = KeyOfBlockHeightFedReef(reef);
     GenericDao.Put(keyOfBlockHeightFedReef, fish);
 }
コード例 #3
0
 public static void UpdateReefFishesAlive(byte[] reef, byte[] fish)
 {
     byte[] keyOfToReefFishesAlive = KeyOfReefFishesAlive(reef);
     GenericDao.Put(keyOfToReefFishesAlive, fish);
 }
コード例 #4
0
 internal static void UpdateExchangeByScriptHash(byte[] scriptHash, BigInteger value)
 {
     byte[] exchangedKey = KeyOfExchangedByScriptHash(scriptHash);
     GenericDao.Put(exchangedKey, value.AsByteArray());
 }
コード例 #5
0
 public static void SetTotalSupply(BigInteger maximumSupply)
 {
     byte[] maximumSupplyByteArray = maximumSupply.AsByteArray();
     byte[] totalSupplyKey         = KeyOfTotalSupply();
     GenericDao.Put(totalSupplyKey, maximumSupplyByteArray);
 }
コード例 #6
0
 public static void UpdateBalance(byte[] reef, BigInteger value)
 {
     byte[] balanceKey = KeyOfBalance(reef);
     GenericDao.Put(balanceKey, value.AsByteArray());
 }
コード例 #7
0
 public static void UpdateKYCStatus(byte[] scriptHash, BigInteger status)
 {
     byte[] kycKey = KeyOfKyc(scriptHash);
     GenericDao.Put(kycKey, status.AsByteArray());
 }