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
↓ 3 callers
Method
Code
()
lib/error.go:11
↓ 3 callers
Function
CommitteesDataPrefix
()
fsm/key.go:73
↓ 3 callers
Method
Decode
Encode() converts the bytes into ClassGroup
lib/crypto/classgroup.go:330
↓ 3 callers
Function
DefaultDataDirPath
DefaultDataDirPath() is $USERHOME/.canopy
lib/config.go:270
↓ 3 callers
Function
DefaultMainConfig
DefaultMainConfig() sets log level to 'info'
lib/config.go:75
↓ 3 callers
Method
DeleteAll
DeleteAll() deletes all key-value pairs under a set of keys
fsm/state.go:564
↓ 3 callers
Method
DeleteDelegations
DeleteDelegations() removes the delegate 'membership' for an address, removing from the list and updating the supply pools
fsm/committee.go:394
↓ 3 callers
Method
DeleteKey
DeleteKey() removes a private key from the store given an address and/or nickname
lib/crypto/keystore.go:185
↓ 3 callers
Method
DeleteOrder
DeleteOrder() deletes an existing order in the order book for a committee in the state db
fsm/swap.go:274
↓ 3 callers
Method
Empty
Empty() indicates whether the sell order is null
lib/swap.go:28
↓ 3 callers
Function
ErrAddressEmpty
()
fsm/error.go:35
↓ 3 callers
Function
ErrEmptyDoubleSigner
()
lib/error.go:579
↓ 3 callers
Function
ErrEmptyMessage
()
bft/error.go:42
↓ 3 callers
Function
ErrFailedPluginRead
(err error)
lib/error.go:872
↓ 3 callers
Function
ErrFailedRead
(err error)
p2p/error.go:44
↓ 3 callers
Function
ErrFailedWrite
(err error)
p2p/error.go:48
↓ 3 callers
Function
ErrGetRequest
(err error)
lib/error.go:808
↓ 3 callers
Function
ErrInvalidCertificateResults
()
fsm/error.go:202
↓ 3 callers
Function
ErrInvalidChainId
()
fsm/error.go:194
↓ 3 callers
Function
ErrInvalidDoubleSigner
()
lib/error.go:663
↓ 3 callers
Function
ErrInvalidERC20Tx
(err error)
fsm/error.go:266
↓ 3 callers
Function
ErrInvalidMessageCast
()
lib/error.go:719
↓ 3 callers
Function
ErrInvalidOpcode
()
fsm/error.go:218
↓ 3 callers
Function
ErrInvalidPluginRespId
()
lib/error.go:888
↓ 3 callers
Function
ErrInvalidQCCommitteeHeight
()
lib/error.go:487
↓ 3 callers
Function
ErrInvalidSignature
()
fsm/error.go:146
↓ 3 callers
Function
ErrInvalidSigner
()
lib/error.go:591
↓ 3 callers
Function
ErrInvalidTxHeight
()
lib/error.go:551
↓ 3 callers
Function
ErrJSONMarshal
(err error)
lib/error.go:363
↓ 3 callers
Function
ErrMaxDexBatchSize
()
fsm/error.go:282
↓ 3 callers
Function
ErrMismatchedProposals
()
bft/error.go:54
↓ 3 callers
Function
ErrOrderLocked
()
lib/error.go:771
↓ 3 callers
Function
ErrPostRequest
(err error)
lib/error.go:804
↓ 3 callers
Function
ErrReadBody
(err error)
lib/error.go:816
↓ 3 callers
Function
ErrUnexpectedFSMToPlugin
(t: string)
plugin/typescript/src/contract/error.ts:43
↓ 3 callers
Function
ErrUnexpectedFSMToPlugin
(t reflect.Type)
plugin/go/contract/error.go:46
↓ 3 callers
Function
ErrWrongBlockHeight
(got, wanted uint64)
lib/error.go:475
↓ 3 callers
Function
ErrWrongPhase
()
lib/error.go:503
↓ 3 callers
Method
EventDexSwap
EventDexSwap() adds an AMM token swap event to the indexer
fsm/event.go:63
↓ 3 callers
Method
EventSlash
EventSlash() adds a validator slashed event
fsm/event.go:13
↓ 3 callers
Function
FilterAndSortPool
filterAndSort() removes zero and nil elements from the pool slice and then sorts the slice by amount finally setting the result to the pointer from th
fsm/account.go:675
↓ 3 callers
Method
FromString
FromString() creates a new PeerAddress object from string (without meta) Peer String example: <some-public-key>@<some-net-address>
lib/peer.go:55
↓ 3 callers
Method
Get
Get() returns the failed transaction associated with its hash
lib/mempool.go:379
↓ 3 callers
Method
Get
Get() retrieves the latest version of a key at or before vs.version
store/versioned_store.go:113
↓ 3 callers
Method
GetAccounts
GetAccounts() returns all Account structures in the state
fsm/account.go:37
↓ 3 callers
Method
GetAllInfos
GetAllInfos() returns the information on connected peers and the total inbound / outbound counts
p2p/set.go:204
↓ 3 callers
Method
GetAuthorizedSignersFor
GetAuthorizedSignersFor() returns the addresses that are authorized to sign for this message
fsm/message.go:638
↓ 3 callers
Method
GetBlockHeaderByHeight
get a block by height
lib/store.go:72
↓ 3 callers
Method
GetBlockMintStats
GetBlockMintStats() gets the latest minting information for the blockchain
fsm/committee.go:37
↓ 3 callers
Method
GetCheckpoint
get if the DoubleSigner is already set for a height
lib/store.go:78
↓ 3 callers
Method
GetDelegateStakedSupplyForChain
GetFromDelegateStakedSupply() retrieves the delegate committee staked supply count
fsm/account.go:525
↓ 3 callers
Method
GetFeeForMessageName
GetFeeForMessageName() returns the associated cost for processing a specific type of message based on the name
fsm/message.go:592
↓ 3 callers
Method
GetHeight
()
cmd/rpc/types.go:140
↓ 3 callers
Method
GetKey
GetKey() returns the PrivateKeyI interface for an address and decrypts it using the password
lib/crypto/keystore.go:142
↓ 3 callers
Method
GetPools
GetPools() returns all Pool structures in the state
fsm/account.go:241
↓ 3 callers
Method
GetQCByHeight
get a page of blocks within the page params
lib/store.go:74
↓ 3 callers
Method
GetSignBytes
GetSignBytes() returns the canonical byte representation of the Transaction for signing and signature verification
lib/tx.go:150
↓ 3 callers
Method
GetUnstakingBlocks
()
fsm/gov.pb.go:403
↓ 3 callers
Method
GetValidatorSet
get root-chain info 'on-demand'
lib/consensus.go:121
↓ 3 callers
Method
GetValidators
GetValidators() returns a slice of all validators
fsm/validator.go:49
↓ 3 callers
Method
GossipMode
GossipMode returns the current gossip mode for the P2P instance
p2p/p2p.go:672
↓ 3 callers
Method
Handle
Handle
cmd/rpc/server.go:330
↓ 3 callers
Method
HandleBatchWithdraw
Two-chain LP accounting: - Mirror liquidity ledger on both chains for symmetry - Outbound deposits/withdraws: update ledger + move tokens - Inbound de
fsm/dex.go:375
↓ 3 callers
Method
HandleCertificateResults
HandleCertificateResults() is a handler for the results of a quorum certificate
fsm/automatic.go:130
↓ 3 callers
Method
HandleMessagePause
HandleMessagePause() is the proper handler for an `Pause` message
fsm/message.go:233
↓ 3 callers
Method
HandleMessageStake
HandleMessageStake() is the proper handler for a `Stake` message (Validator does not yet exist in the state)
fsm/message.go:66
↓ 3 callers
Method
Identity
Identity() returns the element that, when combined with any other element in the group, leaves the other element unchanged
lib/crypto/classgroup.go:298
↓ 3 callers
Method
Import
Import() imports an encrypted private key to the store
lib/crypto/keystore.go:79
↓ 3 callers
Method
IncrementNonSigners
IncrementNonSigners() upserts non-(QC)-signers by incrementing the non-signer count for the list
fsm/byzantine.go:139
↓ 3 callers
Function
IntSqrt
IntSqrt returns the integer square root of n (truncated)
lib/util.go:1003
↓ 3 callers
Function
InvalidSellOrder
()
fsm/error.go:234
↓ 3 callers
Function
IsCandidate
IsCandidate: determines if the Validator is a Candidate from their voting power and VRF output - Creates a candidacy cutoff point for a Validator base
bft/election.go:133
↓ 3 callers
Method
IsProposerMessage
IsProposerMessage() determines if the message should originate from a Validator acting as a Leader
bft/msg.go:256
↓ 3 callers
Method
IsReplicaMessage
IsReplicaMessage() determines if the message should originate from a Validator acting as a Replica (voter)
bft/msg.go:247
↓ 3 callers
Function
JoinLenPrefix
(...toAppend: (Buffer | Uint8Array | null | undefined)[])
plugin/typescript/src/contract/plugin.ts:406
↓ 3 callers
Function
JoinLenPrefix
JoinLenPrefix() appends the items together separated by a single byte to represent the length of the segment
plugin/go/contract/plugin.go:345
↓ 3 callers
Function
KeyForAccount
(addr crypto.AddressI)
fsm/key.go:96
↓ 3 callers
Function
KeyForNonSigner
(a []byte)
fsm/key.go:76
↓ 3 callers
Function
KeyForOrder
(chainId uint64, orderId []byte)
fsm/key.go:78
↓ 3 callers
Function
KeyForPool
(n uint64)
fsm/key.go:75
↓ 3 callers
Method
LoadArray
LoadArray() fills a page from a slice
lib/util.go:133
↓ 3 callers
Method
LoadCertificateHashesOnly
LoadCertificateHashesOnly() loads a quorum certificate but nullifies the block
fsm/state.go:360
↓ 3 callers
Method
LoadIsOwnRoot
IsOwnRoot() returns a boolean if self chain is root
bft/bft.go:957
↓ 3 callers
Method
LoadMinimumEvidenceHeight
LoadMinimumEvidenceHeight() loads the Canopy enforced minimum height for valid Byzantine Evidence
bft/bft.go:974
↓ 3 callers
Method
LoadRootChainInfo
LoadRootChainInfo() returns the 'need-to-know' information for a nested chain
fsm/state.go:436
↓ 3 callers
Function
MerkleTree
MerkleTree() generates a Merkle tree and its root from a list of items
lib/util.go:580
↓ 3 callers
Method
Move
Move() moves the iterator to the given key or the closest item if the key is not found
store/txn.go:556
↓ 3 callers
Function
NewFailedTx
NewFailedTx() attempts to create a new failed transaction from bytes
lib/mempool.go:342
↓ 3 callers
Function
NewHandshake
NewHandshake() executes the authentication protocol between two tcp connections to result in an encryption connection
p2p/encrypt.go:57
↓ 3 callers
Method
NewHeight
NewHeight() initializes / resets consensus variables preparing for the NewHeight
bft/bft.go:658
↓ 3 callers
Function
NewKeyGroup
NewKeyGroup() generates a public key and address that pairs with the private key
lib/crypto/keystore.go:22
↓ 3 callers
Function
NewKeystoreFromFile
NewKeystoreFromFile() creates a new keystore object from a file
lib/crypto/keystore.go:53
↓ 3 callers
Function
NewMessageCache
NewMessageCache() initializes and returns a new MessageCache instance
lib/peer.go:251
↓ 3 callers
Function
NewPublicKeyED25519
NewPublicKeyED25519() returns a ED25519PublicKey reference that satisfies the PublicKeyI interface
lib/crypto/ed25519.go:96
↓ 3 callers
Method
NewStreams
NewStreams() creates map of streams for the multiplexing architecture
p2p/p2p.go:385
↓ 3 callers
Method
NewTestBlock
()
bft/mock_test.go:589
↓ 3 callers
Method
NewTestBlock2
()
bft/mock_test.go:597
↓ 3 callers
Method
NewTestBlockHash2
()
bft/mock_test.go:611
↓ 3 callers
Method
NewTxn
reading and writing indexer
lib/store.go:15
↓ 3 callers
Function
NonSignerPrefix
()
fsm/key.go:67
← previous
next →
601–700 of 5,387, ranked by callers