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
↓ 4 callers
Method
HandleMessageDexLimitOrder
HandleMessageDexLimitOrder() is the proper handler for a `DexLimitOrder` message
fsm/message.go:486
↓ 4 callers
Method
HandleMessageDexLiquidityDeposit
HandleMessageDexLiquidityDeposit() is the proper handler for a `DexLiquidityDeposit` message
fsm/message.go:520
↓ 4 callers
Method
HandleMessageDexLiquidityWithdraw
HandleMessageDexLiquidityWithdraw() is the proper handler for a `DexLiquidityWithdrawal` message
fsm/message.go:558
↓ 4 callers
Method
IndexerBlob
IndexerBlob() retrieves the protobuf blobs for a blockchain indexer
fsm/indexer.go:32
↓ 4 callers
Method
IsRunning
IsRunning is a concurrent-safe method to check if the Supervisor process is running
cmd/auto-update/coordinator.go:116
↓ 4 callers
Function
KeyForValidator
(addr crypto.AddressI)
fsm/key.go:99
↓ 4 callers
Method
LoadCertificate
LoadCertificate() gets the Quorum Certificate from the chainId-> plugin at a certain height
bft/bft.go:941
↓ 4 callers
Method
LoadCommittee
LoadCommittee() loads the committee validators for a particular committee at a particular height
fsm/state.go:332
↓ 4 callers
Method
LoadRootChainId
RootChainId() returns the root chain id according to the FSM
controller/controller.go:321
↓ 4 callers
Method
LotteryWinner
LotteryWinner() selects a validator/delegate randomly weighted based on their stake within a committee
fsm/committee.go:202
↓ 4 callers
Method
Map
Map() returns the underlying map to the de-duplicator
lib/util.go:901
↓ 4 callers
Function
Marshal
Marshal() serializes a proto.Message into a byte slice
plugin/go/contract/plugin.go:303
↓ 4 callers
Method
MaxPossiblePeers
MaxPossiblePeers() sums the MaxIn, MaxOut, MaxCommitteeConnects and trusted peer IDs
p2p/p2p.go:457
↓ 4 callers
Method
MintToPool
MintToPool() adds newly created tokens to the Pool structure
fsm/account.go:320
↓ 4 callers
Function
NewBatchVerifier
NewBatchVerifier() constructs a batch verifier
lib/crypto/key_batch.go:48
↓ 4 callers
Method
NewIterator
(prefix []byte, reverse bool, seek bool)
store/txn.go:70
↓ 4 callers
Function
NewKeystoreInMemory
NewKeystoreInMemory() creates a new in memory keystore
lib/crypto/keystore.go:45
↓ 4 callers
Function
NewLimiter
NewLimiter() returns a new instance of SimpleLimiter with - max requests per requester - max total requests - how often to reset the limiter
lib/peer.go:361
↓ 4 callers
Function
NewNullLogger
NewNullLogger() creates a Logger that discards all log output
lib/log.go:248
↓ 4 callers
Function
NewPrivateKeyFromBytes
NewPrivateKeyFromBytes() creates a new PrivateKeyI interface from bytes
lib/crypto/key.go:120
↓ 4 callers
Function
NewPublicKeyFromString
NewPublicKeyFromString() creates a new PublicKeyI interface from a hex string
lib/crypto/key.go:78
↓ 4 callers
Method
NewRound
NewRound() initializes the VoteSet and Proposals cache for the next round - increments the round count if not NewHeight (goes to Round 0)
bft/bft.go:623
↓ 4 callers
Function
NewSlashTracker
()
fsm/byzantine.go:396
↓ 4 callers
Method
PeerCount
PeerCount() returns the total number of peers
p2p/set.go:184
↓ 4 callers
Method
ProduceProposal
ProduceProposal() as a Leader, create a Proposal in the form of a block and certificate results
bft/bft.go:937
↓ 4 callers
Method
PublicKey
PublicKey() returns the public pair to this private key
lib/crypto/secp256k1.go:102
↓ 4 callers
Method
Refer
Refer() sets a reference string for the event tracker
lib/event.go:43
↓ 4 callers
Function
SafeComputeDY
SafeComputeDY() executes overflow protected uniswap V2 formula
fsm/dex.go:720
↓ 4 callers
Method
SafeNode
SafeNode is the codified Hotstuff SafeNodePredicate: - Protects replicas who may have committed to a previous value by locking on that value when sign
bft/bft.go:687
↓ 4 callers
Method
SetCommitteesData
SetCommitteesData() sets a list of committee data in the state
fsm/committee.go:522
↓ 4 callers
Method
SetStore
(store lib.RWStoreI)
fsm/state.go:650
↓ 4 callers
Method
SetWriteDeadline
(t time.Time)
p2p/encrypt.go:259
↓ 4 callers
Method
Sign
Sign() executes a digital signature on the transaction
lib/tx.go:166
↓ 4 callers
Method
Square
Square() executes a pow(2) operation on the class group
lib/crypto/classgroup.go:197
↓ 4 callers
Method
Start
Start initializes the Canopy RPC servers
cmd/rpc/server.go:80
↓ 4 callers
Method
StartPrecommitVotePhase
StartPrecommitVotePhase() begins the Precommit vote after the PRECOMMIT phase timeout PRECOMMIT-VOTE PHASE: - Replica reviews the message from the Lea
bft/bft.go:430
↓ 4 callers
Method
Stop
Stop shuts down listeners and active proxy connections.
lib/peer.go:519
↓ 4 callers
Function
Uint64PercentageDiv
Uint64PercentageDiv() calculates the percentage from dividend/divisor
lib/util.go:596
↓ 4 callers
Method
UpdateCommittees
UpdateCommittees() updates the committee information in state for a specific validator
fsm/committee.go:278
↓ 4 callers
Function
VRF
VRF() 'Practical Verifiable Random Function': a function that given a secret key and a message, generates a unique random-looking number along with a
bft/election.go:120
↓ 4 callers
Method
Version
retrieve the underlying pebble db
lib/store.go:18
↓ 4 callers
Method
_send_proto_msg
Send length-prefixed protobuf message to FSM.
plugin/python/contract/plugin.py:359
↓ 4 callers
Method
addrIndexer
addrIndexer is a helper function to abstract common workflows around a callback requiring an address and page parameterse
cmd/rpc/query.go:886
↓ 4 callers
Function
assetSupply
(chain *dexChain)
fsm/dex_test.go:2883
↓ 4 callers
Method
blockHeightKey
(height uint64)
store/indexer.go:804
↓ 4 callers
Method
cmp
cmp() compares two node keys, returning -1 for less, 0 for equal, and 1 for greater than - contract: `k2`'s size is always less than or equal to (`k`)
store/smt.go:1021
↓ 4 callers
Method
commit
commit(): executes the deferred operations in order (left-to-right), minimizing the amount of traversals, IOPS, and hash operations
store/smt.go:239
↓ 4 callers
Function
convertTabData
(state, v, tab)
cmd/rpc/web/explorer/components/modal.jsx:89
↓ 4 callers
Function
counterChain
(c *dexChain)
fsm/dex_test.go:2792
↓ 4 callers
Function
counterPoolAmount
(sim *dexSim, chain *dexChain)
fsm/dex_test.go:2799
↓ 4 callers
Function
debugHandler
debugHandler is the http handler for debugging endpoints
cmd/rpc/query.go:950
↓ 4 callers
Function
file_block_proto_rawDescGZIP
()
lib/block.pb.go:453
↓ 4 callers
Function
file_tx_proto_rawDescGZIP
()
plugin/go/contract/tx.pb.go:344
↓ 4 callers
Function
file_validator_proto_rawDescGZIP
()
fsm/validator.pb.go:369
↓ 4 callers
Function
formatNumber
(nString, div = true, cutoff = 1000000000000000)
cmd/rpc/web/wallet/components/util.js:470
↓ 4 callers
Method
getBlock
getBlock() gets the block bytes from the DB and converts it into a filled BlockResult object including the transactions
store/indexer.go:620
↓ 4 callers
Method
getParams
getParams() is a generic helper function loads the params for a specific ParamSpace into a ptr object
fsm/gov.go:355
↓ 4 callers
Function
newBLSSuite
()
plugin/go/crypto/bls.go:103
↓ 4 callers
Function
newBLSSuite
()
plugin/go/tutorial/crypto/bls.go:103
↓ 4 callers
Function
newPrivateKeyED25519
newPrivateKeyED25519() creates a new ED25519PrivateKey wrapper that satisfies the PrivateKeyI interface
lib/crypto/ed25519.go:23
↓ 4 callers
Function
newSingleAccountStateMachine
(t *testing.T)
fsm/state_test.go:312
↓ 4 callers
Method
newVersionedIterator
newVersionedIterator creates a versioned iterator with configurable iteration strategy. Iterator Strategies: Linear (seek=false): - Walks through al
store/versioned_store.go:229
↓ 4 callers
Method
next
next() finds the next item in the tree based on the current item
store/txn.go:600
↓ 4 callers
Function
nonEmptyHash
nonEmptyHash() ensures the hash isn't empty substituting a dummy hash in its place
fsm/state.go:641
↓ 4 callers
Function
pageHeightReq
(page, height)
cmd/rpc/web/explorer/components/api.js:103
↓ 4 callers
Method
paginatedAddrRequest
(routeName string, address string, p lib.PageParams, ptr any)
cmd/rpc/client.go:983
↓ 4 callers
Function
parseVersion
parseVersion extracts version directly from the last 8 bytes without full parsing
store/versioned_store.go:543
↓ 4 callers
Function
parseVersionedKey
parseVersionedKey() extracts components and converts back from inverted version k = [length-prefixed-key][InvertedVersion] The caller should not modif
store/versioned_store.go:523
↓ 4 callers
Method
poolBalance
()
fsm/dex_test.go:2806
↓ 4 callers
Method
prev
prev() finds the previous item in the tree based on the current item
store/txn.go:637
↓ 4 callers
Function
renderJSONViewer
(tab)
cmd/rpc/web/explorer/components/modal.jsx:300
↓ 4 callers
Method
sendProtoMsg
sendProtoMsg() encodes and sends a length-prefixed proto message to a net.Conn
lib/plugin.go:514
↓ 4 callers
Method
setParams
setParams() converts the ParamSpace into bytes and sets them in state
fsm/gov.go:266
↓ 4 callers
Method
setupTestableHighQC
setupTestableHighQC() creates a testable (liveness, safety, or invalid) highQC and sets up the BFT to accept or reject it under various conditions
bft/mock_test.go:299
↓ 4 callers
Method
simProposeVotePhase
simProposeVotePhase() simulates the PROPOSE-VOTE phase of the BFT lifecycle
bft/mock_test.go:158
↓ 4 callers
Function
solveMod
solveMod solves the modular equation a * x ≡ b (mod m) - s: A particular solution (x) to the equation - t: The step size, such that all solutions are
lib/crypto/classgroup.go:493
↓ 4 callers
Method
txToEIP1559
txToEIP1559() attempts to convert a Canopy transaction to EIP1559 for display only
cmd/rpc/eth.go:853
↓ 4 callers
Method
txnInvalid
txnInvalid() determines if the current in-memory entry is invalid
store/txn.go:453
↓ 4 callers
Method
txnValue
txnValue() returns the value of the current in-memory operation
store/txn.go:476
↓ 4 callers
Function
unmarshal
Unmarshal bytes to protobuf message.
plugin/python/contract/contract.py:130
↓ 4 callers
Method
unmarshalAccount
unmarshalAccount() converts bytes into an Account structure
fsm/account.go:198
↓ 4 callers
Function
upperCaseAndRepUnderscore
(str)
cmd/rpc/web/explorer/components/util.js:111
↓ 3 callers
Method
AddDSE
AddDSE() validates and adds new DoubleSign Evidence to a list of DoubleSignEvidences
bft/evidence.go:137
↓ 3 callers
Method
AddPoints
AddPoints() converts a 'percent control' to points using N = (t × P) / (1 - t) Where N is new_points, t = the desired ownership fraction, and P is the
fsm/account.go:766
↓ 3 callers
Method
AddProposal
[ROUND][PHASE] -> PROPOSAL(s) AddProposal() saves a validated proposal from the Leader in memory
bft/prop.go:23
↓ 3 callers
Method
AddRewardRecipient
AddRewardRecipient() adds a reward recipient to the list of reward recipients in the certificate result
controller/result.go:132
↓ 3 callers
Method
AddVote
AddVote() adds a Replica's vote to the VoteSet
bft/vote.go:51
↓ 3 callers
Method
ApplyAndValidateBlock
INTERNAL HELPERS BELOW ApplyAndValidateBlock() plays the block against the state machine which returns a result that is compared against the candidate
controller/block.go:452
↓ 3 callers
Method
ApplyBlock
ApplyBlock processes a given block, updating the state machine's state accordingly The function: - executes `BeginBlock` - applies all transactions wi
fsm/state.go:106
↓ 3 callers
Method
ApplyTransaction
ApplyTransaction() processes the transaction within the state machine, returning the corresponding TxResult.
fsm/transaction.go:17
↓ 3 callers
Method
ApproveProposal
* On-chain governance: parameter changes and treasury subsidies */ PROPOSAL CODE BELOW ApproveProposal() validates a 'GovProposal' message (ex. MsgCha
fsm/gov.go:17
↓ 3 callers
Method
BlockToHash
BlockToHash() converts block bytes into a hash
bft/bft.go:879
↓ 3 callers
Method
Bytes
Bytes() returns the byte representation of the private key
lib/crypto/secp256k1.go:107
↓ 3 callers
Function
BytesToBLS12381PrivateKey
BytesToBLS12381PrivateKey() creates a new PrivateKeyI interface from a BLS Private Key bytes
lib/crypto/bls.go:54
↓ 3 callers
Function
BytesToSECP256K1Public
BytesToSECP256K1Public() returns SECP256K1PublicKey from bytes
lib/crypto/secp256k1.go:128
↓ 3 callers
Method
BytesWithPrefix
Bytes() returns the byte representation of the Public Key
lib/crypto/eth_secp256k1.go:64
↓ 3 callers
Method
CheckBasic
CheckBasic() executes basic sanity checks on the DoubleSign Evidence It's important to note that DoubleSign evidence may be processed for any height t
bft/evidence.go:189
↓ 3 callers
Method
CheckProposerAndProposal
CheckProposerAndProposal() ensures the Leader message has the correct sender public key and correct ProposalHash
bft/bft.go:606
↓ 3 callers
Method
CheckTx
CheckTx() validates the transaction object
fsm/transaction.go:76
↓ 3 callers
Method
Cleanup
Cleanup() adds polls to 'closed' section if past end height and removes any polls that are older than 4 weeks
fsm/gov_params.go:541
← previous
next →
501–600 of 5,387, ranked by callers