Exemplo n.º 1
0
        public async Task <string> ProcessMessage(TonMessage message, TonAbi abi      = null, string functionName = null,
                                                  CancellationToken cancellationToken = default)
        {
            var @params = new object[]
            {
                message,
                null, // unused resultFields
                null, // parentSpan nothing to pass yet
                null, // unused retryIndex
                null, // unused address,
                abi,
                functionName
            };

            return(await _mediator.Send(new GetByParametersRequest <string>(TonClientMethods.Contract.ProcessMessage, @params), cancellationToken));
        }
Exemplo n.º 2
0
 public async Task <TonMessageProcessingState> SendMessage(TonMessage @params, CancellationToken cancellationToken = default)
 {
     return(await _mediator.Send(new GetByParametersRequest <TonMessageProcessingState>(TonClientMethods.Contract.SendMessage, @params),
                                 cancellationToken));
 }
Exemplo n.º 3
0
 public async Task <string> EnsureMessageId(TonMessage @params, CancellationToken cancellationToken = default)
 {
     return(await _mediator.Send(new GetByParametersRequest <string>(TonClientMethods.Contract.EnsureMessageId, @params), cancellationToken));
 }