Beispiel #1
0
 public RelayHubManager(
     GSNOptions options,
     IEthApiContractService ethApiContractService,
     IRelayClient relayClient)
 {
     _options = options;
     _ethApiContractService = ethApiContractService;
     _relayClient           = relayClient;
 }
 public GSNTransactionManager(
     GSNOptions options,
     IRelayer relayer,
     IEthApiContractService ethApiContractService,
     IClient client,
     IRelayClient relayClient,
     string privateKey)
 {
     _options = options;
     _relayer = relayer;
     _ethApiContractService = ethApiContractService;
     _client      = client;
     _relayClient = relayClient;
     _privateKey  = privateKey;
 }
 // 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;
 }