Skip to content

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.

2 participants