MCPcopy Create free account

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

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

↓ 1 callersFunctiongetCardSubHeader
(props, consensusDuration, idx)
cmd/rpc/web/explorer/components/cards.jsx:83
↓ 1 callersFunctiongetConfigs
getConfigs returns the configuration for the updater, snapshotter, and process supervisor.
cmd/auto-update/main.go:94
↓ 1 callersMethodgetCurrent
(height uint64)
cmd/rpc/types.go:410
↓ 1 callersMethodgetDoubleStateMachineFromHeightParams
getDoubleStateMachineFromHeightParams is a helper function to get two read-only state machines at the specified heights
cmd/rpc/query.go:733
↓ 1 callersMethodgetEventsNonPaginated
getEventsNonPaginated() gets the events in sorted order by block.index in a slice format
store/indexer.go:450
↓ 1 callersFunctiongetFilterArgs
()
cmd/cli/query.go:476
↓ 1 callersFunctiongetFirstPassword
(log lib.LoggerI)
cmd/cli/cli.go:135
↓ 1 callersFunctiongetHeader
(v)
cmd/rpc/web/explorer/components/table.jsx:186
↓ 1 callersFunctiongetLatestCommitID
getLatestCommitID() retrieves the latest CommitID from the database
store/store.go:448
↓ 1 callersFunctiongetModalData
(query, page)
cmd/rpc/web/explorer/components/api.js:216
↓ 1 callersFunctiongetModalTitle
(state, v)
cmd/rpc/web/explorer/components/modal.jsx:154
↓ 1 callersFunctiongetPoolArgs
(args []string)
cmd/cli/query.go:461
↓ 1 callersMethodgetProposal
getProposal() retrieves a proposal from the leader at the Round.Phase
bft/prop.go:75
↓ 1 callersMethodgetQC
HELPER CODE BELOW getQC() gets the QC bytes from the DB and converts it into a QC object
store/indexer.go:605
↓ 1 callersFunctiongetRandomAllowedPeer
getRandomAllowedPeer randomizes the provided peer list and chooses the first one that is not rate-limited
controller/consensus.go:39
↓ 1 callersFunctiongetRandomOperation
(_ *testing.T)
store/fuzz_test.go:139
↓ 1 callersFunctiongetRoundProgress
(consensusInfo)
cmd/rpc/web/wallet/components/dashboard.jsx:70
↓ 1 callersFunctiongetSignBytes
( msgType: string, msgTypeUrl: string, msgBytes: Uint8Array, time: bigint, createdHeight:
plugin/typescript/tutorial/src/rpc_test.ts:152
↓ 1 callersFunctiongetStakedStatus
()
cmd/rpc/web/wallet/components/account.jsx:176
↓ 1 callersMethodgetSubtreeRoots
getSubtreeRoots() prepares synthetic roots for the subtrees
store/smt.go:502
↓ 1 callersFunctiongetTabTitle
(state, data, tab)
cmd/rpc/web/explorer/components/modal.jsx:163
↓ 1 callersMethodgetTxsNonPaginated
getTxsNonPaginated() gets the txs in sorted order by block.index in a slice format
store/indexer.go:677
↓ 1 callersFunctiongetValidatorAmount
()
cmd/rpc/web/wallet/components/account.jsx:171
↓ 1 callersMethodgetValidatorBehaviorMetrics
getValidatorBehaviorMetrics() gets metrics for validator behavior in this block
controller/block.go:680
↓ 1 callersMethodgetVoteSet
getVoteSet() returns the set of votes for the Round.Phase.Payload
bft/vote.go:67
↓ 1 callersFunctionget_sign_bytes
Get sign bytes for a transaction using protobuf.
plugin/python/tutorial/rpc_test.py:168
↓ 1 callersFunctionhandleAccordionChange
(key, value)
cmd/rpc/web/wallet/components/governance.jsx:453
↓ 1 callersMethodhandleConfigMessage
HandleConfigMessage() handles an inbound configuration message
lib/plugin.go:268
↓ 1 callersMethodhandleConnection
handleConnect9) establishes a new inbound tcp connection and forwards it to the proper destination
lib/peer.go:569
↓ 1 callersMethodhandleFSMResponse
HandlePluginResponse() routes the inbound response appropriately
plugin/go/contract/plugin.go:173
↓ 1 callersMethodhandleHeartbeatPacket
(packet *Packet)
p2p/conn.go:299
↓ 1 callersMethodhandleHighQCVDFAndEvidence
handleHighQCVDFAndEvidence() processes any 'highQC', 'vdf' or 'evidence' an ElectionVote from a Replica may have submitted
bft/vote.go:114
↓ 1 callersMethodhandleMessage
(msgBytes: Buffer)
plugin/typescript/src/contract/plugin.ts:157
↓ 1 callersMethodhandleMessageAsync
(msg: any)
plugin/typescript/src/contract/plugin.ts:172
↓ 1 callersMethodhandlePacket
handlePacket() merge the new packet with the previously received ones until the entire message is complete (EOF signal)
p2p/conn.go:482
↓ 1 callersMethodhandlePluginResponse
HandlePluginResponse() routes the inbound response appropriately
lib/plugin.go:399
↓ 1 callersMethodhandleStateReadRequest
HandleStateReadRequest() handles an inbound state read request from a specific FSM context
lib/plugin.go:313
↓ 1 callersMethodhandleStateWriteRequest
HandleStateWriteRequest() handles an inbound state write request from a specific FSM context
lib/plugin.go:356
↓ 1 callersMethodheightAndAddrIndexer
heightAndAddrIndexer is a helper function to abstract common workflows around a callback requiring height and address parameters
cmd/rpc/query.go:818
↓ 1 callersMethodheightAndIdIndexer
heightAndIdIndexer is a helper function to abstract common workflows around a callback requiring height and ID parameters
cmd/rpc/query.go:840
↓ 1 callersMethodholdUnread
holdUnread() holds unread data from a partially read chunk into the 'unread buffer'
p2p/encrypt.go:228
↓ 1 callersMethodidIndexer
idIndexer is a helper function to abstract common workflows around a callback requiring id and page params
cmd/rpc/query.go:793
↓ 1 callersMethodincConnCount
incConnCount() increment number of active connections
lib/peer.go:659
↓ 1 callersMethodindexBlockByHash
(hash, bz []byte)
store/indexer.go:755
↓ 1 callersMethodindexBlockByHeight
(height uint64, bz []byte)
store/indexer.go:760
↓ 1 callersMethodindexDoubleSignerByHeight
(address []byte, height uint64)
store/indexer.go:764
↓ 1 callersMethodindexEventByAddress
(address, heightAndIndexKey []byte, bz []byte)
store/indexer.go:495
↓ 1 callersMethodindexEventByChainId
(chainId uint64, blockHeightAndIdxkey, bz []byte)
store/indexer.go:504
↓ 1 callersMethodindexEventByHash
indexEventByHash() indexes an event by its hash
store/indexer.go:486
↓ 1 callersMethodindexEventByHeightAndIndex
(heightAndIndexKey []byte, bz []byte)
store/indexer.go:780
↓ 1 callersMethodindexQCByHeight
(height uint64, bz []byte)
store/indexer.go:751
↓ 1 callersMethodindexTxByHash
(hash, bz []byte)
store/indexer.go:731
↓ 1 callersMethodindexTxByHeightAndIndex
(heightAndIndexKey []byte, bz []byte)
store/indexer.go:736
↓ 1 callersMethodindexTxByRecipient
(recipient, heightAndIndexKey []byte, bz []byte)
store/indexer.go:744
↓ 1 callersMethodindexTxBySender
(sender, heightAndIndexKey []byte, bz []byte)
store/indexer.go:740
↓ 1 callersFunctioninitializeContract
( // eslint-disable-next-line @typescript-eslint/no-explicit-any contractClass: any, // eslint-dis
plugin/typescript/src/contract/plugin.ts:349
↓ 1 callersMethodinitializeTree
initializeTree() ensures the tree always has a root with two children this allows the logic to be without root edge cases for insert and delete
store/smt.go:397
↓ 1 callersFunctioninjectConfig
injectConfig() injects the config.json into the HTML file
cmd/rpc/server.go:401
↓ 1 callersFunctionisEmpty
(obj)
cmd/rpc/web/explorer/components/util.js:150
↓ 1 callersFunctionisHex
(h)
cmd/rpc/web/explorer/components/util.js:102
↓ 1 callersFunctioniterateSquarings
iterateSquarings() incrementally calculates powers of the class group x by repeatedly squaring it At each checkpoint (milestone) specified by powersTo
lib/crypto/vdf.go:196
↓ 1 callersFunctionkeySwap
keySwap() exchanges temporary public keys between peers
p2p/encrypt.go:262
↓ 1 callersFunctionkey_for_fee_params
Generate state database key for fee parameters.
plugin/python/contract/contract.py:108
↓ 1 callersFunctionkey_for_fee_pool
Generate state database key for fee pool.
plugin/python/contract/contract.py:113
↓ 1 callersMethodloadCheckpointsFile
loadCheckpointsFile reads checkpoints.json (if present) into the controller cache.
controller/controller.go:423
↓ 1 callersFunctionlogFullState
(t *testing.T, chain1, chain2 *StateMachine, chain1Id, chain2Id uint64, accounts []crypto.AddressI)
fsm/dex_test.go:3436
↓ 1 callersFunctionlogsHandler
logsHandler writes the Canopy logfile
cmd/rpc/server.go:302
↓ 1 callersMethodlpHolders
()
fsm/dex_test.go:2828
↓ 1 callersFunctionmain
Start the plugin and wait for shutdown signal.
plugin/python/main.py:16
↓ 1 callersFunctionmain
()
plugin/python/tutorial/main.py:9
↓ 1 callersFunctionmain
()
plugin/typescript/scripts/generate-descriptors.cjs:10
↓ 1 callersMethodmarshalAccount
marshalAccount() converts an Account structure into bytes
fsm/account.go:210
↓ 1 callersMethodmarshalOrder
marshalOrder() converts the Validator object to bytes
fsm/swap.go:419
↓ 1 callersMethodmarshalPool
marshalPool() coverts a Pool structure into bytes
fsm/account.go:398
↓ 1 callersMethodmarshalSupply
marshalSupply() converts the Supply into bytes
fsm/account.go:566
↓ 1 callersMethodmarshalValidator
marshalValidator() converts the Validator object to bytes
fsm/validator.go:509
↓ 1 callersMethodmaybeFaucetTopUpForSendTx
maybeFaucetTopUpForSendTx mints just-enough tokens to cover `required` when the sender is configured as a faucet. Faucet mode is disabled when config.
fsm/account.go:169
↓ 1 callersFunctionmemhash
go:noescape go:linkname memhash runtime.memhash
lib/util.go:1033
↓ 1 callersFunctionmessageFromTxJSON
messageFromTxJSON() extracts a lib.MessageI from a transaction json
fsm/message_helpers.go:1029
↓ 1 callersMethodmsLeftInRound
msLeftInRound() calculates the milliseconds left in the round
bft/bft.go:757
↓ 1 callersFunctionnewBLS12381PrivateKey
newBLS12381PrivateKey() creates a new BLS private key reference from a kyber.Scalar
lib/crypto/bls.go:34
↓ 1 callersFunctionnewBLSMultiPublicKey
NewBLSMultiPublicKey() creates a new BLS12381MultiPublicKey reference from a kyber mask object
lib/crypto/bls.go:259
↓ 1 callersFunctionnewCloseOrderTxRequest
(address, orderId, fee, submit, password)
cmd/rpc/web/wallet/components/api.js:207
↓ 1 callersFunctionnewDexLimitOrderRequest
(address, chainId, amount, receiveAmount, memo, fee, submit, password)
cmd/rpc/web/wallet/components/api.js:217
↓ 1 callersFunctionnewDexLiquidityDepositRequest
(address, chainId, amount, memo, fee, submit, password)
cmd/rpc/web/wallet/components/api.js:230
↓ 1 callersFunctionnewDexLiquidityWithdrawRequest
(address, chainId, percent, memo, fee, submit, password)
cmd/rpc/web/wallet/components/api.js:242
↓ 1 callersFunctionnewDexSim
(t *testing.T, rng *rand.Rand)
fsm/dex_test.go:2495
↓ 1 callersMethodnewElectionVoteDoubleSign
newElectionVoteDoubleSign() simulates an election candidate receiving a conflicting Votes with the real proposers' election vote QC
bft/mock_test.go:393
↓ 1 callersFunctionnewIndexerBlobCache
(maxEntries int)
cmd/rpc/types.go:392
↓ 1 callersFunctionnewLockOrderTxRequest
(address, receiveAddress, orderId, fee, submit, password)
cmd/rpc/web/wallet/components/api.js:196
↓ 1 callersFunctionnewLogError
error implementations below for the `types` package
lib/error.go:351
↓ 1 callersMethodnewPartialQCDoubleSign
newPartialQCDoubleSign() simulates a partial QC being sent to the replica
bft/mock_test.go:351
↓ 1 callersFunctionnewTargetWindowFilter
newTargetWindowFilter builds a filter to admit blocks/tables that may contain any low <= version <= high. It uses the interval [low, high+1).
store/versioned_store.go:625
↓ 1 callersFunctionnewTestKeyGroups
(t *testing.T, count int)
fsm/state_test.go:404
↓ 1 callersFunctionnewTestPublicKey
(t *testing.T, variation ...int)
fsm/state_test.go:371
↓ 1 callersFunctionnewVersionedPropertyCollector
newVersionedPropertyCollector returns a BlockPropertyCollector that records per-block [minVersion, maxVersionExclusive) using the interval mapper.
store/versioned_store.go:615
↓ 1 callersFunctionnextPowerOfTwo
nextPowerOfTwo() calculates the smallest power of 2 that is greater than or equal to the input value
lib/crypto/hash.go:85
↓ 1 callersFunctionnormalizeTCPProxyTarget
normalizeTCPProxyTarget() removes space and "tcp://" from the target
lib/peer.go:691
↓ 1 callersMethodorderParams
orderParams is a helper function to abstract common workflows around a callback requiring a state machine and order request
cmd/rpc/query.go:644
↓ 1 callersMethodorderRequest
(routeName string, height uint64, orderId string, chainId uint64, ptr any)
cmd/rpc/client.go:1008
← previousnext →2,101–2,200 of 5,387, ranked by callers