@hybrd/types 0.4.2 → 0.4.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.
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.ts +3 -1
- 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 { 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 ProviderKeys = {\n alchemyKey?: string\n infuraKey?: string\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 Provider: React.FC<WalletConnectorOpts>\n}\nexport type WalletConnectorConfig = {\n chains: Chain[]\n
|
|
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 ProviderKeys = {\n alchemyKey?: string\n infuraKey?: string\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 Provider: React.FC<WalletConnectorOpts>\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
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Abi } from 'abitype';
|
|
2
|
+
import { providers } from 'ethers';
|
|
2
3
|
import { Client, Chain } from 'wagmi';
|
|
3
4
|
export { TransactionReceipt as Receipt, TransactionResponse as Transaction } from '@ethersproject/providers';
|
|
4
5
|
|
|
@@ -30,7 +31,8 @@ type WalletConnection = {
|
|
|
30
31
|
};
|
|
31
32
|
type WalletConnectorConfig = {
|
|
32
33
|
chains: Chain[];
|
|
33
|
-
|
|
34
|
+
providers: providers.BaseProvider[];
|
|
35
|
+
};
|
|
34
36
|
type WalletConnector = (config: WalletConnectorConfig) => WalletConnection;
|
|
35
37
|
|
|
36
38
|
export { CompiledContract, DeployTarget, DeployedContract, Deployment, ProviderKeys, WalletConnection, WalletConnector, WalletConnectorConfig, WalletConnectorOpts };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hybrd/types",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.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",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"tsup": "^6.6.3",
|
|
42
42
|
"typescript": "^4.9.5"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "8c7849690283595e5c90abc9ff4f3a48bfffca12"
|
|
45
45
|
}
|