Ejemplo n.º 1
0
        public void TestRpcApplicationLog()
        {
            JObject json = TestUtils.RpcTestCases.Find(p => p.Name == nameof(RpcClient.GetApplicationLogAsync).ToLower()).Response.Result;
            var     item = RpcApplicationLog.FromJson(json);

            Assert.AreEqual(json.ToString(), item.ToJson().ToString());
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Returns the contract log based on the specified txHash. The complete contract logs are stored under the ApplicationLogs directory.
        /// This method is provided by the plugin ApplicationLogs.
        /// </summary>
        public async Task <RpcApplicationLog> GetApplicationLogAsync(string txHash, TriggerType triggerType)
        {
            var result = await RpcSendAsync(GetRpcName(), txHash, triggerType).ConfigureAwait(false);

            return(RpcApplicationLog.FromJson(result, protocolSettings));
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Returns the contract log based on the specified txHash. The complete contract logs are stored under the ApplicationLogs directory.
        /// This method is provided by the plugin ApplicationLogs.
        /// </summary>
        public async Task <RpcApplicationLog> GetApplicationLogAsync(string txHash)
        {
            var result = await RpcSendAsync(GetRpcName(), txHash).ConfigureAwait(false);

            return(RpcApplicationLog.FromJson(result));
        }
Ejemplo n.º 4
0
 /// <summary>
 /// Returns the contract log based on the specified txHash. The complete contract logs are stored under the ApplicationLogs directory.
 /// This method is provided by the plugin ApplicationLogs.
 /// </summary>
 public RpcApplicationLog GetApplicationLog(string txHash)
 {
     return(RpcApplicationLog.FromJson(RpcSend("getapplicationlog", txHash)));
 }