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
↓ 1 callers
Method
IndexEvent
EVENTS CODE BELOW IndexEvent() indexes the event by hash, height, address and chainId
store/indexer.go:390
↓ 1 callers
Method
IndexTx
TRANSACTION CODE BELOW IndexTx() indexes the transaction by hash, height, sender and receiver the tx bytes is indexed by hash and then that hash is in
store/indexer.go:238
↓ 1 callers
Method
IndexerBlobsCached
IndexerBlobsCached() is a helper function for the indexer blobs implementation
cmd/rpc/query.go:595
↓ 1 callers
Method
IsFeatureEnabled
UPGRADE CODE BELOW IsFeatureEnabled() checks if a feature is enabled based on the protocol version stored in the state compared to the required activa
fsm/gov.go:501
↓ 1 callers
Method
Iterator
collective number of bytes in the pool
lib/mempool.go:26
↓ 1 callers
Method
Key
Key() returns the transaction at the current iterator position
lib/mempool.go:201
↓ 1 callers
Method
Key
Key() returns a unique string key for the cache
lib/crypto/key_batch.go:191
↓ 1 callers
Function
KeyForFeeParams
()
plugin/typescript/src/contract/contract.ts:315
↓ 1 callers
Function
KeyForFeeParams
KeyForFeeParams() returns the state database key for governance controlled 'fee parameters'
plugin/go/contract/contract.go:278
↓ 1 callers
Function
KeyForFeePool
(chainId: Long)
plugin/typescript/src/contract/contract.ts:320
↓ 1 callers
Function
KeyForFeePool
KeyForFeeParams() returns the state database key for governance controlled 'fee parameters'
plugin/go/contract/contract.go:283
↓ 1 callers
Function
Keystore
()
cmd/rpc/web/wallet/components/api.js:282
↓ 1 callers
Function
Keystore
()
cmd/rpc/web/wallet/components/account.jsx:56
↓ 1 callers
Method
Keystore
Keystore responds with the local keystore
cmd/rpc/admin.go:27
↓ 1 callers
Method
KeystoreDelete
KeystoreDelete removes a key from the keystore using either the address or nickname
cmd/rpc/admin.go:94
↓ 1 callers
Function
KeystoreGet
(address, password, nickname)
cmd/rpc/web/wallet/components/api.js:286
↓ 1 callers
Method
KeystoreGet
(addrOrNickname AddrOrNickname, password string)
cmd/rpc/client.go:484
↓ 1 callers
Function
KeystoreImport
(pk, password, nickname)
cmd/rpc/web/wallet/components/api.js:294
↓ 1 callers
Method
KeystoreImport
KeystoreImport adds a new key to the keystore using an encrypted private key
cmd/rpc/admin.go:62
↓ 1 callers
Method
KeystoreImportRaw
KeystoreImportRaw adds a new key to the keystore using a raw private key
cmd/rpc/admin.go:78
↓ 1 callers
Method
KeystoreNewKey
KeystoreNewKey adds a new key to the keystore
cmd/rpc/admin.go:40
↓ 1 callers
Method
LastProposers
LastProposers returns the last Proposer addresses
cmd/rpc/query.go:336
↓ 1 callers
Method
ListenForBlock
* This file contains the high level functionality of block / proposal processing */ ListenForBlock() listens for inbound block messages, internally ro
controller/block.go:21
↓ 1 callers
Method
ListenForBlockRequests
ListenForBlockRequests() listen for inbound block request messages from syncing peers, handles and answer them
controller/consensus.go:381
↓ 1 callers
Method
ListenForConsensus
SUBSCRIBERS BELOW ListenForConsensus() listens and internally routes inbound consensus messages
controller/consensus.go:294
↓ 1 callers
Method
ListenForInbound
()
plugin/typescript/src/contract/plugin.ts:128
↓ 1 callers
Method
ListenForInbound
ListenForInbound() routes inbound requests from the plugin
plugin/go/contract/plugin.go:123
↓ 1 callers
Method
ListenForInbound
ListenForInbound() routes inbound requests from the plugin
lib/plugin.go:223
↓ 1 callers
Method
ListenForInboundPeers
ListenForInboundPeers() starts a rate-limited tcp listener service to accept inbound peers
p2p/p2p.go:128
↓ 1 callers
Method
ListenForMustConnects
ListenForMustConnects() is an internal listener that receives 'must connect peers' updates from the controller
p2p/p2p.go:475
↓ 1 callers
Method
ListenForPeerBookRequests
ListenForPeerBookRequests()
p2p/book.go:158
↓ 1 callers
Method
ListenForPeerBookResponses
()
p2p/book.go:90
↓ 1 callers
Method
ListenForTx
ListenForTx() listen for inbound tx messages, internally route them, and gossip them to peers
controller/tx.go:31
↓ 1 callers
Method
LoadCertificate
LoadCertificate() gets the certificate for from the indexer at a specific height
controller/controller.go:334
↓ 1 callers
Method
LoadCommittee
LoadCommittee() gets the ValidatorSet that is authorized to come to Consensus agreement on the Proposal for a specific height/chainId
controller/controller.go:212
↓ 1 callers
Method
LoadLastCommitTime
LoadLastCommitTime() gets a timestamp from the most recent Quorum Block
controller/controller.go:357
↓ 1 callers
Method
LoadMaxBlockSize
LoadMaxBlockSize() gets the max block size from the state
controller/controller.go:344
↓ 1 callers
Method
LoadMaxBlockSize
LoadMaxBlockSize() loads the chain enforced maximum block size for valid blocks
bft/bft.go:978
↓ 1 callers
Method
LoadRootChainOrderBook
LoadRootChainOrderBook() gets the order book from the root-chain
controller/controller.go:217
↓ 1 callers
Method
LogNonSigners
(validatorList *ConsensusValidators, proposerPubKey []byte, height, chainId uint64, logger LoggerI)
lib/consensus.go:220
↓ 1 callers
Function
Logs
()
cmd/rpc/web/wallet/components/api.js:298
↓ 1 callers
Method
Logs
()
cmd/rpc/client.go:863
↓ 1 callers
Function
Marshal
(message: any)
plugin/typescript/src/contract/plugin.ts:365
↓ 1 callers
Function
MaxBitmapSize
(numValidators uint64)
lib/crypto/bls.go:354
↓ 1 callers
Method
MaxPossibleInbound
MaxPossibleInbound() sums the MaxIn, MaxCommitteeConnects and trusted peer IDs
p2p/p2p.go:462
↓ 1 callers
Method
MaybeCompact
MaybeCompact() checks if it is time to compact the LSS and HSS respectively
store/store.go:465
↓ 1 callers
Function
MerkleTree
MerkleTree creates a merkle tree from a slice of bytes. A linear slice was chosen since it uses about half as much memory as a tree example: items = {
lib/crypto/hash.go:49
↓ 1 callers
Method
MintToAccount
MintToAccount() adds newly created tokens to an Account. NOTE: This should only be used in deterministic, consensus-safe paths.
fsm/account.go:331
↓ 1 callers
Method
Module
Returns the error code
lib/error.go:12
↓ 1 callers
Method
Monitor
Monitor runs the process while waiting for it to stop
cmd/auto-update/coordinator.go:72
↓ 1 callers
Function
MustMarshalJSON
MustMarshalJSON() serializes a message into a JSON without error checking
lib/util.go:440
↓ 1 callers
Method
NetListening
NetListening() canopy is always listening for peers
cmd/rpc/eth.go:174
↓ 1 callers
Method
NetPeerCount
NetPeerCount() returns the number of peers
cmd/rpc/eth.go:177
↓ 1 callers
Method
NetVersion
NetVersion() returns the network id
cmd/rpc/eth.go:169
↓ 1 callers
Function
New
New() creates a new instance of a Controller, this is the entry point when initializing an instance of a Canopy application
controller/controller.go:49
↓ 1 callers
Function
New
New() creates a new instance of a StoreI either in memory or an actual disk DB
store/store.go:83
↓ 1 callers
Function
NewBLS12381PrivateKeyFromFile
NewBLS12381PrivateKeyFromFile() creates a new PrivateKeyI interface from a BLS12381 json file
lib/crypto/bls.go:66
↓ 1 callers
Function
NewBTreeIterator
NewBTreeIterator() creates a new iterator starting at the closest item to the given key
store/txn.go:535
↓ 1 callers
Function
NewBigIntPool
NewBigIntPool() constructs a big int pool
lib/crypto/classgroup.go:541
↓ 1 callers
Function
NewBlockTracker
NewBlockTracker() constructs a NewHeightTracker
lib/peer.go:297
↓ 1 callers
Function
NewCertificateResultsTx
NewCertificateResultsTx() creates a CertificateResultsTransaction object in the interface form of TransactionI
fsm/transaction.go:432
↓ 1 callers
Function
NewChangeParamTxUint64
NewChangeParamTxUint64() creates a ChangeParamTransaction object (for uint64s) in the interface form of TransactionI
fsm/transaction.go:390
↓ 1 callers
Function
NewCloseOrderTx
NewCloseOrderTx() completes the purchase of a sell order using a send-tx and the memo field
fsm/transaction.go:524
↓ 1 callers
Method
NewConnection
NewConnection() creates and starts a new instance of a MultiConn
p2p/conn.go:79
↓ 1 callers
Function
NewCoordinator
NewCoordinator creates a new Coordinator instance
cmd/auto-update/coordinator.go:154
↓ 1 callers
Function
NewCreateOrderTx
NewCreateOrderTx() creates a CreateOrderTransaction object in the interface form of TransactionI
fsm/transaction.go:447
↓ 1 callers
Function
NewDAOTransferTx
NewDAOTransferTx() creates a DAOTransferTransaction object in the interface form of TransactionI
fsm/transaction.go:422
↓ 1 callers
Function
NewDeleteOrderTx
NewDeleteOrderTx() creates an DeleteOrderTransaction object in the interface form of TransactionI
fsm/transaction.go:475
↓ 1 callers
Function
NewDexLimitOrder
NewDexLimitOrder() creates a DexLimitOrder object in the interface form of TransactionI
fsm/transaction.go:487
↓ 1 callers
Function
NewDexLiquidityDeposit
NewDexLiquidityDeposit() creates a DexLiquidityDeposit object in the interface form of TransactionI
fsm/transaction.go:497
↓ 1 callers
Function
NewDexLiquidityWithdraw
NewDexLiquidityWithdraw() creates a DexLiquidityWithdrawal object in the interface form of TransactionI
fsm/transaction.go:506
↓ 1 callers
Function
NewDiscriminant
NewDiscriminant generates a 2048-bit discriminant using a seed The discriminant % 8 == 7 and is a negated random prime p between 13 - 2^4096
lib/crypto/classgroup.go:362
↓ 1 callers
Function
NewEditOrderTx
NewEditOrderTx() creates an EditOrderTransaction object in the interface form of TransactionI
fsm/transaction.go:459
↓ 1 callers
Function
NewEditStakeTx
NewEditStakeTx() creates a EditStakeTransaction object in the interface form of TransactionI
fsm/transaction.go:363
↓ 1 callers
Function
NewLockOrderTx
NewLockOrderTx() reserves a sell order using a send-tx and the memo field
fsm/transaction.go:515
↓ 1 callers
Function
NewMempool
NewMempool() creates a new instance of a Mempool structure
controller/tx.go:175
↓ 1 callers
Function
NewMempoolIterator
NewMempoolIterator() initializes a new iterator for the mempool transactions
lib/mempool.go:189
↓ 1 callers
Function
NewMetricsServer
NewMetricsServer() creates a new telemetry server
lib/metrics.go:170
↓ 1 callers
Function
NewPauseTx
NewPauseTx() creates a PauseTransaction object in the interface form of TransactionI
fsm/transaction.go:380
↓ 1 callers
Function
NewPeerBook
NewPeerBook() instantiates a PeerBook object from a file, it creates a file if none exist
p2p/book.go:39
↓ 1 callers
Function
NewPeerSet
(c lib.Config, priv crypto.PrivateKeyI, metrics *lib.Metrics, logger lib.LoggerI)
p2p/set.go:33
↓ 1 callers
Function
NewPlugin
NewPlugin() creates and starts a plguin
lib/plugin.go:40
↓ 1 callers
Function
NewPluginSchemaRegistry
NewPluginSchemaRegistry()
lib/codec.go:109
↓ 1 callers
Method
NewPoll
NewPoll() creates a new poll from the start poll embed
fsm/gov_params.go:519
↓ 1 callers
Function
NewRCManager
NewRCManager() constructs a new instance of a RCManager
cmd/rpc/sock.go:54
↓ 1 callers
Method
NewReadOnly
make a clone of the store
lib/store.go:20
↓ 1 callers
Function
NewRetry
NewRetry() constructs a new Retry given parameters
lib/util.go:831
↓ 1 callers
Function
NewServer
NewServer constructs and returns a new Canopy RPC server
cmd/rpc/server.go:67
↓ 1 callers
Function
NewSnapshotManager
NewSnapshotManager creates a new SnapshotManager
cmd/auto-update/updater.go:205
↓ 1 callers
Function
NewStakeTx
NewStakeTx() creates a StakeTransaction object in the interface form of TransactionI
fsm/transaction.go:350
↓ 1 callers
Function
NewStartPollTransaction
NewStartPollTransaction() isn't an actual transaction type - rather it's a protocol built on top of send transactions to allow simple straw polling on
fsm/gov_params.go:571
↓ 1 callers
Function
NewStore
NewStore() creates a new instance of a disk DB˙
store/store.go:91
↓ 1 callers
Function
NewSubsidyTx
NewSubsidyTx() creates a SubsidyTransaction object in the interface form of TransactionI
fsm/transaction.go:437
↓ 1 callers
Function
NewSupervisor
NewSupervisor creates a new ProcessSupervisor instance
cmd/auto-update/coordinator.go:32
↓ 1 callers
Function
NewUnpauseTx
NewUnpauseTx() creates a UnpauseTransaction object in the interface form of TransactionI
fsm/transaction.go:385
↓ 1 callers
Function
NewUnstakeTx
NewUnstakeTx() creates a UnstakeTransaction object in the interface form of TransactionI
fsm/transaction.go:375
↓ 1 callers
Function
NewUpdateManager
NewUpdateManager creates a new UpdateManager instance
cmd/auto-update/updater.go:57
↓ 1 callers
Function
NewVDFService
NewVDFService() creates a new instance of the VDF service
lib/vdf.go:39
↓ 1 callers
Function
NewVotePollTransaction
NewVotePollTransaction() isn't an actual transaction type - rather it's a protocol built on top of send transactions to allow simple straw polling on
fsm/gov_params.go:602
↓ 1 callers
Method
NextDexBatch
NextDexBatch retrieves the 'up-next' dex batch for a committee
cmd/rpc/query.go:324
← previous
next →
1,701–1,800 of 5,387, ranked by callers