Skip to content

feat: Web3mail & dataProtector integration#131

Open
Torof wants to merge 29 commits into
LedgityLabs:mainfrom
Torof:web3mail
Open

feat: Web3mail & dataProtector integration#131
Torof wants to merge 29 commits into
LedgityLabs:mainfrom
Torof:web3mail

Conversation

@Torof
Copy link
Copy Markdown

@Torof Torof commented Jun 29, 2024

adding dataProtector & web3Mail from IExec toolsuite

@vercel
Copy link
Copy Markdown

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
Copy Markdown
Contributor

@margin-hub margin-hub 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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor

@margin-hub margin-hub 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
Copy Markdown
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

Comment thread 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
Copy Markdown
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
Copy Markdown
Author

Choose a reason for hiding this comment

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

done

Torof and others added 9 commits July 13, 2024 14:45
Co-authored-by: Torof <dev.solidity@proton.me>
feat: add bull for iexec batch email send
Co-authored-by: Torof <dev.solidity@proton.me>
Co-authored-by: Torof <dev.solidity@proton.me>
Co-authored-by: Torof <dev.solidity@proton.me>
cyrilcolinet and others added 2 commits August 2, 2024 10:39
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