Exemplo n.º 1
0
        public Task <bool> AvailableQueryAsync(BigInteger ID, BlockParameter BlockParameter = null)
        {
            var AvailableFunction = new AvailableFunction {
                Id = ID
            };

            return(ContractHandler.QueryAsync <AvailableFunction, bool>(AvailableFunction, BlockParameter));
        }
        public Task <bool> AvailableQueryAsync(string name, BlockParameter blockParameter = null)
        {
            var availableFunction = new AvailableFunction();

            availableFunction.Name = name;

            return(ContractHandler.QueryAsync <AvailableFunction, bool>(availableFunction, blockParameter));
        }
        public Task <bool> AvailableQueryAsync(BigInteger id, BlockParameter blockParameter = null)
        {
            var availableFunction = new AvailableFunction();

            availableFunction.Id = id;

            return(ContractHandler.QueryAsync <AvailableFunction, bool>(availableFunction, blockParameter));
        }
Exemplo n.º 4
0
 public Skill(string name, Image icon, Key key, int slot, bool active, AvailableType type)
 {
     this.name   = name;
     this.Key    = key;
     this.icon   = icon;
     this.Type   = type;
     Slot        = slot;
     this.active = active;
     CanPress    = GetFunction(type);
 }
Exemplo n.º 5
0
        private async ValueTask <bool> IsAvailable(string Domain)
        {
            var Label = Domain.Split('.')[0];

            var LabelHash = EnsUtil.GetLabelHash(Label);

            var LabelHashBigInteger = LabelHash.HexToBigInteger(false);

            var AvailableFunction = new AvailableFunction()
            {
                Id = LabelHashBigInteger
            };

            return(await BaseRegistrarService.AvailableQueryAsync(AvailableFunction));
        }
Exemplo n.º 6
0
 public Task <bool> AvailableQueryAsync(AvailableFunction AvailableFunction, BlockParameter BlockParameter = null)
 {
     return(ContractHandler.QueryAsync <AvailableFunction, bool>(AvailableFunction, BlockParameter));
 }