@leofcoin/messages 1.4.4 → 1.4.6

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.
@@ -0,0 +1,8 @@
1
+ import proto from '../protos/state.proto.js';
2
+ import { FormatInterface } from '@leofcoin/codec-format-interface';
3
+ import type { messageInput } from '../types.js';
4
+ export default class StateMessage extends FormatInterface {
5
+ decoded: typeof proto;
6
+ get messageName(): string;
7
+ constructor(buffer: messageInput);
8
+ }
@@ -0,0 +1,5 @@
1
+ declare const _default: {
2
+ lastblock: any;
3
+ values: any;
4
+ };
5
+ export default _default;
@@ -0,0 +1,20 @@
1
+ import { FormatInterface } from '@leofcoin/codec-format-interface';
2
+
3
+ var proto = {
4
+ lastblock: Object(),
5
+ values: Object()
6
+ };
7
+
8
+ class StateMessage extends FormatInterface {
9
+ get messageName() {
10
+ return 'StateMessage';
11
+ }
12
+ constructor(buffer) {
13
+ if (buffer instanceof StateMessage)
14
+ return buffer;
15
+ const name = 'state-message';
16
+ super(buffer, proto, { name });
17
+ }
18
+ }
19
+
20
+ export { StateMessage as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leofcoin/messages",
3
- "version": "1.4.4",
3
+ "version": "1.4.6",
4
4
  "description": "",
5
5
  "exports": {
6
6
  ".": {
@@ -34,6 +34,10 @@
34
34
  "./transaction": {
35
35
  "import": "./exports/transaction.js",
36
36
  "types": "./exports/transaction.d.ts"
37
+ },
38
+ "./state": {
39
+ "import": "./exports/state.js",
40
+ "types": "./exports/state.d.ts"
37
41
  }
38
42
  },
39
43
  "files": [