MCPcopy Create free account

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

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

↓ 4 callersMethodHandleMessageDexLimitOrder
HandleMessageDexLimitOrder() is the proper handler for a `DexLimitOrder` message
fsm/message.go:486
↓ 4 callersMethodHandleMessageDexLiquidityDeposit
HandleMessageDexLiquidityDeposit() is the proper handler for a `DexLiquidityDeposit` message
fsm/message.go:520
↓ 4 callersMethodHandleMessageDexLiquidityWithdraw
HandleMessageDexLiquidityWithdraw() is the proper handler for a `DexLiquidityWithdrawal` message
fsm/message.go:558
↓ 4 callersMethodIndexerBlob
IndexerBlob() retrieves the protobuf blobs for a blockchain indexer
fsm/indexer.go:32
↓ 4 callersMethodIsRunning
IsRunning is a concurrent-safe method to check if the Supervisor process is running
cmd/auto-update/coordinator.go:116
↓ 4 callersFunctionKeyForValidator
(addr crypto.AddressI)
fsm/key.go:99
↓ 4 callersMethodLoadCertificate
LoadCertificate() gets the Quorum Certificate from the chainId-> plugin at a certain height
bft/bft.go:941
↓ 4 callersMethodLoadCommittee
LoadCommittee() loads the committee validators for a particular committee at a particular height
fsm/state.go:332
↓ 4 callersMethodLoadRootChainId
RootChainId() returns the root chain id according to the FSM
controller/controller.go:321
↓ 4 callersMethodLotteryWinner
LotteryWinner() selects a validator/delegate randomly weighted based on their stake within a committee
fsm/committee.go:202
↓ 4 callersMethodMap
Map() returns the underlying map to the de-duplicator
lib/util.go:901
↓ 4 callersFunctionMarshal
Marshal() serializes a proto.Message into a byte slice
plugin/go/contract/plugin.go:303
↓ 4 callersMethodMaxPossiblePeers
MaxPossiblePeers() sums the MaxIn, MaxOut, MaxCommitteeConnects and trusted peer IDs
p2p/p2p.go:457
↓ 4 callersMethodMintToPool
MintToPool() adds newly created tokens to the Pool structure
fsm/account.go:320
↓ 4 callersFunctionNewBatchVerifier
NewBatchVerifier() constructs a batch verifier
lib/crypto/key_batch.go:48
↓ 4 callersMethodNewIterator
(prefix []byte, reverse bool, seek bool)
store/txn.go:70
↓ 4 callersFunctionNewKeystoreInMemory
NewKeystoreInMemory() creates a new in memory keystore
lib/crypto/keystore.go:45
↓ 4 callersFunctionNewLimiter
NewLimiter() returns a new instance of SimpleLimiter with - max requests per requester - max total requests - how often to reset the limiter
lib/peer.go:361
↓ 4 callersFunctionNewNullLogger
NewNullLogger() creates a Logger that discards all log output
lib/log.go:248
↓ 4 callersFunctionNewPrivateKeyFromBytes
NewPrivateKeyFromBytes() creates a new PrivateKeyI interface from bytes
lib/crypto/key.go:120
↓ 4 callersFunctionNewPublicKeyFromString
NewPublicKeyFromString() creates a new PublicKeyI interface from a hex string
lib/crypto/key.go:78
↓ 4 callersMethodNewRound
NewRound() initializes the VoteSet and Proposals cache for the next round - increments the round count if not NewHeight (goes to Round 0)
bft/bft.go:623
↓ 4 callersFunctionNewSlashTracker
()
fsm/byzantine.go:396
↓ 4 callersMethodPeerCount
PeerCount() returns the total number of peers
p2p/set.go:184
↓ 4 callersMethodProduceProposal
ProduceProposal() as a Leader, create a Proposal in the form of a block and certificate results
bft/bft.go:937
↓ 4 callersMethodPublicKey
PublicKey() returns the public pair to this private key
lib/crypto/secp256k1.go:102
↓ 4 callersMethodRefer
Refer() sets a reference string for the event tracker
lib/event.go:43
↓ 4 callersFunctionSafeComputeDY
SafeComputeDY() executes overflow protected uniswap V2 formula
fsm/dex.go:720
↓ 4 callersMethodSafeNode
SafeNode is the codified Hotstuff SafeNodePredicate: - Protects replicas who may have committed to a previous value by locking on that value when sign
bft/bft.go:687
↓ 4 callersMethodSetCommitteesData
SetCommitteesData() sets a list of committee data in the state
fsm/committee.go:522
↓ 4 callersMethodSetStore
(store lib.RWStoreI)
fsm/state.go:650
↓ 4 callersMethodSetWriteDeadline
(t time.Time)
p2p/encrypt.go:259
↓ 4 callersMethodSign
Sign() executes a digital signature on the transaction
lib/tx.go:166
↓ 4 callersMethodSquare
Square() executes a pow(2) operation on the class group
lib/crypto/classgroup.go:197
↓ 4 callersMethodStart
Start initializes the Canopy RPC servers
cmd/rpc/server.go:80
↓ 4 callersMethodStartPrecommitVotePhase
StartPrecommitVotePhase() begins the Precommit vote after the PRECOMMIT phase timeout PRECOMMIT-VOTE PHASE: - Replica reviews the message from the Lea
bft/bft.go:430
↓ 4 callersMethodStop
Stop shuts down listeners and active proxy connections.
lib/peer.go:519
↓ 4 callersFunctionUint64PercentageDiv
Uint64PercentageDiv() calculates the percentage from dividend/divisor
lib/util.go:596
↓ 4 callersMethodUpdateCommittees
UpdateCommittees() updates the committee information in state for a specific validator
fsm/committee.go:278
↓ 4 callersFunctionVRF
VRF() 'Practical Verifiable Random Function': a function that given a secret key and a message, generates a unique random-looking number along with a
bft/election.go:120
↓ 4 callersMethodVersion
retrieve the underlying pebble db
lib/store.go:18
↓ 4 callersMethod_send_proto_msg
Send length-prefixed protobuf message to FSM.
plugin/python/contract/plugin.py:359
↓ 4 callersMethodaddrIndexer
addrIndexer is a helper function to abstract common workflows around a callback requiring an address and page parameterse
cmd/rpc/query.go:886
↓ 4 callersFunctionassetSupply
(chain *dexChain)
fsm/dex_test.go:2883
↓ 4 callersMethodblockHeightKey
(height uint64)
store/indexer.go:804
↓ 4 callersMethodcmp
cmp() compares two node keys, returning -1 for less, 0 for equal, and 1 for greater than - contract: `k2`'s size is always less than or equal to (`k`)
store/smt.go:1021
↓ 4 callersMethodcommit
commit(): executes the deferred operations in order (left-to-right), minimizing the amount of traversals, IOPS, and hash operations
store/smt.go:239
↓ 4 callersFunctionconvertTabData
(state, v, tab)
cmd/rpc/web/explorer/components/modal.jsx:89
↓ 4 callersFunctioncounterChain
(c *dexChain)
fsm/dex_test.go:2792
↓ 4 callersFunctioncounterPoolAmount
(sim *dexSim, chain *dexChain)
fsm/dex_test.go:2799
↓ 4 callersFunctiondebugHandler
debugHandler is the http handler for debugging endpoints
cmd/rpc/query.go:950
↓ 4 callersFunctionfile_block_proto_rawDescGZIP
()
lib/block.pb.go:453
↓ 4 callersFunctionfile_tx_proto_rawDescGZIP
()
plugin/go/contract/tx.pb.go:344
↓ 4 callersFunctionfile_validator_proto_rawDescGZIP
()
fsm/validator.pb.go:369
↓ 4 callersFunctionformatNumber
(nString, div = true, cutoff = 1000000000000000)
cmd/rpc/web/wallet/components/util.js:470
↓ 4 callersMethodgetBlock
getBlock() gets the block bytes from the DB and converts it into a filled BlockResult object including the transactions
store/indexer.go:620
↓ 4 callersMethodgetParams
getParams() is a generic helper function loads the params for a specific ParamSpace into a ptr object
fsm/gov.go:355
↓ 4 callersFunctionnewBLSSuite
()
plugin/go/crypto/bls.go:103
↓ 4 callersFunctionnewBLSSuite
()
plugin/go/tutorial/crypto/bls.go:103
↓ 4 callersFunctionnewPrivateKeyED25519
newPrivateKeyED25519() creates a new ED25519PrivateKey wrapper that satisfies the PrivateKeyI interface
lib/crypto/ed25519.go:23
↓ 4 callersFunctionnewSingleAccountStateMachine
(t *testing.T)
fsm/state_test.go:312
↓ 4 callersMethodnewVersionedIterator
newVersionedIterator creates a versioned iterator with configurable iteration strategy. Iterator Strategies: Linear (seek=false): - Walks through al
store/versioned_store.go:229
↓ 4 callersMethodnext
next() finds the next item in the tree based on the current item
store/txn.go:600
↓ 4 callersFunctionnonEmptyHash
nonEmptyHash() ensures the hash isn't empty substituting a dummy hash in its place
fsm/state.go:641
↓ 4 callersFunctionpageHeightReq
(page, height)
cmd/rpc/web/explorer/components/api.js:103
↓ 4 callersMethodpaginatedAddrRequest
(routeName string, address string, p lib.PageParams, ptr any)
cmd/rpc/client.go:983
↓ 4 callersFunctionparseVersion
parseVersion extracts version directly from the last 8 bytes without full parsing
store/versioned_store.go:543
↓ 4 callersFunctionparseVersionedKey
parseVersionedKey() extracts components and converts back from inverted version k = [length-prefixed-key][InvertedVersion] The caller should not modif
store/versioned_store.go:523
↓ 4 callersMethodpoolBalance
()
fsm/dex_test.go:2806
↓ 4 callersMethodprev
prev() finds the previous item in the tree based on the current item
store/txn.go:637
↓ 4 callersFunctionrenderJSONViewer
(tab)
cmd/rpc/web/explorer/components/modal.jsx:300
↓ 4 callersMethodsendProtoMsg
sendProtoMsg() encodes and sends a length-prefixed proto message to a net.Conn
lib/plugin.go:514
↓ 4 callersMethodsetParams
setParams() converts the ParamSpace into bytes and sets them in state
fsm/gov.go:266
↓ 4 callersMethodsetupTestableHighQC
setupTestableHighQC() creates a testable (liveness, safety, or invalid) highQC and sets up the BFT to accept or reject it under various conditions
bft/mock_test.go:299
↓ 4 callersMethodsimProposeVotePhase
simProposeVotePhase() simulates the PROPOSE-VOTE phase of the BFT lifecycle
bft/mock_test.go:158
↓ 4 callersFunctionsolveMod
solveMod solves the modular equation a * x ≡ b (mod m) - s: A particular solution (x) to the equation - t: The step size, such that all solutions are
lib/crypto/classgroup.go:493
↓ 4 callersMethodtxToEIP1559
txToEIP1559() attempts to convert a Canopy transaction to EIP1559 for display only
cmd/rpc/eth.go:853
↓ 4 callersMethodtxnInvalid
txnInvalid() determines if the current in-memory entry is invalid
store/txn.go:453
↓ 4 callersMethodtxnValue
txnValue() returns the value of the current in-memory operation
store/txn.go:476
↓ 4 callersFunctionunmarshal
Unmarshal bytes to protobuf message.
plugin/python/contract/contract.py:130
↓ 4 callersMethodunmarshalAccount
unmarshalAccount() converts bytes into an Account structure
fsm/account.go:198
↓ 4 callersFunctionupperCaseAndRepUnderscore
(str)
cmd/rpc/web/explorer/components/util.js:111
↓ 3 callersMethodAddDSE
AddDSE() validates and adds new DoubleSign Evidence to a list of DoubleSignEvidences
bft/evidence.go:137
↓ 3 callersMethodAddPoints
AddPoints() converts a 'percent control' to points using N = (t × P) / (1 - t) Where N is new_points, t = the desired ownership fraction, and P is the
fsm/account.go:766
↓ 3 callersMethodAddProposal
[ROUND][PHASE] -> PROPOSAL(s) AddProposal() saves a validated proposal from the Leader in memory
bft/prop.go:23
↓ 3 callersMethodAddRewardRecipient
AddRewardRecipient() adds a reward recipient to the list of reward recipients in the certificate result
controller/result.go:132
↓ 3 callersMethodAddVote
AddVote() adds a Replica's vote to the VoteSet
bft/vote.go:51
↓ 3 callersMethodApplyAndValidateBlock
INTERNAL HELPERS BELOW ApplyAndValidateBlock() plays the block against the state machine which returns a result that is compared against the candidate
controller/block.go:452
↓ 3 callersMethodApplyBlock
ApplyBlock processes a given block, updating the state machine's state accordingly The function: - executes `BeginBlock` - applies all transactions wi
fsm/state.go:106
↓ 3 callersMethodApplyTransaction
ApplyTransaction() processes the transaction within the state machine, returning the corresponding TxResult.
fsm/transaction.go:17
↓ 3 callersMethodApproveProposal
* On-chain governance: parameter changes and treasury subsidies */ PROPOSAL CODE BELOW ApproveProposal() validates a 'GovProposal' message (ex. MsgCha
fsm/gov.go:17
↓ 3 callersMethodBlockToHash
BlockToHash() converts block bytes into a hash
bft/bft.go:879
↓ 3 callersMethodBytes
Bytes() returns the byte representation of the private key
lib/crypto/secp256k1.go:107
↓ 3 callersFunctionBytesToBLS12381PrivateKey
BytesToBLS12381PrivateKey() creates a new PrivateKeyI interface from a BLS Private Key bytes
lib/crypto/bls.go:54
↓ 3 callersFunctionBytesToSECP256K1Public
BytesToSECP256K1Public() returns SECP256K1PublicKey from bytes
lib/crypto/secp256k1.go:128
↓ 3 callersMethodBytesWithPrefix
Bytes() returns the byte representation of the Public Key
lib/crypto/eth_secp256k1.go:64
↓ 3 callersMethodCheckBasic
CheckBasic() executes basic sanity checks on the DoubleSign Evidence It's important to note that DoubleSign evidence may be processed for any height t
bft/evidence.go:189
↓ 3 callersMethodCheckProposerAndProposal
CheckProposerAndProposal() ensures the Leader message has the correct sender public key and correct ProposalHash
bft/bft.go:606
↓ 3 callersMethodCheckTx
CheckTx() validates the transaction object
fsm/transaction.go:76
↓ 3 callersMethodCleanup
Cleanup() adds polls to 'closed' section if past end height and removes any polls that are older than 4 weeks
fsm/gov_params.go:541
← previousnext →501–600 of 5,387, ranked by callers