passport-minter

0.6.0 • Public • Published

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'

Readme

Keywords

none

Package Sidebar

Install

npm i passport-minter

Weekly Downloads

0

Version

0.6.0

License

MIT

Unpacked Size

46 kB

Total Files

17

Last publish

Collaborators

  • web3dev