{"_id":"@bnsdomain/bns","_rev":"1-91b82f620ebfe785830019c3c8362877","name":"@bnsdomain/bns","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@bnsdomain/bns","version":"1.0.0","main":"truffle-config.js","license":"MIT","scripts":{"compile":"truffle compile","precompile":"rm -rf build/","deploy:migrate":"truffle migrate --network bsctestnet","deploy:testnet":"truffle deploy --network bsctestnet","deploy:testnet:reset":"truffle deploy --network bsctestnet --reset","verify":"truffle run verify Migrations BNSRegistry FIFSRegistrar --network bsctestnet","test":"mocha --timeout 10000 --exit --recursive test","lint":"yarn prettier && solhint -c .solhint.json 'contracts/**/*.sol'"},"dependencies":{"@openzeppelin/contracts":"^3.1.0","@openzeppelin/test-helpers":"^0.5.6","@truffle/hdwallet-provider":"^1.1.0","dotenv":"^8.2.0","eth-ens-namehash":"^2.0.8","ethers":"^5.0.0","mocha":"^8.3.0","solidity-coverage":"^0.7.13","truffle":"^5.1.44","truffle-flattener":"^1.4.4","truffle-hdwallet-provider":"^1.0.17","truffle-plugin-verify":"^0.5.6","web3":"^1.3.5","web3-utils":"^1.3.5"},"description":"<h3 align=\"center\">BSC BNS TESTNET</h3>","repository":{"type":"git","url":"git+ssh://git@gitlab.com/bsc-bns/bsc-bns.git"},"author":{"name":"Ho Ngoc Hai"},"bugs":{"url":"https://gitlab.com/bsc-bns/bsc-bns/issues"},"homepage":"https://gitlab.com/bsc-bns/bsc-bns#readme","gitHead":"2aa6895352b32696398d7b71064bbe83b024a55a","_id":"@bnsdomain/bns@1.0.0","_nodeVersion":"12.20.1","_npmVersion":"7.5.2","dist":{"integrity":"sha512-MZUs2WhggZ7qMNZwuCAldsnf+iJ2qnGKwvnIXx6hTVhgi3oSRQoLRU9faX9vrtpjP+Hu1tvXogEFKzVmSduZmA==","shasum":"6c64a05b8adca6b2b0122ee60155167a5c0e326f","tarball":"https://registry.npmjs.org/@bnsdomain/bns/-/bns-1.0.0.tgz","fileCount":10,"unpackedSize":20709,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgh6mPCRA9TVsSAnZWagAAWO0QAIlJ1eEEDRgHFgi7bY1t\nSfo68z/yE0Jz/207ktH/b9KsdZJmq+mRgNcVJEyfJz5b7Fg+kOA35TIbD/Jp\nUh6+960zfVHrnVo1pCuK2XIRCxRNEj6HV00N4eDRu6moqK7hOW/V8V9smpMx\ngnGOMbrBicnOq2Bzjpbx6W5HMR8XUB3h1DEZQ5oLx92qbPV6DlEb5G5Kwrq1\nA7N8jztYEd1FmiFYDVkrRNPsGQmCh+d75EvDsuOcYk9cNsWND9mHzDdxWj7D\nI+vRkp253UgQvDz4/c1N9ISn+ie093BRfjVcHxVhtrW4EsDejSK15ZWng/9/\nPlbOC0s7r872YFf509xnIyTcMND4anjMq/AR72RBhZALvE0PBVFVE7qlDe/+\njPtr6rlzGfn1Buwv8zFfJo/OAAKovJOOkRMzVg5PQruAIcfJSDu5dw8/BkGq\nfiHem6yALi2cheKXZs1/+2ZVdHht8KU7NXg2x5v1KqxEXv+sNRpImn7y+ilv\ntWtLXYd9K2Tw+LRPNtfQCleBWBS5mWIydIN2xHFXcQ9KZf33NxqBzkew74CO\npzi5o/cve3mM4ybiDjDQCXUuP+PQnmruct/8e8pTOF93II/dEiKGPpaZ/AGg\nG7Rx6WQ5OPNKkVHszJFZyt35RB+Z9kiJaMgy21UIEG+rZuHPQ5s0/rqdPz2e\nMSmq\r\n=/NXs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAK4dUHI4AMqypcDi68cH/igAfCKi+2BrjyJRsTXkO/qAiBToe2DHJu5Gf3+1lJl42Dt+jjNSLo7wlkXfQqxMtwaxQ=="}]},"_npmUser":{"name":"hongochai10","email":"hongochai10@gmail.com"},"directories":{},"maintainers":[{"name":"hongochai10","email":"hongochai10@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bns_1.0.0_1619503503256_0.9686238941761964"},"_hasShrinkwrap":false}},"time":{"created":"2021-04-27T06:05:02.904Z","1.0.0":"2021-04-27T06:05:03.603Z","modified":"2022-04-04T19:53:55.295Z"},"maintainers":[{"name":"hongochai10","email":"hongochai10@gmail.com"}],"description":"<h3 align=\"center\">BSC BNS TESTNET</h3>","homepage":"https://gitlab.com/bsc-bns/bsc-bns#readme","repository":{"type":"git","url":"git+ssh://git@gitlab.com/bsc-bns/bsc-bns.git"},"author":{"name":"Ho Ngoc Hai"},"bugs":{"url":"https://gitlab.com/bsc-bns/bsc-bns/issues"},"license":"MIT","readme":"<h3 align=\"center\">BSC BNS TESTNET</h3>\r\n\r\n\r\n#\r\nMigrations: https://testnet.bscscan.com/address/0x797630011a3172FE7F7344Aa79AA72e159291136#contracts \r\n\r\n> Total cost:            0.0084251 BNB\r\n#\r\nBNSRegistry: https://testnet.bscscan.com/address/0x437613959999fcFBEC5d13f407Ecfab2faBa4732#contracts\r\n\r\nFIFSRegistrar: https://testnet.bscscan.com/address/0x83A1E01c6af28905829009f8697f618E9d3D5dB0#contracts\r\n> Total cost:            0.039425 BNB\r\n#\r\n## BNSRegistry\r\n\r\nImplementation of the BNS Registry, the central contract used to look up resolvers and owners for domains.\r\n\r\n#\r\n## FIFSRegistrar\r\n\r\nImplementation of a simple first-in-first-served registrar, which issues (sub-)domains to the first account to request them.\r\n\r\n#\r\n## BNS Registry interface\r\n\r\nThe BNS registry is a single central contract that provides a mapping from domain names to owners and resolvers, as described in EIP 137.\r\n\r\nThe BNS operates on 'nodes' instead of human-readable names; a human readable name is converted to a node using the namehash algorithm, which is as follows:\r\n\r\n\r\n```\r\ndef namehash(name):\r\n  if name == '':\r\n    return '\\0' * 32\r\n  else:\r\n    label, _, remainder = name.partition('.')\r\n    return sha3(namehash(remainder) + sha3(label))\r\n```\r\n\r\n\r\nThe registry's interface is as follows:\r\n\r\n```\r\nowner(bytes32 node) constant returns (address)\r\n```\r\n\r\nReturns the owner of the specified node.\r\n\r\n```\r\nresolver(bytes32 node) constant returns (address)\r\n```\r\n\r\nReturns the resolver for the specified node.\r\n\r\n```\r\nsetOwner(bytes32 node, address owner)\r\n```\r\n\r\nUpdates the owner of a node. Only the current owner may call this function.\r\n\r\n```\r\nsetSubnodeOwner(bytes32 node, bytes32 label, address owner)\r\n```\r\n\r\nUpdates the owner of a subnode. For instance, the owner of \"foo.com\" may change the owner of \"bar.foo.com\" by calling setSubnodeOwner(namehash(\"foo.com\"), sha3(\"bar\"), newowner). Only callable by the owner of node.\r\n\r\n```\r\nsetResolver(bytes32 node, address resolver)\r\n```\r\n\r\nSets the resolver address for the specified node.","readmeFilename":"README.md"}