@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 CHANGED
@@ -1,4 +1,6 @@
1
1
 
2
+ ### [0.17.100-viem.1](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.100-viem.0...v0.17.100-viem.1) (2023-06-28)
3
+
2
4
  ### [0.17.16](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.15...v0.17.16) (2023-06-28)
3
5
 
4
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/types",
3
- "version": "0.17.16",
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
- "ethers": "5.7.2"
29
+ "@dynamic-labs/sdk-api": "0.0.198"
30
+ },
31
+ "peerDependencies": {
32
+ "viem": "^1.1.0"
31
33
  }
32
34
  }
@@ -1,13 +1,12 @@
1
- import { type ethers } from 'ethers';
2
- export type WalletUiUtils = {
3
- disabledConfirmationOnce: () => void;
4
- sendTransaction: (props: {
5
- handler: (transaction: ethers.utils.Deferrable<ethers.providers.TransactionRequest>) => Promise<ethers.providers.TransactionResponse>;
6
- provider: ethers.providers.Web3Provider;
7
- transaction: ethers.utils.Deferrable<ethers.providers.TransactionRequest>;
8
- }) => Promise<ethers.providers.TransactionResponse>;
9
- signMessage: (props: {
10
- handler: (message: string | ethers.utils.Bytes) => Promise<string>;
11
- message: string | ethers.utils.Bytes;
12
- }) => Promise<string>;
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
+ };
@@ -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';