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
↓ 1 callers
Function
Account
(height, address)
cmd/rpc/web/wallet/components/api.js:302
↓ 1 callers
Function
Account
(height, address)
cmd/rpc/web/explorer/components/api.js:137
↓ 1 callers
Method
Account
Account responds with an account for the specified address
cmd/rpc/query.go:62
↓ 1 callers
Function
AccountWithTxs
(height, address, nickname, page)
cmd/rpc/web/wallet/components/api.js:330
↓ 1 callers
Function
AccountWithTxs
(height, address, page)
cmd/rpc/web/explorer/components/api.js:141
↓ 1 callers
Function
Accounts
(page, _)
cmd/rpc/web/explorer/components/api.js:121
↓ 1 callers
Method
Accounts
Accounts responds with accounts based on the page parameters
cmd/rpc/query.go:70
↓ 1 callers
Method
Add
Add() adds a failed transaction with its error to the cache
lib/mempool.go:367
↓ 1 callers
Method
Add
Add() records a 'new height' for a sender and height
lib/peer.go:307
↓ 1 callers
Method
Add
Add() adds a peer to the book in sorted order by public key
p2p/book.go:293
↓ 1 callers
Method
AddIfHas
AddIfHas() records a 'new height' for a sender and height only if it already contains this block
lib/peer.go:329
↓ 1 callers
Method
AddPacemakerMessage
[ public_key_string ] -> View message AddPacemakerMessage() adds the 'View' message to the list (keyed by public key string)
bft/bft.go:586
↓ 1 callers
Method
AddPartialQC
[ PayloadHash ] -> Partial QC AddPartialQC() saves a non-majority Quorum Certificate which is a big hint of faulty behavior
bft/evidence.go:250
↓ 1 callers
Method
AddSlash
AddSlash() adds a slash for an address at by a committee for a certain percent
fsm/byzantine.go:418
↓ 1 callers
Method
AddSubscriber
Add() adds the client to the manager
cmd/rpc/sock.go:543
↓ 1 callers
Method
AddSubscription
Add() adds the client to the manager
cmd/rpc/sock.go:448
↓ 1 callers
Function
AddVote
(json, approve)
cmd/rpc/web/wallet/components/api.js:314
↓ 1 callers
Function
AnyFromJSONForMessageType
AnyFromJSONForMessageType() converts JSON into anypb
lib/codec.go:73
↓ 1 callers
Function
AnyFromProtoJSON
AnyFromProtoJSON() converts JSON into a protobuf.Any
lib/codec.go:61
↓ 1 callers
Function
AppendWithBuffer
AppendWithBuffer() appends a and b into a fresh []byte using a buffer to reduce allocations. The result is safe to retain and use independently of a/b
lib/util.go:954
↓ 1 callers
Method
ApplyUpdate
ApplyUpdate coordinates the update process, stopping the old process and starting the new one while applying a snapshot if required
cmd/auto-update/coordinator.go:262
↓ 1 callers
Method
BeginBlock
(_request: any)
plugin/typescript/src/contract/contract.ts:58
↓ 1 callers
Method
BeginBlock
BeginBlock() is code that is executed at the start of `applying` the block
plugin/go/contract/contract.go:63
↓ 1 callers
Function
BigLess
BigLess() compares two big.Int values and returns true if the first is less
lib/util.go:593
↓ 1 callers
Method
Bitmap
Bitmap() returns a bitfield where each bit represents the signing status of a specific signer in the public key list. A set bit (1) indicates the sign
lib/crypto/bls.go:338
↓ 1 callers
Function
BlockByHash
(hash)
cmd/rpc/web/explorer/components/api.js:165
↓ 1 callers
Method
BlockByHash
BlockByHash responds with block with hash h
cmd/rpc/query.go:407
↓ 1 callers
Function
BlockByHeight
(height)
cmd/rpc/web/explorer/components/api.js:161
↓ 1 callers
Method
BlockByHeight
BlockByHeight responds with the block data found at a specific height
cmd/rpc/query.go:395
↓ 1 callers
Method
Blocks
Blocks responds with a page of blocks based on the page parameters
cmd/rpc/query.go:413
↓ 1 callers
Method
Bytes
Bytes() casts the private key to bytes
lib/crypto/ed25519.go:57
↓ 1 callers
Function
BytesToBLS12381PrivateKey
BytesToBLS12381PrivateKey creates a private key from bytes
plugin/go/crypto/bls.go:25
↓ 1 callers
Function
BytesToBLS12381PrivateKey
BytesToBLS12381PrivateKey creates a private key from bytes
plugin/go/tutorial/crypto/bls.go:25
↓ 1 callers
Function
BytesToBLS12381PublicKey
BytesToBLS12381PublicKey creates a public key from bytes
plugin/go/crypto/bls.go:77
↓ 1 callers
Function
BytesToBLS12381PublicKey
BytesToBLS12381PublicKey creates a public key from bytes
plugin/go/tutorial/crypto/bls.go:77
↓ 1 callers
Method
CalculateRewardRecipients
CalculateRewardRecipients() calculates the block reward recipients of the proposal
controller/result.go:74
↓ 1 callers
Method
CertByHeight
CertByHeight response with the quorum certificate at height h
cmd/rpc/query.go:401
↓ 1 callers
Method
Check
Check() validates the QC by cross-checking the aggregate signature against the ValidatorSet isPartialQC means a valid aggregate signature, but not eno
lib/certificate.go:115
↓ 1 callers
Method
Check
Check() validates the Validator params
fsm/gov_params.go:244
↓ 1 callers
Method
Check
Check() validates the Fee params
fsm/gov_params.go:369
↓ 1 callers
Method
Check
Check() validates the Governance params
fsm/gov_params.go:428
↓ 1 callers
Method
CheckAndApplyUpdate
CheckAndApplyUpdate performs a single update check and applies if needed
cmd/auto-update/coordinator.go:234
↓ 1 callers
Method
CheckAndSetLastCertificate
CheckAndSetLastCertificate() validates the last quorum certificate included in the block and sets it in the ephemeral indexer NOTE: This must come bef
controller/block.go:586
↓ 1 callers
Method
CheckBasic
CheckBasic() validates the basic structure and length of the AggregateSignature
lib/consensus.go:133
↓ 1 callers
Method
CheckBasic
QUORUM CERTIFICATE CODE BELOW CheckBasic() performs 'sanity' checks on the Quorum Certificate structure
lib/certificate.go:36
↓ 1 callers
Method
CheckForPollTransaction
CheckForPollTransaction() populates the poll.json file from embeds if the embed exists in the memo field
fsm/gov_params.go:500
↓ 1 callers
Method
CheckHighQC
CheckHighQC() performs validation on the special `HighQC` (justify unlock QC)
lib/certificate.go:191
↓ 1 callers
Method
CheckMempool
CheckMempool() periodically checks the mempool: - Validates all transactions in the mempool - Caches a proposal block based on the current state and t
controller/tx.go:92
↓ 1 callers
Method
CheckMessageSend
(msg: any)
plugin/typescript/src/contract/contract.ts:70
↓ 1 callers
Method
CheckMessageSend
CheckMessageSend() statelessly validates a 'send' message
plugin/go/contract/contract.go:126
↓ 1 callers
Method
CheckProposerMessage
CheckProposerMessage() validates an inbound message from the Leader Validator
bft/msg.go:56
↓ 1 callers
Method
CheckReplicaMessage
CheckReplicaMessage() validates an inbound message from a Replica Validator
bft/msg.go:151
↓ 1 callers
Method
CheckTx
(contract: Contract, request: any)
plugin/typescript/src/contract/contract.ts:96
↓ 1 callers
Method
CheckTx
CheckTx() is code that is executed to statelessly validate a transaction
plugin/go/contract/contract.go:68
↓ 1 callers
Method
Clear
retrieve transactions from the highest fee to lowest
lib/mempool.go:23
↓ 1 callers
Method
Combine
Combine() merges the Reward Recipients' Payment Percents of the current Proposal with those of another Proposal such that the Payment Percentages may
lib/certificate.go:1075
↓ 1 callers
Method
CommitCertificate
CommitCertificate() is executed after the quorum agrees on a block - applies block against the fsm - indexes the block and its transactions - removes
controller/block.go:229
↓ 1 callers
Method
CommitParallel
CommitParallel(): sorts the operations in 8 subtree threads, executes those threads in parallel and combines them into the master tree
store/smt.go:193
↓ 1 callers
Function
Committee
(page, chain_id)
cmd/rpc/web/explorer/components/api.js:129
↓ 1 callers
Method
Committee
Committee returns a page of committee members ordered from the highest stake to lowest
cmd/rpc/query.go:110
↓ 1 callers
Method
CommitteeData
CommitteeData retrieves the committee data for the specified chain id
cmd/rpc/query.go:158
↓ 1 callers
Method
CommitteesData
CommitteesData retrieves all committee data
cmd/rpc/query.go:166
↓ 1 callers
Method
Compact
Compact runs Pebble range compaction over the latest and optional historic state prefixes.
store/store.go:489
↓ 1 callers
Method
Config
Config retrieves the node's configuration file
cmd/rpc/admin.go:522
↓ 1 callers
Function
ConsensusInfo
()
cmd/rpc/web/wallet/components/api.js:713
↓ 1 callers
Method
ConsensusSummary
ConsensusSummary() for the RPC - returns the summary json object of the bft for a specific chainID
controller/consensus.go:743
↓ 1 callers
Method
Copy
Copy() makes a deep copy of the limit order
lib/dex.go:50
↓ 1 callers
Method
Copy
Copy() returns a reference to a clone of the View
lib/consensus.go:513
↓ 1 callers
Method
Copy
PEER ADDRESS CODE BELOW Copy() returns a deep clone of the PeerAddress
lib/peer.go:40
↓ 1 callers
Method
Copy
Copy() returns a reference to a clone of the PeerMeta
lib/peer.go:191
↓ 1 callers
Method
Copy
PEER INFO CODE BELOW Copy() returns a reference to a clone of the PeerInfo
lib/peer.go:207
↓ 1 callers
Method
CopyOrders
CopyOrders() creates 2 copies of the dex limit orders with hash keys
lib/dex.go:88
↓ 1 callers
Function
DAO
(height, _)
cmd/rpc/web/explorer/components/api.js:133
↓ 1 callers
Function
DefaultConfig
DefaultConfig() returns the default configuration
plugin/go/contract/plugin.go:380
↓ 1 callers
Method
Del
Del() removes a GovProposalWithVote from the list
fsm/gov_params.go:712
↓ 1 callers
Function
DelVote
(json)
cmd/rpc/web/wallet/components/api.js:318
↓ 1 callers
Method
DelVote
DelVote removes a vote from a proposal
cmd/rpc/admin.go:615
↓ 1 callers
Method
Delete
Delete() marks a key for deletion in the txn operations
store/txn.go:128
↓ 1 callers
Method
DeleteAt
(key []byte, version uint64)
store/txn.go:78
↓ 1 callers
Method
DeleteAt
DeleteAt() marks a key as deleted at the given version
store/versioned_store.go:103
↓ 1 callers
Method
DeleteAtIndex
AddFailedDialAttempt() increments the failed dial attempt counter for a BookPeer
p2p/book.go:381
↓ 1 callers
Method
DeleteCheckpointsForChain
deletes a certificate for a height
lib/store.go:58
↓ 1 callers
Method
DeleteCommitteeMember
DeleteCommitteeMember() removes the address from being a 'member' of the committee in the state
fsm/committee.go:325
↓ 1 callers
Method
DeleteDelegate
DeleteDelegate() removes a delegate from the state using the delegate prefix
fsm/committee.go:418
↓ 1 callers
Method
DeleteTxsForHeight
DeleteTxsForHeight() deletes the transaction object for a specific height
store/indexer.go:300
↓ 1 callers
Method
DeliverMessageSend
(contract: Contract, msg: any, fee: Long | number | undefined)
plugin/typescript/src/contract/contract.ts:170
↓ 1 callers
Method
DeliverMessageSend
DeliverMessageSend() handles a 'send' message
plugin/go/contract/contract.go:144
↓ 1 callers
Method
DeliverTx
(contract: Contract, request: any)
plugin/typescript/src/contract/contract.ts:150
↓ 1 callers
Method
DeliverTx
DeliverTx() is code that is executed to apply a transaction
plugin/go/contract/contract.go:105
↓ 1 callers
Method
DeliverTx
DeliverTx() is the fsm calling the deliver_tx function of the plugin
lib/plugin.go:150
↓ 1 callers
Method
Descriptor
()
lib/consensus.pb.go:136
↓ 1 callers
Method
Descriptor
Deprecated: Use View.ProtoReflect.Descriptor instead.
lib/consensus.pb.go:216
↓ 1 callers
Method
Descriptor
()
fsm/gov.pb.go:78
↓ 1 callers
Method
Descriptor
Deprecated: Use Params.ProtoReflect.Descriptor instead.
fsm/gov.pb.go:143
↓ 1 callers
Function
DexBatch
(committee_id)
cmd/rpc/web/explorer/components/api.js:193
↓ 1 callers
Method
DexPrice
DexPrice retrieves the latest dex price for a committee
cmd/rpc/query.go:300
↓ 1 callers
Method
DialForOutboundPeers
DialForOutboundPeers() uses the config and peer book to try to max out the outbound peer connections
p2p/p2p.go:176
↓ 1 callers
Method
Discard
Discard() clears all in-memory operations and resets the sorted key list
store/txn.go:183
↓ 1 callers
Method
DistributeCommitteeReward
DistributeCommitteeReward() issues a single committee reward unit based on an individual 'Payment Stub'
fsm/committee.go:178
↓ 1 callers
Method
DistributeCommitteeRewards
DistributeCommitteeRewards() distributes the committee mint based on the PaymentPercents from the result of the QuorumCertificate
fsm/committee.go:115
← previous
next →
1,301–1,400 of 5,387, ranked by callers