@leofcoin/global-types 1.0.0 → 1.0.2

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/global.d.ts +19 -10
  2. package/package.json +6 -6
package/global.d.ts CHANGED
@@ -1,16 +1,25 @@
1
- import { BigNumber} from '@ethersproject/bignumber';
1
+ import { BigNumber } from '@ethersproject/bignumber';
2
2
 
3
3
  declare interface msg {
4
- sender: address
5
- call(contract: address, method: string, parameters: []): Promise<any>
6
- staticCall(contract: address, method: string, parameters?: []): Promise<any>
7
- delegate(contract: address, method: string, parameters: []): Promise<any>
8
- staticDelegate(contract: address, method: string, parameters?: []): Promise<any>
4
+ sender: address;
5
+ contract: address;
6
+ call(contract: address, method: string, parameters: any[]): Promise<any>;
7
+ staticCall(
8
+ contract: address,
9
+ method: string,
10
+ parameters?: any[]
11
+ ): Promise<any>;
12
+ delegate(contract: address, method: string, parameters: any[]): Promise<any>;
13
+ staticDelegate(
14
+ contract: address,
15
+ method: string,
16
+ parameters?: any[]
17
+ ): Promise<any>;
9
18
  }
10
19
 
11
20
  declare global {
12
- const BigNumber: BigNumber
13
- type BigNumberish = string | number | bigint | BigNumber | ArrayLike<number>
21
+ const BigNumber: BigNumber;
22
+ type BigNumberish = string | number | bigint | BigNumber | ArrayLike<number>;
14
23
  type address = string;
15
- const msg: msg
16
- }
24
+ const msg: msg;
25
+ }
package/package.json CHANGED
@@ -1,9 +1,14 @@
1
1
  {
2
2
  "name": "@leofcoin/global-types",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "types": "./global.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "types": "./global.d.ts"
10
+ }
11
+ },
7
12
  "scripts": {
8
13
  "build": "rollup -c",
9
14
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -12,11 +17,6 @@
12
17
  "author": "",
13
18
  "license": "MIT",
14
19
  "devDependencies": {
15
- "@rollup/plugin-typescript": "^11.0.0",
16
- "rollup": "^3.17.1",
17
- "tslib": "^2.5.0"
18
- },
19
- "dependencies": {
20
20
  "@ethersproject/bignumber": "^5.7.0"
21
21
  }
22
22
  }