Exemple #1
0
        public async Task <object> ExecuteTestAsync(IClient client)
        {
            var ethCompileSolidty = new EthCompileSolidity(client);
            var contractCode      = "contract test { function multiply(uint a) returns(uint d) { return a * 7; } }";

            return(await ethCompileSolidty.SendRequestAsync(contractCode));
        }
Exemple #2
0
 public EthApiCompilerService(IClient client) : base(client)
 {
     CompileLLL      = new EthCompileLLL(client);
     CompileSerpent  = new EthCompileSerpent(client);
     CompileSolidity = new EthCompileSolidity(client);
     GetCompilers    = new EthGetCompilers(client);
 }
Exemple #3
0
        public override async Task <JObject> ExecuteAsync(IClient client)
        {
            var ethCompileSolidty = new EthCompileSolidity(client);
            var contractCode      = "contract Test {}";

            return(await ethCompileSolidty.SendRequestAsync(contractCode));
        }
 public EthCompilerService(RpcClient client) : base(client)
 {
     CompileLLL = new EthCompileLLL(client);
     CompileSerpent = new EthCompileSerpent(client);
     CompileSolidity = new EthCompileSolidity(client);
     GetCompilers = new EthGetCompilers(client);
 }
 public async Task<dynamic> ExecuteTestAsync(RpcClient client)
 {
     var ethCompileSolidty = new EthCompileSolidity(client);
     var contractCode = "contract test { function multiply(uint a) returns(uint d) { return a * 7; } }";
     return await ethCompileSolidty.SendRequestAsync( contractCode);
 }