Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cairoeth/preconfirmations
/ functions
Functions
563 in github.com/cairoeth/preconfirmations
⨍
Functions
563
◇
Types & classes
173
↓ 187 callers
Method
Error
()
rpc/types/types.go:57
↓ 86 callers
Method
String
()
preconf-share/preconshare/backend.go:57
↓ 51 callers
Function
NewJSONRPCRequest
(id interface{}, method string, params []interface{})
rpc/types/types.go:31
↓ 22 callers
Method
Push
(ctx context.Context, data []byte, highPriority bool, minTargetBlock, maxTargetBlock uint64)
preconf-share/simqueue/queue.go:116
↓ 22 callers
Method
UpdateBlock
(block uint64)
preconf-share/simqueue/queue.go:115
↓ 20 callers
Method
HasHint
(flag HintIntent)
preconf-share/preconshare/types.go:41
↓ 19 callers
Method
nextProcessed
(timeout time.Duration)
preconf-share/simqueue/queue_test.go:78
↓ 19 callers
Function
testServerSetupWithMockStore
Setup RPC endpoint and mock backend servers
rpc/tests/e2e_test.go:51
↓ 17 callers
Method
writeRPCError
(msg string, errCode int)
rpc/server/request_processor.go:386
↓ 14 callers
Method
Add
(ctx context.Context, hash common.Hash)
preconf-share/preconshare/cancellation_cache.go:25
↓ 12 callers
Method
Transact
Transact invokes the (paid) contract method with params as input values.
contracts/bindings/PreconfServiceManager/binding.go:189
↓ 11 callers
Method
Call
Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for sim
contracts/bindings/ERC20Mock/binding.go:171
↓ 11 callers
Function
SendRPCAndParseResponseOrFailNow
(t *testing.T, req *types.JSONRPCRequest)
rpc/testutils/rpctesthelpers.go:43
↓ 11 callers
Method
startProcessLoop
(ctx context.Context, processFuncs []ProcessFunc)
preconf-share/simqueue/queue_test.go:44
↓ 11 callers
Method
stopProcessLoop
()
preconf-share/simqueue/queue_test.go:50
↓ 10 callers
Function
SendRPCAndParseResponseOrFailNowString
(t *testing.T, req *types.JSONRPCRequest)
rpc/testutils/rpctesthelpers.go:51
↓ 10 callers
Method
SetHint
(flag HintIntent)
preconf-share/preconshare/types.go:37
↓ 10 callers
Function
getMethodTypes
(fn interface{})
preconf-share/jsonrpcserver/reflect.go:25
↓ 9 callers
Method
Call
Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for sim
contracts/bindings/PreconfServiceManager/binding.go:178
↓ 9 callers
Method
Close
()
rpc/database/postgres_store.go:29
↓ 8 callers
Method
GetWhitehatBundleTx
(bundleID string)
rpc/server/redisstate.go:236
↓ 8 callers
Function
SendRPCAndParseResponseTo
(url string, req *types.JSONRPCRequest)
rpc/testutils/rpctesthelpers.go:66
↓ 8 callers
Function
resetRedis
()
rpc/server/redisstate_test.go:18
↓ 8 callers
Method
writeRPCResult
(result interface{})
rpc/server/request_processor.go:401
↓ 7 callers
Method
BlockNumber
(ctx context.Context)
preconf-share/preconshare/api.go:43
↓ 7 callers
Method
GetNonceFixForAccount
(txFrom string)
rpc/server/redisstate.go:170
↓ 7 callers
Method
GetSenderMaxNonce
(txFrom string)
rpc/server/redisstate.go:283
↓ 7 callers
Function
SendBatchRPCAndParseResponse
(req []*types.JSONRPCRequest)
rpc/testutils/rpctesthelpers.go:21
↓ 7 callers
Method
Transact
Transact invokes the (paid) contract method with params as input values.
contracts/bindings/ERC20Mock/binding.go:182
↓ 7 callers
Method
queuedItems
queuedItems returns number of items in the queue that should be eventually processed processable are the items that can be processed now unprocessable
preconf-share/simqueue/queue.go:207
↓ 7 callers
Function
writeJSONRPCError
(w http.ResponseWriter, id any, code int, msg string)
preconf-share/jsonrpcserver/jsonrpc_server.go:83
↓ 6 callers
Method
Call
Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for sim
contracts/bindings/PreconfChallengeManager/binding.go:177
↓ 6 callers
Function
GetTxStatus
(txHash string)
rpc/server/util.go:79
↓ 6 callers
Function
NewMemStore
()
rpc/database/mem_store.go:15
↓ 6 callers
Method
blockResendingTxToRelay
Check whether to block resending this tx. Send only if (a) not sent before, (b) sent and status=failed, (c) sent, status=unknown and sent at least 5 m
rpc/server/request_processor.go:162
↓ 6 callers
Function
getEnvAsStrOrDefault
(key, defaultValue string)
rpc/cmd/server/main.go:113
↓ 6 callers
Function
testServerSetup
(db database.Store)
rpc/tests/e2e_test.go:56
↓ 5 callers
Method
CleanQueues
CleanQueues cleans all data in redis associated with the given queue NOTE: slow and dangerous operation, should only be used for testing
preconf-share/simqueue/queue.go:401
↓ 5 callers
Method
GetTxSentToRelay
(txHash string)
rpc/server/redisstate.go:120
↓ 5 callers
Method
InsertBundleForStats
InsertBundleForStats inserts a bundle into the database. When called for the second time for the known bundle, it will return known = true and update
preconf-share/preconshare/database.go:250
↓ 5 callers
Method
IsCancelled
(ctx context.Context, hash []common.Hash)
preconf-share/preconshare/cancellation_cache.go:29
↓ 5 callers
Method
SetSenderMaxNonce
Enable lookup of last txHash sent by txFrom func (s *RedisState) SetLastPrivTxHashOfAccount(txFrom string, txHash string) error { key := RedisKeyLa
rpc/server/redisstate.go:267
↓ 5 callers
Method
Transact
Transact invokes the (paid) contract method with params as input values.
contracts/bindings/PreconfChallengeManager/binding.go:188
↓ 5 callers
Function
rawParams
(raw string)
preconf-share/jsonrpcserver/reflect_test.go:15
↓ 4 callers
Method
Close
()
preconf-share/preconshare/database.go:398
↓ 4 callers
Method
GetResult
(ctx context.Context, k string)
preconf-share/spike/manager.go:143
↓ 4 callers
Function
NewDBBackend
(postgresDSN string)
preconf-share/preconshare/database.go:137
↓ 4 callers
Function
NewRedisState
(redisURL string)
rpc/server/redisstate.go:98
↓ 4 callers
Function
SendRPCAndParseResponseOrFailNowAllowRPCError
(t *testing.T, req *types.JSONRPCRequest)
rpc/testutils/rpctesthelpers.go:58
↓ 4 callers
Method
SetNonceFixForAccount
SetNonceFixForAccount nonce-fix per account
rpc/server/redisstate.go:158
↓ 4 callers
Method
SetTxSentToRelay
SetTxSentToRelay Enable lookup of timeSentToRelay by txHash
rpc/server/redisstate.go:114
↓ 4 callers
Method
Stop
To stop the subscription
preconf-operator/sse/backend.go:12
↓ 4 callers
Method
UpdateRequestEntry
(req *http.Request, reqStatus int, error string)
rpc/server/request_record.go:36
↓ 4 callers
Function
bindContractERC20Mock
bindContractERC20Mock binds a generic wrapper to an already deployed contract.
contracts/bindings/ERC20Mock/binding.go:159
↓ 4 callers
Function
bindContractPreconfChallengeManager
bindContractPreconfChallengeManager binds a generic wrapper to an already deployed contract.
contracts/bindings/PreconfChallengeManager/binding.go:165
↓ 4 callers
Function
bindContractPreconfServiceManager
bindContractPreconfServiceManager binds a generic wrapper to an already deployed contract.
contracts/bindings/PreconfServiceManager/binding.go:166
↓ 4 callers
Method
call
(ctx context.Context, params []json.RawMessage)
preconf-share/jsonrpcserver/reflect.go:59
↓ 3 callers
Method
AddTxToWhitehatBundle
AddTxToWhitehatBundle Enable lookup of tx bundles by bundle ID
rpc/server/redisstate.go:206
↓ 3 callers
Method
ChallengeManager
ChallengeManager is a free data retrieval call binding the contract method 0x023a96fe. Solidity: function challengeManager() view returns(address)
contracts/bindings/PreconfServiceManager/binding.go:246
↓ 3 callers
Method
GetBundleByMatchingHash
(ctx context.Context, hash common.Hash)
preconf-share/preconshare/database.go:192
↓ 3 callers
Method
GetSenderOfTxHash
(txHash string)
rpc/server/redisstate.go:193
↓ 3 callers
Function
IncRPCCallFailure
(method string)
preconf-share/metrics/metrics.go:36
↓ 3 callers
Function
NewRedisQueue
(log *zap.Logger, red *redis.Client, queueName string)
preconf-share/simqueue/queue.go:147
↓ 3 callers
Method
ProxyRequest
(body []byte)
rpc/server/http_client.go:13
↓ 3 callers
Function
RecordRPCCallDuration
(method string, duration int64)
preconf-share/metrics/metrics.go:31
↓ 3 callers
Function
RedisKeyNonceFixForAccount
(txFrom string)
rpc/server/redisstate.go:70
↓ 3 callers
Function
RedisKeyTxHashForSenderAndNonce
(txFrom string, nonce uint64)
rpc/server/redisstate.go:66
↓ 3 callers
Function
RedisKeyWhitehatBundleTransactions
(bundleID string)
rpc/server/redisstate.go:82
↓ 3 callers
Method
ServiceManager
ServiceManager is a free data retrieval call binding the contract method 0x3998fdd3. Solidity: function serviceManager() view returns(address)
contracts/bindings/PreconfChallengeManager/binding.go:338
↓ 3 callers
Method
Transfer
Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.
contracts/bindings/ERC20Mock/binding.go:177
↓ 3 callers
Function
extractArgumentsFromJSONparamsArray
(in []reflect.Type, params []json.RawMessage)
preconf-share/jsonrpcserver/reflect.go:88
↓ 3 callers
Function
getEnvAsIntOrDefault
(name string, defaultValue int)
rpc/cmd/server/main.go:121
↓ 3 callers
Function
isOnFunctionWhitelist
(data string)
rpc/server/whitelist.go:16
↓ 3 callers
Function
isOnOFACList
(address string)
rpc/server/ofacblacklist.go:141
↓ 2 callers
Function
AddressPtrToStr
(a *common.Address)
rpc/server/util.go:154
↓ 2 callers
Method
Allowance
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. Solidity: function allowance(address owner, address spender) view ret
contracts/bindings/ERC20Mock/binding.go:208
↓ 2 callers
Method
AvsDirectory
AvsDirectory is a free data retrieval call binding the contract method 0x6b3aa72e. Solidity: function avsDirectory() view returns(address)
contracts/bindings/PreconfServiceManager/binding.go:215
↓ 2 callers
Method
BalanceOf
BalanceOf is a free data retrieval call binding the contract method 0x70a08231. Solidity: function balanceOf(address account) view returns(uint256)
contracts/bindings/ERC20Mock/binding.go:239
↓ 2 callers
Function
BuildAvsReader
(registryCoordinatorAddr, operatorStateRetrieverAddr gethcommon.Address, ethHTTPClient eth.EthClient, logger l
preconf-operator/core/chainio/avs_reader.go:35
↓ 2 callers
Function
BuildAvsWriter
(txMgr txmgr.TxManager, registryCoordinatorAddr, operatorStateRetrieverAddr gethcommon.Address, ethHTTPClient
preconf-operator/core/chainio/avs_writer.go:31
↓ 2 callers
Method
CHALLENGEWINDOWBLOCK
CHALLENGEWINDOWBLOCK is a free data retrieval call binding the contract method 0x48e30cdf. Solidity: function CHALLENGE_WINDOW_BLOCK() view returns(u
contracts/bindings/PreconfChallengeManager/binding.go:214
↓ 2 callers
Method
Challenges
Challenges is a free data retrieval call binding the contract method 0xc1e69b66. Solidity: function challenges(bytes32 ) view returns(bool)
contracts/bindings/PreconfChallengeManager/binding.go:245
↓ 2 callers
Method
Decimals
Decimals is a free data retrieval call binding the contract method 0x313ce567. Solidity: function decimals() view returns(uint8)
contracts/bindings/ERC20Mock/binding.go:270
↓ 2 callers
Method
DelWhitehatBundleTx
(bundleID string)
rpc/server/redisstate.go:241
↓ 2 callers
Function
ExtractParametersFromURL
ExtractParametersFromURL extracts the auction preference from the url query Allowed query params: - hint: mev share hints, can be set multiple times,
rpc/server/url_params.go:41
↓ 2 callers
Method
Fetch
(ctx context.Context)
rpc/application/builder_info.go:17
↓ 2 callers
Method
GetBlockedTxHash
(txHash string)
rpc/server/redisstate.go:306
↓ 2 callers
Method
GetErc20Mock
(ctx context.Context, tokenAddr gethcommon.Address)
preconf-operator/core/chainio/avs_reader.go:20
↓ 2 callers
Method
GetOperatorRestakedStrategies
GetOperatorRestakedStrategies is a free data retrieval call binding the contract method 0x33cfb7b7. Solidity: function getOperatorRestakedStrategies(
contracts/bindings/PreconfServiceManager/binding.go:277
↓ 2 callers
Method
GetPreconfByMatchingHash
(ctx context.Context, hash common.Hash)
preconf-share/preconshare/api.go:38
↓ 2 callers
Method
GetRestakeableStrategies
GetRestakeableStrategies is a free data retrieval call binding the contract method 0xe481af9d. Solidity: function getRestakeableStrategies() view ret
contracts/bindings/PreconfServiceManager/binding.go:308
↓ 2 callers
Function
GetSenderFromRawTx
(tx *ethtypes.Transaction)
rpc/server/util.go:70
↓ 2 callers
Function
GetTx
(rawTxHex string)
rpc/server/util.go:34
↓ 2 callers
Method
GetTxHashForSenderAndNonce
(txFrom string, nonce uint64)
rpc/server/redisstate.go:145
↓ 2 callers
Method
Mint
Mint is a paid mutator transaction binding the contract method 0x40c10f19. Solidity: function mint(address a, uint256 b) returns()
contracts/bindings/ERC20Mock/binding.go:464
↓ 2 callers
Function
MockTxAPIReset
()
rpc/testutils/mock_txapibackend.go:15
↓ 2 callers
Function
MultipleWorkers
MultipleWorkers creates n workers that are rate limited by limit. Use case is to have multiple workers per simulation node. ProcessFunc must be thread
preconf-share/simqueue/multiworker.go:12
↓ 2 callers
Method
Name
Name is a free data retrieval call binding the contract method 0x06fdde03. Solidity: function name() view returns(string)
contracts/bindings/ERC20Mock/binding.go:301
↓ 2 callers
Function
NewAvsManagersBindings
(registryCoordinatorAddr, operatorStateRetrieverAddr common.Address, ethclient eth.EthClient, logger logging.L
preconf-operator/core/chainio/bindings.go:23
↓ 2 callers
Function
NewHandler
NewHandler creates JSONRPC http.Handler from the map that maps method names to method functions each method function must: - have context as a first a
preconf-share/jsonrpcserver/jsonrpc_server.go:69
next →
1–100 of 563, ranked by callers