MCPcopy Create free account

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

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

↓ 3 callersMethodNormalized
Normalized() ensures that the coefficient b is always in the range -a < b <= a making subsequent computations, such as reductions or multiplications m
lib/crypto/classgroup.go:228
↓ 3 callersFunctionOrderBookPrefix
(cId uint64)
fsm/key.go:77
↓ 3 callersMethodParseProtocolVersion
ParseProtocolVersion() validates the format of the Protocol version string and returns the ProtocolVersion object
fsm/gov_params.go:173
↓ 3 callersMethodPhaseHas23Maj
PhaseHas23Maj() returns true if the node received enough messages to optimistically move forward
bft/bft.go:594
↓ 3 callersFunctionPoolPrefix
()
fsm/key.go:64
↓ 3 callersMethodProcessDSE
ProcessDSE() validates each piece of double sign evidence and returns a list of double signers
bft/evidence.go:68
↓ 3 callersMethodPublicKey
PublicKey returns the public key paired with this private key
plugin/go/crypto/bls.go:58
↓ 3 callersMethodPublicKeys
PublicKeys() returns the list of public keys
lib/crypto/key.go:65
↓ 3 callersFunctionRandSlice
RandSlice is a helper to generate a random byte slice of the given size.
lib/util.go:1044
↓ 3 callersMethodResetFailedDialAttempts
ResetFailedDialAttempts() resets the failed dial attempt count for the peer
p2p/book.go:344
↓ 3 callersFunctionResolveAndReplacePort
ResolveAndReplacePort resolves the appropriate port and replaces the port in the net address
lib/peer.go:95
↓ 3 callersFunctionRetiredCommitteesPrefix
()
fsm/key.go:74
↓ 3 callersMethodRootChainHeight
RootChainHeight returns the height of the root-chain
bft/bft.go:935
↓ 3 callersMethodRootChainInfo
RootChainInfo retrieves the root chain info for the specified chain
cmd/rpc/query.go:138
↓ 3 callersMethodSendToProposer
SendToProposer() is a P2P call to directly send a Consensus message to the Leader
bft/bft.go:953
↓ 3 callersMethodSetAt
SetAt() stores a key-value pair at the given version
store/versioned_store.go:88
↓ 3 callersMethodSetLastProposers
SetLastProposers() saves the last Proposer addresses in the state
fsm/automatic.go:299
↓ 3 callersMethodSetParamsFee
SetParamsFee() sets Fee params into state
fsm/gov.go:260
↓ 3 callersMethodSetParamsGov
SetParamsGov() sets Governance params into state
fsm/gov.go:255
↓ 3 callersMethodSetValidatorUnpaused
SetValidatorUnpaused() updates a Validator as 'unpaused'
fsm/validator.go:397
↓ 3 callersMethodSetWaitTimers
SetWaitTimers() sets the phase wait timer - Phase Timeout ensures the node waits for a configured duration (Round x phaseTimeout) to allow for full vo
bft/bft.go:790
↓ 3 callersMethodSign
Sign() digitally signs a message and returns the signature output
lib/crypto/bls.go:85
↓ 3 callersFunctionSortition
Sortition() runs the VRF and uses the Hash(output) to determine if IsCandidate
bft/election.go:59
↓ 3 callersFunctionSqrtProductUint64
(x, y uint64)
lib/util.go:978
↓ 3 callersMethodString
String() returns the hex string representation of an address
lib/crypto/address.go:64
↓ 3 callersMethodSubFromCommitteeStakedSupplyForChain
SubFromCommitteeStakedSupplyForChain() removes from the committee staked supply count
fsm/account.go:510
↓ 3 callersMethodSubFromTotalSupply
SubFromTotalSupply() removes from the total supply count
fsm/account.go:459
↓ 3 callersFunctionSupplyPrefix
()
fsm/key.go:65
↓ 3 callersMethodTotalVDFIterations
()
fsm/state.go:652
↓ 3 callersMethodTransaction
get a checkpoint at a height and chain id combination
lib/consensus.go:129
↓ 3 callersFunctionTxHashFromJSON
TxHashFromJSON converts the json transaction into a proto tx hash
fsm/message_helpers.go:1066
↓ 3 callersFunctionUint64ToBigFloat
Uint64ToBigFloat() converts a uint64 to a big.Float
lib/util.go:646
↓ 3 callersMethodUpdateDelegations
UpdateDelegations() updates the delegate information for an address, first removing the outdated delegation information and then setting the new info
fsm/committee.go:365
↓ 3 callersMethodUpdateValidatorStake
UpdateValidatorStake() updates the stake of the validator object in state - updating the corresponding committees and supply NOTE: new stake amount mu
fsm/validator.go:198
↓ 3 callersMethodUpsertCommitteeData
COMMITTEE DATA CODE BELOW 'Committee Data' is information saved in state that is aggregated from CertificateResult messages This information secures a
fsm/committee.go:427
↓ 3 callersMethodaddPluginEvents
addPluginEvents applies plugin events with default metadata.
fsm/event.go:138
↓ 3 callersFunctionaddressFromArgs
addressFromArgs() extracts the address from the first argument
cmd/rpc/eth.go:1315
↓ 3 callersFunctionbuildSignAndSendTx
( rpcURL: string, signerKey: KeyGroup, msgType: string, msgJSON: Record<string, unknown>,
plugin/typescript/tutorial/src/rpc_test.ts:208
↓ 3 callersFunctionbuildSignAndSendTx
buildSignAndSendTx builds a transaction, signs it with BLS, and sends it via raw JSON
plugin/go/tutorial/rpc_test.go:373
↓ 3 callersFunctionbuild_sign_and_send_tx
Build, sign, and send a transaction.
plugin/python/tutorial/rpc_test.py:202
↓ 3 callersFunctioncheckProtocolVersion
checkProtocolVersion (helper) validates the format of the Protocol version string and returns the ProtocolVersion object
fsm/gov_params.go:178
↓ 3 callersFunctioncheckTxNotFailed
(rpcURL: string, senderAddr: string)
plugin/typescript/tutorial/src/rpc_test.ts:144
↓ 3 callersFunctioncheckTxNotFailed
checkTxNotFailed verifies that a transaction is not in the failed transactions list
plugin/go/tutorial/rpc_test.go:310
↓ 3 callersFunctioncheck_tx_not_failed
Check that a transaction is not in the failed transactions list.
plugin/python/tutorial/rpc_test.py:143
↓ 3 callersMethodcheckpointsCommitteeKey
(committee uint64)
store/indexer.go:812
↓ 3 callersFunctionclearLocks
(t *testing.T, chain1, chain2 StateMachine, chain1Id, chain2Id uint64)
fsm/dex_test.go:3449
↓ 3 callersFunctionconvertIfTime
(key, value)
cmd/rpc/web/explorer/components/util.js:63
↓ 3 callersFunctionconvertTime
(value)
cmd/rpc/web/explorer/components/util.js:57
↓ 3 callersMethoddelAtIndex
delAtIndex() deletes the peer from the slice at index i
p2p/book.go:440
↓ 3 callersFunctionensureEmpty
(b []byte)
fsm/message_helpers.go:859
↓ 3 callersMethodethGetLogs
ethGetLogs() simulates eth_getLogs call by executing queries over the indexer and mempool - canopy only has 1 pseudo-smart contract and only 1 event (
cmd/rpc/eth.go:905
↓ 3 callersFunctionfile_account_proto_rawDescGZIP
()
fsm/account.pb.go:284
↓ 3 callersFunctionfile_bft_proto_rawDescGZIP
()
bft/bft.pb.go:310
↓ 3 callersFunctionfile_certificate_proto_init
()
lib/certificate.pb.go:999
↓ 3 callersFunctionfile_event_proto_init
()
plugin/go/contract/event.pb.go:253
↓ 3 callersFunctionfile_event_proto_init
()
lib/event.pb.go:1144
↓ 3 callersFunctionfile_swap_proto_rawDescGZIP
()
lib/swap.pb.go:320
↓ 3 callersFunctionfile_tx_proto_init
()
plugin/go/contract/tx.pb.go:370
↓ 3 callersFunctionfile_tx_proto_init
()
lib/tx.pb.go:376
↓ 3 callersFunctionfile_tx_proto_rawDescGZIP
()
lib/tx.pb.go:350
↓ 3 callersMethodgetCommitteeDataAndList
getCommitteeDataAndList() returns the master list of committee data and the specified target data and its index from the target chain id
fsm/committee.go:491
↓ 3 callersMethodgetEvents
getEvents() returns a page of events in sorted order by block height
store/indexer.go:437
↓ 3 callersFunctiongetHeight
(rpcURL: string)
plugin/typescript/tutorial/src/rpc_test.ts:95
↓ 3 callersFunctiongetHeight
getHeight gets the current blockchain height using raw JSON
plugin/go/tutorial/rpc_test.go:236
↓ 3 callersFunctiongetNickname
()
cmd/cli/admin.go:450
↓ 3 callersFunctiongetRandomBytes
(t *testing.T, n int)
store/fuzz_test.go:131
↓ 3 callersFunctiongetTableData
(page, category, committee)
cmd/rpc/web/explorer/components/api.js:267
↓ 3 callersMethodgetTx
getTx() gets the tx bytes from the DB and converts it into TxResult object
store/indexer.go:664
↓ 3 callersMethodgetTxs
getTxs() returns a page of transactions in sorted order by block.index
store/indexer.go:700
↓ 3 callersFunctionget_height
Get the current blockchain height.
plugin/python/tutorial/rpc_test.py:106
↓ 3 callersMethodhandleFSMResponse
(msg: any)
plugin/typescript/src/contract/plugin.ts:243
↓ 3 callersMethodhashRequest
(routeName string, hash string, ptr any, admin ...bool)
cmd/rpc/client.go:1023
↓ 3 callersFunctionheightAndAddrRequest
(height, address)
cmd/rpc/web/wallet/components/api.js:112
↓ 3 callersMethodheightAndAddressRequest
(routeName string, height uint64, address string, ptr any)
cmd/rpc/client.go:1032
↓ 3 callersFunctionheightAndIDRequest
(height, id)
cmd/rpc/web/explorer/components/api.js:99
↓ 3 callersFunctionheightRequest
(height)
cmd/rpc/web/explorer/components/api.js:83
↓ 3 callersFunctionisNumber
(n)
cmd/rpc/web/explorer/components/util.js:97
↓ 3 callersFunctionjoin_len_prefix
Join byte arrays with length prefixes.
plugin/python/contract/contract.py:81
↓ 3 callersFunctionlockWithTrace
lockWithTrace acquires a mutex and logs if the wait exceeds 100ms. The returned func must be called to unlock.
p2p/lock_trace.go:14
↓ 3 callersFunctionmarshal
Marshal object to protobuf bytes.
plugin/python/contract/contract.py:120
↓ 3 callersFunctionnewBLSScheme
()
plugin/go/crypto/bls.go:102
↓ 3 callersFunctionnewBLSScheme
()
plugin/go/tutorial/crypto/bls.go:102
↓ 3 callersMethodnewEthFilter
newEthFilter() creates a new filter and returns the id
cmd/rpc/eth.go:1041
↓ 3 callersFunctionnewSellOrderTxRequest
( address, chainId, orderId, data, sellAmount, receiveAmount, receiveAddress, memo, fee, s
cmd/rpc/web/wallet/components/api.js:168
↓ 3 callersFunctionnewTestPublicKey
(t *testing.T, variation ...int)
lib/block_test.go:455
↓ 3 callersFunctionnewTestQC
newTestQC is a utility function for this test to generate various quorum certificates in the test cases
fsm/state_test.go:421
↓ 3 callersFunctionnewTestSortitionData
(t *testing.T, c *testConsensus)
bft/election_test.go:182
↓ 3 callersFunctionnewTestValSet
newTestValSet() creates a validator set with matching private keys from a 'hard coded / deterministic' list of private keys
bft/mock_test.go:53
↓ 3 callersFunctionnewTxnIterator
newTxnIterator() initializes a new merged iterator for traversing both the in-memory operations and parent store
store/txn.go:335
↓ 3 callersFunctionopenModal
(query)
cmd/rpc/web/explorer/pages/index.js:106
↓ 3 callersFunctionpageAddrReq
(page, addr)
cmd/rpc/web/wallet/components/api.js:116
↓ 3 callersFunctionpageAddrReq
(page, addr)
cmd/rpc/web/explorer/components/api.js:91
↓ 3 callersFunctionparallelSendReceive
parallelSendReceive() executes send and receive functions in parallel waits for both functions to complete, and returns if either has an error
p2p/encrypt.go:286
↓ 3 callersFunctionparseBlockTag
parseBlockTag() converts Ethereum block tags to heights
cmd/rpc/eth.go:1402
↓ 3 callersFunctionparseErrorMessage
parseErrorMessage() parses an error message into a formatted string and a list of metadata fields
lib/log.go:292
↓ 3 callersFunctionparseUint64FromString
parseUint64FromString parses a string into a uint64
cmd/rpc/query.go:970
↓ 3 callersMethodqcHeightKey
(height uint64)
store/indexer.go:808
↓ 3 callersFunctionqueryAPI
()
cmd/rpc/web/wallet/components/dashboard.jsx:42
↓ 3 callersMethodqueueSend
queueSend() schedules the packet to be sent
p2p/conn.go:459
↓ 3 callersFunctionremovePrefix
removePrefix() removes the prefix from the key
store/txn.go:509
← previousnext →701–800 of 5,387, ranked by callers