@leofcoin/contracts 0.1.13 → 0.1.14

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.
package/README.md CHANGED
@@ -1,2 +1,28 @@
1
1
  # contracts
2
-
2
+
3
+ ## Leofcoin Class
4
+
5
+ The `Leofcoin` class extends the `Token` class from the `@leofcoin/standards/token.js` module. It represents a specific type of token with predefined properties.
6
+
7
+ ### Constructor
8
+
9
+ #### `constructor(state: TokenState)`
10
+
11
+ Creates an instance of the `Leofcoin` class.
12
+
13
+ ##### Parameters
14
+
15
+ - `state` (TokenState): The initial state of the token.
16
+
17
+ ##### Example
18
+
19
+ ```typescript
20
+ import Leofcoin from './native-token'
21
+ import { TokenState } from '@leofcoin/standards/token.js'
22
+
23
+ const initialState: TokenState = {
24
+ // Define the initial state properties here
25
+ }
26
+
27
+ const leofcoin = new Leofcoin(initialState)
28
+ ```
@@ -1,4 +1,5 @@
1
+ import { IToken } from '@leofcoin/standards/interfaces/i-token';
1
2
  import Token, { TokenState } from '@leofcoin/standards/token.js';
2
- export default class Leofcoin extends Token {
3
+ export default class Leofcoin extends Token implements IToken {
3
4
  constructor(state: TokenState);
4
5
  }
@@ -1,4 +1,5 @@
1
+ import { IToken } from '@leofcoin/standards/interfaces/i-token';
1
2
  import Token, { TokenState } from '@leofcoin/standards/token.js';
2
- export default class Power extends Token {
3
+ export default class Power extends Token implements IToken {
3
4
  constructor(state: TokenState);
4
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leofcoin/contracts",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "exports": {
@@ -1,6 +1,7 @@
1
+ import { IToken } from '@leofcoin/standards/interfaces/i-token'
1
2
  import Token, { TokenState } from '@leofcoin/standards/token.js'
2
3
 
3
- export default class Leofcoin extends Token {
4
+ export default class Leofcoin extends Token implements IToken {
4
5
  constructor(state: TokenState) {
5
6
  super('Leofcoin', 'LFC', 18, state)
6
7
  }
@@ -1,6 +1,7 @@
1
+ import { IToken } from '@leofcoin/standards/interfaces/i-token'
1
2
  import Token, { TokenState } from '@leofcoin/standards/token.js'
2
3
 
3
- export default class Power extends Token {
4
+ export default class Power extends Token implements IToken {
4
5
  constructor(state: TokenState) {
5
6
  super('Power', 'PWR', 18, state)
6
7
  }