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
Method
EthSyncing
EthSyncing() returns the syncing status of the node
cmd/rpc/eth.go:182
↓ 1 callers
Method
EthUninstallFilter
EthUninstallFilter() deletes a filter object
cmd/rpc/eth.go:744
↓ 1 callers
Method
EventOrderBookLock
EventOrderBookLock() adds an order book lock event to the indexer when an order is reserved
fsm/event.go:46
↓ 1 callers
Method
EventOrderBookReset
EventOrderBookReset() adds an order book reset event to the indexer when a locked order is reset
fsm/event.go:56
↓ 1 callers
Method
EventsByAddress
EventsByAddress response with the events of address a
cmd/rpc/query.go:439
↓ 1 callers
Method
EventsByChainId
(id uint64, params lib.PageParams)
cmd/rpc/client.go:97
↓ 1 callers
Method
EventsByHeight
EventsByHeight response with the events at block height h
cmd/rpc/query.go:431
↓ 1 callers
Function
EvmChainIdToCanopyIds
ChainId translation design: evmChainId is High 32 bits = networkId and Low 32 bits = chainId - avoids conflicts with existing Ethereum chain IDs - mer
fsm/ethereum.go:216
↓ 1 callers
Function
Execute
()
cmd/cli/cli.go:66
↓ 1 callers
Function
Extract
Extract decompresses a tar.gz file using the `tar` command. Requires `tar` to be installed and available in the system's PATH
cmd/auto-update/updater.go:293
↓ 1 callers
Function
FailedTransactions
(page, sender)
cmd/rpc/web/wallet/components/api.js:377
↓ 1 callers
Method
FindMessageDescriptorForMessageType
FindMessageDescriptorForMessageType() uses the short message name (common name) to ID the proto message descriptor
lib/codec.go:226
↓ 1 callers
Method
First
First() positions the iterator at the first valid entry based on the traversal direction
store/txn.go:353
↓ 1 callers
Method
Flush
Flush() writes the current state to the batch writer without actually committing it
store/store.go:277
↓ 1 callers
Function
FormatParamSpace
FormatParamSpace() converts a user inputted ParamSpace string into the proper ParamSpace name
fsm/gov_params.go:202
↓ 1 callers
Function
GET
(url, path)
cmd/rpc/web/explorer/components/api.js:61
↓ 1 callers
Function
GETText
(url, path)
cmd/rpc/web/wallet/components/api.js:79
↓ 1 callers
Method
Genesis
(_request: any)
plugin/typescript/src/contract/contract.ts:52
↓ 1 callers
Method
Genesis
Genesis() implements logic to import a json file to create the state at height 0 and export the state at any height
plugin/go/contract/contract.go:58
↓ 1 callers
Method
Genesis
Genesis() is the fsm calling the genesis function of the plugin
lib/plugin.go:64
↓ 1 callers
Method
GetBegin
()
plugin/go/contract/plugin.pb.go:109
↓ 1 callers
Method
GetBlockByHeight
GetBlockByHeight() returns the block result by height key
store/indexer.go:119
↓ 1 callers
Method
GetBlocks
get a block by height without transactions
lib/store.go:73
↓ 1 callers
Method
GetBytes
()
p2p/p2p.pb.go:146
↓ 1 callers
Method
GetCheck
()
plugin/go/contract/plugin.pb.go:118
↓ 1 callers
Method
GetConsensus
()
fsm/gov.pb.go:147
↓ 1 callers
Method
GetDeliver
()
plugin/go/contract/plugin.pb.go:127
↓ 1 callers
Method
GetDexPrice
GetDexPrice() returns the chain price
fsm/dex.go:677
↓ 1 callers
Method
GetDoubleSigners
GetDoubleSigners() returns all double signers save in the state IMPORTANT NOTE: this returns <address> -> <heights> NOT <pubic_key> -> <heights> CONTR
fsm/byzantine.go:134
↓ 1 callers
Method
GetDoubleSignersAsOf
all double signers in the indexer
lib/store.go:76
↓ 1 callers
Method
GetElectionCandidates
GetElectionCandidates() retrieves ELECTION messages, verifies, and returns the candidate(s)
bft/prop.go:84
↓ 1 callers
Method
GetEnd
()
plugin/go/contract/plugin.pb.go:136
↓ 1 callers
Method
GetEventsByAddress
get Events for a block height
lib/store.go:68
↓ 1 callers
Method
GetEventsByBlockHeight
get Transactions for a recipient
lib/store.go:67
↓ 1 callers
Method
GetEventsByChainId
get Events for an address
lib/store.go:69
↓ 1 callers
Method
GetEventsNonPaginated
GetEventsNonPaginated() returns a slice of events ordered by index for a height
store/indexer.go:432
↓ 1 callers
Method
GetFailedTxsPage
GetFailedTxsPage() returns a list of failed mempool transactions
controller/tx.go:319
↓ 1 callers
Method
GetFee
()
fsm/gov.pb.go:161
↓ 1 callers
Method
GetGenesis
()
plugin/go/contract/plugin.pb.go:100
↓ 1 callers
Method
GetGovernance
()
fsm/gov.pb.go:168
↓ 1 callers
Method
GetHash
GetHash() returns the cryptographic hash of the Transaction
lib/tx.go:134
↓ 1 callers
Method
GetHeader
()
bft/bft.pb.go:103
↓ 1 callers
Method
GetHeight
the type of message the transaction contains
lib/tx.go:44
↓ 1 callers
Method
GetIndex
the block number the transaction is included in
lib/tx.go:45
↓ 1 callers
Method
GetKey
()
lib/store.pb.go:168
↓ 1 callers
Method
GetLatestRelease
GetLatestRelease returns the latest valid release for the system from the GitHub API
cmd/auto-update/updater.go:81
↓ 1 callers
Method
GetLeadingVote
GetLeadingVote() returns the unique Vote Message that has the most power behind it and the number and percent voted that voted for it
bft/vote.go:41
↓ 1 callers
Method
GetLocalDSE
GetLocalDSE() returns the double sign evidences collected by the local node
bft/evidence.go:174
↓ 1 callers
Method
GetMaxBlockSize
GetMaxBlockSize() returns the maximum size of a block
fsm/state.go:425
↓ 1 callers
Method
GetMaxValidators
GetMaxValidators() returns the max validators per committee
fsm/state.go:414
↓ 1 callers
Method
GetMinimumEvidenceHeight
check if a double signer is valid for an address for a specific 'double sign height'
lib/consensus.go:127
↓ 1 callers
Method
GetMostRecentCheckpoint
get the checkpoint block hash for a certain committee and height combination
lib/store.go:79
↓ 1 callers
Method
GetOrders
get the delegate 'lottery winner' for a chain id
lib/consensus.go:123
↓ 1 callers
Method
GetPendingPage
GetPendingPage() returns a page of unconfirmed mempool transactions
controller/tx.go:291
↓ 1 callers
Method
GetPoolPoints
()
lib/dex.pb.go:336
↓ 1 callers
Method
GetProposalBlockFromMempool
GetProposalBlockFromMempool() returns the cached proposal block
controller/tx.go:84
↓ 1 callers
Method
GetProposalHash
()
fsm/gov_params.go:684
↓ 1 callers
Function
GetRawProtoField
GetRawProtoField extracts the raw bytes for field number from a proto message
lib/codec/codec.go:57
↓ 1 callers
Method
GetRecipient
the sender of the transaction
lib/tx.go:42
↓ 1 callers
Method
GetReference
GetReference() is an accessor for the reference string
lib/event.go:51
↓ 1 callers
Method
GetRootChainInfo
get the height of the root chain
lib/consensus.go:120
↓ 1 callers
Method
GetRootChainLotteryWinner
GetRootChainLotteryWinner() gets the pseudorandomly selected delegate to reward and their cut
controller/controller.go:222
↓ 1 callers
Method
GetRound
()
lib/consensus.pb.go:248
↓ 1 callers
Method
GetSender
()
lib/tx.go:41
↓ 1 callers
Method
GetSigners
GetSigners() returns the public keys and corresponding combined voting power of those who signed
lib/consensus.go:191
↓ 1 callers
Method
GetStateRead
()
lib/plugin.pb.go:160
↓ 1 callers
Method
GetStateWrite
()
lib/plugin.pb.go:169
↓ 1 callers
Method
GetTotalPoolPoints
()
fsm/account.pb.go:167
↓ 1 callers
Method
GetTxHash
the index of the transaction in the block
lib/tx.go:46
↓ 1 callers
Method
GetTxsByHeight
get the tx by the Transaction hash
lib/store.go:64
↓ 1 callers
Method
GetTxsByRecipient
get Transactions for a sender
lib/store.go:66
↓ 1 callers
Method
GetTxsBySender
get Transactions for a height
lib/store.go:65
↓ 1 callers
Method
GetValidateMessageParams
GetValidateMessageParams() executes a blocking function to collect the params needed to validate a consensus message
bft/msg.go:284
↓ 1 callers
Method
GetValidator
GetValidator() retrieves a validator from the ValidatorSet using the public key
lib/consensus.go:89
↓ 1 callers
Method
GetVrf
()
bft/bft.pb.go:110
↓ 1 callers
Method
GossipBlock
PUBLISHERS BELOW GossipBlock() gossips a certificate (with block) through the P2P network for a specific chainId
controller/block.go:98
↓ 1 callers
Method
GossipBlock
GossipBlock() is a P2P call to gossip a completed Quorum Certificate with a Proposal
bft/bft.go:945
↓ 1 callers
Method
GossipBlock
(certificate *lib.QuorumCertificate, sender []byte, timestamp uint64)
bft/mock_test.go:581
↓ 1 callers
Method
GossipConsensus
GossipConsensus() gossips a consensus message through the P2P network for a specific chainId
controller/consensus.go:364
↓ 1 callers
Method
GracefulShutdown
GracefulShutdown stops the coordinator while giving a grace period to the canopy process to stop
cmd/auto-update/coordinator.go:220
↓ 1 callers
Method
GrandParent
GrandParent() returns the grandparent of the last node traversed (current)
store/smt.go:1115
↓ 1 callers
Method
HandleCheckpoint
HandleCheckpoint() handles the `checkpoint-as-a-service` root-chain functionality NOTE: this will index self checkpoints - but allows for nested-chain
fsm/automatic.go:198
↓ 1 callers
Method
HandleDex
HandleDex() populates the certificate with 'dex' information
controller/result.go:278
↓ 1 callers
Method
HandleDexBatch
* Dex.go implements logic to handle AMM style atomic exchanges between root & nested chains not to be confused with 1 way order book swaps implemen
fsm/dex.go:62
↓ 1 callers
Method
HandleLivenessFallback
HandleLivenessFallback() refunds orders, liquidity deposits, and mirrors the root chain's liquidity points
fsm/dex.go:561
↓ 1 callers
Method
HandleOrderReceipts
HandleOrderReceipts() handles receipts for orders within our locked batch
fsm/dex.go:267
↓ 1 callers
Method
HandlePhase
HandlePhase() is the main BFT Phase stepping loop
bft/bft.go:161
↓ 1 callers
Method
HandleReceiptsForOurLockedBatch
HandleReceiptsForOurLockedBatch() 1. processes receipts for our locked batch
fsm/dex.go:197
↓ 1 callers
Method
HandleRemoteChainLockedBatch
HandleRemoteChainLockedBatch() 2. handles the locked batch for the remote chain, producing receipts
fsm/dex.go:243
↓ 1 callers
Method
HandleRetired
HandleRetired() checks if the committee is retiring and sets in the results accordingly
controller/result.go:263
↓ 1 callers
Method
HandleSwaps
HandleSwaps() handles the 'buy' side of the sell orders
controller/result.go:186
↓ 1 callers
Method
HandleTransactions
HandleTransactions() attempts to add a transaction to the mempool by validating, adding, and evicting overfull or newly invalid txs
controller/tx.go:198
↓ 1 callers
Method
Handshake
()
plugin/typescript/src/contract/plugin.ts:90
↓ 1 callers
Method
Handshake
Handshake() sends the contract configuration to the FSM and awaits a reply
plugin/go/contract/plugin.go:72
↓ 1 callers
Method
HasChain
HasChain() returns if the PeerInfo has a chain under the PeerAddresses' PeerMeta
lib/peer.go:219
↓ 1 callers
Method
HasNext
HasNext() returns true if there are more items after current
store/txn.go:650
↓ 1 callers
Function
Hasher
* Hash is a function that takes an input message and returns a fixed-size string of bytes that is unique to the input to produce a short, fixed-l
lib/crypto/hash.go:25
↓ 1 callers
Function
Height
()
cmd/rpc/web/wallet/components/api.js:365
↓ 1 callers
Method
IncreaseVersion
flush all operations to the underlying 'writer' without committing
lib/store.go:26
↓ 1 callers
Method
IndexCheckpoint
save a double signer for a height
lib/store.go:54
← previous
next →
1,601–1,700 of 5,387, ranked by callers