-
Notifications
You must be signed in to change notification settings - Fork 88
feat: add types and convert lit actions to typescripts #699
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add types and convert lit actions to typescripts #699
Conversation
packages/wrapped-keys-lit-actions/src/lib/internal/ethereum/signMessage.ts
Outdated
Show resolved
Hide resolved
packages/wrapped-keys-lit-actions/src/lib/internal/ethereum/signTransaction.ts
Outdated
Show resolved
Hide resolved
packages/wrapped-keys-lit-actions/src/lib/internal/ethereum/signTransaction.ts
Outdated
Show resolved
Hide resolved
packages/wrapped-keys-lit-actions/src/lib/internal/ethereum/signTransaction.ts
Outdated
Show resolved
Hide resolved
...lit-actions/src/lib/raw-action-functions/ethereum/signTransactionWithEncryptedEthereumKey.ts
Outdated
Show resolved
Hide resolved
...lit-actions/src/lib/raw-action-functions/ethereum/signTransactionWithEncryptedEthereumKey.ts
Outdated
Show resolved
Hide resolved
...eys-lit-actions/src/lib/raw-action-functions/solana/signTransactionWithEncryptedSolanaKey.ts
Outdated
Show resolved
Hide resolved
...eys-lit-actions/src/lib/raw-action-functions/solana/signTransactionWithEncryptedSolanaKey.ts
Outdated
Show resolved
Hide resolved
| import { ethers } from 'ethers'; | ||
|
|
||
| // This is weird - ethers.UnsignedTransaction is not the same as the one being used here.. | ||
| // We should fix this soon, but not a hard blocker |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for visibility
Signed-off-by: Anson <[email protected]>
- Ran `eslint --fix` too. - Removed now-unnecessary manual string replace logic from esbuild - Update type references to use ethers types instead of relying on a reference to an actual imported instance of the classes
…scopes - Also removed now-unnecessary eslint hints for `/* global Lit */` etc. - Fixes mismatched type conflict with same name 'UnsignedTransaction'; ethereum's type is different than Solana.
Nice work on getting this done man 💖 This is LGTM if you're GTG with the changes I made. cc: @FedericoAmura |
|
Thanks for fixing this up! This LGTM and is good to merge! |




Description
Providing Lit Action global types and convert all Lit actions in the wrapped-keys-lit-actions to Typescript. There are few areas that i'm using
(fixed this). I also realised that the Type definition we got is not completely accurate, so we need to modify it as we see.: anyas this is a first-passnote that the Lit Action using [email protected]
update 1:

also console logging out the bundle size: