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
↓ 21 callers
Method
HasFlag
(flag ConsensusState)
consensus/dbft/consensus_state.go:36
↓ 21 callers
Method
Key
First item. If item available return true, otherwise return false Last() bool //Last item. If item available return true, otherwise return f
core/store/common/store.go:40
↓ 21 callers
Function
PutBytes
(native *native.NativeService, key []byte, value []byte)
smartcontract/service/native/utils/store.go:91
↓ 21 callers
Method
Serialize
(w io.Writer)
core/states/interfaces.go:29
↓ 21 callers
Function
ToHexString
ToHexString convert []byte to hex string
common/common.go:38
↓ 21 callers
Function
VmValueFromBytes
(val []byte)
vm/neovm/types/neovm_value.go:71
↓ 21 callers
Function
checkErr
(err error)
wasmtest/wasm-test.go:195
↓ 21 callers
Method
getBlockNum
()
consensus/vbft/types.go:45
↓ 20 callers
Method
Append
(item VmValue)
vm/neovm/types/struct_value.go:44
↓ 20 callers
Function
BigIntFromNeoBytes
(ba []byte)
common/bigint.go:67
↓ 20 callers
Method
Invoke
()
smartcontract/context/context.go:50
↓ 20 callers
Function
NewPeer
NewPeer return new peer without publickey initial
p2pserver/peer/peer.go:143
↓ 20 callers
Method
PopAsInteropValue
()
vm/neovm/value_stack_conversion.go:113
↓ 20 callers
Function
Sign
Sign returns the signature of data using privKey
core/signature/signature.go:31
↓ 20 callers
Method
WriteHash
(hash Uint256)
common/zero_copy_sink.go:150
↓ 20 callers
Method
getSealedBlock
(blockNum uint32)
consensus/vbft/block_pool.go:692
↓ 19 callers
Function
DecodeString
(source *common.ZeroCopySource)
smartcontract/service/native/utils/serialization.go:101
↓ 19 callers
Method
GetChainedBlockNum
()
consensus/vbft/chain_store.go:74
↓ 19 callers
Function
GetStorageRole
(native *native.NativeService, key []byte)
smartcontract/service/native/global_params/utils.go:78
↓ 19 callers
Method
NextByte
ReadByte implements the io.ByteReader interface.
common/zero_copy_source.go:83
↓ 19 callers
Method
NextBytes
(n uint64)
common/zero_copy_sink.go:74
↓ 19 callers
Function
VmValueFromArrayVal
(array *ArrayValue)
vm/neovm/types/neovm_value.go:109
↓ 19 callers
Function
constructServer
()
consensus/vbft/node_utils_test.go:46
↓ 19 callers
Function
getParam
(r *http.Request, key string)
http/restful/restful/router.go:141
↓ 18 callers
Function
AddressFromPubKey
(pubkey keypair.PublicKey)
core/types/address.go:33
↓ 18 callers
Function
GetPeerPoolMap
(native *native.NativeService, contract common.Address, view uint32)
smartcontract/service/native/governance/utils.go:41
↓ 18 callers
Method
GetState
GetState return sync state
p2pserver/peer/peer.go:188
↓ 18 callers
Function
NewTree
NewTree returns a CompactMerkleTree instance
merkle/merkle_tree.go:50
↓ 18 callers
Method
SetAddr
set address
p2pserver/link/link.go:81
↓ 18 callers
Method
Type
()
consensus/vbft/msg_types.go:56
↓ 18 callers
Method
UpdateInfo
UpdateInfo update peer`s information
p2pserver/peer/peer.go:310
↓ 18 callers
Function
VmValueFromStructVal
(val *StructValue)
vm/neovm/types/neovm_value.go:113
↓ 18 callers
Method
getState
()
consensus/vbft/service.go:641
↓ 17 callers
Function
AddressParseFromBytes
AddressParseFromBytes returns parsed Address
common/address.go:74
↓ 17 callers
Method
DelNbrNode
(id uint64)
p2pserver/net/protocol/server.go:64
↓ 17 callers
Method
GetPort
()
p2pserver/net/protocol/server.go:38
↓ 17 callers
Method
Infof
(format string, a ...interface{})
common/log/log.go:185
↓ 17 callers
Method
NextHash
()
common/zero_copy_source.go:201
↓ 17 callers
Method
PopAsInt64
()
vm/neovm/value_stack_conversion.go:53
↓ 17 callers
Method
Set
(index int, t types.VmValue)
vm/neovm/value_stack.go:86
↓ 17 callers
Function
SetRpcPort
(ctx *cli.Context)
cmd/config.go:171
↓ 17 callers
Function
constructBlock
()
consensus/vbft/msg_types_test.go:360
↓ 17 callers
Method
hash_children
(left, right common.Uint256)
merkle/merkle_hasher.go:44
↓ 16 callers
Method
AddNbrNode
(*peer.Peer)
p2pserver/net/protocol/server.go:63
↓ 16 callers
Method
Append
(hash []common.Uint256)
merkle/file_hash_store.go:34
↓ 16 callers
Method
CheckWitness
(address common.Address)
smartcontract/context/context.go:42
↓ 16 callers
Function
GenerateID
()
account/identity.go:44
↓ 16 callers
Function
GenerateOperatorKey
(contract common.Address)
smartcontract/service/native/global_params/utils.go:64
↓ 16 callers
Method
GetAccount
()
cmd/sigsvr/common/common.go:41
↓ 16 callers
Function
NewArrayValue
()
vm/neovm/types/array_value.go:35
↓ 16 callers
Method
NewExecuteEngine
Execute is smart contract execute manager According different vm type to launch different service
smartcontract/smart_contract.go:142
↓ 16 callers
Method
NextVarUint
()
common/zero_copy_source.go:219
↓ 16 callers
Function
ReadUint32
(reader io.Reader)
common/serialization/serialize.go:209
↓ 16 callers
Method
RegisterMsgHandler
RegisterMsgHandler registers msg handler with the msg type
p2pserver/message/utils/msg_router.go:78
↓ 16 callers
Method
Serialization
Serialize payload data
core/types/transaction.go:311
↓ 16 callers
Method
Sub
(other IntValue)
vm/neovm/types/int_value.go:317
↓ 16 callers
Method
Sum
(b []byte)
p2pserver/common/checksum.go:37
↓ 16 callers
Method
checkGas
(gaslimit uint64)
smartcontract/service/wasmvm/runtime.go:713
↓ 16 callers
Function
regID
Register id with account acc
smartcontract/service/native/did/ontid_test.go:57
↓ 15 callers
Function
AddressFromBase58
just to avoid dos AddressFromBase58 returns Address from encoded base58 string
common/address.go:95
↓ 15 callers
Method
GetVersion
()
p2pserver/net/protocol/server.go:37
↓ 15 callers
Method
Set
(key, value VmValue)
vm/neovm/types/map_value.go:35
↓ 15 callers
Function
VmValueFromBool
(val bool)
vm/neovm/types/neovm_value.go:81
↓ 14 callers
Method
Append
(item VmValue)
vm/neovm/types/array_value.go:39
↓ 14 callers
Function
CalcUnbindOng
startOffset : start timestamp offset from genesis block endOffset : end timestamp offset from genesis block
smartcontract/service/native/utils/unbind_ong.go:33
↓ 14 callers
Method
CommitTo
Commit event notify to store
core/store/common/store.go:97
↓ 14 callers
Method
Deserialize
(r io.Reader)
core/states/interfaces.go:30
↓ 14 callers
Function
FormatOng
(amount uint64)
cmd/utils/utils.go:71
↓ 14 callers
Function
HexToBytes
HexToBytes convert hex string to []byte
common/common.go:43
↓ 14 callers
Method
Sign
()
vm/neovm/types/int_value.go:152
↓ 14 callers
Function
pushEvent
(native *native.NativeService, s interface{})
smartcontract/service/native/auth/utils.go:189
↓ 14 callers
Function
putPeerPoolMap
(native *native.NativeService, contract common.Address, view uint32, peerPoolMap *PeerPoolMap)
smartcontract/service/native/governance/utils.go:68
↓ 13 callers
Function
AddressFromVmCode
(code []byte)
common/address.go:128
↓ 13 callers
Method
AsInt64
()
vm/neovm/types/neovm_value.go:556
↓ 13 callers
Method
Deserialize
(r io.Reader)
common/uint256.go:59
↓ 13 callers
Method
GetBlockHash
(height uint32)
core/store/store.go:55
↓ 13 callers
Method
GetTransaction
(txHash common.Uint256)
core/store/store.go:61
↓ 13 callers
Function
GetView
(native *native.NativeService, contract common.Address)
smartcontract/service/native/governance/utils.go:110
↓ 13 callers
Function
ReadVarUint
(reader io.Reader, maxint uint64)
common/serialization/serialize.go:100
↓ 13 callers
Method
WriteBool
(data bool)
common/zero_copy_sink.go:99
↓ 13 callers
Function
isReady
(state ServerState)
consensus/vbft/state_mgmt.go:50
↓ 13 callers
Function
putAuthorizeInfo
(native *native.NativeService, contract common.Address, authorizeInfo *AuthorizeInfo)
smartcontract/service/native/governance/utils.go:534
↓ 12 callers
Method
AddMsg
(msg ConsensusMsg, msgHash common.Uint256)
consensus/vbft/msg_pool.go:113
↓ 12 callers
Method
AsBool
()
vm/neovm/types/neovm_value.go:603
↓ 12 callers
Method
AsBytes
()
vm/neovm/types/neovm_value.go:136
↓ 12 callers
Method
Close
Commit batch to store
core/store/common/store.go:56
↓ 12 callers
Function
DecodeUint64
(source *common.ZeroCopySource)
smartcontract/service/native/utils/serialization.go:77
↓ 12 callers
Function
FileExisted
FileExisted checks whether filename exists in filesystem
common/common.go:57
↓ 12 callers
Function
GetStorageItem
(native *native.NativeService, key []byte)
smartcontract/service/native/utils/store.go:33
↓ 12 callers
Function
I128FromInt64
(val int64)
common/int128.go:62
↓ 12 callers
Method
NextUint16
()
common/zero_copy_source.go:119
↓ 12 callers
Function
ParseOng
(rawAmount string)
cmd/utils/utils.go:75
↓ 12 callers
Method
PushAsInteropValue
(val interfaces.Interop)
vm/neovm/value_stack_conversion.go:109
↓ 12 callers
Function
WriteVarUint
* ****************************************************************************** * public func for outside calling ********************************
common/serialization/serialize.go:77
↓ 12 callers
Function
sendRpcRequest
(method string, params []interface{})
cmd/utils/rpc.go:77
↓ 11 callers
Function
AddressFromMultiPubKeys
(pubkeys []keypair.PublicKey, m int)
core/types/address.go:39
↓ 11 callers
Function
ComputeMerkleRoot
param hashes will be used as workspace
common/merkle_tree.go:28
↓ 11 callers
Method
GetContract
(addr comm.Address)
smartcontract/storage/cachedb.go:89
↓ 11 callers
Method
GetPID
()
consensus/consensus.go:36
↓ 11 callers
Function
IntValFromInt
(val int64)
vm/neovm/types/int_value.go:140
← previous
next →
101–200 of 3,494, ranked by callers