Minter command is a tool for minting pending Sapien passports. General flow:
- Read from database pending passports to be minted
- Prepare transactions in batches
- Call Passport contract with addresses belonging to a batch
- Update passport metadata on database only for succesfully minted passports
- Show basic execution statistics
npm install -g passport-minter
minter -h
-> show help
-p --private-key <privateKey> Private key of the Governance address
-db --db-connection-string <dbConnectionString> Database connection string
-s3 --s3-cdn-url <s3CdnUrl> S3 CDN URL
-n --network <network> mainnet / testnet (default: "testnet")
-m --number-to-mint <numberToMint> Number of user passports to be minted (default: "all")
-b --batch-number <batchNumber> Number of passports in a batch (default: "50")
-h, --help display help for command
Examples:
minter -p 73f4... -db 'postgres://user:password@db-server:5432/database' -s3 'https://xxxxyyyzzz.cloudfront.net'