MCPcopy Create free account

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

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

↓ 2 callersFunctionKeyForCommittee
(chainId uint64, addr crypto.AddressI, stake uint64)
fsm/key.go:87
↓ 2 callersFunctionKeyForDelegate
(chainId uint64, addr crypto.AddressI, stake uint64)
fsm/key.go:90
↓ 2 callersFunctionKeyForParams
(s string)
fsm/key.go:102
↓ 2 callersFunctionKeyForRetiredCommittee
(cId uint64)
fsm/key.go:93
↓ 2 callersFunctionKeystoreNew
(password, nickname)
cmd/rpc/web/wallet/components/api.js:290
↓ 2 callersFunctionLastProposersPrefix
()
fsm/key.go:70
↓ 2 callersMethodLess
Less() compares the keys lexicographically
store/txn.go:525
↓ 2 callersMethodLoadCertificate
LoadCertificate() loads a quorum certificate (block, results + 2/3rd committee signatures)
fsm/state.go:345
↓ 2 callersMethodLoadCommitteeData
LoadCommitteeHeightInState() loads the committee information from state as updated by the quorum certificates
bft/bft.go:970
↓ 2 callersMethodLoadLastProposers
LoadLastProposers() loads the last Canopy committee proposers for sortition data
bft/bft.go:972
↓ 2 callersMethodLoadRootChainId
LoadRootChainId() loads the root chain id from the state at a certain height
fsm/gov.go:553
↓ 2 callersMethodLockOrder
LockOrder() adds a recipient and a deadline height to an existing order and saves it to the state
fsm/swap.go:196
↓ 2 callersMethodLottery
Lottery selects a validator/delegate randomly weighted based on their stake within a committee
cmd/rpc/query.go:352
↓ 2 callersMethodMarshal
(message any)
lib/codec/codec.go:15
↓ 2 callersFunctionMarshalAnypbJSON
MarshalAnypbJSON() marshals an anypb to JSON using the globalPluginSchemaRegistry
lib/codec.go:19
↓ 2 callersMethodMinimumEvidenceHeight
MinimumEvidenceHeight returns the minimum height the evidence must be to still be usable
cmd/rpc/query.go:344
↓ 2 callersMethodMonitorInboxStats
MonitorInboxStats continuously monitors and logs inbox channel depths without blocking message processing. Safe to run as a goroutine.
p2p/p2p.go:574
↓ 2 callersFunctionNew
New() creates an initialized pointer instance of a P2P object
p2p/p2p.go:60
↓ 2 callersFunctionNew
New() creates a new instance of HotstuffBFT for a specific Committee
bft/bft.go:54
↓ 2 callersMethodNew
()
lib/util.go:69
↓ 2 callersFunctionNewBLS12381PublicKey
NewBLSPublicKey creates a new BLSPublicKey reference from a kyber point
lib/crypto/bls.go:146
↓ 2 callersMethodNewCertificateResults
* This file implements the 'Certificate Result' logic which ensures the */ NewCertificateResults() creates a structure to hold the results of the cert
controller/result.go:16
↓ 2 callersFunctionNewChangeParamTxString
NewChangeParamTxString() creates a ChangeParamTransaction object (for strings) in the interface form of TransactionI
fsm/transaction.go:406
↓ 2 callersFunctionNewClient
(rpcURL, adminRPCUrl string)
cmd/rpc/client.go:25
↓ 2 callersFunctionNewConfigFromFile
NewConfigFromFile() populates a Config object from a JSON file
lib/config.go:349
↓ 2 callersFunctionNewDSE
DOUBLE SIGN EVIDENCE NewDSE() creates a list of DoubleSignEvidences with a built-in DeDuplicator
bft/evidence.go:56
↓ 2 callersFunctionNewDefaultSMT
NewDefaultSMT() creates a new abstraction fo the SMT object using default parameters
store/smt.go:139
↓ 2 callersFunctionNewFailedTxCache
NewFailedTxCache returns a new FailedTxCache
lib/mempool.go:328
↓ 2 callersMethodNewFromGenesisFile
* GENESIS LOGIC: implements logic to import a json file to create the state at height 0 and export the state at any height */ NewFromGenesisFile() cre
fsm/genesis.go:15
↓ 2 callersMethodNewIterator
NewIterator() creates a merged iterator with the reader and writer
store/txn.go:267
↓ 2 callersFunctionNewJSONFromFile
NewJSONFromFile() reads a json file into an object
lib/util.go:480
↓ 2 callersFunctionNewMempool
NewMempool() creates a new FeeMempool instance of a Mempool
lib/mempool.go:43
↓ 2 callersFunctionNewPluginError
NewPluginError() creates a plugin error from an ErrorI
lib/plugin.go:623
↓ 2 callersFunctionNewPrivateKeyFromString
NewPrivateKeyFromString() creates a new PrivateKeyI interface from a hex string
lib/crypto/key.go:111
↓ 2 callersMethodNewStateFromGenesis
NewStateFromGenesis() creates a new beginning state using a GenesisState object There are purposefully non-included fields that are 'export only'
fsm/genesis.go:73
↓ 2 callersMethodNewSubscription
Dial() dials a root chain via ws
cmd/rpc/sock.go:355
↓ 2 callersFunctionNewTimer
NewTimer() creates a 0 value initialized instance of a timer
lib/util.go:733
↓ 2 callersFunctionNewValidatorTCPProxy
NewValidatorTCPProxy builds a new proxy instance using the provided routes, max connections, and logger.
lib/peer.go:462
↓ 2 callersMethodOrder
Order gets an order for the specified chain
cmd/rpc/query.go:273
↓ 2 callersMethodOrders
Orders retrieves the order book for a committee
cmd/rpc/query.go:285
↓ 2 callersMethodOverwriteCommitteeData
OverwriteCommitteeData() overwrites the committee data in state note: use UpsertCommitteeData for the safe committee upsert
fsm/committee.go:454
↓ 2 callersMethodPacemaker
Pacemaker() begins the Pacemaker process after ROUND-INTERRUPT timeout occurs - sets the highest round that +2/3rds majority of replicas have seen
bft/bft.go:548
↓ 2 callersFunctionParams
(height)
cmd/rpc/web/wallet/components/api.js:709
↓ 2 callersFunctionParams
(height, _)
cmd/rpc/web/explorer/components/api.js:149
↓ 2 callersMethodParent
Parent() returns the parent of the last node traversed (current)
store/smt.go:1112
↓ 2 callersMethodParsePollTransactions
POLLING CODE BELOW ParsePollTransactions() parses the last valid block for memo commands to execute specialized 'straw polling' functionality
fsm/gov.go:376
↓ 2 callersMethodPassesFilter
PassesFilter() returns if the Validator object passes the filter (true) or is filtered out (false)
fsm/validator.go:584
↓ 2 callersFunctionPausedPrefix
(height uint64)
fsm/key.go:69
↓ 2 callersMethodPeerInfo
PeerInfo retrieves node peer information
cmd/rpc/admin.go:505
↓ 2 callersMethodPop
Pop() removes the node from the list
store/smt.go:1118
↓ 2 callersMethodPrev
Prev() back towards the previous item in the tree
store/txn.go:621
↓ 2 callersMethodPublish
(chainId uint64, info *RootChainInfo)
lib/consensus.go:117
↓ 2 callersMethodReadGenesisFromFile
ReadGenesisFromFile() reads a GenesisState object from a file
fsm/genesis.go:53
↓ 2 callersMethodRefreshRootChainInfo
RefreshRootChainInfo() updates the cached root chain info with the latest known
bft/bft.go:640
↓ 2 callersMethodRemove
Remove() removes a transaction hash from the cache
lib/mempool.go:414
↓ 2 callersMethodReplace
Replace replaces the snapshot to the specified path, creating a backup of the existing files before overwriting them
cmd/auto-update/updater.go:263
↓ 2 callersMethodResetCaches
ResetCaches() dumps the state machine caches
fsm/state.go:631
↓ 2 callersMethodResetOrder
ResetOrder() removes the recipient and deadline height from an existing order and saves it to the state
fsm/swap.go:219
↓ 2 callersFunctionResetTimer
ResetTimer() stops the existing timer, and resets with the new duration
lib/util.go:743
↓ 2 callersFunctionResolvePort
ResolvePort() executes a network wide protocol for determining what the p2p port of the peer is This is useful to allow 1 URL in state to expand to ma
lib/peer.go:85
↓ 2 callersMethodRetireCommittee
RetireCommittee marks a committee as non-subsidized for eternity This is a useful mechanism to gracefully 'end' a committee
fsm/committee.go:551
↓ 2 callersMethodRevIterator
RevIterator() creates and returns an iterator for the state machine's underlying store starting at the end-prefix of the specified key and iterating r
fsm/state.go:559
↓ 2 callersMethodRotateDexBatches
RotateDexBatches() sets 'next batch' as 'locked batch' and deletes reference for 'next batch' (1) checks if locked batch is processed yet - if not exi
fsm/dex.go:528
↓ 2 callersFunctionSaveJSONToFile
SaveJSONToFile() saves a json object to a file
lib/util.go:493
↓ 2 callersFunctionSaveToFile
SaveToFile saves the response body to a file with the given path and permissions
cmd/auto-update/updater.go:323
↓ 2 callersFunctionSelectProposerFromCandidates
SelectProposerFromCandidates() chooses the `Leader` by comparing the pre-validated VRF Candidates, no candidates falls back to StakeWeightedRandom sel
bft/election.go:94
↓ 2 callersMethodSendCertificateResultsTx
SendCertificateResultsTx() originates and auto-sends a CertificateResultsTx after successfully leading a Consensus height
controller/result.go:37
↓ 2 callersMethodSendToRandPeer
SendToRandPeer() sends a message to any random peer on the list
p2p/set.go:222
↓ 2 callersMethodSendTxMsgs
* This file implements logic for transaction sending and handling as well as memory pooling */ SendTxMsgs() routes generated transaction messages to t
controller/tx.go:23
↓ 2 callersMethodSetAccounts
SetAccount() upserts multiple accounts into the state
fsm/account.go:106
↓ 2 callersMethodSetFSMInConsensusModeForProposals
SetFSMInConsensusModeForProposals() is how the Validator is configured for `base chain` specific parameter upgrades
controller/block.go:635
↓ 2 callersMethodSetOrderBooks
SetOrderBooks() sets a series of OrderBooks in the state db
fsm/swap.go:301
↓ 2 callersMethodSetPools
SetPools() upserts multiple Pool structures into the state
fsm/account.go:306
↓ 2 callersMethodSetRetiredCommittees
SetRetiredCommittees() sets a list of chainIds as retired
fsm/committee.go:586
↓ 2 callersMethodSetValidatorUnstakingIfBelowMinimum
SetValidatorUnstakingIfBelowMinimum() updates a validator as 'unstaking' and removes it from its respective committees if it is below the minimum stak
fsm/validator.go:283
↓ 2 callersMethodSetValidatorsPaused
PAUSED VALIDATORS BELOW SetValidatorsPaused() automatically updates all validators as if they'd submitted a MessagePause
fsm/validator.go:350
↓ 2 callersMethodSignBytes
SignBytes() returns the canonical bytes representation of a Message used as input for a digital signature
bft/msg.go:196
↓ 2 callersMethodSlashAndResetNonSigners
SlashAndResetNonSigners() resets the non-signer tracking and slashes those who exceeded the MaxNonSign threshold
fsm/byzantine.go:61
↓ 2 callersMethodSlashDoubleSigners
SlashDoubleSigners() burns the staked tokens of double signers
fsm/byzantine.go:232
↓ 2 callersMethodSlashNonSigners
SlashNonSigners() burns the staked tokens of non-quorum-certificate-signers
fsm/byzantine.go:227
↓ 2 callersMethodSlashValidator
SlashValidator() burns a specified percentage of a validator's staked tokens
fsm/byzantine.go:285
↓ 2 callersMethodSlashValidators
SlashValidators() burns a specified percentage of multiple validator's staked tokens
fsm/byzantine.go:267
↓ 2 callersFunctionStart
Start() is the entrypoint of the application
cmd/cli/cli.go:81
↓ 2 callersMethodStart
Start initializes listeners for each configured port.
lib/peer.go:478
↓ 2 callersMethodStart
Start starts the process and runs it until it exits
cmd/auto-update/coordinator.go:41
↓ 2 callersMethodStartCommitPhase
StartCommitPhase() begins the Commit after the PRECOMMIT-VOTE phase timeout COMMIT PHASE: - Leader reviews the collected Replica PRECOMMIT votes (vote
bft/bft.go:466
↓ 2 callersMethodStartCommitProcessPhase
StartCommitProcessPhase() begins the COMMIT-PROCESS phase after the COMMIT phase timeout COMMIT-PROCESS PHASE: - Replica reviews the message from the
bft/bft.go:498
↓ 2 callersMethodStartElectionPhase
StartElectionPhase() begins the ElectionPhase after the CommitProcess (normal) or Pacemaker (previous Round failure) timeouts ELECTION PHASE: - Replic
bft/bft.go:205
↓ 2 callersMethodStartElectionVotePhase
StartElectionVotePhase() begins the ElectionVotePhase after the ELECTION phase timeout ELECTION-VOTE PHASE: - Replicas review messages from Candidates
bft/bft.go:249
↓ 2 callersMethodStartPrecommitPhase
StartPrecommitPhase() begins the PrecommitPhase after the PROPOSE-VOTE phase timeout PRECOMMIT PHASE: - Leader reviews the collected Replica PROPOSE v
bft/bft.go:399
↓ 2 callersMethodStartProposePhase
StartProposePhase() begins the ProposePhase after the ELECTION-VOTE phase timeout PROPOSE PHASE: - Leader reviews the collected vote messages from Rep
bft/bft.go:288
↓ 2 callersMethodStartProposeVotePhase
StartProposeVotePhase() begins the ProposeVote after the PROPOSE phase timeout PROPOSE-VOTE PHASE: - Replica reviews the message from the Leader by va
bft/bft.go:335
↓ 2 callersMethodStop
Stop() terminates the Controller service
controller/controller.go:166
↓ 2 callersMethodStop
Stop() sends exit signals for send and receive loops and closes the connection
p2p/conn.go:130
↓ 2 callersMethodStop
Stop() stops the client
cmd/rpc/sock.go:476
↓ 2 callersFunctionStopTimer
StopTimer() stops the existing timer
lib/util.go:751
↓ 2 callersMethodString
String() returns the hex string representation of the private key
lib/crypto/bls.go:108
↓ 2 callersMethodSubFromDelegateStakedSupplyForChain
SubFromDelegateStakedSupplyForChain() removes from the delegate committee staked supply count
fsm/account.go:515
↓ 2 callersMethodSubFromStakedSupply
SubFromStakedSupply() removes from the staked supply count (staked + delegated)
fsm/account.go:476
↓ 2 callersFunctionSupply
(height, _)
cmd/rpc/web/explorer/components/api.js:153
← previousnext →1,001–1,100 of 5,387, ranked by callers