streembit-bc-types 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +6 -2
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -1,8 +1,12 @@
1
1
  # streembit-bc-types
2
2
 
3
- ## Purpose
3
+ ## What this package is for
4
4
 
5
- The shared TypeScript types, enums, constants and a few helper functions of the Streembit blockchain.
5
+ Streembit is a blockchain with the native asset SBRIT. Its software is made of several programs and libraries: the node, the SDK used by wallets and applications (`streembit-bc-sdk`), the command line client (`streembit-bc-cli`) and the node's event bus (`streembit-bc-events`). All of them must agree on the same data: what an account, a transaction and a block look like, which transaction types exist, what the protocol constants are, how storage keys are named and which REST routes a node serves.
6
+
7
+ This package is the one place where those shared definitions are written down. It contains TypeScript types and interfaces, enums, protocol constants, the builders of the storage keys (`NSkey`) and two route builders. It holds definitions only: it does not sign, hash, validate or store anything, and it has no runtime dependencies. Because every program imports the same definitions, a change to a transaction or block format is made once here and reaches all of them.
8
+
9
+ You need this package if you write TypeScript that builds or reads Streembit data: work on the node, a smart contract, or a tool that talks to a node. If you use `streembit-bc-sdk`, this package is installed with it, and you import the types from here.
6
10
 
7
11
  ## Requirements
8
12
 
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "streembit-bc-types",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "Streembit Blockchain Types",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "git+https://github.com/streembit/streembit-bc-types.git"
9
9
  },
10
- "author": "Zovolt Ltd, UK <tzpardi@streembit.com>",
10
+ "author": "Streembit Development Team <admin@streembit.com>",
11
11
  "main": "./dist/index.js",
12
12
  "types": "./dist/index.d.ts",
13
13
  "files": [