Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DNAProject/DNA
/ functions
Functions
3,494 in github.com/DNAProject/DNA
⨍
Functions
3,494
◇
Types & classes
552
↓ 3 callers
Method
NextInt64
()
common/zero_copy_source.go:155
↓ 3 callers
Method
Not
()
vm/neovm/types/int_value.go:251
↓ 3 callers
Method
Or
(other IntValue)
vm/neovm/types/int_value.go:218
↓ 3 callers
Function
ParseNativeParams
(builder *neovm.ParamsBuilder, params []interface{}, paramsAbi []*abi.NativeContractParamAbi)
cmd/utils/native_param.go:78
↓ 3 callers
Function
ParseParams
ParseParams return interface{} array of encode params item. A param item compose of type and value, type can be: bytearray, string, int, bool Param ty
cmd/utils/params.go:59
↓ 3 callers
Method
PopAsArray
()
vm/neovm/value_stack_conversion.go:85
↓ 3 callers
Method
PopContext
()
smartcontract/context/context.go:41
↓ 3 callers
Method
Post
(path string, handler http.HandlerFunc)
http/restful/restful/router.go:104
↓ 3 callers
Method
PreExecuteContractBatch
(txes []*types.Transaction, atomic bool)
core/store/store.go:70
↓ 3 callers
Function
PrintNotice
* common - print notice when user need to choose or enter something */
cmd/common/notice.go:27
↓ 3 callers
Function
ProgramFromMultiPubKey
(pubkeys []keypair.PublicKey, m int)
core/program/program.go:123
↓ 3 callers
Method
PushContext
(context *Context)
smartcontract/context/context.go:37
↓ 3 callers
Method
PushNotifications
(notifications []*event.NotifyEventInfo)
smartcontract/context/context.go:43
↓ 3 callers
Method
PushNum
(num uint16)
core/program/program.go:50
↓ 3 callers
Method
Put
(key []byte, value []byte)
core/store/overlaydb/overlaydb.go:80
↓ 3 callers
Function
RandomAddress
()
smartcontract/service/native/testsuite/gas_suite.go:39
↓ 3 callers
Function
ReadByte
(reader io.Reader)
common/serialization/serialize.go:305
↓ 3 callers
Function
ReadBytes
(reader io.Reader, length uint64)
common/serialization/serialize.go:183
↓ 3 callers
Method
ReadBytesInto
(b []byte)
vm/neovm/utils/vm_reader.go:67
↓ 3 callers
Function
ReadString
(reader io.Reader)
common/serialization/serialize.go:163
↓ 3 callers
Method
ReadUint32
()
vm/neovm/utils/vm_reader.go:84
↓ 3 callers
Method
RemoveFromConnectingList
Remove the peer from connecting list if the connection is established
p2pserver/net/netserver/netserver.go:443
↓ 3 callers
Method
RemoveFromInConnRecord
(addr string)
p2pserver/net/protocol/server.go:59
↓ 3 callers
Method
RemoveFromOutConnRecord
(addr string)
p2pserver/net/protocol/server.go:58
↓ 3 callers
Function
SafeAdd
(x, y uint64)
common/safeMath.go:34
↓ 3 callers
Method
SaveBlockHash
SaveBlockHash persist block height and block hash to store
core/store/ledgerstore/block_store.go:349
↓ 3 callers
Method
Serialization
(sink *common.ZeroCopySink)
core/payload/deploy_code.go:132
↓ 3 callers
Method
SetDebugLevel
(level int)
common/log/log.go:132
↓ 3 callers
Method
SetPort
SetPort sets a peer's sync port
p2pserver/peer/peer.go:92
↓ 3 callers
Method
SetVersion
SetVersion sets a peer's version
p2pserver/peer/peer.go:62
↓ 3 callers
Method
Size
Size returns sum of keys and values length. Note that deleted key/value will not be accounted for, but it will still consume the buffer, since the buf
core/store/overlaydb/memdb.go:405
↓ 3 callers
Method
Skip
(n uint64)
common/zero_copy_source.go:70
↓ 3 callers
Method
Start
()
http/base/rest/interfaces.go:40
↓ 3 callers
Method
Start
()
consensus/consensus.go:34
↓ 3 callers
Method
StartCommitTimer
(blockNum uint32)
consensus/vbft/event_timer.go:272
↓ 3 callers
Method
StartEndorseEmptyBlockTimer
(blockNum uint32)
consensus/vbft/event_timer.go:257
↓ 3 callers
Method
String
()
common/fixed64.go:60
↓ 3 callers
Method
Type
()
consensus/dbft/consensus_message.go:35
↓ 3 callers
Method
Unsubscribe
(topic string)
events/actor_event.go:104
↓ 3 callers
Method
UpdateRXTime
record latest message time
p2pserver/link/link.go:106
↓ 3 callers
Method
VerifyLeafHashInclusion
* Verify a Merkle Audit PATH. leaf_hash: The hash of the leaf for which the proof was provided. leaf_index: Index of the leaf in the tree.
merkle/merkle_tree.go:365
↓ 3 callers
Function
VmTypeFromByte
(ty byte)
core/payload/deploy_code.go:39
↓ 3 callers
Method
WriteInt64
(data int64)
common/zero_copy_sink.go:122
↓ 3 callers
Function
WriteString
(writer io.Writer, value string)
common/serialization/serialize.go:147
↓ 3 callers
Method
Xor
(other IntValue)
vm/neovm/types/int_value.go:202
↓ 3 callers
Function
approve
owner allow spender to spend amount of token from owner account Note here, the amount should be less than the balance of owner right now.
wasmtest/contracts-cplus/test_oep4.py:196
↓ 3 callers
Function
batchInsertAttr
(srvc *native.NativeService, encID []byte, attr []attribute)
smartcontract/service/native/did/attribute.go:137
↓ 3 callers
Method
canFastForward
(targetBlkNum uint32)
consensus/vbft/state_mgmt.go:454
↓ 3 callers
Function
checkAttribute
(n *native.NativeService, id string, attributes []attribute)
smartcontract/service/native/did/attribute_test.go:184
↓ 3 callers
Function
checkFileName
(ctx *cli.Context)
cmd/account.go:158
↓ 3 callers
Method
clean
()
consensus/vbft/msg_pool.go:106
↓ 3 callers
Method
commitBlock
(proposal *blockProposalMsg, forEmpty bool)
consensus/vbft/service.go:1958
↓ 3 callers
Method
commitDone
check if has reached consensus on block-commit return @ consensused proposer @ for empty commit @ consensused Note: Attentions on lock content
consensus/vbft/block_pool.go:502
↓ 3 callers
Function
concatContractAdminKey
type(this.contractAddr.Admin) = []byte
smartcontract/service/native/auth/utils.go:42
↓ 3 callers
Function
ctrlAddAttr
(n *native.NativeService, id string, attr attribute, index uint64, addr common.Address)
smartcontract/service/native/did/controller_test.go:345
↓ 3 callers
Function
ctrlRmAttr
(n *native.NativeService, id string, key []byte, index uint64, addr common.Address)
smartcontract/service/native/did/controller_test.go:359
↓ 3 callers
Function
ctrlRmKey
(n *native.NativeService, id string, keyIndex, signIndex uint64, addr common.Address)
smartcontract/service/native/did/controller_test.go:383
↓ 3 callers
Method
delBlockLocked
(blockHeight uint32)
p2pserver/block_sync.go:304
↓ 3 callers
Method
delFlightBlock
(blockHash common.Uint256)
p2pserver/block_sync.go:830
↓ 3 callers
Method
delNode
delNode remove from node list
p2pserver/block_sync.go:634
↓ 3 callers
Function
flagCategory
(flag cli.Flag)
cmd/usage.go:294
↓ 3 callers
Function
genAccountData
()
account/file_store_test.go:34
↓ 3 callers
Function
getContext
(engine *vm.Executor)
smartcontract/service/neovm/storage.go:129
↓ 3 callers
Function
getDIDToken
(native *native.NativeService, contractAddr common.Address, DID []byte)
smartcontract/service/native/auth/utils.go:112
↓ 3 callers
Function
getGlobalParam2
get extends global params, for avoiding change default global param struct in store, add GlobalParam2 as extends struct
smartcontract/service/native/governance/utils.go:268
↓ 3 callers
Method
getPeer
(idx uint32)
consensus/vbft/peer_pool.go:265
↓ 3 callers
Method
getProposerRankLocked
(blockNum uint32, peerIdx uint32)
consensus/vbft/node_utils.go:153
↓ 3 callers
Function
getRoleFunc
(native *native.NativeService, contractAddr common.Address, role []byte)
smartcontract/service/native/auth/utils.go:78
↓ 3 callers
Function
getSplitFee
(native *native.NativeService, contract common.Address)
smartcontract/service/native/governance/utils.go:456
↓ 3 callers
Function
getSplitFeeAddress
(native *native.NativeService, contract common.Address, address common.Address)
smartcontract/service/native/governance/utils.go:481
↓ 3 callers
Function
getStorageParam
(native *native.NativeService, key []byte)
smartcontract/service/native/global_params/utils.go:68
↓ 3 callers
Method
getSyncedChainConfigView
()
consensus/vbft/state_mgmt.go:325
↓ 3 callers
Method
getTransactionKey
(txHash common.Uint256)
core/store/ledgerstore/block_store.go:472
↓ 3 callers
Method
handleProposalTimeout
(evt *TimerEvent)
consensus/vbft/service.go:2320
↓ 3 callers
Method
hash_empty
()
merkle/merkle_hasher.go:35
↓ 3 callers
Method
isNewPeer
FIXME: should rename to isPeerConnected
consensus/vbft/peer_pool.go:78
↓ 3 callers
Method
isPeerActive
(peerIdx uint32, blockNum uint32)
consensus/vbft/node_utils.go:54
↓ 3 callers
Method
isPeerAlive
(peerIdx uint32, blockNum uint32)
consensus/vbft/node_utils.go:44
↓ 3 callers
Function
logPrint
()
common/log/log_test.go:32
↓ 3 callers
Function
makePrefixedKey
(dst []byte, prefix byte, key []byte)
smartcontract/storage/cachedb.go:62
↓ 3 callers
Method
makeProposal
(blkNum uint32, forEmpty bool)
consensus/vbft/service.go:2192
↓ 3 callers
Method
newBlockCommitment
add commit msg to CandidateInfo
consensus/vbft/block_pool.go:452
↓ 3 callers
Method
newBlockProposal
add proposalMsg to CandidateInfo
consensus/vbft/block_pool.go:134
↓ 3 callers
Method
next
()
core/store/overlaydb/iterator.go:136
↓ 3 callers
Function
parseRawParamsString
(rawParamStr string)
cmd/utils/params.go:67
↓ 3 callers
Function
putAllPk
(srvc *native.NativeService, key []byte, val []*owner)
smartcontract/service/native/did/owner.go:82
↓ 3 callers
Function
putConfig
(native *native.NativeService, contract common.Address, config *Configuration)
smartcontract/service/native/governance/utils.go:399
↓ 3 callers
Function
putPeerAttributes
(native *native.NativeService, contract common.Address, peerAttributes *PeerAttributes)
smartcontract/service/native/governance/utils.go:700
↓ 3 callers
Function
randInt64
()
vm/neovm/int_value_test.go:37
↓ 3 callers
Method
reVerifyStateful
reVerifyStateful re-verify a transaction's stateful data.
txnpool/proc/txnpool_server.go:633
↓ 3 callers
Method
reachMinConnection
reachMinConnection return whether net layer have enough link under different config
p2pserver/p2pserver.go:354
↓ 3 callers
Function
regIdWithPublicKey
(srvc *native.NativeService)
smartcontract/service/native/did/method.go:38
↓ 3 callers
Function
removeAttribute
(srvc *native.NativeService)
smartcontract/service/native/did/method.go:333
↓ 3 callers
Function
revokeID
(srvc *native.NativeService)
smartcontract/service/native/did/method.go:399
↓ 3 callers
Function
rmCtrl
(n *native.NativeService, id string, index uint64, addr common.Address)
smartcontract/service/native/did/controller_test.go:394
↓ 3 callers
Function
rmKeyByRec
(n *native.NativeService, id string, index uint64, s []Signer, addr []common.Address)
smartcontract/service/native/did/recovery_test.go:221
↓ 3 callers
Method
saveBlock
()
p2pserver/block_sync.go:713
↓ 3 callers
Method
sealBlock
(block *Block, empty bool, sigdata bool)
consensus/vbft/service.go:2059
↓ 3 callers
Method
serializationUnsigned
Serialize the blockheader data without program
core/types/header.go:153
↓ 3 callers
Method
setCommitDone
@ set BlockPool as committed for given BlockNum Note: setCommitDone supposed to be called after commitDone. Because setCommitDone requires exclusive
consensus/vbft/block_pool.go:564
← previous
next →
701–800 of 3,494, ranked by callers