File tree Expand file tree Collapse file tree 2 files changed +32
-1
lines changed
tests/govtool-frontend/playwright Expand file tree Collapse file tree 2 files changed +32
-1
lines changed Original file line number Diff line number Diff line change 1+ import { ShelleyWallet } from "./lib/helpers/crypto" ;
2+
3+ ( async ( ) => {
4+ try {
5+ console . log ( "\nGenerating your wallet... π" ) ;
6+ const wallet = await ShelleyWallet . generate ( ) ;
7+ const walletJson = wallet . json ( ) ;
8+
9+ // Display wallet details
10+ console . log ( "\nπ Wallet generated successfully!" ) ;
11+ console . log ( "-----------------------------------" ) ;
12+ console . log ( "πΌ Wallet:" , walletJson ) ;
13+ console . log ( `π Payment Private Key: ${ walletJson . payment . private } ` ) ;
14+ console . log ( `π Stake Public Key Hash: ${ walletJson . stake . pkh } ` ) ;
15+ console . log ( `π Wallet Address: ${ walletJson . address } ` ) ;
16+ console . log ( "-----------------------------------" ) ;
17+
18+ // Instructions for environment variables
19+ console . log (
20+ "\nπ Please copy the following to your environment variables:"
21+ ) ;
22+ console . log ( `1. Set FAUCET_PAYMENT_PRIVATE=${ walletJson . payment . private } ` ) ;
23+ console . log ( `2. Set FAUCET_STAKE_PKH=${ walletJson . stake . pkh } ` ) ;
24+ console . log ( `3. Set FAUCET_ADDRESS=${ walletJson . address } ` ) ;
25+
26+ console . log ( "\nπ All done! Have fun with your new wallet!" ) ;
27+ } catch ( error ) {
28+ console . error ( "\nβ An error occurred:" , error . message ) ;
29+ }
30+ } ) ( ) ;
Original file line number Diff line number Diff line change 4444 "test:headless:usersnap" : " npx playwright test userSnap.spec.ts" ,
4545 "test:headless:misc" : " npx playwright test miscellaneous" ,
4646 "format" : " prettier . --write" ,
47- "generate-wallets" : " ts-node ./generate_wallets.ts 23"
47+ "generate-wallets" : " ts-node ./generate_wallets.ts 23" ,
48+ "generate-faucet-wallet" : " ts-node ./generate_faucet_wallet.ts"
4849 },
4950 "dependencies" : {
5051 "@cardanoapi/cardano-test-wallet" : " ^3.3.1" ,
You canβt perform that action at this time.
0 commit comments