@hybrd/types 0.6.1 → 0.7.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.map +1 -1
- package/dist/types.d.ts +3 -4
- package/package.json +2 -2
package/dist/types.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/types.ts"],"sourcesContent":["import { Abi } from \"abitype\"\nimport { providers } from \"ethers\"\nimport { Chain, Client as WagmiClient } from \"wagmi\"\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\nexport type
|
|
1
|
+
{"version":3,"sources":["../src/types.ts"],"sourcesContent":["import { Abi } from \"abitype\"\nimport { providers } from \"ethers\"\nimport { Chain, Client as WagmiClient } from \"wagmi\"\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\nexport type ProviderConfig = {\n hybridKey?: string\n}\n\nexport type WalletConnectorOpts = object // todo - what config is common to all wallet plugins?\nexport type WalletConnection = {\n client: WagmiClient\n hooks: WalletConnectionHooks\n Provider: React.FC<WalletConnectorOpts>\n}\n\nexport type WalletConnectionHooks = {\n useWallet: () => UseWallet\n}\n\nexport type UseWallet = {\n connect: () => void\n disconnect: () => void\n}\n\nexport type WalletConnectorConfig = {\n chains: Chain[]\n providers: providers.BaseProvider[]\n}\n\nexport type WalletConnector = (\n config: WalletConnectorConfig\n) => WalletConnection\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
package/dist/types.d.ts
CHANGED
|
@@ -20,9 +20,8 @@ type Deployment = {
|
|
|
20
20
|
blockNumber: number;
|
|
21
21
|
};
|
|
22
22
|
|
|
23
|
-
type
|
|
24
|
-
|
|
25
|
-
infuraKey?: string;
|
|
23
|
+
type ProviderConfig = {
|
|
24
|
+
hybridKey?: string;
|
|
26
25
|
};
|
|
27
26
|
type WalletConnectorOpts = object;
|
|
28
27
|
type WalletConnection = {
|
|
@@ -43,4 +42,4 @@ type WalletConnectorConfig = {
|
|
|
43
42
|
};
|
|
44
43
|
type WalletConnector = (config: WalletConnectorConfig) => WalletConnection;
|
|
45
44
|
|
|
46
|
-
export { CompiledContract, DeployTarget, DeployedContract, Deployment,
|
|
45
|
+
export { CompiledContract, DeployTarget, DeployedContract, Deployment, ProviderConfig, UseWallet, WalletConnection, WalletConnectionHooks, WalletConnector, WalletConnectorConfig, WalletConnectorOpts };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hybrd/types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.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",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"tsup": "^6.6.3",
|
|
42
42
|
"typescript": "^4.9.5"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "fcb10691bec222c7f1908849630171c52020207f"
|
|
45
45
|
}
|