MCPcopy Create free account

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

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

↓ 2 callersMethodgetPrice
getPrice() returns the dex price for a dex batch
fsm/dex.go:704
↓ 2 callersFunctiongetSigner
(signer AddrOrNickname)
cmd/rpc/client.go:523
↓ 2 callersMethodgetSigners
getSigners() returns the public keys and corresponding combined voting power of signers or non-signers
lib/consensus.go:274
↓ 2 callersMethodgetStateMachineWithHeight
setupStateMachine creates and returns a read-only state machine
cmd/rpc/server.go:233
↓ 2 callersMethodgetSupplyPool
getSupplyPool() returns the supply pool based on the target type
fsm/account.go:595
↓ 2 callersMethodgetSupplyPools
getSupplyPools retrieves a particular pool based on the target type
fsm/account.go:607
↓ 2 callersFunctiongetTableBody
(v)
cmd/rpc/web/explorer/components/table.jsx:199
↓ 2 callersFunctiongetTwoSecretsFromBuffer
getTwoSecretsFromBuffer() takes an HKDF buffer and
lib/crypto/aead.go:88
↓ 2 callersMethodgetValidatorSet
getValidatorSet() is a helper function to get a validator set ordered by stake to the maximum parameter
fsm/validator.go:424
↓ 2 callersFunctionhandleChange
(key, value)
cmd/rpc/web/wallet/components/governance.jsx:446
↓ 2 callersFunctionhandlePropOpen
(type)
cmd/rpc/web/wallet/components/governance.jsx:193
↓ 2 callersMethodhasNext
hasNext() checks if there is a next item in the iteration
store/txn.go:658
↓ 2 callersMethodhasPrev
hasPrev() checks if there is a previous item in the iteration
store/txn.go:674
↓ 2 callersMethodhashIndexer
hashIndexer is a helper function to abstract common workflows around a callback requiring a hash parameter
cmd/rpc/query.go:862
↓ 2 callersFunctionhashPrime
hashPrime() creates a random prime based on input x, y
lib/crypto/vdf.go:255
↓ 2 callersFunctionhashRequest
(hash)
cmd/rpc/web/explorer/components/api.js:87
↓ 2 callersFunctionheightAndAddrRequest
(height, address)
cmd/rpc/web/explorer/components/api.js:95
↓ 2 callersMethodheightAndAddressParams
heightAndAddressParams is a helper function to execute a callback with a state machine and address as parameters
cmd/rpc/query.go:687
↓ 2 callersMethodheightIdAndPointsParams
heightIdAndPointsParams is a helper function to execute a callback with a state machine, ID and points as parameters
cmd/rpc/query.go:719
↓ 2 callersMethodheightIdAndPointsRequest
(routeName string, height, id uint64, points bool, ptr any)
cmd/rpc/client.go:1060
↓ 2 callersFunctionhexToBytes
(hexStr: string)
plugin/typescript/tutorial/src/rpc_test.ts:48
↓ 2 callersFunctionhex_to_bytes
Convert hex string to bytes.
plugin/python/tutorial/rpc_test.py:58
↓ 2 callersFunctionincPseudoNonce
incPseudoNonce() increments the pseudo-nonce and returns the old value
cmd/rpc/eth.go:1066
↓ 2 callersFunctionincrementNonce
incrementNonce() increments the AEAD counter the counter ensures uniqueness, prevents 1:1 ciphertext for identical plaintext, and is seed data for the
p2p/encrypt.go:299
↓ 2 callersFunctioninitVDF
initVDF() initializes a class group and a discriminant from a seed
lib/crypto/vdf.go:46
↓ 2 callersMethodinsert
insert() batch inserts a number of txs into the list sorted by the highest fee to the lowest fee
lib/mempool.go:219
↓ 2 callersFunctionkdf
kdf derives an AES-GCM encryption key and nonce from a password and salt using Argon2 key derivation This key is used to initialize AES-GCM, and a 12-
lib/crypto/keystore.go:265
↓ 2 callersFunctionkey_for_account
Generate state database key for an account.
plugin/python/contract/contract.py:103
↓ 2 callersFunctionkeystoreGetKey
(rpcURL: string, address: string, password: string)
plugin/typescript/tutorial/src/rpc_test.ts:82
↓ 2 callersFunctionkeystoreGetKey
keystoreGetKey gets the key info from the keystore using raw JSON
plugin/go/tutorial/rpc_test.go:219
↓ 2 callersFunctionkeystoreNewKey
(rpcURL: string, nickname: string, password: string)
plugin/typescript/tutorial/src/rpc_test.ts:75
↓ 2 callersFunctionkeystoreNewKey
keystoreNewKey creates a new key in the keystore using raw JSON
plugin/go/tutorial/rpc_test.go:202
↓ 2 callersFunctionkeystore_get_key
Get key info from the keystore.
plugin/python/tutorial/rpc_test.py:92
↓ 2 callersFunctionkeystore_new_key
Create a new key in the keystore.
plugin/python/tutorial/rpc_test.py:85
↓ 2 callersMethodlpPointMap
()
fsm/dex_test.go:2839
↓ 2 callersFunctionmsgToSend
msgToSend() converts an any to MessageSend
cmd/rpc/eth.go:1445
↓ 2 callersFunctionnewDexChain
(t *testing.T, chainId, counterId uint64, rng *rand.Rand)
fsm/dex_test.go:2509
↓ 2 callersFunctionnewGovTxRequest
( address, amount, paramSpace, paramKey, paramValue, startBlock, endBlock, memo, fee, subm
cmd/rpc/web/wallet/components/api.js:254
↓ 2 callersFunctionnewInternalState
(aead cipher.AEAD)
p2p/encrypt.go:308
↓ 2 callersFunctionnewKeystore
newKeystore creates and responds with a new Keystore from a local keystore file
cmd/rpc/admin.go:738
↓ 2 callersFunctionnewTestAddress
(t *testing.T, variation ...int)
lib/block_test.go:446
↓ 2 callersMethodnewTestBlock
()
bft/mock_test.go:617
↓ 2 callersMethodnewTestBlock2
()
bft/mock_test.go:621
↓ 2 callersFunctionnewTestGenesisState
(t *testing.T)
fsm/genesis_test.go:694
↓ 2 callersFunctionnewTestMultiConnMock
(_ *testing.T, peerPubKey []byte, conn net.Conn, p *P2P)
p2p/set_test.go:111
↓ 2 callersFunctionnewTestTxResult
(t *testing.T)
store/indexer_test.go:46
↓ 2 callersFunctionnewTestValidateGenesisState
(t *testing.T)
fsm/genesis_test.go:736
↓ 2 callersFunctionnormalizeId
(id: Long | number | undefined)
plugin/typescript/src/contract/plugin.ts:12
↓ 2 callersFunctionpagination
(data, callback)
cmd/rpc/web/explorer/components/util.js:126
↓ 2 callersFunctionparseAddressFromABI
parseAddressFromABI() extracts the address from the ABI data
cmd/rpc/eth.go:1420
↓ 2 callersFunctionparseValueWithTombstone
parseValueWithTombstone() extracts tombstone and actual value v = [1-byte Tombstone][ActualValue] The caller should not modify the returned userKey sl
store/versioned_store.go:556
↓ 2 callersMethodpassesAddressFilter
passesAddressFilter() ensures the address is in the slice (nil slice means all)
cmd/rpc/eth.go:990
↓ 2 callersFunctionpollRequest
(address, json, password, approve)
cmd/rpc/web/wallet/components/api.js:124
↓ 2 callersMethodpubKeyBytesToAddress
pubKeyBytesToAddress() is a convenience function that converts a public key to an address
fsm/validator.go:498
↓ 2 callersFunctionrandomTestKey
(_ *testing.T, k []byte, keys []string)
store/fuzz_test.go:143
↓ 2 callersFunctionreceiveProtoMsg
receiveProtoMsg() receives and decodes a length-prefixed proto message from a net.Conn returns length of message bytes
p2p/conn.go:559
↓ 2 callersMethodrecordDYMonotonicity
recordDYMonotonicity samples SafeComputeDY for a couple of dX values against prior pools.
fsm/dex_test.go:2849
↓ 2 callersMethodrehash
rehash() recalculate hashes from the current node upwards until a) the next operation key is LTE the right sibling's key, after truncating it to the r
store/smt.go:365
↓ 2 callersFunctionrenderPageTable
(tab)
cmd/rpc/web/explorer/components/modal.jsx:251
↓ 2 callersMethodreplaceChild
replaceChild() replaces the child reference with a new key
store/smt.go:1089
↓ 2 callersMethodresetGCP
resetGCP() resets the greatest common prefix and path variables
store/smt.go:577
↓ 2 callersFunctionrevert
revert() is a helper function for reverting ABI
cmd/rpc/eth.go:1388
↓ 2 callersMethodrunStaticFileServer
runStaticFileServer creates a web server serving static files
cmd/rpc/server.go:345
↓ 2 callersFunctionsendProtoMsg
HELPERS BELOW sendProtoMsg() encodes and sends a length-prefixed proto message to a net.Conn returns length of message bytes
p2p/conn.go:547
↓ 2 callersMethodsendProtoMsg
(msg: any)
plugin/typescript/src/contract/plugin.ts:300
↓ 2 callersMethodsendProtoMsg
sendProtoMsg() encodes and sends a length-prefixed proto message to a net.Conn
plugin/go/contract/plugin.go:243
↓ 2 callersMethodsendWireBytes
sendWireBytes() a rate limited writer of outbound bytes to the wire wraps a proto.Message into a universal Envelope, then converts to bytes and sends
p2p/conn.go:404
↓ 2 callersMethodsetChildren
setChildren() sets the children of a node in its structure
store/smt.go:1073
↓ 2 callersFunctionsetProxyDeadline
setProxyDeadline() sets the
lib/peer.go:679
↓ 2 callersMethodsetSortitionData
setSortitionData, sets the 'mock' sortition data for testing the ELECTION phase
bft/mock_test.go:213
↓ 2 callersFunctionsetStatus
(status)
cmd/rpc/web/wallet/components/api.js:335
↓ 2 callersFunctionshouldSimultePending
[hash] -> height shouldSimultePending() sets a pending tx in the map and returns the status of the transaction
cmd/rpc/eth.go:1102
↓ 2 callersMethodsimCommitPhase
simCommitPhase() simulates the COMMIT phase of the BFT lifecycle
bft/mock_test.go:194
↓ 2 callersMethodsimElectionPhase
simElectionPhase() simulates the election phase of the BFT lifecycle
bft/mock_test.go:97
↓ 2 callersMethodsimPacemakerPhase
simPacemakerPhase() simulates the PACEMAKER phase of the BFT lifecycle
bft/mock_test.go:204
↓ 2 callersMethodsimPrecommitVotePhase
simPrecommitVote() simulates the PRECOMMIT-VOTE phase of the BFT lifecycle
bft/mock_test.go:178
↓ 2 callersMethodskipToIndex
skipToIndex() sanity checks params and then determines the first index of the page
lib/util.go:180
↓ 2 callersFunctionsortition
sortition() determines if IsCandidate using the hash of the VRF and calculates the expected candidates
bft/election.go:81
↓ 2 callersMethodstartRPC
startRPC starts an RPC server with the provided router and port
cmd/rpc/server.go:104
↓ 2 callersMethodstate_read
StateRead sends a state read request to FSM and waits for response.
plugin/python/contract/plugin.py:166
↓ 2 callersMethodstate_write
StateWrite sends a state write request to FSM and waits for response.
plugin/python/contract/plugin.py:201
↓ 2 callersMethodsubFromSupplyPool
subFromSupplyPool() subtracts from a supply pool using a subtraction callback with 'executeOnSupplyPool'
fsm/account.go:581
↓ 2 callersFunctiontestDBDelete
(t *testing.T, db lib.WStoreI, k []byte)
store/fuzz_test.go:156
↓ 2 callersFunctiontestDBGet
(t *testing.T, db lib.RWStoreI, k []byte)
store/fuzz_test.go:160
↓ 2 callersFunctiontestDBSet
(t *testing.T, db lib.WStoreI, k, v []byte)
store/fuzz_test.go:152
↓ 2 callersMethodtoKey
toKey() converts the address bytes to a string and ensures the map is initialized for that address
fsm/byzantine.go:430
↓ 2 callersMethodtxHashKey
(hash []byte)
store/indexer.go:768
↓ 2 callersMethodtxRecipientKey
(address, heightAndIndexKey []byte)
store/indexer.go:796
↓ 2 callersMethodtxSenderKey
(address, heightAndIndexKey []byte)
store/indexer.go:792
↓ 2 callersMethodtxStake
(from AddrOrNickname, netAddr string, amt uint64, committees, output string, delegate, earlyWithdrawal bool, s
cmd/rpc/client.go:896
↓ 2 callersMethodunmarshal
(resp *http.Response, ptr any)
cmd/rpc/client.go:1100
↓ 2 callersMethodunmarshalOrder
unmarshalOrder() converts bytes into a SellOrder object
fsm/swap.go:425
↓ 2 callersMethodupdateParentValue
updateParentValue() updates the value of parent based on its children
store/smt.go:427
↓ 2 callersFunctionvalidatePollHash
validatePollHash() ensures a poll hash is valid for a poll transaction
fsm/gov_params.go:616
↓ 2 callersFunctionvalidateWithExportedState
(t *testing.T, sm StateMachine, expected *GenesisState)
fsm/genesis_test.go:797
↓ 2 callersMethodvalueOpToSMTNode
valueOpToSMTNode() converts a txn value operation into an SMT node
store/smt.go:559
↓ 2 callersMethodvalueWithTombstone
valueWithTombstone() creates a value with tombstone prefix v = [1-byte Tombstone][ActualValue]
store/versioned_store.go:507
↓ 2 callersFunctionvotePollAPI
(address, json, approve, password)
cmd/rpc/web/wallet/components/governance.jsx:181
↓ 2 callersFunctionvoteRequest
(json, approve)
cmd/rpc/web/wallet/components/api.js:120
↓ 2 callersMethodwriteMessage
(messageType int, data []byte)
cmd/rpc/sock.go:609
← previousnext →1,201–1,300 of 5,387, ranked by callers