1.0.0 • Published 2 years ago

@yhl125/pkp-sui v1.0.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

PKPSuiWallet

First you need to create config.json file

{
  "PRIVATE_KEY": "<your private key. If there is a leading 0x, delete it>",
  "CONTROLLER_AUTHSIG": {
    "sig": "",
    "derivedVia": "",
    "signedMessage": "",
    "address": ""
  },
  "PKP_PUBKEY": "<your pubkey>"
}

Then you can type yarn start <test-number> or yarn dev <test-number> to select the test case you want to run. At the moment, we have the following

before minting nft, you need to prefund testnet sui to your wallet.

/**
 * Test cases:
 * 1 = create a wallet
 * 2 = create a wallet and mint nft
 * 3 = create a PKP wallet
 * 4 = create a PKP wallet and mint nft
 */