feat: abi parameter named tuples #1484
pull-request.yml
on: pull_request
Matrix: Verify / Types
Publish preview release
Annotations
35 errors and 6 warnings
|
Size
The process '/home/runner/setup-pnpm/node_modules/.bin/pnpm' failed with exit code 2
|
|
Size
Argument of type '{ enabled: boolean; structuralSharing: boolean | ((oldData: unknown | undefined, newData: unknown) => unknown); queryFn: ({ queryKey }: { queryKey: readonly ["readContract", Omit<UnionExactPartial<{ account?: `0x${string}` | Account<`0x${string}`> | undefined; authorizationList?: AuthorizationList<number, boolean> | undefined; blockNumber?: bigint | undefined | undefined; factory?: `0x${string}` | undefined; factoryData?: `0x${string}` | undefined; blockOverrides?: BlockOverrides<bigint, number> | undefined; stateOverride?: StateOverride | undefined; blockTag?: BlockTag | undefined; } & { abi: abi; functionName: ContractFunctionName<abi, "view" | "pure"> | (functionName extends ContractFunctionName<abi, "view" | "pure"> ? functionName : never); args?: ContractFunctionArgs<abi, "view" | "pure", functionName> | (abi extends Abi ? UnionWiden<IsUnion<Extract<Extract<(abi extends Abi ? abi : Abi)[number], { type: "function"; stateMutability: "pure" | "view"; }>, { name: functionName; }>, Extract<Extract<(abi extends Abi ? abi : Abi)[number], { type: "function"; stateMutability: "pure" | "view"; }>, { name: functionName; }>> extends true ? args : ContractFunctionArgs<abi, "view" | "pure", functionName>> : never) | undefined; } & (readonly [] extends ContractFunctionArgs<abi, "view" | "pure", functionName> ? {} : { args: Widen<IsUnion<Extract<Extract<(abi extends Abi ? abi : Abi)[number], { type: "function"; stateMutability: "pure" | "view"; }>, { name: functionName; }>, Extract<Extract<(abi extends Abi ? abi : Abi)[number], { type: "function"; stateMutability: "pure" | "view"; }>, { name: functionName; }>> extends true ? args : ContractFunctionArgs<abi, "view" | "pure", functionName>>; }) & { address: `0x${string}`; } & ChainIdParameter<config, config["chains"][number]["id"]>> & ScopeKeyParameter, "abi"> | Omit<UnionExactPartial<{ account?: `0x${string}` | Account<`0x${string}`> | undefined; authorizationList?: AuthorizationList<number, boolean> | undefined; blockNumber?: bigint | undefined | undefined; factory?: `0x${string}` | undefined; factoryData?: `0x${string}` | undefined; blockOverrides?: BlockOverrides<bigint, number> | undefined; stateOverride?: StateOverride | undefined; blockTag?: BlockTag | undefined; } & { abi: abi; functionName: ContractFunctionName<abi, "view" | "pure"> | (functionName extends ContractFunctionName<abi, "view" | "pure"> ? functionName : never); args?: ContractFunctionArgs<abi, "view" | "pure", functionName> | (abi extends Abi ? UnionWiden<IsUnion<Extract<Extract<(abi extends Abi ? abi : Abi)[number], { type: "function"; stateMutability: "pure" | "view"; }>, { name: functionName; }>, Extract<Extract<(abi extends Abi ? abi : Abi)[number], { type: "function"; stateMutability: "pure" | "view"; }>, { name: functionName; }>> extends true ? args : ContractFunctionArgs<abi, "view" | "pure", functionName>> : never) | undefined; } & (readonly [] extends ContractFunctionArgs<abi, "view" | "pure", functionName> ? {} : { args: Widen<IsUnion<Extract<Extract<(abi extends Abi ? abi : Abi)[number], { type: "function"; stateMutability: "pure" | "view"; }>, { name: functionName; }>, Extract<Extract<(abi extends Abi ? abi : Abi)[number], { type: "function"; stateMutability: "pure" | "view"; }>, { name: functionName; }>> extends true ? args : ContractFunctionArgs<abi, "view" | "pure", functionName>>; }) & { address?: undefined; code: `0x${string}`; } & ChainIdParameter<config, config["chains"][number]["id"]>> & ScopeKeyParameter, "abi">]; signal: AbortSignal; meta: Record<string, unknown> | undefined; pageParam?: unknown; direction?: unknown; }) => Promise<ContractFunctionReturnType<abi, "view" | "pure", functionName, args>>; queryKey: any; meta?: QueryMeta | undefined; select?: ((data: ContractFunctionReturnType<abi, "view" | "pure", functionName, args>) => selectData) | undefined; _defaulted?: boolean | undefined; retry?: RetryValue<ReadContractErrorType> | undefined; retryDelay?: RetryDelayValue<ReadContractErrorType> | undefined; networkMode?: NetworkMode | undefined; gcTime?: number | undefine
|
|
Verify / Types (5.9.3, latest)
Process completed with exit code 1.
|
|
Verify / Types (latest, 2.38.0)
The strategy configuration was canceled because "verify.types._5_9_3_latest" failed
|
|
Verify / Types (latest, 2.38.0)
Process completed with exit code 1.
|
|
Verify / Types (latest, latest)
The strategy configuration was canceled because "verify.types._5_9_3_latest" failed
|
|
Verify / Types (latest, latest)
Process completed with exit code 1.
|
|
Verify / Build
Process completed with exit code 1.
|
|
Verify / Types (5.8.3, 2.38.0)
The strategy configuration was canceled because "verify.types._5_9_3_latest" failed
|
|
Verify / Types (5.8.3, 2.38.0)
The operation was canceled.
|
|
Verify / Types (5.9.3, 2.38.0)
The strategy configuration was canceled because "verify.types._5_9_3_latest" failed
|
|
Verify / Types (5.8.3, latest)
The strategy configuration was canceled because "verify.types._5_9_3_latest" failed
|
|
Verify / Types (5.9.3, 2.38.0)
The operation was canceled.
|
|
Verify / Types (5.8.3, latest)
The operation was canceled.
|
|
Verify / Types (5.7.3, latest)
The strategy configuration was canceled because "verify.types._5_9_3_latest" failed
|
|
Verify / Types (5.7.3, latest)
The operation was canceled.
|
|
Verify / Types (5.7.3, 2.38.0)
The strategy configuration was canceled because "verify.types._5_9_3_latest" failed
|
|
Verify / Types (5.7.3, 2.38.0)
The operation was canceled.
|
|
Verify / Test (2, 3)
Final attempt failed. Child_process exited with error code 1
|
|
Verify / Test (1, 3)
The strategy configuration was canceled because "verify.test._2_3" failed
|
|
Verify / Test (1, 3)
The operation was canceled.
|
|
packages/core/src/actions/readContracts.test.ts > throws if allowFailure=false & a contract method fails:
packages/core/src/actions/readContracts.test.ts#L360
Error: Snapshot `throws if allowFailure=false & a contract method fails 1` mismatched
- Expected
+ Received
@@ -5,6 +5,6 @@
address: 0x1dfe7ca09e99d10835bf73044a23b73fc20623df
function: tokenOfOwnerByIndex(address owner, uint256 index)
args: (0xA0Cf798816D4b9b9866b5330EEa46a18382f251e, 69420)
Docs: https://viem.sh/docs/contract/readContract
- Version: [email protected]]
+ Version: [email protected]]
❯ packages/core/src/actions/readContracts.test.ts:360:3
|
|
packages/core/src/actions/readContracts.test.ts > throws if allowFailure=false & a contract method fails:
packages/core/src/actions/readContracts.test.ts#L360
Error: Snapshot `throws if allowFailure=false & a contract method fails 1` mismatched
- Expected
+ Received
@@ -5,6 +5,6 @@
address: 0x1dfe7ca09e99d10835bf73044a23b73fc20623df
function: tokenOfOwnerByIndex(address owner, uint256 index)
args: (0xA0Cf798816D4b9b9866b5330EEa46a18382f251e, 69420)
Docs: https://viem.sh/docs/contract/readContract
- Version: [email protected]]
+ Version: [email protected]]
❯ packages/core/src/actions/readContracts.test.ts:360:3
|
|
packages/core/src/actions/readContracts.test.ts > throws if allowFailure=false & a contract method fails:
packages/core/src/actions/readContracts.test.ts#L360
Error: Snapshot `throws if allowFailure=false & a contract method fails 1` mismatched
- Expected
+ Received
@@ -5,6 +5,6 @@
address: 0x1dfe7ca09e99d10835bf73044a23b73fc20623df
function: tokenOfOwnerByIndex(address owner, uint256 index)
args: (0xA0Cf798816D4b9b9866b5330EEa46a18382f251e, 69420)
Docs: https://viem.sh/docs/contract/readContract
- Version: [email protected]]
+ Version: [email protected]]
❯ packages/core/src/actions/readContracts.test.ts:360:3
|
|
packages/core/src/actions/readContracts.test.ts > throws if allowFailure=false & a contract method fails:
packages/core/src/actions/readContracts.test.ts#L360
Error: Snapshot `throws if allowFailure=false & a contract method fails 1` mismatched
- Expected
+ Received
@@ -5,6 +5,6 @@
address: 0x1dfe7ca09e99d10835bf73044a23b73fc20623df
function: tokenOfOwnerByIndex(address owner, uint256 index)
args: (0xA0Cf798816D4b9b9866b5330EEa46a18382f251e, 69420)
Docs: https://viem.sh/docs/contract/readContract
- Version: [email protected]]
+ Version: [email protected]]
❯ packages/core/src/actions/readContracts.test.ts:360:3
|
|
packages/core/src/actions/readContracts.test.ts > throws if allowFailure=false & a contract method fails:
packages/core/src/actions/readContracts.test.ts#L360
Error: Snapshot `throws if allowFailure=false & a contract method fails 1` mismatched
- Expected
+ Received
@@ -5,6 +5,6 @@
address: 0x1dfe7ca09e99d10835bf73044a23b73fc20623df
function: tokenOfOwnerByIndex(address owner, uint256 index)
args: (0xA0Cf798816D4b9b9866b5330EEa46a18382f251e, 69420)
Docs: https://viem.sh/docs/contract/readContract
- Version: [email protected]]
+ Version: [email protected]]
❯ packages/core/src/actions/readContracts.test.ts:360:3
|
|
packages/core/src/actions/readContracts.test.ts > throws if allowFailure=false & a contract method fails:
packages/core/src/actions/readContracts.test.ts#L360
Error: Snapshot `throws if allowFailure=false & a contract method fails 1` mismatched
- Expected
+ Received
@@ -5,6 +5,6 @@
address: 0x1dfe7ca09e99d10835bf73044a23b73fc20623df
function: tokenOfOwnerByIndex(address owner, uint256 index)
args: (0xA0Cf798816D4b9b9866b5330EEa46a18382f251e, 69420)
Docs: https://viem.sh/docs/contract/readContract
- Version: [email protected]]
+ Version: [email protected]]
❯ packages/core/src/actions/readContracts.test.ts:360:3
|
|
packages/core/src/actions/readContracts.test.ts > throws if allowFailure=false & a contract method fails:
packages/core/src/actions/readContracts.test.ts#L360
Error: Snapshot `throws if allowFailure=false & a contract method fails 1` mismatched
- Expected
+ Received
@@ -5,6 +5,6 @@
address: 0x1dfe7ca09e99d10835bf73044a23b73fc20623df
function: tokenOfOwnerByIndex(address owner, uint256 index)
args: (0xA0Cf798816D4b9b9866b5330EEa46a18382f251e, 69420)
Docs: https://viem.sh/docs/contract/readContract
- Version: [email protected]]
+ Version: [email protected]]
❯ packages/core/src/actions/readContracts.test.ts:360:3
|
|
packages/core/src/actions/readContracts.test.ts > throws if allowFailure=false & a contract method fails:
packages/core/src/actions/readContracts.test.ts#L360
Error: Snapshot `throws if allowFailure=false & a contract method fails 1` mismatched
- Expected
+ Received
@@ -5,6 +5,6 @@
address: 0x1dfe7ca09e99d10835bf73044a23b73fc20623df
function: tokenOfOwnerByIndex(address owner, uint256 index)
args: (0xA0Cf798816D4b9b9866b5330EEa46a18382f251e, 69420)
Docs: https://viem.sh/docs/contract/readContract
- Version: [email protected]]
+ Version: [email protected]]
❯ packages/core/src/actions/readContracts.test.ts:360:3
|
|
Verify / Test (3, 3)
The strategy configuration was canceled because "verify.test._2_3" failed
|
|
Verify / Test (3, 3)
The operation was canceled.
|
|
packages/core/src/actions/deployContract.test.ts > behavior: no funds:
packages/core/src/actions/connect.ts#L111
ConnectorAlreadyConnectedError: Connector already connected.
Version: @wagmi/[email protected]
❯ connect packages/core/src/actions/connect.ts:111:11
❯ packages/core/src/actions/deployContract.test.ts:30:22
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { details: undefined, docsPath: undefined, metaMessages: undefined, shortMessage: 'Connector already connected.', docsBaseUrl: 'https://wagmi.sh/core', version: '@wagmi/[email protected]', walk: 'Function<walk>' }
|
|
packages/core/src/actions/deployContract.test.ts > behavior: no funds:
packages/core/src/actions/connect.ts#L111
ConnectorAlreadyConnectedError: Connector already connected.
Version: @wagmi/[email protected]
❯ connect packages/core/src/actions/connect.ts:111:11
❯ packages/core/src/actions/deployContract.test.ts:30:22
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { details: undefined, docsPath: undefined, metaMessages: undefined, shortMessage: 'Connector already connected.', docsBaseUrl: 'https://wagmi.sh/core', version: '@wagmi/[email protected]', walk: 'Function<walk>' }
|
|
packages/core/src/actions/deployContract.test.ts > behavior: no funds:
packages/core/src/actions/connect.ts#L111
ConnectorAlreadyConnectedError: Connector already connected.
Version: @wagmi/[email protected]
❯ connect packages/core/src/actions/connect.ts:111:11
❯ packages/core/src/actions/deployContract.test.ts:30:22
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { details: undefined, docsPath: undefined, metaMessages: undefined, shortMessage: 'Connector already connected.', docsBaseUrl: 'https://wagmi.sh/core', version: '@wagmi/[email protected]', walk: 'Function<walk>' }
|
|
packages/core/src/actions/deployContract.test.ts > behavior: no funds:
packages/core/src/actions/deployContract.test.ts#L38
Error: Snapshot `behavior: no funds 1` mismatched
- Expected
+ Received
@@ -13,6 +13,6 @@
chain: undefined (id: 1)
from: 0x95132632579b073D12a6673e18Ab05777a6B86f8
data: 0x608060405260405180602001604052806000815250600b90805190602001906200002b92919062000484565b506000600f60006101000a81548160ff0219169083151502179055503480156200005457600080fd5b50604051620046d0380380620046d0833981810160405260808110156200007a57600080fd5b81019080805160405193929190846401000000008211156200009b57600080fd5b83820191506020820185811115620000b257600080fd5b8251866001820283011164010000000082111715620000d057600080fd5b8083526020830192505050908051906020019080838360005b8381101562000106578082015181840152602081019050620000e9565b50505050905090810190601f168015620001345780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200015857600080fd5b838201915060208201858111156200016f57600080fd5b82518660018202830111640100000000821117156200018d57600080fd5b8083526020830192505050908051906020019080838360005b83811015620001c3578082015181840152602081019050620001a6565b50505050905090810190601f168015620001f15780820380516001836020036101000a031916815260200191505b5060405260200180519060200190929190805190602001909291905050508383620002296301ffc9a760e01b6200037360201b60201c565b81600690805190602001906200024192919062000484565b5080600790805190602001906200025a92919062000484565b50620002736380ac58cd60e01b6200037360201b60201c565b6200028b635b5e139f60e01b6200037360201b60201c565b620002a363780e9d6360e01b6200037360201b60201c565b50506000620002b76200047c60201b60201c565b905080600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35081600e81905550620bdd808101601081905550505050506200052a565b63ffffffff60e01b817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916141562000410576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f4552433136353a20696e76616c696420696e746572666163652069640000000081525060200191505060405180910390fd5b6001600080837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b600033905090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620004c757805160ff1916838001178555620004f8565b82800160010185558215620004f8579182015b82811115620004f7578251825591602001919060010190620004da565b5b5090506200050791906200050b565b5090565b5b80821115620005265760008160009055506001016200050c565b5090565b614196806200053a6000396000f3fe60806040526004361061021a5760003560e01c80636c0360eb11610123578063b0f67427116100ab578063e36d64981161006f578063e36d649814610ddf578063e985e9c514610e0a578063e986655014610e91578063eb8d244414610ea8578063f2fde38b14610ed55761021a565b8063b0f6742714610bac578063b88d4fde14610bc3578063bb8a16bd14610cd5578063c87b56dd14610d00578063cb774d4714610db45761021a565b80637d17fcbe116100f25780637d17fcbe14610a395780638da5cb5b14610a5057806395d89b4114610a91578063a22cb46514610b21578063a723533e14610b7e5761021a565b80636c0360eb1461090257806370a0823114610992578063715018a6146109f75780637a3f451e14610a0e5761021a565b80632f745c59116101a65780634f6ccce7116101755780634f6ccce7146106cb57806355f804b31461071a578063571dff3b146107e2578063607e20e31461080d5780636352211e1461089d5761021a565b80632f745c59146105b357806334918dfd146106225780633ccfd60b1461063957806342842e0e146106505761021a565b8063095ea7b3116101ed578063095ea7b3146103bf578063109695231461041a57806318160ddd146104e257806318e20a381461050d57806323b872dd146105385761021a565b8063018a2c371461021f57806301ffc9a71461025a57806306fdde03146102ca578063081812fc1461035a575b600080fd5b34801561022b57600080fd5b506102586004803603602081101561024257600080fd5b8101908080359060200190929190505050610f26565b005b34801561026657600080fd5
|
|
Verify / Test (2, 3)
Attempt 2 failed. Reason: Child_process exited with error code 1
|
|
Verify / Test (2, 3)
Attempt 1 failed. Reason: Child_process exited with error code 1
|
|
Verify / Test (1, 3)
Attempt 2 failed. Reason: Child_process exited with error code 1
|
|
Verify / Test (1, 3)
Attempt 1 failed. Reason: Child_process exited with error code 1
|
|
Verify / Test (3, 3)
Attempt 2 failed. Reason: Child_process exited with error code 1
|
|
Verify / Test (3, 3)
Attempt 1 failed. Reason: Child_process exited with error code 1
|