Skip to content
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

Open
wants to merge 29 commits into
base: main
Choose a base branch
from

Conversation

Torof
Copy link

@Torof Torof commented Jun 29, 2024

adding dataProtector & web3Mail from IExec toolsuite

Copy link

vercel bot commented Jun 29, 2024

@Torof is attempting to deploy a commit to the Ledgity Team on Vercel.

A member of the Team first needs to authorize it.

Torof and others added 7 commits June 30, 2024 14:38
@Torof Torof changed the title Web3mail feat: Web3mail & dataProtector integration Jul 2, 2024
Copy link
Contributor

@hapetherw hapetherw left a 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');
Copy link
Contributor

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?

Copy link
Author

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);
Copy link
Contributor

@hapetherw hapetherw Jul 10, 2024

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.

Copy link
Author

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(),
Copy link
Contributor

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.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants