// TODO: Remove contractAddress parameter (replace by `To` paramenter of `TransactionInput`)
 public GSNTransactionManager(
     GSNOptions options,
     IRelayHubManager relayHubManager,
     IEthApiContractService ethApiContractService,
     IClient client,
     IRelayClient relayClient,
     IRelayPolicy policy,
     string privateKey,
     string contractAddress)
 {
     _options               = options;
     _relayHubManager       = relayHubManager;
     _ethApiContractService = ethApiContractService;
     _client          = client;
     _relayClient     = relayClient;
     _relayPolicy     = policy;
     _privateKey      = privateKey;
     _contractAddress = contractAddress;
 }
Exemple #2
0
 public Relayer(IRelayHubManager relayHubManager, IRecipientBalanceValidator balanceValidator, IRelayPolicy relayPolicy)
 {
     _relayHubManager  = relayHubManager;
     _balanceValidator = balanceValidator;
     _relayPolicy      = relayPolicy;
 }