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
Method
Syncing
Syncing() returns if any of the supported chains are currently syncing
controller/controller.go:397
↓ 2 callers
Method
Syncing
Syncing() returns true if the plugin is currently syncing
bft/bft.go:959
↓ 2 callers
Method
TxCount
reset the entire store
lib/mempool.go:24
↓ 2 callers
Method
TxVotePoll
(from AddrOrNickname, pollJSON json.RawMessage, pollApprove bool, pwd string, submit bool, optFee uint64)
cmd/rpc/client.go:814
↓ 2 callers
Method
TxnWrap
TxnWrap() is an atomicity and consistency feature that enables easy rollback of changes by discarding the transaction if an error occurs
fsm/state.go:599
↓ 2 callers
Function
Uint64Percentage
Uint64Percentage() calculates the percentage of an amount
lib/util.go:614
↓ 2 callers
Function
UnstakingPrefix
(h uint64)
fsm/key.go:68
↓ 2 callers
Method
UpdateLastProposers
LAST PROPOSERS CODE BELOW UpdateLastProposers() adds an address to the 'last proposers'
fsm/automatic.go:247
↓ 2 callers
Method
UpdateP2PMustConnect
INTERNAL HELPERS BELOW UpdateP2PMustConnect() tells the P2P module which nodes are *required* to be connected to (usually fellow committee members or
controller/consensus.go:572
↓ 2 callers
Method
UpdateTelemetry
UpdateTelemetry() updates the prometheus metrics after 'committing' a block
controller/block.go:657
↓ 2 callers
Method
VDFSeed
VDFSeed() generates the seed for the verifiable delay service
bft/bft.go:850
↓ 2 callers
Function
ValidNetURLInput
ValidNetURLInput() validates the input netURL via regex Allow: - optional tcp:// prefix - valid hostname - valid ip4 and ip6 address - optional port (
lib/util.go:700
↓ 2 callers
Method
ValidateGenesisState
ValidateGenesisState() validates a GenesisState object
fsm/genesis.go:105
↓ 2 callers
Method
ValidatorSet
ValidatorSet retrieves the ValidatorSet that is responsible for the chainId
cmd/rpc/query.go:118
↓ 2 callers
Function
VerifyCandidate
VerifyCandidate verifies that a remote peer is in fact a Leader Candidate by running the IsCandidate function using the provided VRF out
bft/election.go:66
↓ 2 callers
Method
VerifyProof
Get gets the bytes for a compact merkle proof
lib/store.go:99
↓ 2 callers
Function
WeightedPseudorandom
WeightedPseudorandom() generates an index for the 'token' that the winner has in their stake
lib/consensus.go:803
↓ 2 callers
Method
WriteToFile
WriteToFile() saves the Config object to a JSON file
lib/config.go:336
↓ 2 callers
Method
WriteToFile
WriteToFile() saves the peer book object to a json file
p2p/book.go:399
↓ 2 callers
Method
addPaymentPercent
addPaymentPercent() is a helper function to add a payment percent to the certificate result
controller/result.go:162
↓ 2 callers
Method
addToSupplyPool
addToSupplyPool() adds to a supply pool using an addition callback with 'executeOnSupplyPool'
fsm/account.go:571
↓ 2 callers
Function
addVoteAPI
(json, approve)
cmd/rpc/web/wallet/components/governance.jsx:152
↓ 2 callers
Function
addressNicknameAndPwdRequest
(address, password, nickname)
cmd/rpc/web/wallet/components/api.js:128
↓ 2 callers
Method
advanceToNextKey
advanceToNextKey() advances to the next unique 'user key'
store/versioned_store.go:346
↓ 2 callers
Function
affordableAmount
(avail uint64, cap uint64, rng *rand.Rand)
fsm/dex_test.go:2816
↓ 2 callers
Function
appendUnknownField
(b []byte)
lib/util_test.go:516
↓ 2 callers
Function
argToBool
(arg string)
cmd/cli/query.go:508
↓ 2 callers
Function
argToCommittees
(arg string)
cmd/cli/admin.go:443
↓ 2 callers
Method
begin_block
BeginBlock is code that is executed at the start of applying the block.
plugin/python/contract/contract.py:164
↓ 2 callers
Method
blockHashKey
(hash []byte)
store/indexer.go:800
↓ 2 callers
Function
blockTagFromArgs
blockTagFromArgs() handles the optional block tag ethereum parameter
cmd/rpc/eth.go:1364
↓ 2 callers
Method
blockToEIP1559Block
MAJOR HELPER FUNCTIONS BELOW blockToEIP1559Block() attempts to convert a Canopy block to a EIP1559Block for display only
cmd/rpc/eth.go:801
↓ 2 callers
Function
boolFromArgs
boolFromArgs() extracts a bool from the second argument
cmd/rpc/eth.go:1354
↓ 2 callers
Function
checkCommittees
checkCommittees() validates the committees list in the message
fsm/message_helpers.go:951
↓ 2 callers
Function
checkExternalAddress
checkExternalAddress() validates an address from an external blockchain
fsm/message_helpers.go:897
↓ 2 callers
Function
checkOutputAddress
checkOutputAddress() validates the rewards address in the Message
fsm/message_helpers.go:925
↓ 2 callers
Function
checkSignature
checkSignature() validates the signature of a SignByte implementation (object that can be converted to Sign Bytes)
bft/msg.go:320
↓ 2 callers
Function
checkSignatureBasic
checkSignatureBasic() performs basic 'sanity checks' on a Signature object
bft/msg.go:335
↓ 2 callers
Function
checkStartEndHeight
checkStartEndHeight() validates the start/end height of the message
fsm/message_helpers.go:983
↓ 2 callers
Method
check_tx
CheckTx is code that is executed to statelessly validate a transaction.
plugin/python/contract/contract.py:168
↓ 2 callers
Method
checkpointFromKeyValue
(key, value []byte)
store/indexer.go:590
↓ 2 callers
Method
checkpointKey
(committee, height uint64)
store/indexer.go:816
↓ 2 callers
Function
clampDuration
clampDuration bounds d between min and max (inclusive).
p2p/p2p.go:509
↓ 2 callers
Method
commitIDKey
commitIDKey() returns the key for the commitID at a specific version
store/store.go:413
↓ 2 callers
Method
compare
compare() compares two byte slices, adjusting for reverse iteration if needed
store/txn.go:483
↓ 2 callers
Function
concat
concat() concatenates two byte slices
lib/crypto/hash.go:97
↓ 2 callers
Function
convertBlock
(blk)
cmd/rpc/web/explorer/components/modal.jsx:71
↓ 2 callers
Function
convertDexBatch
(v, nextBatch)
cmd/rpc/web/explorer/components/table.jsx:158
↓ 2 callers
Function
convertPaginated
(v)
cmd/rpc/web/explorer/components/modal.jsx:55
↓ 2 callers
Function
convertTx
(tx)
cmd/rpc/web/explorer/components/util.js:185
↓ 2 callers
Method
copyStream
copyStream() forwards inbound packets to the destination
lib/peer.go:612
↓ 2 callers
Method
decodeBigEndian
decodeBigEndian() decodes a number from big endian bytes
store/indexer.go:837
↓ 2 callers
Function
decodeBigInt
decodeBigInt() decodes a big integer from a big-endian byte slice with a sign byte
lib/crypto/classgroup.go:458
↓ 2 callers
Method
delNode
delNode() remove a node from the database given its unique identifier
store/smt.go:600
↓ 2 callers
Function
detectShell
()
cmd/cli/cli.go:391
↓ 2 callers
Function
doRandomOperation
(t *testing.T, db lib.RWStoreI, compare lib.RWStoreI, keys *[]string)
store/fuzz_test.go:80
↓ 2 callers
Method
doubleSignerHeightKey
(address []byte, height uint64)
store/indexer.go:820
↓ 2 callers
Function
dumpChainState
(chain *dexChain)
fsm/dex_test.go:2921
↓ 2 callers
Function
encodeBigInt
encodeBigInt() encodes a big integer as a big-endian byte slice but preserves the sign using the first byte
lib/crypto/classgroup.go:443
↓ 2 callers
Method
end_block
EndBlock is code that is executed at the end of applying a block.
plugin/python/contract/contract.py:247
↓ 2 callers
Function
err_failed_plugin_write
(err: Any)
plugin/python/contract/error.py:39
↓ 2 callers
Function
err_invalid_address
()
plugin/python/contract/error.py:67
↓ 2 callers
Function
err_invalid_message_cast
()
plugin/python/contract/error.py:63
↓ 2 callers
Function
err_plugin_timeout
()
plugin/python/contract/error.py:23
↓ 2 callers
Function
err_unexpected_fsm_to_plugin
(t: Any)
plugin/python/contract/error.py:47
↓ 2 callers
Function
err_unmarshal
(err: Any)
plugin/python/contract/error.py:31
↓ 2 callers
Method
eventAddressKey
(address, heightAndIndexKey []byte)
store/indexer.go:516
↓ 2 callers
Method
eventBlockHeightKey
(blockHeight uint64)
store/indexer.go:512
↓ 2 callers
Method
eventChainIdKey
(chainId uint64, heightAndIndexKey []byte)
store/indexer.go:508
↓ 2 callers
Method
executeOnSupplyPool
executeOnSupplyPool() finds a target pool using the target type and chainId and executes a callback on it
fsm/account.go:624
↓ 2 callers
Function
fallbackCopy
(state, setState, detail, toastText = "Copied!")
cmd/rpc/web/wallet/components/util.js:497
↓ 2 callers
Function
fallbackCopy
(state, setState, detail, toastText = "Copied!")
cmd/rpc/web/explorer/components/util.js:168
↓ 2 callers
Function
file_account_proto_init
()
plugin/go/contract/account.pb.go:176
↓ 2 callers
Function
file_account_proto_init
()
fsm/account.pb.go:310
↓ 2 callers
Function
file_account_proto_rawDescGZIP
()
plugin/go/tutorial/contract/account.pb.go:155
↓ 2 callers
Function
file_account_proto_rawDescGZIP
()
plugin/go/contract/account.pb.go:155
↓ 2 callers
Function
file_consensus_proto_init
()
lib/consensus.pb.go:729
↓ 2 callers
Function
file_dex_proto_init
()
lib/dex.pb.go:588
↓ 2 callers
Function
file_event_proto_init
()
plugin/go/tutorial/contract/event.pb.go:253
↓ 2 callers
Function
file_event_proto_rawDescGZIP
()
plugin/go/tutorial/contract/event.pb.go:229
↓ 2 callers
Function
file_event_proto_rawDescGZIP
()
plugin/go/contract/event.pb.go:229
↓ 2 callers
Function
file_gov_proto_init
()
fsm/gov.pb.go:874
↓ 2 callers
Function
file_indexer_proto_rawDescGZIP
()
fsm/indexer.pb.go:285
↓ 2 callers
Function
file_plugin_proto_init
()
plugin/go/contract/plugin.pb.go:1884
↓ 2 callers
Function
file_store_proto_rawDescGZIP
()
lib/store.pb.go:202
↓ 2 callers
Function
file_swap_proto_init
()
lib/swap.pb.go:344
↓ 2 callers
Function
file_tx_proto_init
()
plugin/go/tutorial/contract/tx.pb.go:509
↓ 2 callers
Function
file_validator_proto_init
()
fsm/validator.pb.go:394
↓ 2 callers
Function
file_wrapper_proto_rawDescGZIP
()
lib/wrapper.pb.go:147
↓ 2 callers
Function
filterParamsFromArgs
HELPERS BELOW filterParamsFromArgs() creates newFilterParams from args
cmd/rpc/eth.go:1244
↓ 2 callers
Method
findOrCreateSupplyPool
findOrCreateSupplyPool() searches for a pool by chainId or creates a new one if not found
fsm/account.go:643
↓ 2 callers
Method
finishSyncing
finishSyncing() is called when the syncing loop is completed for a specific chainId
controller/consensus.go:725
↓ 2 callers
Method
first
first() positions the iterator at the first valid entry
store/versioned_store.go:322
↓ 2 callers
Method
genesis
Genesis implements logic to import a json file to create the state at height 0.
plugin/python/contract/contract.py:160
↓ 2 callers
Function
getCardData
()
cmd/rpc/web/explorer/components/api.js:255
↓ 2 callers
Method
getEthFilter
getEthFilter() returns a filter by ID
cmd/rpc/eth.go:1024
↓ 2 callers
Method
getEvent
getEvent() gets the event bytes from the DB and converts it into Event object
store/indexer.go:473
↓ 2 callers
Function
getFormInputs
(type, keyGroup, account, validator, keyStore)
cmd/rpc/web/wallet/components/util.js:5
↓ 2 callers
Method
getOtherChild
getOtherChild() returns the sibling for the child key passed and which child it is
store/smt.go:1078
↓ 2 callers
Method
getPeers
getPeers() returns peers from the peer book
p2p/book.go:276
← previous
next →
1,101–1,200 of 5,387, ranked by callers