0.6.0 • Published 2 years ago

passport-minter v0.6.0

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
2 years ago

Description

Minter command is a tool for minting pending Sapien passports. General flow: 1. Read from database pending passports to be minted 2. Prepare transactions in batches 3. Call Passport contract with addresses belonging to a batch 4. Update passport metadata on database only for succesfully minted passports 5. Show basic execution statistics

Execution

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'