@dynamic-labs/types 0.17.16 → 0.17.100-viem.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/CHANGELOG.md +2 -0
- package/package.json +5 -3
- package/src/ethers/index.d.ts +12 -13
- package/src/index.d.ts +3 -3
- package/src/networks.d.ts +11 -11
- package/src/oauth/index.d.ts +1 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/types",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.100-viem.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/dynamic-labs/DynamicAuth.git",
|
|
@@ -26,7 +26,9 @@
|
|
|
26
26
|
"./package.json": "./package.json"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@dynamic-labs/sdk-api": "0.0.198"
|
|
30
|
-
|
|
29
|
+
"@dynamic-labs/sdk-api": "0.0.198"
|
|
30
|
+
},
|
|
31
|
+
"peerDependencies": {
|
|
32
|
+
"viem": "^1.1.0"
|
|
31
33
|
}
|
|
32
34
|
}
|
package/src/ethers/index.d.ts
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type WalletUiUtils = {
|
|
3
|
-
disabledConfirmationOnce: () => void;
|
|
4
|
-
sendTransaction: (props: {
|
|
5
|
-
handler: (transaction:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
};
|
|
1
|
+
import { TransactionReceipt, TransactionRequest } from 'viem';
|
|
2
|
+
export type WalletUiUtils = {
|
|
3
|
+
disabledConfirmationOnce: () => void;
|
|
4
|
+
sendTransaction: (props: {
|
|
5
|
+
handler: (transaction: TransactionRequest) => Promise<TransactionReceipt>;
|
|
6
|
+
transaction: TransactionRequest;
|
|
7
|
+
}) => Promise<TransactionReceipt>;
|
|
8
|
+
signMessage: (props: {
|
|
9
|
+
handler: () => Promise<string>;
|
|
10
|
+
message: string | ArrayLike<number>;
|
|
11
|
+
}) => Promise<string>;
|
|
12
|
+
};
|
package/src/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './networks';
|
|
2
|
-
export * from './ethers';
|
|
3
|
-
export * from './oauth';
|
|
1
|
+
export * from './networks';
|
|
2
|
+
export * from './ethers';
|
|
3
|
+
export * from './oauth';
|
package/src/networks.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { type NetworkConfiguration } from '@dynamic-labs/sdk-api';
|
|
2
|
-
export type GenericNetwork = Omit<NetworkConfiguration, 'chainId' | 'networkId' | 'shortName' | 'chain'> & {
|
|
3
|
-
chainId: number | string;
|
|
4
|
-
networkId: number | string;
|
|
5
|
-
};
|
|
6
|
-
export type EvmNetwork = Omit<GenericNetwork, 'chainId'> & {
|
|
7
|
-
chainId: number;
|
|
8
|
-
};
|
|
9
|
-
export type NetworkConfigurationMap = {
|
|
10
|
-
[key: string]: GenericNetwork[] | undefined;
|
|
11
|
-
};
|
|
1
|
+
import { type NetworkConfiguration } from '@dynamic-labs/sdk-api';
|
|
2
|
+
export type GenericNetwork = Omit<NetworkConfiguration, 'chainId' | 'networkId' | 'shortName' | 'chain'> & {
|
|
3
|
+
chainId: number | string;
|
|
4
|
+
networkId: number | string;
|
|
5
|
+
};
|
|
6
|
+
export type EvmNetwork = Omit<GenericNetwork, 'chainId'> & {
|
|
7
|
+
chainId: number;
|
|
8
|
+
};
|
|
9
|
+
export type NetworkConfigurationMap = {
|
|
10
|
+
[key: string]: GenericNetwork[] | undefined;
|
|
11
|
+
};
|
package/src/oauth/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export type SocialOAuthProvider = 'google' | 'facebook' | 'apple' | 'github' | 'bitbucket' | 'gitlab' | 'linkedin' | 'twitter' | 'discord' | 'twitch' | 'microsoft';
|
|
1
|
+
export type SocialOAuthProvider = 'google' | 'facebook' | 'apple' | 'github' | 'bitbucket' | 'gitlab' | 'linkedin' | 'twitter' | 'discord' | 'twitch' | 'microsoft';
|