@leofcoin/messages 1.3.5 → 1.3.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.
@@ -1,4 +1,4 @@
1
- import { BigNumber } from '@leofcoin/utils';
1
+ import '@leofcoin/utils';
2
2
  import { FormatInterface } from '@leofcoin/codec-format-interface';
3
3
  import TransactionMessage from './transaction.js';
4
4
  import ValidatorMessage from './validator.js';
@@ -9,8 +9,8 @@ var proto = {
9
9
  index: Number(),
10
10
  previousHash: String(),
11
11
  timestamp: Number(),
12
- reward: BigNumber.from(0),
13
- fees: BigNumber.from(0),
12
+ reward: String(),
13
+ fees: String(),
14
14
  transactions: new Uint8Array(),
15
15
  validators: new Uint8Array()
16
16
  };
@@ -2,7 +2,7 @@ import { FormatInterface } from '@leofcoin/codec-format-interface';
2
2
 
3
3
  var proto = {
4
4
  address: String(),
5
- reward: Number()
5
+ reward: String()
6
6
  };
7
7
 
8
8
  class ValidatorMessage extends FormatInterface {
@@ -2,8 +2,8 @@ declare namespace _default {
2
2
  const index: number;
3
3
  const previousHash: string;
4
4
  const timestamp: number;
5
- const reward: any;
6
- const fees: any;
5
+ const reward: string;
6
+ const fees: string;
7
7
  const transactions: Uint8Array;
8
8
  const validators: Uint8Array;
9
9
  }
@@ -1,5 +1,5 @@
1
1
  declare namespace _default {
2
2
  const address: string;
3
- const reward: number;
3
+ const reward: string;
4
4
  }
5
5
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leofcoin/messages",
3
- "version": "1.3.5",
3
+ "version": "1.3.6",
4
4
  "description": "",
5
5
  "exports": {
6
6
  ".": "./exports/index.js",
@@ -4,8 +4,8 @@ export default {
4
4
  index: Number(),
5
5
  previousHash: String(),
6
6
  timestamp: Number(),
7
- reward: BigNumber.from(0),
8
- fees: BigNumber.from(0),
7
+ reward: String(),
8
+ fees: String(),
9
9
  transactions: new Uint8Array(),
10
10
  validators: new Uint8Array()
11
11
  }
@@ -1,4 +1,4 @@
1
1
  export default {
2
2
  address: String(),
3
- reward: Number()
3
+ reward: String()
4
4
  }