-
Notifications
You must be signed in to change notification settings - Fork 15
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: Web3mail & dataProtector integration #131
base: main
Are you sure you want to change the base?
Conversation
@Torof is attempting to deploy a commit to the Ledgity Team on Vercel. A member of the Team first needs to authorize it. |
feat(web3mail): Add API routes for storage ability
…ata and email sending Using the IExec toolsuite to add the possibility for user to give the right to send them email without sharing their email address
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.
If there's no change in the contract side, can you remove contracts folders in this PR?
} | ||
|
||
export function getAutomaticSigner(): WalletEip1193Provider | null { | ||
console.log('SENDER_PRIVATE_KEY:', SENDER_PRIVATE_KEY ? 'Set' : 'Not set'); |
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.
Can you remove these console logs?
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.
done
|
||
try { | ||
const provider = new ethers.providers.JsonRpcProvider(RPC_URL); | ||
const wallet = new ethers.Wallet(SENDER_PRIVATE_KEY, provider); |
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.
Could you also describe the use case of this function(getAutomaticSigner)?
I guess it's not preferred to disclose private key as env, we need to think about it.
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.
the address is uniquely for sending emails. No funds on it. No problem there
env.mjs
Outdated
IPINFO_TOKEN: z.string(), | ||
SCORECHAIN_API_KEY: z.string(), | ||
AML_ALERT_WEBHOOK: z.string().url(), | ||
// TWITTER_CLIENT_ID: z.string().optional(), |
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.
Apply optional fields instead of comments like other PRs.
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.
done
Co-authored-by: Torof <[email protected]>
feat: add bull for iexec batch email send
Co-authored-by: Torof <[email protected]>
Co-authored-by: Torof <[email protected]>
Co-authored-by: Torof <[email protected]>
Co-authored-by: Torof <[email protected]>
adding dataProtector & web3Mail from IExec toolsuite