Пример #1
0
 def _generate_request_func(
         self, web3: "Web3",
         middlewares: Sequence[Middleware]) -> Callable[..., RPCResponse]:
     return combine_middlewares(
         middlewares=middlewares,
         web3=web3,
         provider_request_fn=self.make_request,
     )
Пример #2
0
 def _generate_request_functions(self):
     self._wrapped_provider_request_functions = {
         index: combine_middlewares(
             middlewares=tuple(self.middlewares) + tuple(provider.middlewares),
             web3=self.web3,
             provider_request_fn=provider.make_request,
         )
         for index, provider
         in enumerate(self.providers)
     }
Пример #3
0
 def _generate_request_func(self, web3, middlewares):
     return combine_middlewares(
         middlewares=middlewares,
         web3=web3,
         provider_request_fn=self.make_request,
     )
Пример #4
0
 def _generate_request_func(self, web3, middlewares):
     return combine_middlewares(
         middlewares=middlewares,
         web3=web3,
         provider_request_fn=self.make_request,
     )