| 24 | ) |
| 25 | |
| 26 | type RPCRequest struct { |
| 27 | logger *zap.Logger |
| 28 | client RPCProxyClient |
| 29 | jsonReq *types.JSONRPCRequest |
| 30 | jsonRes *types.JSONRPCResponse |
| 31 | rawTxHex string |
| 32 | tx *ethtypes.Transaction |
| 33 | txFrom string |
| 34 | relaySigningKey *ecdsa.PrivateKey |
| 35 | relayURL string |
| 36 | origin string |
| 37 | referer string |
| 38 | isWhitehatBundleCollection bool |
| 39 | proxyURL string |
| 40 | ethSendRawTxEntry *database.EthSendRawTxEntry |
| 41 | urlParams URLParameters |
| 42 | chainID []byte |
| 43 | } |
| 44 | |
| 45 | func NewRPCRequest(logger *zap.Logger, client RPCProxyClient, jsonReq *types.JSONRPCRequest, relaySigningKey *ecdsa.PrivateKey, relayURL, origin, referer string, isWhitehatBundleCollection bool, proxyURL string, ethSendRawTxEntry *database.EthSendRawTxEntry, urlParams URLParameters, chainID []byte) *RPCRequest { |
| 46 | return &RPCRequest{ |
nothing calls this directly
no outgoing calls
no test coverage detected