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
↓ 2,652 callers
Method
get
Read access to the instance server-size key-value store. Note that if the store is not created, it always return default value, this is not an error.
universa_core/src/main/java/com/icodici/universa/contract/services/ImmutableEnvironment.java:44
↓ 1,738 callers
Method
add
(Decimal augend)
universa_core/src/main/java/com/icodici/universa/Decimal.java:82
↓ 1,268 callers
Method
seal
Seal contract to binary. This call adds signatures from {@link #getKeysToSignWith()} @return contract's sealed unicapsule
universa_core/src/main/java/com/icodici/universa/contract/Contract.java:2071
↓ 1,101 callers
Method
getId
()
universa_core/src/main/java/com/icodici/universa/HashIdentifiable.java:7
↓ 1,068 callers
Method
getId
Get the id sealing self if need @param sealAsNeed true to seal the contract if there is no {@link #getLastSealedBinary()}. @return contract id.
universa_core/src/main/java/com/icodici/universa/contract/Contract.java:1667
↓ 963 callers
Method
getStateData
Get data section of contract state @return data section of contract state
universa_core/src/main/java/com/icodici/universa/contract/Contract.java:2686
↓ 710 callers
Method
traceErrors
()
universa_core/src/main/java/com/icodici/universa/contract/Contract.java:3980
↓ 708 callers
Method
size
Niber of cached locks. Not all of them are acquired. Locks are cached as long as corresponding {@link HashId} is alive, so do not clone() and copy the
universa_node/src/main/java/com/icodici/universa/node2/ItemLock.java:62
↓ 698 callers
Method
check
Check contract for errors. This includes checking contract state modification, checking new items, revoke permissions and references acceptance. Error
universa_core/src/main/java/com/icodici/universa/contract/Contract.java:818
↓ 658 callers
Method
put
(NImmutableEnvironment env)
universa_node/src/main/java/com/icodici/universa/node2/EnvCache.java:58
↓ 639 callers
Method
privateKey
(int index)
universa_node/src/test/java/com/icodici/universa/TestKeys.java:20
↓ 617 callers
Method
waitItem
If the item is being electing, block until the item been processed with the consensus. Otherwise returns state immediately. @param itemId item to che
universa_node/src/main/java/com/icodici/universa/node2/Node.java:784
↓ 585 callers
Method
getLedger
()
universa_node/src/main/java/com/icodici/universa/node2/Node.java:1617
↓ 535 callers
Method
forEach
(BiConsumer<String, RouteModel> lambda)
universa_core/src/main/java/com/icodici/universa/contract/jsapi/JSApiHttpServerRoutes.java:91
↓ 501 callers
Method
getPackedTransaction
Pack the contract to the most modern .unicon format, same as {@link TransactionPack#pack()}. Uses bounded {@link TransactionPack} instance to save tog
universa_core/src/main/java/com/icodici/universa/contract/Contract.java:3215
↓ 489 callers
Method
read
(String fileName)
common_tools/src/main/java/net/sergeych/tools/Do.java:33
↓ 487 callers
Method
set
Writes a key to the KV store. See the logic description above. @param key @param value @param <T> @return
universa_core/src/main/java/com/icodici/universa/contract/services/MutableEnvironment.java:30
↓ 476 callers
Method
isOk
Important. This method should be invoked after {@link #check()}. @return true if there are no errors detected by now
universa_core/src/main/java/com/icodici/universa/contract/Contract.java:2033
↓ 445 callers
Method
of
Get the sub-hash with the given name. Works even if there is no such sub-params: <p> <code>params.of("some").of("non-existing").of("path").getStringOr
common_tools/src/main/java/net/sergeych/tools/Binder.java:207
↓ 422 callers
Method
sleep
(long millis)
common_tools/src/test/java/net/sergeych/informer/InformerTest.java:102
↓ 411 callers
Method
getContract
@return the unpacked stored contract. Note that this instance could be cached/shared among subscribers.
universa_core/src/main/java/com/icodici/universa/contract/services/ContractStorage.java:31
↓ 409 callers
Method
listOf
(U... objects)
common_tools/src/main/java/net/sergeych/tools/Do.java:233
↓ 383 callers
Method
getTransactionPack
Get transaction pack of the contract @return transaction pack of the contract
universa_core/src/main/java/com/icodici/universa/contract/Contract.java:3268
↓ 382 callers
Method
getDefinition
Get definition of a contract @return object containing contract definition
universa_core/src/main/java/com/icodici/universa/contract/Contract.java:1760
↓ 361 callers
Method
getString
(String key, String defaultValue)
common_tools/src/main/java/net/sergeych/tools/Binder.java:97
↓ 358 callers
Method
getPublicKey
()
crypto/src/main/java/com/icodici/crypto/PrivateKey.java:124
↓ 357 callers
Method
createRevision
Create new revision to be changed, signed sealed and then ready to approve. Created "revision" contract is a copy of this contract, with all fields an
universa_core/src/main/java/com/icodici/universa/contract/Contract.java:2326
↓ 334 callers
Method
contains
(AbstractKey k)
crypto/src/main/java/com/icodici/crypto/KeyRing.java:101
↓ 322 callers
Method
getIntOrThrow
@param key parameter name @return parameter value or throws {@link IllegalArgumentException}.
common_tools/src/main/java/net/sergeych/tools/Binder.java:293
↓ 320 callers
Method
register
Register contract on the network (no payment). This operation requires either special client key or special network configuration that allows free reg
universa_core/src/main/java/com/icodici/universa/node2/network/Client.java:539
↓ 315 callers
Method
getPublicKey
()
universa_node/src/main/java/com/icodici/universa/node2/network/BasicHttpServer.java:296
↓ 309 callers
Method
getData
()
universa_core/src/main/java/com/icodici/universa/contract/services/NameRecordEntry.java:17
↓ 298 callers
Method
getNew
Get contracts current contract creates upon registration @return contracts to be created
universa_core/src/main/java/com/icodici/universa/contract/Contract.java:3306
↓ 295 callers
Method
toBase64String
()
universa_core/src/main/java/com/icodici/universa/HashId.java:147
↓ 274 callers
Method
addSignerKey
Add private key to keys contract binary to be signed with when sealed next time. It is called before seal() @param privateKey key to sign with
universa_core/src/main/java/com/icodici/universa/contract/Contract.java:1970
↓ 269 callers
Method
expiresAt
()
universa_core/src/main/java/com/icodici/universa/contract/services/NameRecord.java:11
↓ 269 callers
Method
getPayloadContract
()
universa_core/src/main/java/com/icodici/universa/contract/Parcel.java:449
↓ 258 callers
Method
getBytes
()
universa_core/src/main/java/com/icodici/universa/node/network/BasicHTTPService.java:80
↓ 258 callers
Method
getOrigin
Get the id of origin contract. In case the contract is origin itself return its id. @return id of the origin contract
universa_core/src/main/java/com/icodici/universa/contract/Contract.java:2412
↓ 256 callers
Method
assertAlmostSame
(ZonedDateTime t1, ZonedDateTime t2, long expectedDelta)
universa_node/src/test/java/com/icodici/universa/node2/MainTest.java:6014
↓ 254 callers
Method
fromDslFile
Create contract importing its parameters with passed .yaml file. No signatures are added automatically. It is required to add signatures before check.
universa_core/src/main/java/com/icodici/universa/contract/Contract.java:460
↓ 254 callers
Method
registerAndCheckApproved
(Contract c)
universa_node/src/test/java/com/icodici/universa/node2/BaseNetworkTest.java:6424
↓ 241 callers
Method
addSignatureToSeal
Add signature to sealed (before) contract. Do not deserializing or changing contract bytes, but will change sealed and hashId. Useful if you got cont
universa_core/src/main/java/com/icodici/universa/contract/Contract.java:2123
↓ 233 callers
Method
remove
(HashId id)
universa_node/src/main/java/com/icodici/universa/node2/EnvCache.java:78
↓ 228 callers
Method
toString
()
universa_node/src/main/java/com/icodici/universa/node2/Node.java:1524
↓ 223 callers
Method
publicKey
(int index)
universa_node/src/test/java/com/icodici/universa/TestKeys.java:117
↓ 222 callers
Method
getPaymentContract
()
universa_core/src/main/java/com/icodici/universa/contract/Parcel.java:458
↓ 221 callers
Method
getState
()
universa_core/src/main/java/com/icodici/universa/node/IStateRecord.java:6
↓ 210 callers
Method
getBinder
Return Binder for the key, or empty binder if it does not exist. @param key @return
common_tools/src/main/java/net/sergeych/tools/Binder.java:254
↓ 205 callers
Method
set
Add Binder as a field with the specified index and return it in a typed manner. Sort of the syntax sugar. @param key @param object @return
common_tools/src/main/java/net/sergeych/tools/Binder.java:356
↓ 203 callers
Method
getEnvironment
(long environmentId)
universa_node/src/main/java/com/icodici/universa/node/Ledger.java:250
↓ 194 callers
Method
size
()
uniclient/src/main/java/com/icodici/universa/client/ClientNetwork.java:145
↓ 190 callers
Method
addReferencedItem
Direct add the referenced items. Use it to add references not mentioned in the added contracts. @param referencedItem is {@link Contract} for adding
universa_core/src/main/java/com/icodici/universa/contract/TransactionPack.java:190
↓ 180 callers
Method
fromPackedTransaction
Main .unicon read routine. Load any .unicon version and construct a linked Contract with counterparts (new and revoking items if present) and correspo
universa_core/src/main/java/com/icodici/universa/contract/Contract.java:3250
↓ 176 callers
Method
size
Niber of cached locks. Not all of them are acquired. Locks are cached as long as corresponding {@link HashId} is alive, so do not clone() and copy the
universa_core/src/main/java/com/icodici/universa/node2/ParcelLock.java:61
↓ 175 callers
Method
addRole
Resolve object describing role and create either: - new role object - symlink to named role instance, ensure it is added as persistent named role to a
universa_core/src/main/java/com/icodici/universa/contract/Contract.java:1601
↓ 174 callers
Method
doubleValue
()
universa_core/src/main/java/com/icodici/universa/Decimal.java:61
↓ 173 callers
Method
callMain
(String... args)
uniclient/src/test/java/com/icodici/universa/client/CLIMainTest.java:3692
↓ 173 callers
Method
values
Return all elements associated with all keys. Note, that if the same element is associated more than once, for example, in different keys, it will app
common_tools/src/main/java/net/sergeych/collections/Multimap.java:151
↓ 172 callers
Method
containsKey
(@NonNull K key)
common_tools/src/main/java/net/sergeych/collections/Multimap.java:133
↓ 171 callers
Method
getId
()
universa_core/src/main/java/com/icodici/universa/contract/Parcel.java:466
↓ 168 callers
Method
shutdown
()
universa_node/src/test/java/com/icodici/universa/node2/MainTest.java:1076
↓ 166 callers
Method
addNewItems
Add one or more siblings to the contract. Note that those must be sealed before calling {@link #seal()} or {@link #getPackedTransaction()}. Do not res
universa_core/src/main/java/com/icodici/universa/contract/Contract.java:2855
↓ 166 callers
Method
check
Check the the document is valid assuming all mentioned items are OK, e.g. items, approved by it (if any), items revoking by it and referenced by it.
universa_core/src/main/java/com/icodici/universa/Approvable.java:81
↓ 164 callers
Method
getPayload
()
universa_core/src/main/java/com/icodici/universa/contract/Parcel.java:387
↓ 163 callers
Method
getPayment
()
universa_core/src/main/java/com/icodici/universa/contract/Parcel.java:394
↓ 162 callers
Method
privateKey
(int index)
universa_core/src/test/java/com/icodici/universa/TestKeys.java:20
↓ 162 callers
Method
put
put object, block until there is space available. @param value object to put
common_tools/src/main/java/net/sergeych/tools/RingBuffer.java:62
↓ 160 callers
Method
addPermission
(Permission perm)
universa_core/src/main/java/com/icodici/universa/contract/Contract.java:1835
↓ 160 callers
Method
setOwnerKeys
Set "owner" role to given keys @param keys keys to set "owner" role to @return owner role
universa_core/src/main/java/com/icodici/universa/contract/Contract.java:2619
↓ 158 callers
Method
addSignerKeyFromFile
Add private key from file to keys contract binary to be signed with when sealed next time. It is called before seal() @param fileName path to file con
universa_core/src/main/java/com/icodici/universa/contract/Contract.java:1962
↓ 158 callers
Method
isEmpty
@return true if the difference is not found. This is internal function to be implemented by subclasses.
common_tools/src/main/java/net/sergeych/diff/Delta.java:130
↓ 157 callers
Method
setConditions
Set the conditions from the reference @return this reference
universa_core/src/main/java/com/icodici/universa/contract/Reference.java:2496
↓ 155 callers
Method
fail
(Node node)
universa_node/src/main/java/com/icodici/universa/node2/CallbackRecord.java:103
↓ 154 callers
Method
getStringOrThrow
Get the parameter as string. Throws exception if it is missing. @param key @return string paramter @throws IllegalArgumentException if the parameter
common_tools/src/main/java/net/sergeych/tools/Binder.java:90
↓ 150 callers
Method
getDigest
()
universa_core/src/main/java/com/icodici/universa/HashId.java:92
↓ 147 callers
Method
createRandom
Create random new hashId. Mainly for testing purposes. To create random bytes, use {@link Do#randomBytes(int)} instead. @return instance with random
universa_core/src/main/java/com/icodici/universa/HashId.java:130
↓ 143 callers
Method
equals
()
universa_node/src/test/java/com/icodici/universa/node/HashIdTest.java:40
↓ 143 callers
Method
getSubscriptionEnviromentIds
(HashId id)
universa_node/src/main/java/com/icodici/universa/node/Ledger.java:260
↓ 140 callers
Method
clear
()
universa_core/src/main/java/com/icodici/universa/node/network/microhttpd/InMemoryTempFileManager.java:42
↓ 139 callers
Method
waitParcel
If the parcel is being processing, block until the parcel been processed (been processed payment and payload contracts). @param parcelId parcel to wa
universa_node/src/main/java/com/icodici/universa/node2/Node.java:809
↓ 138 callers
Method
getLongAddress
()
universa_core/src/main/java/com/icodici/universa/contract/services/NameRecordEntry.java:14
↓ 137 callers
Method
registerParcel
()
universa_node/src/test/java/com/icodici/universa/node2/BaseNetworkTest.java:3237
↓ 135 callers
Method
isAllowedForKeys
Check role is allowed to keys @param keys is set of keys @return true if role is allowed to keys
universa_core/src/main/java/com/icodici/universa/contract/roles/Role.java:165
↓ 128 callers
Method
getMessage
()
universa_core/src/main/java/com/icodici/universa/ErrorRecord.java:31
↓ 127 callers
Method
equals
Role equality is different: it only checks that it points to the same role. @param obj is object to be checked with @return true if equals
universa_core/src/main/java/com/icodici/universa/contract/roles/Role.java:288
↓ 127 callers
Method
getBinderOrThrow
(String key)
common_tools/src/main/java/net/sergeych/tools/Binder.java:258
↓ 127 callers
Method
getServiceRate
(String extendedType)
universa_core/src/main/java/com/icodici/universa/contract/services/NSmartContract.java:60
↓ 126 callers
Method
addRequiredReference
Adds required reference to role. The reference is added to the set corresponding to the specified mode of combining references ({@link RequiredMode}).
universa_core/src/main/java/com/icodici/universa/contract/roles/Role.java:104
↓ 126 callers
Method
report
(String label, String message, int level)
universa_node/src/main/java/com/icodici/universa/node2/Node.java:1683
↓ 125 callers
Method
addReference
Add reference to the references list of the contract. Note: section of contract reference to be added to depends on {@link Reference#type} @param r
universa_core/src/main/java/com/icodici/universa/contract/Contract.java:1990
↓ 125 callers
Method
getReferences
Get map contract's references @return contract's references
universa_core/src/main/java/com/icodici/universa/contract/Contract.java:524
↓ 124 callers
Method
getNumber
()
universa_node/src/main/java/com/icodici/universa/node2/Node.java:1779
↓ 123 callers
Method
getOwner
Get owner role @return owner role
universa_core/src/main/java/com/icodici/universa/contract/Contract.java:2599
↓ 121 callers
Method
report
(String message)
uniclient/src/main/java/com/icodici/universa/client/CLIMain.java:3990
↓ 120 callers
Method
getRole
Get registered role from the contract @param roleName name of the role to get @return role or null if not exist
universa_core/src/main/java/com/icodici/universa/contract/Contract.java:1644
↓ 119 callers
Method
sealCheckTrace
(Contract c, boolean isOk)
universa_core/src/test/java/com/icodici/universa/contract/ContractTestBase.java:191
↓ 117 callers
Method
mutedAt
Getting the time to which it is possible to send callbacks (as long as there is enough money to send at least 1 callback). @return mutedAt is muted t
universa_core/src/main/java/com/icodici/universa/contract/services/FollowerService.java:28
↓ 116 callers
Method
getCallbacksSpent
Get origin-days spent for callbacks in follower service @return spent origin-days
universa_core/src/main/java/com/icodici/universa/contract/services/FollowerService.java:59
↓ 116 callers
Method
getStartedCallbacks
Get number of started callbacks in follower service @return number of started callbacks
universa_core/src/main/java/com/icodici/universa/contract/services/FollowerService.java:66
next →
1–100 of 5,135, ranked by callers