Example #1
0
        public static BitgoCoinEntity Create(string coin, int accuracy)
        {
            var entity = new BitgoCoinEntity()
            {
                PartitionKey = GeneratePartitionKey(),
                RowKey       = GenerateRowKey(coin),
                Coin         = coin,
                Accuracy     = accuracy,
                Divider      = Math.Pow(10, accuracy)
            };

            return(entity);
        }
Example #2
0
        public static BitgoCoinEntity Create(string coin, int accuracy, int requiredConfirmations, bool isMainNet)
        {
            var entity = new BitgoCoinEntity()
            {
                PartitionKey          = GeneratePartitionKey(),
                RowKey                = GenerateRowKey(coin),
                Coin                  = coin,
                Accuracy              = accuracy,
                Divider               = Math.Pow(10, accuracy),
                RequiredConfirmations = requiredConfirmations,
                IsMainNet             = isMainNet
            };

            return(entity);
        }