Open cjimison opened 6 months ago
rest
16 const blocks = groupLogsByBlockNumber(logFilter ? logs.filter(logFilter) : logs, toBlock);
~~~~~~~~~
../../node_modules/.pnpm/@latticexyz+store-sync@2.0.11_react@18.3.1_typescript@5.4.2/node_modules/@latticexyz/store-sync/src/fetchAndStoreLogs.ts:18:28 - error TS2345: Argument of type '{ blockNumber: bigint; logs: Log<bigint, number, false, undefined, true, readonly [{ readonly name: "Store_SetRecord"; readonly type: "event"; readonly inputs: readonly [{ readonly type: "bytes32"; readonly name: "tableId"; readonly indexed: true; }, { ...; }, { ...; }, { ...; }, { ...; }]; }, { ...; }, { ...; }, { ...' is not assignable to parameter of type 'StorageAdapterBlock'.
Types of property 'logs' are incompatible.
Type 'Log<bigint, number, false, undefined, true, readonly [{ readonly name: "Store_SetRecord"; readonly type: "event"; readonly inputs: readonly [{ readonly type: "bytes32"; readonly name: "tableId"; readonly indexed: true; }, { ...; }, { ...; }, { ...; }, { ...; }]; }, { ...; }, { ...; }, { ...; }], unknown>[]' is not assignable to type 'readonly ((Partial<{ address: `0x${string}`; blockHash: `0x${string}`; blockNumber: bigint; data: `0x${string}`; logIndex: number; transactionHash: `0x${string}`; transactionIndex: number; removed: boolean; } & { args: { tableId: `0x${string}`; keyTuple: readonly `0x${string}`[]; staticData: `0x${string}`; encodedLe...'.
Type 'Log<bigint, number, false, undefined, true, readonly [{ readonly name: "Store_SetRecord"; readonly type: "event"; readonly inputs: readonly [{ readonly type: "bytes32"; readonly name: "tableId"; readonly indexed: true; }, { ...; }, { ...; }, { ...; }, { ...; }]; }, { ...; }, { ...; }, { ...; }], unknown>' is not assignable to type '(Partial<{ address: `0x${string}`; blockHash: `0x${string}`; blockNumber: bigint; data: `0x${string}`; logIndex: number; transactionHash: `0x${string}`; transactionIndex: number; removed: boolean; } & { args: { tableId: `0x${string}`; keyTuple: readonly `0x${string}`[]; staticData: `0x${string}`; encodedLengths: `0x...'.
Type '{ address: `0x${string}`; blockHash: `0x${string}`; blockNumber: bigint; data: `0x${string}`; logIndex: number; transactionHash: `0x${string}`; transactionIndex: number; removed: boolean; } & { args: { tableId: `0x${string}`; keyTuple: readonly `0x${string}`[]; staticData: `0x${string}`; encodedLengths: `0x${string}...' is not assignable to type '(Partial<{ address: `0x${string}`; blockHash: `0x${string}`; blockNumber: bigint; data: `0x${string}`; logIndex: number; transactionHash: `0x${string}`; transactionIndex: number; removed: boolean; } & { args: { tableId: `0x${string}`; keyTuple: readonly `0x${string}`[]; staticData: `0x${string}`; encodedLengths: `0x...'.
Type '{ address: `0x${string}`; blockHash: `0x${string}`; blockNumber: bigint; data: `0x${string}`; logIndex: number; transactionHash: `0x${string}`; transactionIndex: number; removed: boolean; } & { args: { tableId: `0x${string}`; keyTuple: readonly `0x${string}`[]; staticData: `0x${string}`; encodedLengths: `0x${string}...' is not assignable to type 'Partial<{ address: `0x${string}`; blockHash: `0x${string}`; blockNumber: bigint; data: `0x${string}`; logIndex: number; transactionHash: `0x${string}`; transactionIndex: number; removed: boolean; } & { args: { tableId: `0x${string}`; keyTuple: readonly `0x${string}`[]; staticData: `0x${string}`; encodedLengths: `0x$...'.
Type '{ address: `0x${string}`; blockHash: `0x${string}`; blockNumber: bigint; data: `0x${string}`; logIndex: number; transactionHash: `0x${string}`; transactionIndex: number; removed: boolean; } & { args: { tableId: `0x${string}`; keyTuple: readonly `0x${string}`[]; staticData: `0x${string}`; encodedLengths: `0x${string}...' is not assignable to type 'Partial<{ address: `0x${string}`; blockHash: `0x${string}`; blockNumber: bigint; data: `0x${string}`; logIndex: number; transactionHash: `0x${string}`; transactionIndex: number; removed: boolean; } & { args: { tableId: `0x${string}`; keyTuple: readonly `0x${string}`[]; staticData: `0x${string}`; encodedLengths: `0x$...'.
Types of property 'topics' are incompatible.
Type '[`0x${string}`]' is not assignable to type '[`0x${string}`, `0x${string}`]'.
18 await storageAdapter(block);
~~~~~
../../node_modules/.pnpm/@latticexyz+store-sync@2.0.11_react@18.3.1_typescript@5.4.2/node_modules/@latticexyz/store-sync/src/fetchAndStoreLogs.ts:19:13 - error TS2322: Type '{ blockNumber: bigint; logs: Log<bigint, number, false, undefined, true, readonly [{ readonly name: "Store_SetRecord"; readonly type: "event"; readonly inputs: readonly [{ readonly type: "bytes32"; readonly name: "tableId"; readonly indexed: true; }, { ...; }, { ...; }, { ...; }, { ...; }]; }, { ...; }, { ...; }, { ...' is not assignable to type 'StorageAdapterBlock'.
19 yield block;
~~~~~
../../node_modules/.pnpm/@latticexyz+common@2.0.11_@aws-sdk+client-kms@3.576.0_asn1.js@5.4.1_typescript@5.4.2_zod@3.23.8/node_modules/@latticexyz/common/src/chains/garnet.ts:51:12 - error TS1360: Type '{ readonly id: 17069; readonly sourceId: 17000; readonly name: "Garnet Holesky"; readonly testnet: true; readonly nativeCurrency: { readonly name: "Ether"; readonly symbol: "ETH"; readonly decimals: 18; }; ... 6 more ...; readonly serializers: { ...; }; }' does not satisfy the expected type 'MUDChain'.
Type '{ readonly id: 17069; readonly sourceId: 17000; readonly name: "Garnet Holesky"; readonly testnet: true; readonly nativeCurrency: { readonly name: "Ether"; readonly symbol: "ETH"; readonly decimals: 18; }; ... 6 more ...; readonly serializers: { ...; }; }' is not assignable to type 'Chain'.
The types returned by 'serializers.transaction(...)' are incompatible between these types.
Type '`0x02${string}` | `0x01${string}` | `0x03${string}` | TransactionSerializedLegacy | `0x7e${string}`' is not assignable to type 'TransactionSerialized<_transactionType, (_transactionType extends "eip1559" ? `0x02${string}` : never) | (_transactionType extends "eip2930" ? `0x01${string}` : never) | (_transactionType extends "eip4844" ? `0x03${string}` : never) | (_transactionType extends "legacy" ? TransactionSerializedLegacy : never)>'.
Type '`0x02${string}`' is not assignable to type 'TransactionSerialized<_transactionType, (_transactionType extends "eip1559" ? `0x02${string}` : never) | (_transactionType extends "eip2930" ? `0x01${string}` : never) | (_transactionType extends "eip4844" ? `0x03${string}` : never) | (_transactionType extends "legacy" ? TransactionSerializedLegacy : never)>'.
51 } as const satisfies MUDChain;
~~~~~~~~~
../../node_modules/.pnpm/@latticexyz+common@2.0.11_@aws-sdk+client-kms@3.576.0_asn1.js@5.4.1_typescript@5.4.2_zod@3.23.8/node_modules/@latticexyz/common/src/chains/redstone.ts:50:12 - error TS1360: Type '{ readonly id: 690; readonly sourceId: 1; readonly name: "Redstone"; readonly nativeCurrency: { readonly name: "Ether"; readonly symbol: "ETH"; readonly decimals: 18; }; readonly rpcUrls: { readonly default: { ...; }; }; ... 5 more ...; readonly serializers: { ...; }; }' does not satisfy the expected type 'MUDChain'.
Type '{ readonly id: 690; readonly sourceId: 1; readonly name: "Redstone"; readonly nativeCurrency: { readonly name: "Ether"; readonly symbol: "ETH"; readonly decimals: 18; }; readonly rpcUrls: { readonly default: { ...; }; }; ... 5 more ...; readonly serializers: { ...; }; }' is not assignable to type 'Chain'.
Types of property 'serializers' are incompatible.
Type '{ readonly transaction: (transaction: OpStackTransactionSerializable, signature?: Signature) => `0x02${string}` | `0x01${string}` | `0x03${string}` | TransactionSerializedLegacy | `0x7e${string}`; }' is not assignable to type 'ChainSerializers<ChainFormatters>'.
50 } as const satisfies MUDChain;
~~~~~~~~~
../client/src/mud/supportedChains.ts:19:57 - error TS2322: Type '{ readonly id: 690; readonly sourceId: 1; readonly name: "Redstone"; readonly nativeCurrency: { readonly name: "Ether"; readonly symbol: "ETH"; readonly decimals: 18; }; readonly rpcUrls: { readonly default: { ...; }; }; ... 5 more ...; readonly serializers: { ...; }; }' is not assignable to type 'MUDChain'.
Type '{ readonly id: 690; readonly sourceId: 1; readonly name: "Redstone"; readonly nativeCurrency: { readonly name: "Ether"; readonly symbol: "ETH"; readonly decimals: 18; }; readonly rpcUrls: { readonly default: { ...; }; }; ... 5 more ...; readonly serializers: { ...; }; }' is not assignable to type 'Chain'.
Types of property 'serializers' are incompatible.
Type '{ readonly transaction: (transaction: OpStackTransactionSerializable, signature?: Signature) => `0x02${string}` | `0x01${string}` | `0x03${string}` | TransactionSerializedLegacy | `0x7e${string}`; }' is not assignable to type 'ChainSerializers<ChainFormatters>'.
19 export const supportedChains: MUDChain[] = [mudFoundry, redstone, garnet];
~~~~~~~~
../client/src/mud/supportedChains.ts:19:67 - error TS2322: Type '{ readonly id: 17069; readonly sourceId: 17000; readonly name: "Garnet Holesky"; readonly testnet: true; readonly nativeCurrency: { readonly name: "Ether"; readonly symbol: "ETH"; readonly decimals: 18; }; ... 6 more ...; readonly serializers: { ...; }; }' is not assignable to type 'MUDChain'.
Type '{ readonly id: 17069; readonly sourceId: 17000; readonly name: "Garnet Holesky"; readonly testnet: true; readonly nativeCurrency: { readonly name: "Ether"; readonly symbol: "ETH"; readonly decimals: 18; }; ... 6 more ...; readonly serializers: { ...; }; }' is not assignable to type 'Chain'.
Types of property 'serializers' are incompatible.
Type '{ readonly transaction: (transaction: OpStackTransactionSerializable, signature?: Signature) => `0x02${string}` | `0x01${string}` | `0x03${string}` | TransactionSerializedLegacy | `0x7e${string}`; }' is not assignable to type 'ChainSerializers<ChainFormatters>'.
19 export const supportedChains: MUDChain[] = [mudFoundry, redstone, garnet];
~~~~~~
../client/src/mud/getNetworkConfig.ts:50:88 - error TS2339: Property 'env' does not exist on type 'ImportMeta'.
50 const chainId = Number(params.get("chainId") || params.get("chainid") || import.meta.env.VITE_CHAIN_ID || 31337);
~~~
../../node_modules/.pnpm/@latticexyz+common@2.0.11_@aws-sdk+client-kms@3.576.0_asn1.js@5.4.1_typescript@5.4.2_zod@3.23.8/node_modules/@latticexyz/common/src/actions/writeObserver.ts:28:28 - error TS2339: Property 'chain' does not exist on type 'never'.
The intersection 'Client<Transport, TChain, TAccount>' was reduced to 'never' because property 'cacheTime' has conflicting types in some constituents.
28 const id = `${client.chain.id}:${client.account.address}:${nextWriteId++}`;
~~~~~
../../node_modules/.pnpm/@latticexyz+common@2.0.11_@aws-sdk+client-kms@3.576.0_asn1.js@5.4.1_typescript@5.4.2_zod@3.23.8/node_modules/@latticexyz/common/src/actions/writeObserver.ts:28:47 - error TS2339: Property 'account' does not exist on type 'never'.
The intersection 'Client<Transport, TChain, TAccount>' was reduced to 'never' because property 'cacheTime' has conflicting types in some constituents.
28 const id = `${client.chain.id}:${client.account.address}:${nextWriteId++}`;
~~~~~~~
../contracts/mud.config.ts:8:9 - error TS2322: Type 'string' is not assignable to type 'never'.
8 value: "uint32",
~~~~~
../contracts/mud.config.ts:8:9
8 value: "uint32",
~~~~~~~~~~~~~~~
The expected type comes from property 'value' which is declared here on type '{ value: never; }'
../client/src/mud/setupNetwork.ts:77:15 - error TS2322: Type '{ account: { address: undefined; type: "json-rpc"; }; batch?: { multicall?: boolean | { batchSize?: number; wait?: number; }; }; cacheTime: number; ccipRead?: false | { request?: (parameters: CcipRequestParameters) => Promise<...>; }; ... 55 more ...; extend: <const client extends { ...; } & ExactPartial<...>>(fn: (...' is not assignable to type 'never'.
The intersection 'Client<Transport, Chain>' was reduced to 'never' because property 'cacheTime' has conflicting types in some constituents.
77 client: { public: publicClient, wallet: burnerWalletClient },
~~~~~~
../../node_modules/.pnpm/viem@2.9.20_typescript@5.4.2_zod@3.23.8/node_modules/viem/_types/actions/getContract.d.ts:17:5
17 public?: Client<TTransport, TChain> | undefined;
~~~~~~
The expected type comes from property 'public' which is declared here on type '{ public?: never; wallet: never; } | { public: never; wallet?: never; }'
../client/src/mud/setupNetwork.ts:77:37 - error TS2322: Type 'Client<FallbackTransport, MUDChain, PrivateKeyAccount, [{ Method: "eth_accounts"; Parameters?: undefined; ReturnType: `0x${string}`[]; }, ... 19 more ..., any], { ...; } & ... 1 more ... & WalletActions<...>>' is not assignable to type 'never'.
The intersection 'Client<Transport, Chain, Account>' was reduced to 'never' because property 'cacheTime' has conflicting types in some constituents.
77 client: { public: publicClient, wallet: burnerWalletClient },
~~~~~~
../../node_modules/.pnpm/viem@2.9.20_typescript@5.4.2_zod@3.23.8/node_modules/viem/_types/actions/getContract.d.ts:18:5
18 wallet: Client<TTransport, TChain, TAccount>;
~~~~~~
The expected type comes from property 'wallet' which is declared here on type '{ public?: never; wallet: never; } | { public: never; wallet?: never; }'
../client/src/mud/setupNetwork.ts:90:5 - error TS2322: Type '{ account: { address: undefined; type: "json-rpc"; }; batch?: { multicall?: boolean | { batchSize?: number; wait?: number; }; }; cacheTime: number; ccipRead?: false | { request?: (parameters: CcipRequestParameters) => Promise<...>; }; ... 55 more ...; extend: <const client extends { ...; } & ExactPartial<...>>(fn: (...' is not assignable to type '{ account: undefined; batch?: { multicall?: boolean | { batchSize?: number; wait?: number; }; }; cacheTime: number; ccipRead?: false | { request?: (parameters: CcipRequestParameters) => Promise<...>; }; ... 55 more ...; extend: <const client extends { ...; } & ExactPartial<...>>(fn: (client: Client<...>) => client) ...'.
Types of property 'account' are incompatible.
Type '{ address: undefined; type: "json-rpc"; }' is not assignable to type 'undefined'.
90 publicClient,
~~~~~~~~~~~~
../../node_modules/.pnpm/@latticexyz+store-sync@2.0.11_react@18.3.1_typescript@5.4.2/node_modules/@latticexyz/store-sync/src/common.ts:70:3
70 publicClient: PublicClient;
~~~~~~~~~~~~
The expected type comes from property 'publicClient' which is declared here on type 'SyncToRecsOptions<{ readonly tables: { readonly app__Counter: { readonly tableId: `0x${string}`; readonly name: "app__Counter"; readonly namespace: ""; readonly type: "table"; readonly key: readonly []; readonly schema: { readonly value: { readonly type: never; readonly internalType: "uint32"; }; }; readonly codegen...'
../client/src/mud/createSystemCalls.ts:43:36 - error TS2339: Property 'write' does not exist on type '{ address: `0x${string}`; abi: [{ type: "function"; name: "app__increment"; inputs: []; outputs: [{ name: ""; type: "uint32"; internalType: "uint32"; }]; stateMutability: "nonpayable"; }, { type: "function"; name: "batchCall"; inputs: [...]; outputs: [...]; stateMutability: "nonpayable"; }, ... 98 more ..., { ...; }...'.
43 const tx = await worldContract.write.app__increment();
~~~~~
Found 88 errors.
ELIFECYCLE Command failed with exit code 1.
There is a current error when running
pnpm dev