@hybrd/types 0.3.4 → 0.3.5-alpha.1

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/dist/types.cjs ADDED
@@ -0,0 +1,18 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from))
8
+ if (!__hasOwnProp.call(to, key) && key !== except)
9
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ }
11
+ return to;
12
+ };
13
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
14
+
15
+ // src/types.ts
16
+ var types_exports = {};
17
+ module.exports = __toCommonJS(types_exports);
18
+ //# sourceMappingURL=types.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/types.ts"],"sourcesContent":["import { Abi } from \"abitype\"\n\nexport type CompiledContract = {\n abi: Abi\n bytecode: string\n}\n\nexport type DeployedContract = {\n address: string\n chainId: number\n} & CompiledContract\n\nexport type DeployTarget = \"test\" | \"prod\"\n\nexport type Deployment = {\n address: string\n deployer: string\n txHash: string\n blockHash: string\n blockNumber: number\n}\n\nexport type {\n TransactionReceipt as Receipt,\n TransactionResponse as Transaction\n} from \"@ethersproject/providers\"\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
@@ -0,0 +1,21 @@
1
+ import { Abi } from 'abitype';
2
+ export { TransactionReceipt as Receipt, TransactionResponse as Transaction } from '@ethersproject/providers';
3
+
4
+ type CompiledContract = {
5
+ abi: Abi;
6
+ bytecode: string;
7
+ };
8
+ type DeployedContract = {
9
+ address: string;
10
+ chainId: number;
11
+ } & CompiledContract;
12
+ type DeployTarget = "test" | "prod";
13
+ type Deployment = {
14
+ address: string;
15
+ deployer: string;
16
+ txHash: string;
17
+ blockHash: string;
18
+ blockNumber: number;
19
+ };
20
+
21
+ export { CompiledContract, DeployTarget, DeployedContract, Deployment };
package/dist/types.js ADDED
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
package/package.json CHANGED
@@ -1,15 +1,20 @@
1
1
  {
2
2
  "name": "@hybrd/types",
3
- "version": "0.3.4",
3
+ "version": "0.3.5-alpha.1",
4
4
  "description": "Solidity + TypeScript Framework for Web3 Development",
5
5
  "author": "Ian Hunter <ian@ianh.xyz>",
6
6
  "homepage": "https://github.com/ian/hybrid#readme",
7
7
  "license": "ISC",
8
8
  "type": "module",
9
- "main": "./src/types.ts",
10
- "types": "./src/types.ts",
9
+ "types": "dist/types.d.ts",
10
+ "exports": {
11
+ ".": {
12
+ "import": "./dist/types.js",
13
+ "require": "./dist/types.cjs"
14
+ },
15
+ "./package.json": "./package.json"
16
+ },
11
17
  "files": [
12
- "client",
13
18
  "dist"
14
19
  ],
15
20
  "repository": {
@@ -17,6 +22,8 @@
17
22
  "url": "git+https://github.com/ian/hybrid.git"
18
23
  },
19
24
  "scripts": {
25
+ "clean": "rm -rf dist",
26
+ "build": "tsup",
20
27
  "dev": "nodemon"
21
28
  },
22
29
  "bugs": {
@@ -27,7 +34,9 @@
27
34
  },
28
35
  "devDependencies": {
29
36
  "@types/node": "^18.14.6",
37
+ "nodemon": "^2.0.21",
38
+ "tsup": "^6.6.3",
30
39
  "typescript": "^4.9.5"
31
40
  },
32
- "gitHead": "6f68e90dabc628f067f338766b43e0fa8c4192ac"
41
+ "gitHead": "333fbdbc25d6d69225dc7b156d66edf70e7bd66c"
33
42
  }
package/src/types.ts DELETED
@@ -1,26 +0,0 @@
1
- import { Abi } from "abitype"
2
-
3
- export type CompiledContract = {
4
- abi: Abi
5
- bytecode: string
6
- }
7
-
8
- export type DeployedContract = {
9
- address: string
10
- chainId: number
11
- } & CompiledContract
12
-
13
- export type DeployTarget = "test" | "prod"
14
-
15
- export type Deployment = {
16
- address: string
17
- deployer: string
18
- txHash: string
19
- blockHash: string
20
- blockNumber: number
21
- }
22
-
23
- export type {
24
- TransactionReceipt as Receipt,
25
- TransactionResponse as Transaction
26
- } from "@ethersproject/providers"