MCPcopy Create free account

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

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

↓ 855 callersFunctionnewTestAddressBytes
(t *testing.T, variation ...int)
fsm/state_test.go:367
↓ 720 callersMethodEqual
Equal() compares two ClassGroups using their underlying values and returns true if they are equivalent
lib/crypto/classgroup.go:343
↓ 373 callersMethodError
(msg string)
lib/log.go:36
↓ 308 callersMethodBytes
Bytes() casts the public key to bytes
lib/crypto/key.go:47
↓ 275 callersFunctionNewError
(code ErrorCode, module ErrorModule, msg string)
lib/error.go:28
↓ 269 callersFunctionnewTestNode
newTestNode creates a new node with the given key, value, left and right child keys
store/smt_test.go:2068
↓ 243 callersFunctionHash
Hash() executes the global hashing algorithm on input bytes
lib/crypto/hash.go:28
↓ 221 callersMethodbytes
bytes() encodes a key object to bytes
store/smt.go:970
↓ 203 callersFunctionnewTestPublicKeyBytes
(t *testing.T, variation ...int)
fsm/state_test.go:376
↓ 192 callersMethodRun
Run() *blocking call*: generates a VDF proof using the current params state of the VDF Service object The design is to save the results
lib/vdf.go:50
↓ 187 callersMethodErrorf
(format string, args ...any)
lib/log.go:42
↓ 164 callersMethodDebugf
(format string, args ...any)
lib/log.go:39
↓ 127 callersFunctionMarshal
Marshal() serializes a proto.Message into a byte slice
lib/util.go:258
↓ 127 callersMethodUnmarshal
(data []byte, ptr any)
lib/codec/codec.go:16
↓ 124 callersFunctionnewTestStateMachine
(t *testing.T)
fsm/state_test.go:334
↓ 120 callersMethodMarshal
Marshal() models the protobuf.Marshaller interface
lib/crypto/key.go:45
↓ 113 callersFunctionJoinLenPrefix
JoinLenPrefix() appends the items together separated by a single byte to represent the length of the segment
lib/util.go:775
↓ 109 callersMethodSet
(key, value []byte)
lib/store.go:85
↓ 101 callersMethodFatal
(msg string)
lib/log.go:37
↓ 100 callersFunctionnewTestOrderId
(_ *testing.T, variant int)
fsm/swap_test.go:713
↓ 98 callersFunctionnewTestPublicKeyBytes
(t *testing.T, variation ...int)
lib/block_test.go:460
↓ 97 callersMethodNew
()
lib/tx.go:72
↓ 89 callersMethodGetPool
POOL CODE BELOW * Pools are owner-less designation funds that are 'earmarked' for a purpose NOTE: A distinct structure for pools are used instead of
fsm/account.go:223
↓ 89 callersFunctionwrite
write marshaled payload to w
cmd/rpc/server.go:430
↓ 84 callersMethodPublicKey
()
lib/crypto/key.go:32
↓ 83 callersFunctionNewAddress
NewAddress() creates a new address object from bytes by assigning bytes to the underlying address object
lib/crypto/address.go:77
↓ 82 callersFunctionBytesToString
BytesToString() converts a byte slice to a hexadecimal string
lib/util.go:537
↓ 79 callersMethodLock
()
bft/bft.go:930
↓ 79 callersMethodUnlock
()
bft/bft.go:931
↓ 77 callersFunctionnewTestAddress
(t *testing.T, variation ...int)
fsm/state_test.go:362
↓ 75 callersMethodClose
()
store/txn.go:71
↓ 72 callersMethodString
String() returns the hex string representation
lib/crypto/key.go:49
↓ 69 callersMethodInfof
(format string, args ...any)
lib/log.go:40
↓ 67 callersMethodWarnf
(format string, args ...any)
lib/log.go:41
↓ 66 callersFunctionwriteToConsole
(a any, err error)
cmd/cli/cli.go:298
↓ 62 callersMethodKey
move to next item
lib/store.go:107
↓ 62 callersMethodSetPool
SetPool() upserts a Pool structure into the state
fsm/account.go:288
↓ 61 callersMethodLen
()
lib/event.go:73
↓ 58 callersMethodAddress
Address() creates a unique shorter fixed length version of the public key
lib/crypto/key.go:13
↓ 57 callersFunctionkeyBytesFromStr
keyBytesFromStr converts a string of binary bits to a byte slice CONTRACT: str must be < than 8 bits
store/smt_test.go:2088
↓ 56 callersFunctionUnmarshal
Unmarshal() deserializes a byte slice into a proto.Message
lib/util.go:271
↓ 56 callersMethodValue
retrieve key
lib/store.go:108
↓ 52 callersMethodFatalf
(format string, args ...any)
lib/log.go:43
↓ 51 callersMethodValid
()
lib/store.go:105
↓ 49 callersMethodCopy
access the height of the store
lib/store.go:19
↓ 49 callersMethodNext
if the item the iterator is pointing at is valid
lib/store.go:106
↓ 49 callersFunctioncopy
(state, setState, detail, toastText = "Copied!")
cmd/rpc/web/wallet/components/util.js:484
↓ 48 callersFunctionBytesToTruncatedString
BytesToTruncatedString() converts a byte slice to a truncated hexadecimal string
lib/util.go:556
↓ 48 callersMethodClose
reset the underlying writer
lib/store.go:24
↓ 48 callersMethodGetValidator
()
fsm/gov.pb.go:154
↓ 48 callersMethodHeight
()
fsm/state.go:651
↓ 46 callersFunctionHashString
HashString() returns the hex byte version of a hash
lib/crypto/hash.go:44
↓ 44 callersMethodContains
(txHash string)
lib/mempool.go:18
↓ 44 callersFunctionDefaultParams
DefaultParams() returns the developer set params
fsm/gov_params.go:40
↓ 41 callersMethodDiscard
save the store and increment the height
lib/store.go:22
↓ 41 callersMethodGetSupply
GetSupply() returns the Supply structure held in the state
fsm/account.go:530
↓ 41 callersMethodStore
various self-explanatory 1 line functions below
fsm/state.go:649
↓ 39 callersMethodGetParamsVal
GetParamsVal() returns the current state of the governance params in the Validator space
fsm/gov.go:319
↓ 38 callersFunctionnewTestAddressBytes
(t *testing.T, variation ...int)
lib/block_test.go:451
↓ 37 callersMethodLoad
Load() fills a page from an IteratorI
lib/util.go:76
↓ 36 callersMethodAccountAdd
AccountAdd() adds tokens to an Account
fsm/account.go:130
↓ 36 callersFunctionNewAddressFromBytes
NewAddressFromBytes() casts bytes as an AddressI interface
lib/crypto/address.go:24
↓ 35 callersMethodGetAccountBalance
GetAccountBalance() returns the balance of an Account at a specific address
fsm/account.go:73
↓ 35 callersMethodInfo
(msg string)
lib/log.go:34
↓ 35 callersFunctionargToInt
(arg string)
cmd/cli/query.go:500
↓ 35 callersFunctionnewTestP2PNode
(t *testing.T)
p2p/p2p_test.go:535
↓ 34 callersMethodHash
Hash() computes, sets, and returns the BlockHash
lib/block.go:201
↓ 34 callersMethodSetSupply
SetSupply() upserts the Supply structure into the state
fsm/account.go:541
↓ 33 callersMethodAdd
Add() introduces a peer to the set
p2p/set.go:54
↓ 33 callersMethodChainHeight
ChainHeight returns the height of the target-chain
bft/bft.go:933
↓ 33 callersFunctionNewAny
NewAny() converts a proto.Message into an anypb.Any type
lib/util.go:511
↓ 33 callersMethodSetValidator
SetValidator() upserts a Validator object into the state
fsm/validator.go:182
↓ 32 callersMethodStop
Stop() stops the P2P service
p2p/p2p.go:116
↓ 31 callersMethodDebug
(msg string)
lib/log.go:33
↓ 31 callersFunctionPOST
(url, path, request)
cmd/rpc/web/wallet/components/api.js:95
↓ 30 callersMethodGetPoolBalance
GetPoolBalance() returns the balance of a Pool at an ID
fsm/account.go:277
↓ 29 callersMethodGet
(key []byte)
store/txn.go:69
↓ 29 callersMethodGetDexBatch
get a specific order from the order book
lib/consensus.go:125
↓ 29 callersFunctionNewClassGroup
NewClassGroup() is a constructor for the class group object
lib/crypto/classgroup.go:44
↓ 29 callersMethodSign
(p crypto.PrivateKeyI)
lib/tx.go:433
↓ 29 callersMethodgetFeeFromState
getFeeFromState populates txRequest with the fee for the transaction type specified in messageName
cmd/rpc/server.go:245
↓ 28 callersMethodCommit
()
store/txn.go:79
↓ 28 callersMethodEquals
(AddressI)
lib/crypto/key.go:50
↓ 28 callersFunctionNewPublicKeyFromBytes
NewPublicKeyFromBytes() creates a new PublicKeyI interface from a byte slice
lib/crypto/key.go:87
↓ 28 callersFunctiongetPoolBalance
(t *testing.T, sm *StateMachine, poolId uint64)
fsm/dex_test.go:3430
↓ 27 callersMethodAggregateSignatures
()
lib/crypto/key.go:57
↓ 27 callersMethodDelete
set value bytes referenced by key bytes
lib/store.go:86
↓ 27 callersMethodGet
(key []byte)
lib/store.go:91
↓ 27 callersMethodPrintf
(format string, args ...any)
lib/log.go:44
↓ 27 callersFunctionargGetAddrOrNickname
(arg string)
cmd/cli/admin.go:426
↓ 27 callersMethodget
(publicKey []byte)
p2p/set.go:341
↓ 26 callersMethodIterator
access value bytes using key bytes
lib/store.go:92
↓ 25 callersFunctionfile_plugin_proto_rawDescGZIP
()
plugin/go/tutorial/contract/plugin.pb.go:1802
↓ 25 callersFunctionfile_plugin_proto_rawDescGZIP
()
plugin/go/contract/plugin.pb.go:1802
↓ 25 callersFunctionfile_plugin_proto_rawDescGZIP
()
lib/plugin.pb.go:1816
↓ 25 callersFunctionnewTestConsensus
newTestConsensus() creates a Consensus test suite containing a testable BFT object using a mocked controller and a deterministic validator set
bft/mock_test.go:24
↓ 24 callersMethodBitmap
Bitmap() returns a clone of the bitmap of the MPK The bitmap is used to track who signed or not
lib/crypto/key.go:70
↓ 24 callersMethodClone
Clone() returns a deep copy of the slash tracker to allow safe rollback on failed operations
fsm/byzantine.go:402
↓ 24 callersMethodHeight
Height responds with the next block version
cmd/rpc/query.go:51
↓ 24 callersFunctionMarshalJSON
MarshalJSON() serializes a message into a JSON byte slice
lib/util.go:427
next →1–100 of 5,387, ranked by callers