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
ErrInvalidNetAddress
(s string)
lib/error.go:615
↓ 2 callers
Function
ErrInvalidNetAddressLen
()
fsm/error.go:55
↓ 2 callers
Function
ErrInvalidNumCommittees
()
fsm/error.go:186
↓ 2 callers
Function
ErrInvalidProposalHash
()
fsm/error.go:83
↓ 2 callers
Function
ErrInvalidQCRootChainHeight
()
lib/error.go:491
↓ 2 callers
Function
ErrInvalidRLPTx
(err error)
fsm/error.go:262
↓ 2 callers
Function
ErrInvalidTxMessage
()
fsm/error.go:23
↓ 2 callers
Function
ErrInvalidVDF
()
lib/error.go:535
↓ 2 callers
Function
ErrInvalidValidatorIndex
()
lib/error.go:543
↓ 2 callers
Function
ErrMaxMessageSize
()
p2p/error.go:52
↓ 2 callers
Function
ErrMinimumOrderSize
()
fsm/error.go:226
↓ 2 callers
Function
ErrMismatchConsBlockHash
()
lib/error.go:671
↓ 2 callers
Function
ErrMismatchEvidenceAndHeader
()
lib/error.go:595
↓ 2 callers
Function
ErrMismatchHeaderBlockHash
()
lib/error.go:679
↓ 2 callers
Function
ErrMismatchQCBlockHash
()
lib/error.go:675
↓ 2 callers
Function
ErrNewHeight
()
lib/error.go:479
↓ 2 callers
Function
ErrNilBlockHeader
()
lib/error.go:395
↓ 2 callers
Function
ErrNilNetworkID
()
lib/error.go:423
↓ 2 callers
Function
ErrNoSubsidizedCommittees
(chainId uint64)
lib/error.go:824
↓ 2 callers
Function
ErrNonEquivocatingVote
()
lib/error.go:575
↓ 2 callers
Function
ErrNonNilBlock
()
lib/error.go:387
↓ 2 callers
Function
ErrNonSubsidizedCommittee
()
fsm/error.go:222
↓ 2 callers
Function
ErrOpenDB
(err error)
store/error.go:9
↓ 2 callers
Function
ErrPointHolderNotFound
()
lib/error.go:836
↓ 2 callers
Function
ErrProtoParse
(err error)
lib/error.go:767
↓ 2 callers
Function
ErrPublicKeySize
()
fsm/error.go:71
↓ 2 callers
Function
ErrRecipientAddressEmpty
()
fsm/error.go:39
↓ 2 callers
Function
ErrStakeBelowMininum
()
fsm/error.go:286
↓ 2 callers
Function
ErrStoreDelete
(err error)
store/error.go:33
↓ 2 callers
Function
ErrStoreGet
(err error)
store/error.go:37
↓ 2 callers
Function
ErrStoreSet
(err error)
store/error.go:29
↓ 2 callers
Function
ErrStringToCommittee
(s string)
lib/error.go:820
↓ 2 callers
Function
ErrTimeMachine
(err error)
lib/error.go:800
↓ 2 callers
Function
ErrToAny
(err error)
lib/error.go:371
↓ 2 callers
Function
ErrTooManyDexReceipts
()
lib/error.go:860
↓ 2 callers
Function
ErrTxFeeBelowStateLimit
()
fsm/error.go:27
↓ 2 callers
Function
ErrUnauthorizedTx
()
fsm/error.go:19
↓ 2 callers
Function
ErrUnknownMessage
(x lib.MessageI)
fsm/error.go:87
↓ 2 callers
Function
ErrValidatorIsADelegate
()
fsm/error.go:190
↓ 2 callers
Function
ErrWrongCertHeight
(got, wanted uint64)
lib/error.go:463
↓ 2 callers
Function
ErrWrongRootHeight
()
lib/error.go:483
↓ 2 callers
Method
EthGasPrice
EthGasPrice() returns minimum_fee / eth_gas_limit to be compatible with the
cmd/rpc/eth.go:205
↓ 2 callers
Method
EthGetTransactionByHash
EthGetTransactionByHash() returns an EIP-1559 compatible tx + receipt
cmd/rpc/eth.go:609
↓ 2 callers
Method
EventAutoBeginUnstaking
EventAutoBeginUnstaking() adds a validator automatically begin the unstaking process event
fsm/event.go:23
↓ 2 callers
Method
EventAutoPause
EventAutoPause() adds a validator automatically paused event
fsm/event.go:18
↓ 2 callers
Method
EventDexLiquidityDeposit
EventDexLiquidityDeposit() adds an AMM liquidity deposit event to the indexer
fsm/event.go:74
↓ 2 callers
Method
EventDexLiquidityWithdraw
EventDexLiquidityWithdraw() adds a liquidity withdraw event to the indexer
fsm/event.go:84
↓ 2 callers
Method
EventFinishUnstaking
EventFinishUnstaking() adds a validator completing the unstaking process event
fsm/event.go:28
↓ 2 callers
Method
EventOrderBookSwap
EventOrderBookSwap() adds an order book token swap event to the indexer
fsm/event.go:33
↓ 2 callers
Method
EventReward
EventReward() adds a validator rewarded event
fsm/event.go:8
↓ 2 callers
Method
FindMessageDescriptorForTypeURL
FindMessageDescriptorForTypeURL() uses the formal type url to ID the proto message descriptor
lib/codec.go:209
↓ 2 callers
Method
ForceUnstakeMaxPaused
ForceUnstakeMaxPaused() forcefully unstakes validators who have reached MaxPauseHeight and removes their 'paused' key EXPLAINER: Addresses under the (
fsm/automatic.go:223
↓ 2 callers
Method
ForceUnstakeValidator
ForceUnstakeValidator() automatically begins unstaking the validator
fsm/byzantine.go:237
↓ 2 callers
Function
FromAny
(any: any)
plugin/typescript/src/contract/plugin.ts:387
↓ 2 callers
Function
FromAny
FromAny() converts an anypb.Any type back into a proto.Message
plugin/go/contract/plugin.go:332
↓ 2 callers
Method
FundCommitteeRewardPools
* This file contains logic for 'committees' or validator sets responsible for 'nestedChain' consensus */ FundCommitteeRewardPools() mints newly create
fsm/committee.go:14
↓ 2 callers
Method
GetAccountsPaginated
GetAccountsPaginated() returns a page of Account structures in the state
fsm/account.go:58
↓ 2 callers
Method
GetBookPeers
GetBookPeers() returns all peers in the PeerBook
p2p/book.go:396
↓ 2 callers
Method
GetDelegates
DELEGATIONS BELOW GetDelegates returns the active delegates for a given chainId. If MaximumDelegatesPerCommittee (from governance params) is 0, it wil
fsm/committee.go:333
↓ 2 callers
Method
GetDexPrices
GetDexPrices() returns the prices for all 'locked' batches
fsm/dex.go:687
↓ 2 callers
Method
GetEndHeight
()
fsm/gov_params.go:683
↓ 2 callers
Method
GetFailedForAddress
GetFailedForAddress() returns all the failed transactions in the cache for a given address
lib/mempool.go:396
↓ 2 callers
Method
GetIterations
()
lib/crypto/crypto.pb.go:336
↓ 2 callers
Method
GetLogLevel
GetLogLevel() parses the log string in the config file into a LogLevel Enum
lib/config.go:93
↓ 2 callers
Method
GetLotteryWinner
get the validator set for a chain id using the RPC API
lib/consensus.go:122
↓ 2 callers
Method
GetMerkleProof
GetMerkleProof() returns the merkle proof-of-membership for a given key if it exists, and the proof of non-membership otherwise
store/smt.go:644
↓ 2 callers
Method
GetNonSigners
GetNonSigners() returns the public keys and corresponding percentage of voting power who are not included in the AggregateSignature
lib/consensus.go:199
↓ 2 callers
Method
GetPoolsPaginated
GetPoolsPaginated() returns a particular page of Pool structures in the state
fsm/account.go:262
↓ 2 callers
Method
GetReference
()
lib/event.pb.go:223
↓ 2 callers
Method
GetSignBytes
a stateless - prune friendly, replay attack / hash collision defense (opposed to sequence)
lib/tx.go:56
↓ 2 callers
Method
GetStartHeight
()
fsm/gov_params.go:682
↓ 2 callers
Method
GetTotalEscrowed
GetTotalEscrowed() checks all order books for escrowed funds for a specific address
fsm/swap.go:400
↓ 2 callers
Method
GetTotalSlashPercent
GetTotalSlashPercent() returns the total percent for a slash
fsm/byzantine.go:424
↓ 2 callers
Method
GetTxsByHeightNonPaginated
GetTxsByHeightNonPaginated() returns a slice of transactions ordered by index for a height
store/indexer.go:285
↓ 2 callers
Method
GetValidatorsPaginated
GetValidatorsPaginated() returns a page of filtered validators
fsm/validator.go:72
↓ 2 callers
Method
HandleByzantine
* This file contains logic regarding byzantine actor handling and bond slashes */ HandleByzantine() handles the byzantine (faulty/malicious) participa
fsm/byzantine.go:12
↓ 2 callers
Method
HandleCommitteeSwaps
* This file contains state machine changes related to 'token swapping' */ HandleCommitteeSwaps() when the committee submits a 'certificate results tra
fsm/swap.go:17
↓ 2 callers
Method
HandleDexBatchOrders
HandleRemoteChainLockedBatch() executes AMM logic over a 'batch' of limit orders (1) sorts orders pseudorandomly by last block hash (2) determines suc
fsm/dex.go:312
↓ 2 callers
Method
HandleDoubleSigners
HandleDoubleSigners() validates, sets, and slashes the list of doubleSigners
fsm/byzantine.go:176
↓ 2 callers
Method
HandleMessage
* All things related to transaction payloads (Messages) */ MESSAGE HANDLER CODE BELOW HandleMessage() routes the MessageI to the correct `handler` bas
fsm/message.go:15
↓ 2 callers
Method
HandleMessageCertificateResults
HandleMessageCertificateResults() is the proper handler for a `CertificateResults` message
fsm/message.go:321
↓ 2 callers
Method
HandleMessageCreateOrder
HandleMessageCreateOrder() is the proper handler for a `CreateOrder` message
fsm/message.go:381
↓ 2 callers
Method
HandleMessageDAOTransfer
HandleMessageDAOTransfer() is the proper handler for a `DAO-Transfer` message
fsm/message.go:307
↓ 2 callers
Method
HandleMessageDeleteOrder
HandleMessageDeleteOrder() is the proper handler for a `DeleteOrder` message
fsm/message.go:466
↓ 2 callers
Method
HandleMessageEditOrder
HandleMessageEditOrder() is the proper handler for a `EditOrder` message
fsm/message.go:412
↓ 2 callers
Method
HandleMessageEditStake
HandleMessageEditStake() is the proper handler for a `Edit-Stake` message (Validator already exists in the state)
fsm/message.go:146
↓ 2 callers
Method
HandleMessageSend
HandleMessageSend() is the proper handler for a `Send` message
fsm/message.go:56
↓ 2 callers
Method
HandleMessageSubsidy
HandleMessageSubsidy() is the proper handler for a `Subsidy` message
fsm/message.go:362
↓ 2 callers
Method
HandleMessageUnpause
HandleMessageUnpause() is the proper handler for an `Unpause` message
fsm/message.go:265
↓ 2 callers
Method
HandleMessageUnstake
HandleMessageUnstake() is the proper handler for an `Unstake` message
fsm/message.go:199
↓ 2 callers
Method
HandlePeerBlock
HandlePeerBlock() validates and handles an inbound certificate (with a block) from a remote peer
controller/block.go:504
↓ 2 callers
Method
HashKey
Key() creates a 'HashKey' with a given block hash
lib/dex.go:112
↓ 2 callers
Function
IdFromKey
(k []byte)
fsm/key.go:119
↓ 2 callers
Method
IndexDoubleSigner
save a block by hash and height
lib/store.go:53
↓ 2 callers
Method
IndexTx
save a quorum certificate by height
lib/store.go:51
↓ 2 callers
Method
Initialize
Initialize() initializes a StateMachine object using the StoreI
fsm/state.go:79
↓ 2 callers
Function
InitializeDataDirectory
InitializeDataDirectory() populates the data directory with configuration and data files if missing
cmd/cli/cli.go:155
↓ 2 callers
Method
IsProposer
IsProposer() returns true if specific public key is the expected Leader public key
bft/bft.go:812
↓ 2 callers
Function
KeyForAccount
(addr: Uint8Array)
plugin/typescript/src/contract/contract.ts:310
↓ 2 callers
Function
KeyForAccount
KeyForAccount() returns the state database key for an account
plugin/go/contract/contract.go:273
← previous
next →
901–1,000 of 5,387, ranked by callers