MCPcopy Create free account

hub / github.com/canopy-network/canopy / functions

Functions5,387 in github.com/canopy-network/canopy

↓ 2 callersMethodSyncing
Syncing() returns if any of the supported chains are currently syncing
controller/controller.go:397
↓ 2 callersMethodSyncing
Syncing() returns true if the plugin is currently syncing
bft/bft.go:959
↓ 2 callersMethodTxCount
reset the entire store
lib/mempool.go:24
↓ 2 callersMethodTxVotePoll
(from AddrOrNickname, pollJSON json.RawMessage, pollApprove bool, pwd string, submit bool, optFee uint64)
cmd/rpc/client.go:814
↓ 2 callersMethodTxnWrap
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 callersFunctionUint64Percentage
Uint64Percentage() calculates the percentage of an amount
lib/util.go:614
↓ 2 callersFunctionUnstakingPrefix
(h uint64)
fsm/key.go:68
↓ 2 callersMethodUpdateLastProposers
LAST PROPOSERS CODE BELOW UpdateLastProposers() adds an address to the 'last proposers'
fsm/automatic.go:247
↓ 2 callersMethodUpdateP2PMustConnect
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 callersMethodUpdateTelemetry
UpdateTelemetry() updates the prometheus metrics after 'committing' a block
controller/block.go:657
↓ 2 callersMethodVDFSeed
VDFSeed() generates the seed for the verifiable delay service
bft/bft.go:850
↓ 2 callersFunctionValidNetURLInput
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 callersMethodValidateGenesisState
ValidateGenesisState() validates a GenesisState object
fsm/genesis.go:105
↓ 2 callersMethodValidatorSet
ValidatorSet retrieves the ValidatorSet that is responsible for the chainId
cmd/rpc/query.go:118
↓ 2 callersFunctionVerifyCandidate
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 callersMethodVerifyProof
Get gets the bytes for a compact merkle proof
lib/store.go:99
↓ 2 callersFunctionWeightedPseudorandom
WeightedPseudorandom() generates an index for the 'token' that the winner has in their stake
lib/consensus.go:803
↓ 2 callersMethodWriteToFile
WriteToFile() saves the Config object to a JSON file
lib/config.go:336
↓ 2 callersMethodWriteToFile
WriteToFile() saves the peer book object to a json file
p2p/book.go:399
↓ 2 callersMethodaddPaymentPercent
addPaymentPercent() is a helper function to add a payment percent to the certificate result
controller/result.go:162
↓ 2 callersMethodaddToSupplyPool
addToSupplyPool() adds to a supply pool using an addition callback with 'executeOnSupplyPool'
fsm/account.go:571
↓ 2 callersFunctionaddVoteAPI
(json, approve)
cmd/rpc/web/wallet/components/governance.jsx:152
↓ 2 callersFunctionaddressNicknameAndPwdRequest
(address, password, nickname)
cmd/rpc/web/wallet/components/api.js:128
↓ 2 callersMethodadvanceToNextKey
advanceToNextKey() advances to the next unique 'user key'
store/versioned_store.go:346
↓ 2 callersFunctionaffordableAmount
(avail uint64, cap uint64, rng *rand.Rand)
fsm/dex_test.go:2816
↓ 2 callersFunctionappendUnknownField
(b []byte)
lib/util_test.go:516
↓ 2 callersFunctionargToBool
(arg string)
cmd/cli/query.go:508
↓ 2 callersFunctionargToCommittees
(arg string)
cmd/cli/admin.go:443
↓ 2 callersMethodbegin_block
BeginBlock is code that is executed at the start of applying the block.
plugin/python/contract/contract.py:164
↓ 2 callersMethodblockHashKey
(hash []byte)
store/indexer.go:800
↓ 2 callersFunctionblockTagFromArgs
blockTagFromArgs() handles the optional block tag ethereum parameter
cmd/rpc/eth.go:1364
↓ 2 callersMethodblockToEIP1559Block
MAJOR HELPER FUNCTIONS BELOW blockToEIP1559Block() attempts to convert a Canopy block to a EIP1559Block for display only
cmd/rpc/eth.go:801
↓ 2 callersFunctionboolFromArgs
boolFromArgs() extracts a bool from the second argument
cmd/rpc/eth.go:1354
↓ 2 callersFunctioncheckCommittees
checkCommittees() validates the committees list in the message
fsm/message_helpers.go:951
↓ 2 callersFunctioncheckExternalAddress
checkExternalAddress() validates an address from an external blockchain
fsm/message_helpers.go:897
↓ 2 callersFunctioncheckOutputAddress
checkOutputAddress() validates the rewards address in the Message
fsm/message_helpers.go:925
↓ 2 callersFunctioncheckSignature
checkSignature() validates the signature of a SignByte implementation (object that can be converted to Sign Bytes)
bft/msg.go:320
↓ 2 callersFunctioncheckSignatureBasic
checkSignatureBasic() performs basic 'sanity checks' on a Signature object
bft/msg.go:335
↓ 2 callersFunctioncheckStartEndHeight
checkStartEndHeight() validates the start/end height of the message
fsm/message_helpers.go:983
↓ 2 callersMethodcheck_tx
CheckTx is code that is executed to statelessly validate a transaction.
plugin/python/contract/contract.py:168
↓ 2 callersMethodcheckpointFromKeyValue
(key, value []byte)
store/indexer.go:590
↓ 2 callersMethodcheckpointKey
(committee, height uint64)
store/indexer.go:816
↓ 2 callersFunctionclampDuration
clampDuration bounds d between min and max (inclusive).
p2p/p2p.go:509
↓ 2 callersMethodcommitIDKey
commitIDKey() returns the key for the commitID at a specific version
store/store.go:413
↓ 2 callersMethodcompare
compare() compares two byte slices, adjusting for reverse iteration if needed
store/txn.go:483
↓ 2 callersFunctionconcat
concat() concatenates two byte slices
lib/crypto/hash.go:97
↓ 2 callersFunctionconvertBlock
(blk)
cmd/rpc/web/explorer/components/modal.jsx:71
↓ 2 callersFunctionconvertDexBatch
(v, nextBatch)
cmd/rpc/web/explorer/components/table.jsx:158
↓ 2 callersFunctionconvertPaginated
(v)
cmd/rpc/web/explorer/components/modal.jsx:55
↓ 2 callersFunctionconvertTx
(tx)
cmd/rpc/web/explorer/components/util.js:185
↓ 2 callersMethodcopyStream
copyStream() forwards inbound packets to the destination
lib/peer.go:612
↓ 2 callersMethoddecodeBigEndian
decodeBigEndian() decodes a number from big endian bytes
store/indexer.go:837
↓ 2 callersFunctiondecodeBigInt
decodeBigInt() decodes a big integer from a big-endian byte slice with a sign byte
lib/crypto/classgroup.go:458
↓ 2 callersMethoddelNode
delNode() remove a node from the database given its unique identifier
store/smt.go:600
↓ 2 callersFunctiondetectShell
()
cmd/cli/cli.go:391
↓ 2 callersFunctiondoRandomOperation
(t *testing.T, db lib.RWStoreI, compare lib.RWStoreI, keys *[]string)
store/fuzz_test.go:80
↓ 2 callersMethoddoubleSignerHeightKey
(address []byte, height uint64)
store/indexer.go:820
↓ 2 callersFunctiondumpChainState
(chain *dexChain)
fsm/dex_test.go:2921
↓ 2 callersFunctionencodeBigInt
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 callersMethodend_block
EndBlock is code that is executed at the end of applying a block.
plugin/python/contract/contract.py:247
↓ 2 callersFunctionerr_failed_plugin_write
(err: Any)
plugin/python/contract/error.py:39
↓ 2 callersFunctionerr_invalid_address
()
plugin/python/contract/error.py:67
↓ 2 callersFunctionerr_invalid_message_cast
()
plugin/python/contract/error.py:63
↓ 2 callersFunctionerr_plugin_timeout
()
plugin/python/contract/error.py:23
↓ 2 callersFunctionerr_unexpected_fsm_to_plugin
(t: Any)
plugin/python/contract/error.py:47
↓ 2 callersFunctionerr_unmarshal
(err: Any)
plugin/python/contract/error.py:31
↓ 2 callersMethodeventAddressKey
(address, heightAndIndexKey []byte)
store/indexer.go:516
↓ 2 callersMethodeventBlockHeightKey
(blockHeight uint64)
store/indexer.go:512
↓ 2 callersMethodeventChainIdKey
(chainId uint64, heightAndIndexKey []byte)
store/indexer.go:508
↓ 2 callersMethodexecuteOnSupplyPool
executeOnSupplyPool() finds a target pool using the target type and chainId and executes a callback on it
fsm/account.go:624
↓ 2 callersFunctionfallbackCopy
(state, setState, detail, toastText = "Copied!")
cmd/rpc/web/wallet/components/util.js:497
↓ 2 callersFunctionfallbackCopy
(state, setState, detail, toastText = "Copied!")
cmd/rpc/web/explorer/components/util.js:168
↓ 2 callersFunctionfile_account_proto_init
()
plugin/go/contract/account.pb.go:176
↓ 2 callersFunctionfile_account_proto_init
()
fsm/account.pb.go:310
↓ 2 callersFunctionfile_account_proto_rawDescGZIP
()
plugin/go/tutorial/contract/account.pb.go:155
↓ 2 callersFunctionfile_account_proto_rawDescGZIP
()
plugin/go/contract/account.pb.go:155
↓ 2 callersFunctionfile_consensus_proto_init
()
lib/consensus.pb.go:729
↓ 2 callersFunctionfile_dex_proto_init
()
lib/dex.pb.go:588
↓ 2 callersFunctionfile_event_proto_init
()
plugin/go/tutorial/contract/event.pb.go:253
↓ 2 callersFunctionfile_event_proto_rawDescGZIP
()
plugin/go/tutorial/contract/event.pb.go:229
↓ 2 callersFunctionfile_event_proto_rawDescGZIP
()
plugin/go/contract/event.pb.go:229
↓ 2 callersFunctionfile_gov_proto_init
()
fsm/gov.pb.go:874
↓ 2 callersFunctionfile_indexer_proto_rawDescGZIP
()
fsm/indexer.pb.go:285
↓ 2 callersFunctionfile_plugin_proto_init
()
plugin/go/contract/plugin.pb.go:1884
↓ 2 callersFunctionfile_store_proto_rawDescGZIP
()
lib/store.pb.go:202
↓ 2 callersFunctionfile_swap_proto_init
()
lib/swap.pb.go:344
↓ 2 callersFunctionfile_tx_proto_init
()
plugin/go/tutorial/contract/tx.pb.go:509
↓ 2 callersFunctionfile_validator_proto_init
()
fsm/validator.pb.go:394
↓ 2 callersFunctionfile_wrapper_proto_rawDescGZIP
()
lib/wrapper.pb.go:147
↓ 2 callersFunctionfilterParamsFromArgs
HELPERS BELOW filterParamsFromArgs() creates newFilterParams from args
cmd/rpc/eth.go:1244
↓ 2 callersMethodfindOrCreateSupplyPool
findOrCreateSupplyPool() searches for a pool by chainId or creates a new one if not found
fsm/account.go:643
↓ 2 callersMethodfinishSyncing
finishSyncing() is called when the syncing loop is completed for a specific chainId
controller/consensus.go:725
↓ 2 callersMethodfirst
first() positions the iterator at the first valid entry
store/versioned_store.go:322
↓ 2 callersMethodgenesis
Genesis implements logic to import a json file to create the state at height 0.
plugin/python/contract/contract.py:160
↓ 2 callersFunctiongetCardData
()
cmd/rpc/web/explorer/components/api.js:255
↓ 2 callersMethodgetEthFilter
getEthFilter() returns a filter by ID
cmd/rpc/eth.go:1024
↓ 2 callersMethodgetEvent
getEvent() gets the event bytes from the DB and converts it into Event object
store/indexer.go:473
↓ 2 callersFunctiongetFormInputs
(type, keyGroup, account, validator, keyStore)
cmd/rpc/web/wallet/components/util.js:5
↓ 2 callersMethodgetOtherChild
getOtherChild() returns the sibling for the child key passed and which child it is
store/smt.go:1078
↓ 2 callersMethodgetPeers
getPeers() returns peers from the peer book
p2p/book.go:276
← previousnext →1,101–1,200 of 5,387, ranked by callers