Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/canopy-network/canopy
/ functions
Functions
5,387 in github.com/canopy-network/canopy
⨍
Functions
5,387
◇
Types & classes
860
↓ 2 callers
Function
KeyForCommittee
(chainId uint64, addr crypto.AddressI, stake uint64)
fsm/key.go:87
↓ 2 callers
Function
KeyForDelegate
(chainId uint64, addr crypto.AddressI, stake uint64)
fsm/key.go:90
↓ 2 callers
Function
KeyForParams
(s string)
fsm/key.go:102
↓ 2 callers
Function
KeyForRetiredCommittee
(cId uint64)
fsm/key.go:93
↓ 2 callers
Function
KeystoreNew
(password, nickname)
cmd/rpc/web/wallet/components/api.js:290
↓ 2 callers
Function
LastProposersPrefix
()
fsm/key.go:70
↓ 2 callers
Method
Less
Less() compares the keys lexicographically
store/txn.go:525
↓ 2 callers
Method
LoadCertificate
LoadCertificate() loads a quorum certificate (block, results + 2/3rd committee signatures)
fsm/state.go:345
↓ 2 callers
Method
LoadCommitteeData
LoadCommitteeHeightInState() loads the committee information from state as updated by the quorum certificates
bft/bft.go:970
↓ 2 callers
Method
LoadLastProposers
LoadLastProposers() loads the last Canopy committee proposers for sortition data
bft/bft.go:972
↓ 2 callers
Method
LoadRootChainId
LoadRootChainId() loads the root chain id from the state at a certain height
fsm/gov.go:553
↓ 2 callers
Method
LockOrder
LockOrder() adds a recipient and a deadline height to an existing order and saves it to the state
fsm/swap.go:196
↓ 2 callers
Method
Lottery
Lottery selects a validator/delegate randomly weighted based on their stake within a committee
cmd/rpc/query.go:352
↓ 2 callers
Method
Marshal
(message any)
lib/codec/codec.go:15
↓ 2 callers
Function
MarshalAnypbJSON
MarshalAnypbJSON() marshals an anypb to JSON using the globalPluginSchemaRegistry
lib/codec.go:19
↓ 2 callers
Method
MinimumEvidenceHeight
MinimumEvidenceHeight returns the minimum height the evidence must be to still be usable
cmd/rpc/query.go:344
↓ 2 callers
Method
MonitorInboxStats
MonitorInboxStats continuously monitors and logs inbox channel depths without blocking message processing. Safe to run as a goroutine.
p2p/p2p.go:574
↓ 2 callers
Function
New
New() creates an initialized pointer instance of a P2P object
p2p/p2p.go:60
↓ 2 callers
Function
New
New() creates a new instance of HotstuffBFT for a specific Committee
bft/bft.go:54
↓ 2 callers
Method
New
()
lib/util.go:69
↓ 2 callers
Function
NewBLS12381PublicKey
NewBLSPublicKey creates a new BLSPublicKey reference from a kyber point
lib/crypto/bls.go:146
↓ 2 callers
Method
NewCertificateResults
* 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 callers
Function
NewChangeParamTxString
NewChangeParamTxString() creates a ChangeParamTransaction object (for strings) in the interface form of TransactionI
fsm/transaction.go:406
↓ 2 callers
Function
NewClient
(rpcURL, adminRPCUrl string)
cmd/rpc/client.go:25
↓ 2 callers
Function
NewConfigFromFile
NewConfigFromFile() populates a Config object from a JSON file
lib/config.go:349
↓ 2 callers
Function
NewDSE
DOUBLE SIGN EVIDENCE NewDSE() creates a list of DoubleSignEvidences with a built-in DeDuplicator
bft/evidence.go:56
↓ 2 callers
Function
NewDefaultSMT
NewDefaultSMT() creates a new abstraction fo the SMT object using default parameters
store/smt.go:139
↓ 2 callers
Function
NewFailedTxCache
NewFailedTxCache returns a new FailedTxCache
lib/mempool.go:328
↓ 2 callers
Method
NewFromGenesisFile
* 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 callers
Method
NewIterator
NewIterator() creates a merged iterator with the reader and writer
store/txn.go:267
↓ 2 callers
Function
NewJSONFromFile
NewJSONFromFile() reads a json file into an object
lib/util.go:480
↓ 2 callers
Function
NewMempool
NewMempool() creates a new FeeMempool instance of a Mempool
lib/mempool.go:43
↓ 2 callers
Function
NewPluginError
NewPluginError() creates a plugin error from an ErrorI
lib/plugin.go:623
↓ 2 callers
Function
NewPrivateKeyFromString
NewPrivateKeyFromString() creates a new PrivateKeyI interface from a hex string
lib/crypto/key.go:111
↓ 2 callers
Method
NewStateFromGenesis
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 callers
Method
NewSubscription
Dial() dials a root chain via ws
cmd/rpc/sock.go:355
↓ 2 callers
Function
NewTimer
NewTimer() creates a 0 value initialized instance of a timer
lib/util.go:733
↓ 2 callers
Function
NewValidatorTCPProxy
NewValidatorTCPProxy builds a new proxy instance using the provided routes, max connections, and logger.
lib/peer.go:462
↓ 2 callers
Method
Order
Order gets an order for the specified chain
cmd/rpc/query.go:273
↓ 2 callers
Method
Orders
Orders retrieves the order book for a committee
cmd/rpc/query.go:285
↓ 2 callers
Method
OverwriteCommitteeData
OverwriteCommitteeData() overwrites the committee data in state note: use UpsertCommitteeData for the safe committee upsert
fsm/committee.go:454
↓ 2 callers
Method
Pacemaker
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 callers
Function
Params
(height)
cmd/rpc/web/wallet/components/api.js:709
↓ 2 callers
Function
Params
(height, _)
cmd/rpc/web/explorer/components/api.js:149
↓ 2 callers
Method
Parent
Parent() returns the parent of the last node traversed (current)
store/smt.go:1112
↓ 2 callers
Method
ParsePollTransactions
POLLING CODE BELOW ParsePollTransactions() parses the last valid block for memo commands to execute specialized 'straw polling' functionality
fsm/gov.go:376
↓ 2 callers
Method
PassesFilter
PassesFilter() returns if the Validator object passes the filter (true) or is filtered out (false)
fsm/validator.go:584
↓ 2 callers
Function
PausedPrefix
(height uint64)
fsm/key.go:69
↓ 2 callers
Method
PeerInfo
PeerInfo retrieves node peer information
cmd/rpc/admin.go:505
↓ 2 callers
Method
Pop
Pop() removes the node from the list
store/smt.go:1118
↓ 2 callers
Method
Prev
Prev() back towards the previous item in the tree
store/txn.go:621
↓ 2 callers
Method
Publish
(chainId uint64, info *RootChainInfo)
lib/consensus.go:117
↓ 2 callers
Method
ReadGenesisFromFile
ReadGenesisFromFile() reads a GenesisState object from a file
fsm/genesis.go:53
↓ 2 callers
Method
RefreshRootChainInfo
RefreshRootChainInfo() updates the cached root chain info with the latest known
bft/bft.go:640
↓ 2 callers
Method
Remove
Remove() removes a transaction hash from the cache
lib/mempool.go:414
↓ 2 callers
Method
Replace
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 callers
Method
ResetCaches
ResetCaches() dumps the state machine caches
fsm/state.go:631
↓ 2 callers
Method
ResetOrder
ResetOrder() removes the recipient and deadline height from an existing order and saves it to the state
fsm/swap.go:219
↓ 2 callers
Function
ResetTimer
ResetTimer() stops the existing timer, and resets with the new duration
lib/util.go:743
↓ 2 callers
Function
ResolvePort
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 callers
Method
RetireCommittee
RetireCommittee marks a committee as non-subsidized for eternity This is a useful mechanism to gracefully 'end' a committee
fsm/committee.go:551
↓ 2 callers
Method
RevIterator
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 callers
Method
RotateDexBatches
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 callers
Function
SaveJSONToFile
SaveJSONToFile() saves a json object to a file
lib/util.go:493
↓ 2 callers
Function
SaveToFile
SaveToFile saves the response body to a file with the given path and permissions
cmd/auto-update/updater.go:323
↓ 2 callers
Function
SelectProposerFromCandidates
SelectProposerFromCandidates() chooses the `Leader` by comparing the pre-validated VRF Candidates, no candidates falls back to StakeWeightedRandom sel
bft/election.go:94
↓ 2 callers
Method
SendCertificateResultsTx
SendCertificateResultsTx() originates and auto-sends a CertificateResultsTx after successfully leading a Consensus height
controller/result.go:37
↓ 2 callers
Method
SendToRandPeer
SendToRandPeer() sends a message to any random peer on the list
p2p/set.go:222
↓ 2 callers
Method
SendTxMsgs
* 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 callers
Method
SetAccounts
SetAccount() upserts multiple accounts into the state
fsm/account.go:106
↓ 2 callers
Method
SetFSMInConsensusModeForProposals
SetFSMInConsensusModeForProposals() is how the Validator is configured for `base chain` specific parameter upgrades
controller/block.go:635
↓ 2 callers
Method
SetOrderBooks
SetOrderBooks() sets a series of OrderBooks in the state db
fsm/swap.go:301
↓ 2 callers
Method
SetPools
SetPools() upserts multiple Pool structures into the state
fsm/account.go:306
↓ 2 callers
Method
SetRetiredCommittees
SetRetiredCommittees() sets a list of chainIds as retired
fsm/committee.go:586
↓ 2 callers
Method
SetValidatorUnstakingIfBelowMinimum
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 callers
Method
SetValidatorsPaused
PAUSED VALIDATORS BELOW SetValidatorsPaused() automatically updates all validators as if they'd submitted a MessagePause
fsm/validator.go:350
↓ 2 callers
Method
SignBytes
SignBytes() returns the canonical bytes representation of a Message used as input for a digital signature
bft/msg.go:196
↓ 2 callers
Method
SlashAndResetNonSigners
SlashAndResetNonSigners() resets the non-signer tracking and slashes those who exceeded the MaxNonSign threshold
fsm/byzantine.go:61
↓ 2 callers
Method
SlashDoubleSigners
SlashDoubleSigners() burns the staked tokens of double signers
fsm/byzantine.go:232
↓ 2 callers
Method
SlashNonSigners
SlashNonSigners() burns the staked tokens of non-quorum-certificate-signers
fsm/byzantine.go:227
↓ 2 callers
Method
SlashValidator
SlashValidator() burns a specified percentage of a validator's staked tokens
fsm/byzantine.go:285
↓ 2 callers
Method
SlashValidators
SlashValidators() burns a specified percentage of multiple validator's staked tokens
fsm/byzantine.go:267
↓ 2 callers
Function
Start
Start() is the entrypoint of the application
cmd/cli/cli.go:81
↓ 2 callers
Method
Start
Start initializes listeners for each configured port.
lib/peer.go:478
↓ 2 callers
Method
Start
Start starts the process and runs it until it exits
cmd/auto-update/coordinator.go:41
↓ 2 callers
Method
StartCommitPhase
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 callers
Method
StartCommitProcessPhase
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 callers
Method
StartElectionPhase
StartElectionPhase() begins the ElectionPhase after the CommitProcess (normal) or Pacemaker (previous Round failure) timeouts ELECTION PHASE: - Replic
bft/bft.go:205
↓ 2 callers
Method
StartElectionVotePhase
StartElectionVotePhase() begins the ElectionVotePhase after the ELECTION phase timeout ELECTION-VOTE PHASE: - Replicas review messages from Candidates
bft/bft.go:249
↓ 2 callers
Method
StartPrecommitPhase
StartPrecommitPhase() begins the PrecommitPhase after the PROPOSE-VOTE phase timeout PRECOMMIT PHASE: - Leader reviews the collected Replica PROPOSE v
bft/bft.go:399
↓ 2 callers
Method
StartProposePhase
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 callers
Method
StartProposeVotePhase
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 callers
Method
Stop
Stop() terminates the Controller service
controller/controller.go:166
↓ 2 callers
Method
Stop
Stop() sends exit signals for send and receive loops and closes the connection
p2p/conn.go:130
↓ 2 callers
Method
Stop
Stop() stops the client
cmd/rpc/sock.go:476
↓ 2 callers
Function
StopTimer
StopTimer() stops the existing timer
lib/util.go:751
↓ 2 callers
Method
String
String() returns the hex string representation of the private key
lib/crypto/bls.go:108
↓ 2 callers
Method
SubFromDelegateStakedSupplyForChain
SubFromDelegateStakedSupplyForChain() removes from the delegate committee staked supply count
fsm/account.go:515
↓ 2 callers
Method
SubFromStakedSupply
SubFromStakedSupply() removes from the staked supply count (staked + delegated)
fsm/account.go:476
↓ 2 callers
Function
Supply
(height, _)
cmd/rpc/web/explorer/components/api.js:153
← previous
next →
1,001–1,100 of 5,387, ranked by callers