viem 2.0.0-beta.1 → 2.0.0-beta.2

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.
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = void 0;
4
- exports.version = '2.0.0-beta.1';
4
+ exports.version = '2.0.0-beta.2';
5
5
  //# sourceMappingURL=version.js.map
@@ -1,2 +1,2 @@
1
- export const version = '2.0.0-beta.1';
1
+ export const version = '2.0.0-beta.2';
2
2
  //# sourceMappingURL=version.js.map
@@ -1,2 +1,2 @@
1
- export declare const version = "2.0.0-beta.1";
1
+ export declare const version = "2.0.0-beta.2";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -23,6 +23,7 @@ export type Widen<type> = ([unknown] extends [type] ? unknown : never) | (type e
23
23
  } ? {
24
24
  [K in keyof type]: Widen<type[K]>;
25
25
  } extends infer Val extends readonly unknown[] ? readonly [...Val] : never : never);
26
+ export type UnionWiden<type> = type extends any ? Widen<type> : never;
26
27
  export type ExtractAbiFunctionForArgs<abi extends Abi, mutability extends AbiStateMutability, functionName extends ContractFunctionName<abi, mutability>, args extends ContractFunctionArgs<abi, mutability, functionName>> = ExtractAbiFunction<abi, functionName, mutability> extends infer abiFunction extends AbiFunction ? IsUnion<abiFunction> extends true ? UnionToTuple<abiFunction> extends infer abiFunctions extends readonly AbiFunction[] ? {
27
28
  [k in keyof abiFunctions]: (readonly [] extends args ? readonly [] : args) extends AbiParametersToPrimitiveTypes<abiFunctions[k]['inputs'], 'inputs'> ? abiFunctions[k] : never;
28
29
  }[number] : never : abiFunction : never;
@@ -30,7 +31,7 @@ export type ContractFunctionParameters<abi extends Abi | readonly unknown[] = Ab
30
31
  address: Address;
31
32
  abi: abi;
32
33
  functionName: allFunctionNames | (functionName extends allFunctionNames ? functionName : never);
33
- args?: (abi extends Abi ? Widen<args> : never) | allArgs | undefined;
34
+ args?: (abi extends Abi ? UnionWiden<args> : never) | allArgs | undefined;
34
35
  } & (readonly [] extends allArgs ? {} : {
35
36
  args: Widen<args>;
36
37
  });
@@ -1 +1 @@
1
- {"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../types/contract.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,GAAG,EACR,KAAK,QAAQ,EACb,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,2BAA2B,EAChC,KAAK,6BAA6B,EAClC,KAAK,kBAAkB,EACvB,KAAK,OAAO,EACZ,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,uBAAuB,EAC5B,KAAK,gBAAgB,EACtB,MAAM,SAAS,CAAA;AAEhB,OAAO,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAA;AAC9C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AAC1D,OAAO,KAAK,EACV,MAAM,EACN,YAAY,EACZ,OAAO,EACP,aAAa,EACb,WAAW,EACX,QAAQ,EACR,YAAY,EACb,MAAM,YAAY,CAAA;AAEnB,MAAM,MAAM,oBAAoB,CAC9B,GAAG,SAAS,GAAG,GAAG,SAAS,OAAO,EAAE,GAAG,GAAG,EAC1C,UAAU,SAAS,kBAAkB,GAAG,kBAAkB,IACxD,uBAAuB,CACzB,GAAG,SAAS,GAAG,GAAG,GAAG,GAAG,GAAG,EAC3B,UAAU,CACX,SAAS,MAAM,YAAY,SAAS,MAAM,GACvC,CAAC,YAAY,CAAC,SAAS,CAAC,KAAK,CAAC,GAC5B,MAAM,GACN,YAAY,GACd,MAAM,CAAA;AAEV,MAAM,MAAM,iBAAiB,CAAC,GAAG,SAAS,GAAG,GAAG,SAAS,OAAO,EAAE,GAAG,GAAG,IACtE,oBAAoB,CAClB,GAAG,SAAS,GAAG,GAAG,GAAG,GAAG,GAAG,CAC5B,SAA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GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,GAAG,MAAM,IAAI,MAAM,GAAG,CAAA;AAE7E;;GAEG;AACH,MAAM,MAAM,4BAA4B,CACtC,aAAa,SAAS,YAAY,EAClC,MAAM,SAAS,QAAQ,EACvB,cAAc,GAAG,aAAa,CAAC,MAAM,CAAC,SAAS,gBAAgB,GAC3D,MAAM,GACN,2BAA2B,CAAC,aAAa,CAAC,IAC5C,YAAY,CAAC,cAAc,EAAE,MAAM,CAAC,CAAA"}
package/errors/version.ts CHANGED
@@ -1 +1 @@
1
- export const version = '2.0.0-beta.1'
1
+ export const version = '2.0.0-beta.2'
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "viem",
3
3
  "description": "TypeScript Interface for Ethereum",
4
- "version": "2.0.0-beta.1",
4
+ "version": "2.0.0-beta.2",
5
5
  "main": "./_cjs/index.js",
6
6
  "module": "./_esm/index.js",
7
7
  "types": "./_types/index.d.ts",
package/types/contract.ts CHANGED
@@ -153,6 +153,8 @@ export type Widen<type> =
153
153
  : never
154
154
  : never)
155
155
 
156
+ export type UnionWiden<type> = type extends any ? Widen<type> : never
157
+
156
158
  export type ExtractAbiFunctionForArgs<
157
159
  abi extends Abi,
158
160
  mutability extends AbiStateMutability,
@@ -204,7 +206,7 @@ export type ContractFunctionParameters<
204
206
  functionName:
205
207
  | allFunctionNames // show all options
206
208
  | (functionName extends allFunctionNames ? functionName : never) // infer value
207
- args?: (abi extends Abi ? Widen<args> : never) | allArgs | undefined
209
+ args?: (abi extends Abi ? UnionWiden<args> : never) | allArgs | undefined
208
210
  } & (readonly [] extends allArgs ? {} : { args: Widen<args> })
209
211
 
210
212
  export type ContractFunctionReturnType<