Javascript SDK for PNS project
- yarn
- yarn dev
- update package.json version
- yarn prettier
- yarn build
- npm publish
- modify
src/constants.ts
when contract address update - rebuild the repo
return the EIP-137 namehash of a domain
return the owner address of a tokenId
return the owner address of a domain
check if a domain exists
check if a domain exists and return the owner address
return the totalRegisterPrice for a domain, which is sum of basePrice and rentPrice
return the renewPrice for a domain
return the one-time basePrice for a domain
return the annual rentPrice for a domain
return the price configuration of PNS
get current token price of the contract
return the exipry time of a domain
check if a domain is available for registration
register a domain
async registerWithConfig(name: DomainString, to: string, duration: number, data: number, keysHash: string[], values: string[])
register a domain with configs
mint a new subdomain
approve a new operator for a domain (ERC721 method)
get the approved operator for a domain (ERC721 method)
set reverse domain name for an address
get reverse domain name for an address
set reverse domain name for a NFT
get reverse domain name for a NFT
get a specific record for a domain
get a specific record by key hash for a domain
get records for a domain
get records by key hashes for a domain
get domain details
renew a domain with fee
transfer the ownership of a domain
burn a domain