oleh

Results 18 issues of oleh

**🧐 Motivation** Use case: I need to store a bunch of approvals in a set and once the number of approvals reach a specific length, I need to execute an...

`web3.eth.Contract().events.SomeEvent(callback)` returns `Subscription` object but the generated return type is `EventEmitter`. `typechain --target=web3-v1` generates this: ```typescript export interface MyContract extends BaseContract { events: { SomeEvent(cb?: Callback): EventEmitter; } } ```...

**Sometimes**, `vscode-solidity` with enabled `vim` extension makes it impossible to move my cursor. It does not happen all the time, just 75% of VSCode launches. I need to relaunch VSCode...

[Reproduction](https://replit.com/@someguy321/MoralWaterySeahorse#index.ts). You need to fork repl (top right corner) to see the console. Ethereum does not allow two different transactions with the same from and nonce. But ganache does. In...

🧐 **Motivation** Simple _addPayee is not enough to manage complex splitting logic 📝 **Details** Right now there is only _addPayee(payee, shares) function. It's not possible to add more shares, remove...

**🧐 Motivation** I want to list all payees of a `PaymentSplitter` contract. **📝 Details** `PaymentSplitter` has a `.payee(index)` method but it is hard to use it without knowing how many...

### Describe the bug I cannot use an `rxjs.Observable` with `derived` because svelte's `Unsubscriber` is not typed properly: https://github.com/sveltejs/svelte/blob/3bc791bcba97f0810165c7a2e215563993a0989b/src/runtime/store/index.ts#L6-L7 It should be typed as ```ts export type Unsubscriber = {...

### Describe the problem Currently `getContext` returns `unknown` if no explicit type is provided. ### Describe the proposed solution Taking inspiration from [`svelte-typed-context`](https://www.npmjs.com/package/svelte-typed-context), `getContext` can accept an ~~`InjectionKey`~~`ContextKey` and return...

feature request
types / typescript

### Describe the feature you'd like to request I am using trpc in bunch of projects that are spread across npm packages. E.g., I have a server `my-server` and a...

⏭ major bump needed

`encodeFunctionData` is a synchronous function, so it cannot resolve `AddressLike`. Interfaces functions (`encodeFunctionData` and others) should accept `string` instead of `AddressLike` This code will throw an error: ```ts declare const...