@hybrd/types 0.3.2 → 0.3.4

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/package.json +4 -3
  2. package/src/types.ts +26 -0
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@hybrd/types",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
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
- "types": "./src/types.d.ts",
9
+ "main": "./src/types.ts",
10
+ "types": "./src/types.ts",
10
11
  "files": [
11
12
  "client",
12
13
  "dist"
@@ -28,5 +29,5 @@
28
29
  "@types/node": "^18.14.6",
29
30
  "typescript": "^4.9.5"
30
31
  },
31
- "gitHead": "b58386d654db023b365fe27378c6a4cea5b4a16f"
32
+ "gitHead": "6f68e90dabc628f067f338766b43e0fa8c4192ac"
32
33
  }
package/src/types.ts ADDED
@@ -0,0 +1,26 @@
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"