private Task AddOrUpdateAsync(DepositApproval depositApproval) { Serialization.Rlp.Rlp rlp = _rlpDecoder.Encode(depositApproval); _database.Set(depositApproval.Id, rlp.Bytes); return(Task.CompletedTask); }
private Task AddOrUpdateAsync(ConsumerSession session) { Serialization.Rlp.Rlp rlp = _rlpDecoder.Encode(session); _database.Set(session.Id, rlp.Bytes); return(Task.CompletedTask); }
private Task AddOrUpdateAsync(NdmConfig config) { Serialization.Rlp.Rlp rlp = _rlpDecoder.Encode(config); _database.Set(Keccak.Compute(config.Id), rlp.Bytes); return(Task.CompletedTask); }
private Task AddOrUpdateAsync(DataDeliveryReceiptDetails receipt) { var rlp = _rlpDecoder.Encode(receipt); _database.Set(receipt.Id, rlp.Bytes); return(Task.CompletedTask); }
private Task AddOrUpdateAsync(EthRequest request) { var rlp = _rlpDecoder.Encode(request); _database.Set(request.Id, rlp.Bytes); return(Task.CompletedTask); }