Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/UniversaBlockchain/universa
/ functions
Functions
5,135 in github.com/UniversaBlockchain/universa
⨍
Functions
5,135
◇
Types & classes
586
↓ 115 callers
Method
expiresAt
Get expiration time for callback subscription. @return expiresAt is expiration time
universa_core/src/main/java/com/icodici/universa/contract/services/FollowerService.java:21
↓ 114 callers
Method
decode
(String input)
common_tools/src/main/java/net/sergeych/utils/Safe58.java:74
↓ 113 callers
Method
getLabel
()
universa_node/src/main/java/com/icodici/universa/node2/Node.java:1530
↓ 112 callers
Method
addAll
Adds sub-roles to combining role. @param roles is collection of sub-roles
universa_core/src/main/java/com/icodici/universa/contract/roles/ListRole.java:135
↓ 112 callers
Method
setIsFreeRegistrationsAllowedFromYaml
(boolean val)
universa_core/src/main/java/com/icodici/universa/node2/Config.java:490
↓ 110 callers
Method
getState
Get the state of the contract on the currently connected node. Note: limits are applied to number of {@link #getState(Approvable)} calls per minute pe
universa_core/src/main/java/com/icodici/universa/node2/network/Client.java:758
↓ 108 callers
Method
fire
Fire the event if it was not yet fired. Non blocking functions. The consumers are being called in the pooled threads. Does nothing if already fired. T
common_tools/src/main/java/net/sergeych/tools/AsyncEvent.java:55
↓ 104 callers
Method
subscriptions
()
universa_node/src/main/java/com/icodici/universa/contract/services/NImmutableEnvironment.java:115
↓ 103 callers
Method
getName
()
universa_core/src/main/java/com/icodici/universa/contract/services/NameRecord.java:12
↓ 99 callers
Method
getShortAddress
()
universa_core/src/main/java/com/icodici/universa/contract/services/NameRecordEntry.java:15
↓ 98 callers
Method
statement
(String sqlText, Object... args)
common_tools/src/main/java/com/icodici/db/Db.java:310
↓ 96 callers
Method
getInt
Use {@link #getIntOrThrow(String)} instead. @param key parameter name @return parameter value or throws {@link IllegalArgumentException}.
common_tools/src/main/java/net/sergeych/tools/Binder.java:284
↓ 96 callers
Method
keySet
()
common_tools/src/main/java/net/sergeych/collections/Multimap.java:140
↓ 95 callers
Method
size
()
common_tools/src/main/java/net/sergeych/utils/Bytes.java:172
↓ 95 callers
Method
unpack
Unpack either old contract binary (all included), or newer transaction pack. Could be used to load old contracts to perform a transaction. @param pac
universa_core/src/main/java/com/icodici/universa/contract/TransactionPack.java:432
↓ 94 callers
Method
collect
(Ledger ledger, Config config)
universa_node/src/main/java/com/icodici/universa/node2/NodeStats.java:35
↓ 93 callers
Method
checkItem
()
universa_node/src/test/java/com/icodici/universa/node2/BaseNetworkTest.java:215
↓ 93 callers
Method
getBinaryOrThrow
Get the binary parameter as byte[] and throws exception if it is missing @param key @return @throws IllegalArgumentException
common_tools/src/main/java/net/sergeych/tools/Binder.java:150
↓ 92 callers
Method
serialize
(Approvable item)
universa_core/src/main/java/com/icodici/universa/Serializer.java:11
↓ 91 callers
Method
createPayingParcel
Create paid transaction, which consist from prepared TransactionPack you want to register and payment contract that will be spend to process transacti
universa_core/src/main/java/com/icodici/universa/contract/ContractsService.java:1757
↓ 91 callers
Method
getPermissions
Get contract permissions @return contract permisisons
universa_core/src/main/java/com/icodici/universa/contract/Contract.java:2678
↓ 90 callers
Method
registerItem
Asynchronous (non blocking) check/register for item from white list. If the item is new and eligible to process with the consensus, the processing wil
universa_node/src/main/java/com/icodici/universa/node2/Node.java:460
↓ 90 callers
Method
size
Get the size of the network. @return nodes count
universa_core/src/main/java/com/icodici/universa/node2/network/Client.java:86
↓ 90 callers
Method
toString
convert to "compact" base64u string, e.g. without '+' and without trailing '=' characters. See {@link Base64u}, {@link Base64#encodeCompactString(byte
universa_core/src/main/java/com/icodici/universa/HashId.java:119
↓ 87 callers
Method
await
Wait until the event is fired. If it is already fired, returns immediately the result passed to the {@link #fire(Object)} call. @return the result pa
common_tools/src/main/java/net/sergeych/tools/AsyncEvent.java:95
↓ 86 callers
Method
pack
Shortcut to {@link Boss#pack(Object)} for this. @return a packed binary
universa_core/src/main/java/com/icodici/universa/contract/Parcel.java:514
↓ 85 callers
Method
createFreshU
Creates fresh contract in the first revision with "U". <br><br> This contract should be registered and then should be used as payment for other contra
universa_core/src/main/java/com/icodici/universa/contract/InnerContractsService.java:31
↓ 85 callers
Method
equals
(Object o)
universa_node/src/main/java/com/icodici/universa/node2/ItemNotification.java:80
↓ 85 callers
Method
getPublicKey
()
universa_core/src/main/java/com/icodici/universa/node2/NodeInfo.java:93
↓ 83 callers
Method
length
@return number of samples
common_tools/src/main/java/net/sergeych/tools/Average.java:60
↓ 83 callers
Method
write
(Boss.Writer writer, Notification n)
universa_node/src/main/java/com/icodici/universa/node2/Notification.java:103
↓ 82 callers
Method
addRole
Adds sub-role to combining role. @param role is sub-role
universa_core/src/main/java/com/icodici/universa/contract/roles/ListRole.java:153
↓ 82 callers
Method
getUIssuerKeys
()
universa_core/src/main/java/com/icodici/universa/contract/services/NSmartContract.java:53
↓ 81 callers
Method
cancel
(boolean b)
common_tools/src/main/java/net/sergeych/tools/RunnableWithDynamicPeriod.java:53
↓ 81 callers
Method
getApprovedUContract
()
universa_node/src/test/java/com/icodici/universa/node2/BaseNetworkTest.java:6343
↓ 81 callers
Method
getListOrThrow
(String key)
common_tools/src/main/java/net/sergeych/tools/Binder.java:528
↓ 80 callers
Method
fromKeysValues
Convert "key, value" pairs from varargs into a Params. @param args key, value pairs.Can be 0 length or any even length. @return filled Map instance
common_tools/src/main/java/net/sergeych/tools/Binder.java:46
↓ 80 callers
Method
load
Load boss-encoded object tree from binary data. See {@link BiAdapter} on how to serialize any types. @param bytes data to load @return root object
common_tools/src/main/java/net/sergeych/boss/Boss.java:168
↓ 79 callers
Method
getOrigin
()
universa_core/src/main/java/com/icodici/universa/contract/services/NameRecordEntry.java:16
↓ 79 callers
Method
getState
Get state of a contract @return object containing contract state
universa_core/src/main/java/com/icodici/universa/contract/Contract.java:492
↓ 79 callers
Method
withDigest
Create instance from a saved digest (obtained before with {@link #getDigest()}. @param hash digest to construct with @return instance with a
universa_core/src/main/java/com/icodici/universa/HashId.java:141
↓ 77 callers
Method
db
()
common_tools/src/main/java/com/icodici/db/DbPool.java:44
↓ 76 callers
Method
getId
()
universa_node/src/test/java/com/icodici/universa/node/TestItem.java:68
↓ 76 callers
Method
toArray
return underlying bytes. This is cheap operation: no copying/conversion is performed. @return the wrapped bytes
common_tools/src/main/java/net/sergeych/utils/Bytes.java:207
↓ 75 callers
Method
addKeyRecord
Adds {@link KeyRecord} to role. @param keyRecord is {@link KeyRecord}
universa_core/src/main/java/com/icodici/universa/contract/roles/SimpleRole.java:147
↓ 75 callers
Method
concatReportMessage
(Object... messages)
universa_node/src/main/java/com/icodici/universa/node2/Node.java:1713
↓ 75 callers
Method
getExtendedType
This is a string tag which is used to find the proper {@link NContract} implementation. @return string tag, e.g. "SLOT1"
universa_core/src/main/java/com/icodici/universa/contract/services/NContract.java:20
↓ 75 callers
Method
prepareTestSpace
()
universa_node/src/test/java/com/icodici/universa/node2/MainTest.java:1046
↓ 75 callers
Method
setState
(ItemState newState)
universa_node/src/main/java/com/icodici/universa/node/StateRecord.java:89
↓ 73 callers
Method
command
(Binder params)
universa_node/src/main/java/com/icodici/universa/node2/network/BasicHttpServer.java:367
↓ 73 callers
Method
registerAndCheckDeclined
(Contract c)
universa_node/src/test/java/com/icodici/universa/node2/BaseNetworkTest.java:6439
↓ 73 callers
Method
seal
()
universa_core/src/main/java/com/icodici/universa/contract/services/UnsContract.java:217
↓ 72 callers
Method
getContractInStorage
(HashId contractId)
universa_node/src/main/java/com/icodici/universa/node/Ledger.java:274
↓ 70 callers
Method
findReferenceByName
Get contract reference with given name @param name name of the reference @return found reference or null
universa_core/src/main/java/com/icodici/universa/contract/Contract.java:3391
↓ 70 callers
Method
pack
Shortcut to {@link Boss#pack(Object)} for this. @return packed binary
universa_core/src/main/java/com/icodici/universa/contract/TransactionPack.java:470
↓ 69 callers
Method
addError
(String code, String object, String message)
uniclient/src/main/java/com/icodici/universa/client/CLIMain.java:3994
↓ 68 callers
Method
addRevokingItems
Add one or more contracts to revoke. The contracts must be approved loaded from a binary. Do not call {@link #seal()} on them as resealing discards ne
universa_core/src/main/java/com/icodici/universa/contract/Contract.java:1494
↓ 68 callers
Method
createParcel
Create paid transaction, which consist from contract you want to register and payment contract that will be spend to process transaction. <br><br> @p
universa_core/src/main/java/com/icodici/universa/contract/ContractsService.java:1642
↓ 68 callers
Method
getTransactional
@return {@link Transactional} object containing contract transacitonal.
universa_core/src/main/java/com/icodici/universa/contract/Contract.java:499
↓ 68 callers
Method
start
Start the service in a separate thread, returns as soon as listening port will be opened. Should not return before the port is opened! Must use Execut
universa_core/src/main/java/com/icodici/universa/node/network/BasicHTTPService.java:28
↓ 67 callers
Method
addError
(ErrorRecord r)
universa_core/src/main/java/com/icodici/universa/Approvable.java:98
↓ 67 callers
Method
findOrCreate
Create new record for a given id and set it to the PENDING state. Normally, it is used to create new root documents. If the record exists, it returns
universa_node/src/main/java/com/icodici/universa/node/Ledger.java:75
↓ 67 callers
Method
getClient
Get the client connection to network node (by the node index). The instance of {@link Client} returned by this method will be unable to perform netwo
universa_core/src/main/java/com/icodici/universa/node2/network/Client.java:123
↓ 66 callers
Method
getParent
Get the id of the parent contract @return id of the parent contract
universa_core/src/main/java/com/icodici/universa/contract/Contract.java:2394
↓ 66 callers
Method
getReferences
Map of references that item have. @return referenced items map
universa_core/src/main/java/com/icodici/universa/Approvable.java:37
↓ 66 callers
Method
imitateSendingTransactionToPartner
Imitate of sending contract from one part of swappers to another. Method packs sending contracts with main swap contract (can be blank - doesn't matt
universa_node/src/test/java/com/icodici/universa/node2/BaseNetworkTest.java:6484
↓ 65 callers
Method
setJS
Saves client's javascript in contract's state. It can be executed with {@link Contract#execJS(JSApiExecOptions, byte[], String...)}
universa_core/src/main/java/com/icodici/universa/contract/Contract.java:3645
↓ 64 callers
Method
saveContract
Save specified contract to file. @param contract - contract for update. @param fileName - name of file to save to. @param f
uniclient/src/main/java/com/icodici/universa/client/CLIMain.java:3484
↓ 63 callers
Method
callMain2
(String... args)
uniclient/src/test/java/com/icodici/universa/client/CLIMainTest.java:3707
↓ 63 callers
Method
getList
(String key, List<T> defaultValue)
common_tools/src/main/java/net/sergeych/tools/Binder.java:521
↓ 63 callers
Method
getOrThrow
Get object at key or throw {@link IllegalArgumentException}. Important. This method throw exception if the value not found in the map, or if the value
common_tools/src/main/java/net/sergeych/tools/Binder.java:500
↓ 63 callers
Method
setNodeInfoProvider
Provide info about payment rates, "U" issuer and some other data required by smart contract. @param nodeInfoProvider instance of {@link NodeInfoProvid
universa_core/src/main/java/com/icodici/universa/contract/services/NSmartContract.java:39
↓ 62 callers
Method
addError
Add error to contract @param code error code @param field path to contract field error found in @param text error message
universa_core/src/main/java/com/icodici/universa/contract/Contract.java:1415
↓ 62 callers
Method
getIssuer
Get issuer of the contract @return issuer role
universa_core/src/main/java/com/icodici/universa/contract/Contract.java:1697
↓ 60 callers
Method
deserialize
(Map map)
common_tools/src/main/java/net/sergeych/biserializer/DefaultBiMapper.java:47
↓ 60 callers
Method
getLong
Use {@link #getLongOrThrow(String)} instead. @param key @return
common_tools/src/main/java/net/sergeych/tools/Binder.java:306
↓ 60 callers
Method
map
Convert "key, value" pairs from varargs into a Map. @param args key, value pairs.Can be 0 length or any even length. @return filled Map instance
common_tools/src/main/java/net/sergeych/tools/Do.java:194
↓ 60 callers
Method
registerRole
Register new role. Name must be unique otherwise existing role will be overwritten @param role @return registered role @deprecated use {@link #addRole
universa_core/src/main/java/com/icodici/universa/contract/Contract.java:1776
↓ 59 callers
Method
toHex
()
common_tools/src/main/java/net/sergeych/utils/Bytes.java:324
↓ 58 callers
Method
getRecord
Get the record by its id @param id to retreive @return instance or null if not found
universa_node/src/main/java/com/icodici/universa/node/Ledger.java:45
↓ 58 callers
Method
registerParcelWithState
Register the contract on the network using parcel (to provide payment). Version of {@link #registerParcel(byte[])} that waits until registration is co
universa_core/src/main/java/com/icodici/universa/node2/network/Client.java:650
↓ 58 callers
Method
submit
@throws RejectedExecutionException {@inheritDoc} @throws NullPointerException {@inheritDoc}
universa_core/src/main/java/com/icodici/universa/NodeExecutorService.java:32
↓ 57 callers
Method
isPermitted
Checks if permission of given type exists and is allowed for given key record @param permissionName type of permission to check for @param keyRecord k
universa_core/src/main/java/com/icodici/universa/contract/Contract.java:1829
↓ 56 callers
Method
pack
(Object object)
common_tools/src/main/java/net/sergeych/boss/Boss.java:131
↓ 55 callers
Method
deserialize
(byte[] packedItem)
universa_core/src/main/java/com/icodici/universa/Serializer.java:12
↓ 54 callers
Method
createMain
(String name, boolean nolog)
universa_node/src/test/java/com/icodici/universa/node2/MainTest.java:234
↓ 54 callers
Method
getUIssuerName
()
universa_core/src/main/java/com/icodici/universa/contract/services/NSmartContract.java:54
↓ 53 callers
Method
getFollowerService
()
universa_node/src/main/java/com/icodici/universa/contract/services/NImmutableEnvironment.java:227
↓ 53 callers
Method
registerClass
Register a class with explicit de/serialization methods. See {@link BiSerializable}. @param klass class to register.
common_tools/src/main/java/net/sergeych/biserializer/DefaultBiMapper.java:76
↓ 53 callers
Method
setExpiresAt
Set expiration date of contract @param dateTime expiration date to set
universa_core/src/main/java/com/icodici/universa/contract/Contract.java:2715
↓ 53 callers
Method
setName
Set the name for the reference @return this reference
universa_core/src/main/java/com/icodici/universa/contract/Reference.java:2198
↓ 52 callers
Method
dump
Encodes one or more objects one by one. It will need corresponding number of read calls @param objects objects one by one @return binary data
common_tools/src/main/java/net/sergeych/boss/Boss.java:127
↓ 52 callers
Method
getPackedTransaction
@return Packed transaction of the new revision just approved
universa_core/src/main/java/com/icodici/universa/contract/services/ContractSubscription.java:77
↓ 52 callers
Method
setOwnerKey
Set "owner" role to given key or key record @param keyOrRecord key or key record to set "creator" role to @return owner role
universa_core/src/main/java/com/icodici/universa/contract/Contract.java:2609
↓ 51 callers
Method
equals
(Object obj)
universa_core/src/main/java/com/icodici/universa/HashId.java:65
↓ 51 callers
Method
getKeysToSignWith
Get private keys contract binary to be signed with when sealed next time. It is called before seal() @return keys contract binary to be signed with
universa_core/src/main/java/com/icodici/universa/contract/Contract.java:1946
↓ 51 callers
Method
inParallel
Immediately start specified task (e.g. block returning something and throwing some exception on failure) in a separate thread. Use {@link DeferredResu
common_tools/src/main/java/net/sergeych/tools/Do.java:301
↓ 50 callers
Method
getLastSealedBinary
Get the last knwon packed representation pf the contract. Should be called if the contract was contructed from a packed binary ({@link #Contract(byte[
universa_core/src/main/java/com/icodici/universa/contract/Contract.java:2274
↓ 50 callers
Method
isU
Special check for item to pass or not U contract criteria: allowed issuer keys and issuer name @param issuerKeys is set of allowed by node keys for U
universa_core/src/main/java/com/icodici/universa/Approvable.java:121
↓ 50 callers
Method
scheduleAtFixedRate
@throws RejectedExecutionException {@inheritDoc} @throws NullPointerException {@inheritDoc} @throws IllegalArgumentException {@inheritDoc}
universa_core/src/main/java/com/icodici/universa/NodeExecutorService.java:45
← previous
next →
101–200 of 5,135, ranked by callers