-
Notifications
You must be signed in to change notification settings - Fork 619
AWS KMS Wallet POC #6232
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
AWS KMS Wallet POC #6232
Conversation
|
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 5 Skipped Deployments
|
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. |
|
New dependencies detected. Learn more about Socket for GitHub ↗︎
|
|
Problems:
|
| @@ -0,0 +1,7 @@ | |||
| import type { Chain } from "thirdweb"; | |||
|
|
|||
| export async function getChain(chainId: number): Promise<Chain> { | |||
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.
wut
| import { serializeTransaction } from "thirdweb/transaction"; | ||
| import { hashMessage } from "thirdweb/utils"; | ||
| import type { Account } from "thirdweb/wallets"; | ||
| import type { SignableMessage, TypedData, TypedDataDefinition } from "viem"; |
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.
Use Ox types: https://oxlib.sh/
| }); | ||
|
|
||
| // Use the account for transactions, signing messages, etc. | ||
| const tx = await account.sendTransaction({ |
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.
use the standalone function sendTransaction({ transaction, account }) instead
const transaction = prepareContractCall(...);
const result = await sendTransaction({ transaction, account });
|
This PR has been inactive for 7 days. It is now marked as stale and will be closed in 2 days if no further activity occurs. |
PR-Codex overview
This PR introduces the
@thirdweb-dev/aws-kms-walletpackage, providing AWS KMS wallet functionality for the thirdweb SDK. It includes a new utility function for chain handling, updates to configuration files, and comprehensive usage documentation.Detailed summary
getChainfunction insrc/utils/chain.tsto return chain information.tsconfig.build.jsonfor TypeScript configuration.README.mdwith installation instructions, usage examples, and requirements.package.jsonfor@thirdweb-dev/aws-kms-wallet.src/index.ts, including transaction signing and message signing methods.