@leofcoin/lib 1.0.7 → 1.0.8

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/dist/lib.esm +10 -25
  2. package/package.json +2 -2
package/dist/lib.esm CHANGED
@@ -7871,31 +7871,16 @@ class ContractMessage extends (/* unused pure expression or super */ null && (Fo
7871
7871
  }
7872
7872
  }
7873
7873
 
7874
- ;// CONCATENATED MODULE: ./node_modules/@leofcoin/messages/src/protos/block.proto.js
7875
- /* harmony default export */ const block_proto = (`
7876
- message ValidatorMessage {
7877
- required string address = 1;
7878
- required string reward = 2;
7879
- }
7880
-
7881
- message Transaction {
7882
- required string hash = 1;
7883
- required uint64 timestamp = 2;
7884
- required string from = 3;
7885
- required string to = 4;
7886
- required uint64 nonce = 5;
7887
- required string method = 6;
7888
- repeated string params = 7;
7889
- }
7874
+ ;// CONCATENATED MODULE: ./node_modules/@leofcoin/messages/src/protos/transaction.proto.js
7875
+ /* harmony default export */ const transaction_proto = (`
7890
7876
 
7891
- message BlockMessage {
7892
- required uint64 index = 1;
7893
- required string previousHash = 3;
7894
- required uint64 timestamp = 4;
7895
- required uint64 reward = 5;
7896
- required string fees = 6;
7897
- repeated Transaction transactions = 7;
7898
- repeated ValidatorMessage validators = 8;
7877
+ message TransactionMessage {
7878
+ required uint64 timestamp = 1;
7879
+ required string from = 2;
7880
+ required string to = 3;
7881
+ required uint64 nonce = 4;
7882
+ required string method = 5;
7883
+ repeated string params = 6;
7899
7884
  }
7900
7885
  `);
7901
7886
 
@@ -7914,7 +7899,7 @@ class TransactionMessage extends codec_format_interface_FormatInterface {
7914
7899
 
7915
7900
  constructor(buffer) {
7916
7901
  const name = 'transaction-message'
7917
- super(buffer, block_proto, {name})
7902
+ super(buffer, transaction_proto, {name})
7918
7903
  }
7919
7904
  }
7920
7905
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leofcoin/lib",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "",
5
5
  "main": "dist/lib.js",
6
6
  "module": "src/lib.js",
@@ -17,6 +17,6 @@
17
17
  "webpack-cli": "^4.9.2"
18
18
  },
19
19
  "dependencies": {
20
- "@leofcoin/messages": "^1.1.1"
20
+ "@leofcoin/messages": "^1.1.2"
21
21
  }
22
22
  }