示例#1
0
        public Task <TransactionReceipt> OwnerCreateCitizenRequestAndWaitForReceiptAsync(string owner, ushort x, ushort y, byte tile, byte[] genes, byte[] characteristics, CancellationTokenSource cancellationToken = null)
        {
            var ownerCreateCitizenFunction = new OwnerCreateCitizenFunction();

            ownerCreateCitizenFunction.Owner           = owner;
            ownerCreateCitizenFunction.X               = x;
            ownerCreateCitizenFunction.Y               = y;
            ownerCreateCitizenFunction.Tile            = tile;
            ownerCreateCitizenFunction.Genes           = genes;
            ownerCreateCitizenFunction.Characteristics = characteristics;

            return(ContractHandler.SendRequestAndWaitForReceiptAsync(ownerCreateCitizenFunction, cancellationToken));
        }
示例#2
0
        public Task <string> OwnerCreateCitizenRequestAsync(string owner, ushort x, ushort y, byte tile, byte[] genes, byte[] characteristics)
        {
            var ownerCreateCitizenFunction = new OwnerCreateCitizenFunction();

            ownerCreateCitizenFunction.Owner           = owner;
            ownerCreateCitizenFunction.X               = x;
            ownerCreateCitizenFunction.Y               = y;
            ownerCreateCitizenFunction.Tile            = tile;
            ownerCreateCitizenFunction.Genes           = genes;
            ownerCreateCitizenFunction.Characteristics = characteristics;

            return(ContractHandler.SendRequestAsync(ownerCreateCitizenFunction));
        }
示例#3
0
 public Task <TransactionReceipt> OwnerCreateCitizenRequestAndWaitForReceiptAsync(OwnerCreateCitizenFunction ownerCreateCitizenFunction, CancellationTokenSource cancellationToken = null)
 {
     return(ContractHandler.SendRequestAndWaitForReceiptAsync(ownerCreateCitizenFunction, cancellationToken));
 }
示例#4
0
 public Task <string> OwnerCreateCitizenRequestAsync(OwnerCreateCitizenFunction ownerCreateCitizenFunction)
 {
     return(ContractHandler.SendRequestAsync(ownerCreateCitizenFunction));
 }