Steven Luscher

Results 94 issues of Steven Luscher

I haven't thought what this will look like, but the principle is to offer a helper that you can use to transform a transaction into one that has a custom...

enhancement

# Problem I believe that the appetite for a rethink of the web3.js library's architecture has reached a tipping point. * @armaniferrante: ([tweet](https://twitter.com/armaniferrante/status/1525561888259641347)) * @0xCryptoSheik: ([tweet](https://twitter.com/0xCryptoSheik/status/1469662719024504832), [draft pr](https://github.com/solana-labs/solana/pull/21055)) * @jacobcreech...

## Motivation It's important to know _what_ slot a nonce should be considered valid for when confirming a transaction. If you get nonce at slot X but then when you...

enhancement

## Motivation We've written a comprehensive typespec for the Solana JSON-RPC in `rpc-core`. If you're using an RPC that offers _more_ than the methods we've specified, you might like to...

enhancement

## Motivation You're an application that depends on a bunch of packages (`mpl-token-metadata`, `@solana/wallet-adapter-react`, etc.) and those packages themselves depend on `@solana/web3.js` (the legacy version). Each of those packages use...

enhancement

`assertIsProgramDerivedAddress` and `isProgramDerivedAddress` don't actually check to see if the address is off the curve. All they do is validate the _format_ of the tuple. Someone _could_ supply a regular...

enhancement

See https://github.com/microsoft/TypeScript/issues/37681#issuecomment-1650605236. Essentially you can write an assertion function ([playground](https://www.typescriptlang.org/play?#code/C4TwDgpgBAcgrgWwEYQE4BkIGcsBUAWAhgHa4TFQC8UxiKqUAZFAN5SoSEAmA9sQDYgoSVCS4AuKHGIBLAI5xoWEMh78oAXwDcUALAAoAwDNpAY2Ay+UQjjTAAklkw4CJAIwAGABS0Ek3-QAlJI2WHZYNIhQMhHwyGjOeESk5KwGUNFGUD5RAHzUnoFp+hkZwPioPADuNBA1AKKolaheAOS4PDzCMgDmrYFa6ZoGGgamfFjAkQhUUACcg-qhdo6JrsSeOQgDBr5QWIQWWEYy2LB0CdhJJGTEWkA))… ```ts type NumberLessThanTen = number & { readonly brand: unique symbol }; function assertIsLessThan10(num: number): asserts num is NumberLessThanTen {...

enhancement

Add documentation for everything exported from `src/transaction.ts`.

bug

At the moment, an RPC API's requests can include a `responseProcessor` that transforms the server response before it reaches the caller in the client. We use this, for instance, to...

enhancement

https://x.com/steveluscher/status/1707414778384376181

enhancement