Example #1
0
 private void NotifyContractEvent(object sender, DAppChainClient.ChainEventArgs e)
 {
     if (e.ContractAddress.Equals(this.Address))
     {
         this.OnChainEvent?.Invoke(this, e);
     }
 }
Example #2
0
 protected virtual void InvokeChainEvent(object sender, DAppChainClient.ChainEventArgs e)
 {
     if (this.OnChainEvent != null)
     {
         this.OnChainEvent(this, e);
     }
 }
Example #3
0
 protected virtual void NotifyContractEvent(object sender, DAppChainClient.ChainEventArgs e)
 {
     if (e.ContractAddress.Equals(this.Address))
     {
         InvokeChainEvent(sender, e);
     }
 }
Example #4
0
        protected override void NotifyContractEvent(object sender, DAppChainClient.ChainEventArgs e)
        {
            if (e.ContractAddress.Equals(this.Address))
            {
                Event evt = new Event();
                evt.MergeFrom(e.Data);
                e.Data = evt.Data.ToByteArray();

                InvokeChainEvent(sender, e);
            }
        }