@leofcoin/standards 0.2.8 → 0.2.9
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/package.json +2 -2
- package/src/staking.ts +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leofcoin/standards",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.9",
|
|
4
4
|
"description": "Contract standards",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -62,13 +62,13 @@
|
|
|
62
62
|
},
|
|
63
63
|
"homepage": "https://github.com/ArteonToken/standards#readme",
|
|
64
64
|
"devDependencies": {
|
|
65
|
+
"@changesets/cli": "^2.27.7",
|
|
65
66
|
"@leofcoin/global-types": "^1.0.0",
|
|
66
67
|
"@rollup/plugin-typescript": "^11.1.6",
|
|
67
68
|
"rollup": "^4.12.0",
|
|
68
69
|
"tslib": "^2.5.0"
|
|
69
70
|
},
|
|
70
71
|
"dependencies": {
|
|
71
|
-
"@changesets/cli": "^2.27.1",
|
|
72
72
|
"@ethersproject/bignumber": "^5.7.0"
|
|
73
73
|
}
|
|
74
74
|
}
|
package/src/staking.ts
CHANGED
|
@@ -8,7 +8,7 @@ export declare interface TokenState extends RolesState {
|
|
|
8
8
|
totalSupply: BigNumberish
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
export default class
|
|
11
|
+
export default class Staking extends Roles {
|
|
12
12
|
/**
|
|
13
13
|
* string
|
|
14
14
|
*/
|
|
@@ -34,6 +34,8 @@ export default class Token extends Roles {
|
|
|
34
34
|
|
|
35
35
|
#totalSupply: typeof BigNumber = BigNumber['from'](0)
|
|
36
36
|
|
|
37
|
+
#stakingContract: address
|
|
38
|
+
|
|
37
39
|
// this.#privateField2 = 1
|
|
38
40
|
constructor(name: string, symbol: string, decimals: number = 18, state?: TokenState) {
|
|
39
41
|
if (!name) throw new Error(`name undefined`)
|