README.md in universa-3.13.2.2 vs README.md in universa-3.14.2.1
- old
+ new
@@ -1,17 +1,13 @@
# Universa
-> beta state: direct full access to Java API ready for test, started adapter of remote objects - syntax sugar
-for direct access to remote objects.
-
-__attention__ since this release version numbers match the Universa Core library version included.
-
This is an under-construction official gem from [Universa][universa] to facilitate access to the
-Java library using Universa's UMI protocol and Universa client services.
+Java library using Universa UMI protocol and Universa client services.
## News
+- production-tested in various universa projects
- rewritten Client and Connection to use new consensus-based, dns-free Universa network topology discovery protocol
- added syntax sugar for TransactionPack
- alfa version of the local FS-based contract store.
- ability to edit `contract.state` and `contract.transactional` in new revisions.
- fixed errors with interchange builder and set based objects
@@ -43,9 +39,29 @@
Or install it yourself as:
$ gem install universa
## Usage
+
+### Direct access to Universa objects:
+
+~~~ruby
+ include Universa
+
+ @private_key = PrivateKey.new 2048
+ c = Contract.create @private_key
+ c.get_creator.get_all_addresses.should == [@private_key.long_address.to_s]
+ c.seal()
+ c.check() and c.trace_errors()
+ c.should be_ok
+
+ c1 = Contract.from_packed(c.packed)
+ c1.hash_id.should == c.hash_id
+ c1.should == c
+ c1.expires_at.should > (Time.now + 120)
+~~~
+
+see smaples in specs (spec/contract_spec, spec/compound_spec, etc.)
### Direct access to UMI
So far, you can only get direct access the the Java API functions. To get it: