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

(WIP) Feature/lit 3479 relayerthirdweb proxy requests to thirdweb engine #47

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

Ansonhkg
Copy link
Contributor

@Ansonhkg Ansonhkg commented Jun 24, 2024

Setup scripts & testing

  • for ease of testing, the scripts/tests run using bun
    • I call it script because test like create 500 wallets I only need to run it once to setup 500 wallets.
    • maintainBalances can be called when balances in all wallets drop to certain level.
    • ThirdWeb lib abstraction can be found here in lib/thirdweb/ThirdWebLib.ts, under the hood, it's called ThirdWeb apis, but we are only abstracting the ones we need.

API Endpoint for mintAndAddNewAuthMethod
New API endpoint is created for mintAndAddNewAuthMethod, prefix with /api/v2, the mintPkpV2 function has a helper to determine the version from the request url, then based on versionStrategy, it would either use the relayer or ThirdWeb to process transactions.

Environment Variables for this PR

MASTER_WALLET_ADDRESS=
THIRDWEB_ENGINE_URL
THIRDWEB_ACCESS_TOKEN

For other environment variables, refer to the README

@Ansonhkg Ansonhkg marked this pull request as draft June 24, 2024 15:08
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.

1 participant