MCPcopy Create free account

hub / github.com/canopy-network/canopy / functions

Functions5,387 in github.com/canopy-network/canopy

↓ 1 callersMethodpageIndexer
pageIndexer is a helper function to abstract common workflows around a callback requiring an address and page parameterse TODO very similar to above
cmd/rpc/query.go:910
↓ 1 callersMethodpaginatedIdRequest
(routeName string, id uint64, p lib.PageParams, ptr any)
cmd/rpc/client.go:969
↓ 1 callersFunctionparseAddressAndAmountFromABI
parseAddressFromABI() extracts the address and amount from the ABI data
cmd/rpc/eth.go:1428
↓ 1 callersFunctionparseLogs
(data)
cmd/rpc/web/wallet/components/canalog.jsx:8
↓ 1 callersFunctionpeerMetaSwap
peerMetaSwap() exchanges peer metadata between two peers
p2p/encrypt.go:278
↓ 1 callersMethodpingLoop
()
cmd/rpc/sock.go:598
↓ 1 callersFunctionpkNicknameAndPwdRequest
(pk, password, nickname)
cmd/rpc/web/wallet/components/api.js:132
↓ 1 callersMethodpollMaxHeight
pollMaxHeight() polls all peers for their local MaxHeight and totalVDFIterations for a specific chainId NOTE: unlike other P2P transmissions - Request
controller/consensus.go:626
↓ 1 callersFunctionprefixForParamSpace
prefixForParamSpace() converts the ParamSpace name into the ParamSpace prefix
fsm/gov_params.go:452
↓ 1 callersFunctionpreflightProtoBytes
preflightProtoBytes performs a lightweight scan for oversized length-delimited fields before decoding.
lib/util.go:380
↓ 1 callersMethodprevLocal
(dx uint64)
fsm/dex_test.go:2879
↓ 1 callersMethodprevRemote
(dx uint64)
fsm/dex_test.go:2875
↓ 1 callersMethodprocessBuffer
()
plugin/typescript/src/contract/plugin.ts:145
↓ 1 callersMethodprocessQueue
(startHeight, stopHeight uint64, queue map[uint64]blockSyncRequest)
controller/consensus.go:151
↓ 1 callersFunctionpseudoEthereumTimestamp
pseudoEthereumTimestamp() creates a fake timestamp to ensure collision resistance using the gas limit variable - note: the gas-limit may be used to ex
fsm/ethereum.go:242
↓ 1 callersMethodpurgeLssTombstones
purgeLssTombstones removes LSS tombstone entries using the current commit batch.
store/store.go:537
↓ 1 callersMethodput
(height uint64, entry *indexerBlobCacheEntry)
cmd/rpc/types.go:418
↓ 1 callersFunctionqueryAPI
()
cmd/rpc/web/wallet/components/governance.jsx:114
↓ 1 callersMethodqueueSends
queueSends() schedules the packets to be sent ensuring coordination with the mutex
p2p/conn.go:445
↓ 1 callersFunctionrandomSuffix
()
plugin/typescript/tutorial/src/rpc_test.ts:38
↓ 1 callersFunctionrandomSuffix
randomSuffix generates a random hex suffix for unique nicknames
plugin/go/tutorial/rpc_test.go:188
↓ 1 callersFunctionrandom_suffix
Generate a random hex suffix for unique nicknames.
plugin/python/tutorial/rpc_test.py:48
↓ 1 callersMethodreadLoop
()
cmd/rpc/sock.go:589
↓ 1 callersFunctionreceiveLengthPrefixed
receiveLengthPrefixed() reads a length prefixed message from a tcp connection
p2p/conn.go:599
↓ 1 callersMethodreceiveLengthPrefixed
receiveLengthPrefixed() reads a length prefixed message from a tcp connection
plugin/go/contract/plugin.go:280
↓ 1 callersMethodreceiveLengthPrefixed
receiveLengthPrefixed() reads a length prefixed message from a tcp connection
lib/plugin.go:579
↓ 1 callersMethodreceiveProtoMsg
receiveProtoMsg() receives and decodes a length-prefixed proto message from a net.Conn
plugin/go/contract/plugin.go:254
↓ 1 callersMethodreceiveProtoMsg
receiveProtoMsg() receives and decodes a length-prefixed proto message from a net.Conn
lib/plugin.go:536
↓ 1 callersFunctionrefreshCurrentTable
()
cmd/rpc/web/explorer/pages/index.js:155
↓ 1 callersFunctionrejectUnknownForCriticalMessages
rejectUnknownForCriticalMessages() prevents bloat attacks by enforcing 'no unknown fields' for critical messages
lib/util.go:312
↓ 1 callersMethodremove
remove() decrements the in/out counters, and deletes it from the set
p2p/set.go:306
↓ 1 callersFunctionrenderButtonCarouselItem
(props)
cmd/rpc/web/wallet/components/dashboard.jsx:143
↓ 1 callersFunctionrenderDexBatchList
(tab)
cmd/rpc/web/explorer/components/modal.jsx:343
↓ 1 callersFunctionrenderJson
(json, level = 0)
cmd/rpc/web/wallet/components/canaJSON.jsx:37
↓ 1 callersFunctionrenderTab
(tab)
cmd/rpc/web/explorer/components/modal.jsx:217
↓ 1 callersFunctionrenderTableButton
()
cmd/rpc/web/explorer/components/modal.jsx:430
↓ 1 callersFunctionresetState
()
cmd/rpc/web/wallet/components/account.jsx:138
↓ 1 callersMethodrevSeek
revSeek() positions the iterator at the last entry that matches the prefix in reverse order.
store/txn.go:503
↓ 1 callersMethodrewindToLatestVersion
rewindToLatestVersion() positions the iterator at the latest version <= store.version for the current user key in reverse iteration mode
store/versioned_store.go:403
↓ 1 callersFunctionrlpToMessage
rlpToMessage() converts an ethereum RLP transaction to a message
fsm/ethereum.go:88
↓ 1 callersMethodseek
seek() positions the iterator at the first entry that matches or exceeds the prefix.
store/txn.go:497
↓ 1 callersMethodselectHighestVDF
selectHighestVDF validates the previously sent VDFs by replicas and selects the highest valid one
bft/bft.go:889
↓ 1 callersFunctionselectTable
(category, page, committee)
cmd/rpc/web/explorer/pages/index.js:120
↓ 1 callersMethodsendBlockRequests
Send requests for heights missing in the queue They can be missing because: - Sync has just started and queue isn't full yet - A previous request for
controller/consensus.go:207
↓ 1 callersFunctionsendFaucetTx
( rpcURL: string, signerKey: KeyGroup, recipientAddr: string, amount: bigint, fee: bigint,
plugin/typescript/tutorial/src/rpc_test.ts:339
↓ 1 callersFunctionsendFaucetTx
sendFaucetTx sends a faucet transaction using raw JSON
plugin/go/tutorial/rpc_test.go:334
↓ 1 callersMethodsendHeartbeat
()
p2p/conn.go:286
↓ 1 callersFunctionsendLengthPrefixed
sendLengthPrefixed() sends a message that is prefix by length through a tcp connection
p2p/conn.go:573
↓ 1 callersMethodsendLengthPrefixed
(bz: Uint8Array)
plugin/typescript/src/contract/plugin.ts:308
↓ 1 callersMethodsendLengthPrefixed
sendLengthPrefixed() sends a message that is prefix by length through a tcp connection
plugin/go/contract/plugin.go:268
↓ 1 callersMethodsendLengthPrefixed
sendLengthPrefixed() sends a message that is prefix by length through a tcp connection
lib/plugin.go:558
↓ 1 callersFunctionsendRawTx
(j, state, setState)
cmd/rpc/web/wallet/components/governance.jsx:198
↓ 1 callersFunctionsendRewardTx
( rpcURL: string, adminKey: KeyGroup, adminAddr: string, recipientAddr: string, amount: bi
plugin/typescript/tutorial/src/rpc_test.ts:380
↓ 1 callersFunctionsendRewardTx
sendRewardTx sends a reward transaction using raw JSON
plugin/go/tutorial/rpc_test.go:360
↓ 1 callersFunctionsendSendTx
( rpcURL: string, senderKey: KeyGroup, fromAddr: string, toAddr: string, amount: bigint,
plugin/typescript/tutorial/src/rpc_test.ts:359
↓ 1 callersFunctionsendSendTx
sendSendTx sends a send transaction using raw JSON
plugin/go/tutorial/rpc_test.go:347
↓ 1 callersMethodsendToPluginAsync
(c: any, payload: any)
plugin/typescript/src/contract/plugin.ts:267
↓ 1 callersMethodsendToPluginAsync
sendToPluginAsync() sends to the plugin but doesn't wait for a response, tracking FSM context
plugin/go/contract/plugin.go:208
↓ 1 callersMethodsendToPluginAsync
sendToPluginAsync() sends to the plugin but doesn't wait for a response, tracking FSM context
lib/plugin.go:458
↓ 1 callersFunctionsend_faucet_tx
Send a faucet transaction.
plugin/python/tutorial/rpc_test.py:306
↓ 1 callersFunctionsend_reward_tx
Send a reward transaction.
plugin/python/tutorial/rpc_test.py:347
↓ 1 callersFunctionsend_send_tx
Send a send transaction.
plugin/python/tutorial/rpc_test.py:326
↓ 1 callersMethodset
set() executes the 'set' logic after traversal
store/smt.go:276
↓ 1 callersMethodsetCommitID
setCommitID() stores the CommitID for the specified version and root in the database
store/store.go:431
↓ 1 callersMethodsetDB
(db *Txn)
store/indexer.go:841
↓ 1 callersFunctionsetNavIdx
(i)
cmd/rpc/web/wallet/pages/index.js:26
↓ 1 callersMethodsetPrevPools
(dx, remote, local uint64)
fsm/dex_test.go:2869
↓ 1 callersFunctionshowModal
(t)
cmd/rpc/web/wallet/components/account.jsx:159
↓ 1 callersFunctionsignBLS
(privateKeyHex: string, message: Uint8Array)
plugin/typescript/tutorial/src/rpc_test.ts:197
↓ 1 callersFunctionsign_bls
Sign with BLS12-381 using G2 signatures. This matches the Go implementation using kyber's bdn.Scheme. Uses BasicSchemeMPL which uses DST:
plugin/python/tutorial/rpc_test.py:151
↓ 1 callersFunctionsignatureSwap
signatureSwap() exchanges the actual peer keys along with a signature between peers
p2p/encrypt.go:271
↓ 1 callersMethodsingleNodeNetwork
singleNodeNetwork() returns true if there are no other participants in the committee besides self
controller/consensus.go:691
↓ 1 callersFunctionsortData
(data, column, direction)
cmd/rpc/web/explorer/components/table.jsx:57
↓ 1 callersMethodsortOperationsByPrefix
sortOperationsByPrefix returns 8 sorted slices grouped by 3-bit prefix: 000 to 111
store/smt.go:527
↓ 1 callersFunctionsplit
split returns bytes split to size up to the lim param
p2p/conn.go:632
↓ 1 callersMethodstart
Start the plugin - connect to socket and begin listening.
plugin/python/contract/plugin.py:107
↓ 1 callersMethodstartEthFilterExpireService
startEthFilterExpireService() expires filters not read in ~ 5 minutes
cmd/rpc/eth.go:1010
↓ 1 callersMethodstartEthPendingTxsExpireService
startEthPendingTxsExpireService() evicts pending txs after 6 hours
cmd/rpc/eth.go:1112
↓ 1 callersMethodstartEthPseudoNonceService
startEthPseudoNonceService() ensures if a new block is processed the nonce map is updated appropriately
cmd/rpc/eth.go:1073
↓ 1 callersMethodstartEthRPCService
startEthRPCService() runs the needed routines for the eth rpc wrapper
cmd/rpc/eth.go:144
↓ 1 callersMethodstartHeapProfiler
startHeapProfiler writes periodic heap profiles to the data directory Warning: This calls runtime.GC() which causes pauses and may affect RPC latency
cmd/rpc/server.go:173
↓ 1 callersMethodstartHeartbeat
startHeartbeat periodically sends ping packets and drops the peer if no pong is seen in time.
p2p/conn.go:266
↓ 1 callersFunctionstartPollAPI
(address, json, password)
cmd/rpc/web/wallet/components/governance.jsx:174
↓ 1 callersMethodstartReceiveService
startReceiveService() starts the main receive service - reads from the underlying tcp connection and 'routes' the messages to the appropriate streams
p2p/conn.go:213
↓ 1 callersMethodstartSendService
startSendService() starts the main send service - converges and writes the send queue from all streams into the underlying tcp connection. - manages t
p2p/conn.go:178
↓ 1 callersMethodstartStaticFileServers
startStaticFileServers starts a file server for the wallet and explorer
cmd/rpc/server.go:164
↓ 1 callersFunctionstart_plugin
Start the plugin (matching Go's StartPlugin). Creates and starts a plugin that connects to the FSM socket.
plugin/python/contract/plugin.py:377
↓ 1 callersMethodstep
step() increments the iterator to the logical 'next'
store/versioned_store.go:455
↓ 1 callersFunctionstringArrayFromAny
stringArrayFromAny() extracts a string array from the argument
cmd/rpc/eth.go:1293
↓ 1 callersFunctionsubmitProposalAPI
()
cmd/rpc/web/wallet/components/governance.jsx:157
↓ 1 callersMethodsyncingDone
syncingDone() checks if the syncing loop may complete for a specific chainId
controller/consensus.go:709
↓ 1 callersFunctiontestCompareIterators
(t *testing.T, db lib.RWStoreI, compare lib.RWStoreI, keys []string)
store/fuzz_test.go:166
↓ 1 callersFunctiontestPluginTransactions
()
plugin/typescript/tutorial/src/rpc_test.ts:401
↓ 1 callersFunctiontest_plugin_transactions
Main test function.
plugin/python/tutorial/rpc_test.py:368
↓ 1 callersFunctiontoFloatBetween0And1
toFloatBetween0And1 converts a hash into a floating point number between 0 and 1
bft/election.go:159
↓ 1 callersMethodtouch
(height uint64)
cmd/rpc/types.go:439
↓ 1 callersFunctiontryConnect
()
plugin/typescript/src/contract/plugin.ts:324
↓ 1 callersMethodtxHeightAndIndexKey
(height, index uint64)
store/indexer.go:784
↓ 1 callersMethodtxToGetLogsResp
txToGetLogsResp() converts a send message into an ethGetLogsResponse
cmd/rpc/eth.go:970
↓ 1 callersMethodtxnFastForward
txnFastForward() skips over deleted entries in the in-memory operations return when invalid or !deleted
store/txn.go:443
← previousnext →2,201–2,300 of 5,387, ranked by callers