MCPcopy Create free account

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

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

↓ 7 callersMethodgetIndex
getIndex() returns the index where the peer should be located within the sorted slice, and if the peer exists in the slice or not
p2p/book.go:426
↓ 7 callersMethodkeystoreRequest
(routeName string, keystoreRequest keystoreRequest, ptr any)
cmd/rpc/client.go:943
↓ 7 callersMethodpoolPoints
()
fsm/dex_test.go:2811
↓ 7 callersFunctionpostRawJSON
(url: string, jsonBody: string)
plugin/typescript/tutorial/src/rpc_test.ts:58
↓ 7 callersFunctionpostRawJSON
HTTP helper function
plugin/go/tutorial/rpc_test.go:524
↓ 7 callersFunctionpost_raw_json
HTTP POST helper that sends JSON and returns response body.
plugin/python/tutorial/rpc_test.py:68
↓ 7 callersFunctionreceiveInbox
(t *testing.T, ch <-chan *lib.MessageAndMetadata)
p2p/p2p_test.go:26
↓ 7 callersMethodreset
reset() resets data for each operation
store/smt.go:571
↓ 7 callersMethodsendPacketWithTiming
sendPacketWithTiming() a rate limited writer with metrics tracking
p2p/conn.go:363
↓ 7 callersMethodsetupStore
setupStore creates a new store from the state machine's database. This store must be closed safely with Discard()
cmd/rpc/query.go:929
↓ 7 callersFunctiontestStore
(t *testing.T)
store/store_test.go:130
↓ 7 callersMethodtotalBits
totalBits() returns the number of meaningful bits in the key
store/smt.go:979
↓ 7 callersMethodunmarshalValidator
unmarshalValidator() converts bytes into a Validator object
fsm/validator.go:515
↓ 6 callersMethodAddToCommitteeSupplyForChain
AddToCommitteeSupplyForChain() adds to the committee staked supply count
fsm/account.go:449
↓ 6 callersFunctionAddressFromKey
(k []byte)
fsm/key.go:114
↓ 6 callersFunctionBytesToSECP256K1Private
BytesToSECP256K1Private() converts bytes to SECP256K1 private key using go-ethereum
lib/crypto/secp256k1.go:50
↓ 6 callersFunctionCanopyIdsToEVMChainId
CanopyIdsToEVMChainId() converts a chainId and networkId to an evm chain ID
fsm/ethereum.go:223
↓ 6 callersFunctionCloneClassGroup
CloneClassGroup() creates a shallow copy of the class group
lib/crypto/classgroup.go:47
↓ 6 callersMethodEncode
Encode() converts the ClassGroup into bytes
lib/crypto/classgroup.go:320
↓ 6 callersFunctionErrAddressSize
()
fsm/error.go:51
↓ 6 callersFunctionErrInvalidAmount
()
fsm/error.go:63
↓ 6 callersFunctionErrInvalidLiquidityPool
()
fsm/error.go:278
↓ 6 callersFunctionErrInvalidPublicKey
(err error)
fsm/error.go:182
↓ 6 callersFunctionErrPubKeyFromBytes
(err error)
lib/error.go:451
↓ 6 callersFunctionErrReserveKeyWrite
(key string)
store/error.go:49
↓ 6 callersFunctionErrUnmarshal
(err error)
lib/error.go:355
↓ 6 callersMethodExportState
ExportState() creates a GenesisState object from the current state
fsm/genesis.go:161
↓ 6 callersFunctionGET
(url, path)
cmd/rpc/web/wallet/components/api.js:63
↓ 6 callersMethodGetCommitteeStakedSupplyForChain
GetCommitteeStakedSupplyForChain() retrieves the committee staked supply count
fsm/account.go:520
↓ 6 callersMethodGetDoubleSigners
get certificate for a height
lib/store.go:75
↓ 6 callersMethodGetLastProposers
GetLastProposers() returns the last Proposer addresses saved in the state
fsm/automatic.go:282
↓ 6 callersMethodGetParamsFee
GetParamsFee() returns the current state of the governance params in the Fee space
fsm/gov.go:342
↓ 6 callersMethodGetParamsGov
GetParamsGov() returns the current state of the governance params in the Governance space
fsm/gov.go:332
↓ 6 callersMethodGetTransactions
delete unconfirmed transaction
lib/mempool.go:21
↓ 6 callersMethodGetValidatorAndIdx
GetValidatorAndIdx() retrieves a validator and its index in the ValidatorSet using the public key
lib/consensus.go:97
↓ 6 callersMethodHas
Has() returns if the
p2p/book_test.go:102
↓ 6 callersMethodImportRaw
ImportRaw() imports a non-encrypted private key to the store, but encrypts it given a password
lib/crypto/keystore.go:112
↓ 6 callersMethodIndexBlock
save a tx by hash, height.index, sender, and recipient
lib/store.go:52
↓ 6 callersMethodIsSelf
IsSelf() returns if the peer address public key equals the self public key
p2p/p2p.go:420
↓ 6 callersMethodIterateAndAppend
IteratorAndAppend() aggregates an array of raw bytes from an iterator
fsm/state.go:542
↓ 6 callersMethodIterateAndExecute
IterateAndExecute() creates an iterator and executes a callback function for each key-value pair
fsm/state.go:578
↓ 6 callersMethodListen
Listen() begins listening on the websockets client
cmd/rpc/sock.go:419
↓ 6 callersMethodLoadCommittee
LoadCommittee() loads the ValidatorSet operating under ChainId
bft/bft.go:968
↓ 6 callersFunctionNewLogger
NewLogger() creates a new Logger instance with the specified configuration and optional data directory path
lib/log.go:202
↓ 6 callersMethodNewRequest
NewRequest() processes a new request and checks if the requester or total requests should be blocked
lib/peer.go:373
↓ 6 callersFunctionNewStoreInMemory
NewStoreInMemory() creates a new instance of a mem DB
store/store.go:137
↓ 6 callersMethodNewTestBlockHash
()
bft/mock_test.go:605
↓ 6 callersFunctionNewTestSMT
(t *testing.T, preset *NodeList, root []byte, keyBitSize int)
store/smt_test.go:2022
↓ 6 callersMethodPublicKey
EthPublicKey() returns the ethereum public pair to this private key
lib/crypto/eth_secp256k1.go:27
↓ 6 callersFunctionRLPToCanopyTransaction
RLPToCanopyTransaction() converts an RLP encoded transaction into a Canopy transaction
fsm/ethereum.go:42
↓ 6 callersMethodSetProposalVoteConfig
(c GovProposalVoteConfig)
fsm/state.go:654
↓ 6 callersMethodVerify
Verify() returns the indices of bad signatures (if any)
lib/crypto/key_batch.go:98
↓ 6 callersFunctioncolorString
colorString() returns a string with color applied, preserving line breaks
lib/log.go:261
↓ 6 callersFunctionconnectStartedNodes
(t *testing.T, n1, n2 testP2PNode)
p2p/p2p_test.go:445
↓ 6 callersMethoddelete
delete() executes the 'delete' logic after traversal
store/smt.go:305
↓ 6 callersFunctionensureCapacity
ensureCapacity() ensures the buffer has sufficient capacity for the key size (n)
store/versioned_store.go:569
↓ 6 callersFunctionenvOrDefault
envOrDefault returns the value of the environment variable with the given key, or the default value if the variable is not set.
cmd/auto-update/main.go:133
↓ 6 callersFunctionfile_crypto_proto_rawDescGZIP
()
lib/crypto/crypto.pb.go:371
↓ 6 callersFunctionfile_dex_proto_rawDescGZIP
()
lib/dex.pb.go:559
↓ 6 callersFunctionfile_tx_proto_rawDescGZIP
()
plugin/go/tutorial/contract/tx.pb.go:481
↓ 6 callersFunctiongetAccountBalance
(rpcURL: string, address: string)
plugin/typescript/tutorial/src/rpc_test.ts:102
↓ 6 callersFunctiongetAccountBalance
getAccountBalance gets the balance of an account using raw JSON
plugin/go/tutorial/rpc_test.go:253
↓ 6 callersMethodgetNode
getNode() retrieves a node object from the database
store/smt.go:606
↓ 6 callersFunctionget_account_balance
Get the balance of an account.
plugin/python/tutorial/rpc_test.py:113
↓ 6 callersMethodheightAndIdParams
heightAndIdParams is a helper function to execute a callback with a state machine and ID as parameters
cmd/rpc/query.go:705
↓ 6 callersMethodheightIndexer
heightIndexer is a helper function to abstract common workflows around a callback requiring height and page params
cmd/rpc/query.go:765
↓ 6 callersFunctionhexToBase64
(hexStr: string)
plugin/typescript/tutorial/src/rpc_test.ts:43
↓ 6 callersFunctionhexToBase64
hexToBase64 converts a hex string to base64 (for protojson bytes encoding)
plugin/go/tutorial/rpc_test.go:328
↓ 6 callersFunctionhex_to_base64
Convert hex string to base64 (for protojson bytes encoding).
plugin/python/tutorial/rpc_test.py:53
↓ 6 callersFunctionnewBLSScheme
()
lib/crypto/bls.go:351
↓ 6 callersFunctionnewBLSSuite
()
lib/crypto/bls.go:352
↓ 6 callersFunctionnewTestKeyGroup
(t *testing.T, variation ...int)
lib/block_test.go:464
↓ 6 callersFunctionnewTestP2PPair
(t *testing.T)
p2p/p2p_test.go:491
↓ 6 callersFunctionnewTxRequest
( address, pubKey, committees, netAddress, amount, delegate, earlyWithdrawal, output, signer
cmd/rpc/web/wallet/components/api.js:136
↓ 6 callersFunctionprefixEnd
prefixEnd() returns the end key for a given prefix by appending max possible bytes
store/txn.go:512
↓ 6 callersMethodproposal
proposal() generates a mock block and result objects using the mock controller and their corresponding hashes
bft/mock_test.go:482
↓ 6 callersMethodreadOnlyStateFromHeightParams
readOnlyStateFromHeightParams is a helper function to safely wrap TimeMachine access
cmd/rpc/server.go:276
↓ 6 callersFunctiontoUCNPY
(cnpy)
cmd/rpc/web/explorer/components/util.js:14
↓ 6 callersMethodtxnNext
txnNext() advances the index of the in-memory operations based on the iteration direction
store/txn.go:491
↓ 6 callersFunctionwithTooltip
(obj, text, key, dir = "right")
cmd/rpc/web/explorer/components/util.js:83
↓ 5 callersMethodAddFailedDialAttempt
AddFailedDialAttempt() increments the failed dial attempt counter for a BookPeer
p2p/book.go:359
↓ 5 callersFunctionBytesToBLS12381Public
BytesToBLS12381Public() creates a new PublicKeyI interface from BLS public key bytes
lib/crypto/bls.go:160
↓ 5 callersMethodCurrent
Current() returns the current item in the iteration
store/txn.go:575
↓ 5 callersMethodDiscriminant
The discriminant is a constant and may be calculated from a,b,c D = b^2-4ac
lib/crypto/classgroup.go:304
↓ 5 callersMethodE
E() converts a plugin error to the ErrorI interface
lib/plugin.go:611
↓ 5 callersFunctionErrEmptyQuorumCertificate
()
lib/error.go:507
↓ 5 callersFunctionErrInvalidMessageCast
()
plugin/typescript/src/contract/error.ts:59
↓ 5 callersFunctionErrJSONUnmarshal
(err error)
lib/error.go:359
↓ 5 callersFunctionErrNilCertResults
()
lib/error.go:751
↓ 5 callersFunctionErrNoMaj23
()
lib/error.go:531
↓ 5 callersFunctionErrRejectProposal
()
fsm/error.go:31
↓ 5 callersFunctionErrUnexpectedPluginToFSM
(t reflect.Type)
lib/error.go:892
↓ 5 callersFunctionErrUnknownMessageName
(s string)
lib/error.go:631
↓ 5 callersMethodGet
Get() retrieves the value for a given key from either the txn operations or the reader store
store/txn.go:107
↓ 5 callersMethodGetAuthorizedSignersForValidator
GetAuthorizedSignersForValidator() returns the addresses that are able to sign messages on behalf of the validator
fsm/validator.go:409
↓ 5 callersMethodGetCommitteesData
GetCommitteesData() gets a list of List from the state
fsm/committee.go:533
↓ 5 callersMethodGetInboxStats
GetInboxStats returns the current message count for each inbox channel This operation is non-blocking and safe to call concurrently
p2p/p2p.go:627
↓ 5 callersMethodGetKeyGroup
GetKeyGroup() returns the full keygroup for an address or nickname and decrypts the private key using the password
lib/crypto/keystore.go:156
↓ 5 callersMethodGetOrderBooks
GetOrderBooks() retrieves the lists for all chainIds of open 'sell orders' from the state
fsm/swap.go:360
↓ 5 callersMethodGetProposal
GetProposal() retrieves a proposal from the leader at the latest View
bft/prop.go:72
← previousnext →301–400 of 5,387, ranked by callers