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
↓ 7 callers
Method
getIndex
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 callers
Method
keystoreRequest
(routeName string, keystoreRequest keystoreRequest, ptr any)
cmd/rpc/client.go:943
↓ 7 callers
Method
poolPoints
()
fsm/dex_test.go:2811
↓ 7 callers
Function
postRawJSON
(url: string, jsonBody: string)
plugin/typescript/tutorial/src/rpc_test.ts:58
↓ 7 callers
Function
postRawJSON
HTTP helper function
plugin/go/tutorial/rpc_test.go:524
↓ 7 callers
Function
post_raw_json
HTTP POST helper that sends JSON and returns response body.
plugin/python/tutorial/rpc_test.py:68
↓ 7 callers
Function
receiveInbox
(t *testing.T, ch <-chan *lib.MessageAndMetadata)
p2p/p2p_test.go:26
↓ 7 callers
Method
reset
reset() resets data for each operation
store/smt.go:571
↓ 7 callers
Method
sendPacketWithTiming
sendPacketWithTiming() a rate limited writer with metrics tracking
p2p/conn.go:363
↓ 7 callers
Method
setupStore
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 callers
Function
testStore
(t *testing.T)
store/store_test.go:130
↓ 7 callers
Method
totalBits
totalBits() returns the number of meaningful bits in the key
store/smt.go:979
↓ 7 callers
Method
unmarshalValidator
unmarshalValidator() converts bytes into a Validator object
fsm/validator.go:515
↓ 6 callers
Method
AddToCommitteeSupplyForChain
AddToCommitteeSupplyForChain() adds to the committee staked supply count
fsm/account.go:449
↓ 6 callers
Function
AddressFromKey
(k []byte)
fsm/key.go:114
↓ 6 callers
Function
BytesToSECP256K1Private
BytesToSECP256K1Private() converts bytes to SECP256K1 private key using go-ethereum
lib/crypto/secp256k1.go:50
↓ 6 callers
Function
CanopyIdsToEVMChainId
CanopyIdsToEVMChainId() converts a chainId and networkId to an evm chain ID
fsm/ethereum.go:223
↓ 6 callers
Function
CloneClassGroup
CloneClassGroup() creates a shallow copy of the class group
lib/crypto/classgroup.go:47
↓ 6 callers
Method
Encode
Encode() converts the ClassGroup into bytes
lib/crypto/classgroup.go:320
↓ 6 callers
Function
ErrAddressSize
()
fsm/error.go:51
↓ 6 callers
Function
ErrInvalidAmount
()
fsm/error.go:63
↓ 6 callers
Function
ErrInvalidLiquidityPool
()
fsm/error.go:278
↓ 6 callers
Function
ErrInvalidPublicKey
(err error)
fsm/error.go:182
↓ 6 callers
Function
ErrPubKeyFromBytes
(err error)
lib/error.go:451
↓ 6 callers
Function
ErrReserveKeyWrite
(key string)
store/error.go:49
↓ 6 callers
Function
ErrUnmarshal
(err error)
lib/error.go:355
↓ 6 callers
Method
ExportState
ExportState() creates a GenesisState object from the current state
fsm/genesis.go:161
↓ 6 callers
Function
GET
(url, path)
cmd/rpc/web/wallet/components/api.js:63
↓ 6 callers
Method
GetCommitteeStakedSupplyForChain
GetCommitteeStakedSupplyForChain() retrieves the committee staked supply count
fsm/account.go:520
↓ 6 callers
Method
GetDoubleSigners
get certificate for a height
lib/store.go:75
↓ 6 callers
Method
GetLastProposers
GetLastProposers() returns the last Proposer addresses saved in the state
fsm/automatic.go:282
↓ 6 callers
Method
GetParamsFee
GetParamsFee() returns the current state of the governance params in the Fee space
fsm/gov.go:342
↓ 6 callers
Method
GetParamsGov
GetParamsGov() returns the current state of the governance params in the Governance space
fsm/gov.go:332
↓ 6 callers
Method
GetTransactions
delete unconfirmed transaction
lib/mempool.go:21
↓ 6 callers
Method
GetValidatorAndIdx
GetValidatorAndIdx() retrieves a validator and its index in the ValidatorSet using the public key
lib/consensus.go:97
↓ 6 callers
Method
Has
Has() returns if the
p2p/book_test.go:102
↓ 6 callers
Method
ImportRaw
ImportRaw() imports a non-encrypted private key to the store, but encrypts it given a password
lib/crypto/keystore.go:112
↓ 6 callers
Method
IndexBlock
save a tx by hash, height.index, sender, and recipient
lib/store.go:52
↓ 6 callers
Method
IsSelf
IsSelf() returns if the peer address public key equals the self public key
p2p/p2p.go:420
↓ 6 callers
Method
IterateAndAppend
IteratorAndAppend() aggregates an array of raw bytes from an iterator
fsm/state.go:542
↓ 6 callers
Method
IterateAndExecute
IterateAndExecute() creates an iterator and executes a callback function for each key-value pair
fsm/state.go:578
↓ 6 callers
Method
Listen
Listen() begins listening on the websockets client
cmd/rpc/sock.go:419
↓ 6 callers
Method
LoadCommittee
LoadCommittee() loads the ValidatorSet operating under ChainId
bft/bft.go:968
↓ 6 callers
Function
NewLogger
NewLogger() creates a new Logger instance with the specified configuration and optional data directory path
lib/log.go:202
↓ 6 callers
Method
NewRequest
NewRequest() processes a new request and checks if the requester or total requests should be blocked
lib/peer.go:373
↓ 6 callers
Function
NewStoreInMemory
NewStoreInMemory() creates a new instance of a mem DB
store/store.go:137
↓ 6 callers
Method
NewTestBlockHash
()
bft/mock_test.go:605
↓ 6 callers
Function
NewTestSMT
(t *testing.T, preset *NodeList, root []byte, keyBitSize int)
store/smt_test.go:2022
↓ 6 callers
Method
PublicKey
EthPublicKey() returns the ethereum public pair to this private key
lib/crypto/eth_secp256k1.go:27
↓ 6 callers
Function
RLPToCanopyTransaction
RLPToCanopyTransaction() converts an RLP encoded transaction into a Canopy transaction
fsm/ethereum.go:42
↓ 6 callers
Method
SetProposalVoteConfig
(c GovProposalVoteConfig)
fsm/state.go:654
↓ 6 callers
Method
Verify
Verify() returns the indices of bad signatures (if any)
lib/crypto/key_batch.go:98
↓ 6 callers
Function
colorString
colorString() returns a string with color applied, preserving line breaks
lib/log.go:261
↓ 6 callers
Function
connectStartedNodes
(t *testing.T, n1, n2 testP2PNode)
p2p/p2p_test.go:445
↓ 6 callers
Method
delete
delete() executes the 'delete' logic after traversal
store/smt.go:305
↓ 6 callers
Function
ensureCapacity
ensureCapacity() ensures the buffer has sufficient capacity for the key size (n)
store/versioned_store.go:569
↓ 6 callers
Function
envOrDefault
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 callers
Function
file_crypto_proto_rawDescGZIP
()
lib/crypto/crypto.pb.go:371
↓ 6 callers
Function
file_dex_proto_rawDescGZIP
()
lib/dex.pb.go:559
↓ 6 callers
Function
file_tx_proto_rawDescGZIP
()
plugin/go/tutorial/contract/tx.pb.go:481
↓ 6 callers
Function
getAccountBalance
(rpcURL: string, address: string)
plugin/typescript/tutorial/src/rpc_test.ts:102
↓ 6 callers
Function
getAccountBalance
getAccountBalance gets the balance of an account using raw JSON
plugin/go/tutorial/rpc_test.go:253
↓ 6 callers
Method
getNode
getNode() retrieves a node object from the database
store/smt.go:606
↓ 6 callers
Function
get_account_balance
Get the balance of an account.
plugin/python/tutorial/rpc_test.py:113
↓ 6 callers
Method
heightAndIdParams
heightAndIdParams is a helper function to execute a callback with a state machine and ID as parameters
cmd/rpc/query.go:705
↓ 6 callers
Method
heightIndexer
heightIndexer is a helper function to abstract common workflows around a callback requiring height and page params
cmd/rpc/query.go:765
↓ 6 callers
Function
hexToBase64
(hexStr: string)
plugin/typescript/tutorial/src/rpc_test.ts:43
↓ 6 callers
Function
hexToBase64
hexToBase64 converts a hex string to base64 (for protojson bytes encoding)
plugin/go/tutorial/rpc_test.go:328
↓ 6 callers
Function
hex_to_base64
Convert hex string to base64 (for protojson bytes encoding).
plugin/python/tutorial/rpc_test.py:53
↓ 6 callers
Function
newBLSScheme
()
lib/crypto/bls.go:351
↓ 6 callers
Function
newBLSSuite
()
lib/crypto/bls.go:352
↓ 6 callers
Function
newTestKeyGroup
(t *testing.T, variation ...int)
lib/block_test.go:464
↓ 6 callers
Function
newTestP2PPair
(t *testing.T)
p2p/p2p_test.go:491
↓ 6 callers
Function
newTxRequest
( address, pubKey, committees, netAddress, amount, delegate, earlyWithdrawal, output, signer
cmd/rpc/web/wallet/components/api.js:136
↓ 6 callers
Function
prefixEnd
prefixEnd() returns the end key for a given prefix by appending max possible bytes
store/txn.go:512
↓ 6 callers
Method
proposal
proposal() generates a mock block and result objects using the mock controller and their corresponding hashes
bft/mock_test.go:482
↓ 6 callers
Method
readOnlyStateFromHeightParams
readOnlyStateFromHeightParams is a helper function to safely wrap TimeMachine access
cmd/rpc/server.go:276
↓ 6 callers
Function
toUCNPY
(cnpy)
cmd/rpc/web/explorer/components/util.js:14
↓ 6 callers
Method
txnNext
txnNext() advances the index of the in-memory operations based on the iteration direction
store/txn.go:491
↓ 6 callers
Function
withTooltip
(obj, text, key, dir = "right")
cmd/rpc/web/explorer/components/util.js:83
↓ 5 callers
Method
AddFailedDialAttempt
AddFailedDialAttempt() increments the failed dial attempt counter for a BookPeer
p2p/book.go:359
↓ 5 callers
Function
BytesToBLS12381Public
BytesToBLS12381Public() creates a new PublicKeyI interface from BLS public key bytes
lib/crypto/bls.go:160
↓ 5 callers
Method
Current
Current() returns the current item in the iteration
store/txn.go:575
↓ 5 callers
Method
Discriminant
The discriminant is a constant and may be calculated from a,b,c D = b^2-4ac
lib/crypto/classgroup.go:304
↓ 5 callers
Method
E
E() converts a plugin error to the ErrorI interface
lib/plugin.go:611
↓ 5 callers
Function
ErrEmptyQuorumCertificate
()
lib/error.go:507
↓ 5 callers
Function
ErrInvalidMessageCast
()
plugin/typescript/src/contract/error.ts:59
↓ 5 callers
Function
ErrJSONUnmarshal
(err error)
lib/error.go:359
↓ 5 callers
Function
ErrNilCertResults
()
lib/error.go:751
↓ 5 callers
Function
ErrNoMaj23
()
lib/error.go:531
↓ 5 callers
Function
ErrRejectProposal
()
fsm/error.go:31
↓ 5 callers
Function
ErrUnexpectedPluginToFSM
(t reflect.Type)
lib/error.go:892
↓ 5 callers
Function
ErrUnknownMessageName
(s string)
lib/error.go:631
↓ 5 callers
Method
Get
Get() retrieves the value for a given key from either the txn operations or the reader store
store/txn.go:107
↓ 5 callers
Method
GetAuthorizedSignersForValidator
GetAuthorizedSignersForValidator() returns the addresses that are able to sign messages on behalf of the validator
fsm/validator.go:409
↓ 5 callers
Method
GetCommitteesData
GetCommitteesData() gets a list of List from the state
fsm/committee.go:533
↓ 5 callers
Method
GetInboxStats
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 callers
Method
GetKeyGroup
GetKeyGroup() returns the full keygroup for an address or nickname and decrypts the private key using the password
lib/crypto/keystore.go:156
↓ 5 callers
Method
GetOrderBooks
GetOrderBooks() retrieves the lists for all chainIds of open 'sell orders' from the state
fsm/swap.go:360
↓ 5 callers
Method
GetProposal
GetProposal() retrieves a proposal from the leader at the latest View
bft/prop.go:72
← previous
next →
301–400 of 5,387, ranked by callers