{"_id":"@araviel/safe-token","name":"@araviel/safe-token","dist-tags":{"latest":"0.2.0"},"versions":{"0.2.0":{"name":"@araviel/safe-token","version":"0.2.0","author":{"name":"Solana Maintainers","email":"maintainers@solana.foundation"},"repository":{"type":"git","url":"git+https://github.com/solana-labs/solana-program-library.git"},"license":"Apache-2.0","publishConfig":{"access":"public"},"type":"module","sideEffects":false,"main":"lib/cjs/index.js","module":"lib/esm/index.mjs","types":"lib/types/index.d.ts","exports":{"import":"./lib/esm/index.mjs","require":"./lib/cjs/index.js"},"scripts":{"clean":"shx rm -rf lib","build":"yarn clean && tsc -p tsconfig.json; tsc-esm -p tsconfig.json && tsc -p tsconfig.cjs.json","postbuild":"echo '{\"type\":\"commonjs\"}' > lib/cjs/package.json && echo '{\"type\":\"module\"}' > lib/esm/package.json","deploy":"yarn docs && gh-pages --dist docs --dest token/js --dotfiles","example":"node --experimental-specifier-resolution=node --loader ts-node/esm examples/create_mint_and_transfer_tokens.ts","test":"yarn test:unit && yarn test:e2e-built && yarn test:e2e-native && yarn test:e2e-2022","test:unit":"mocha test/unit","test:e2e-built":"start-server-and-test 'solana-test-validator --bpf-program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA ../../target/deploy/spl_token.so --reset --quiet' http://localhost:8899/health 'mocha test/e2e'","test:e2e-2022":"TEST_PROGRAM_ID=TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb start-server-and-test 'solana-test-validator --bpf-program ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL ../../target/deploy/spl_associated_token_account.so --bpf-program TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb ../../target/deploy/spl_token_2022.so --reset --quiet' http://localhost:8899/health 'mocha test/e2e*'","test:e2e-native":"start-server-and-test 'solana-test-validator --reset --quiet' http://localhost:8899/health 'mocha test/e2e'","test:build-programs":"cargo build-bpf --manifest-path ../program/Cargo.toml && cargo build-bpf --manifest-path ../program-2022/Cargo.toml && cargo build-bpf --manifest-path ../../associated-token-account/program/Cargo.toml","docs":"shx rm -rf docs && NODE_OPTIONS=--max_old_space_size=4096 typedoc && shx cp .nojekyll docs/","fmt":"prettier --write '{*,**/*}.{js,ts,jsx,tsx,json}'","lint":"eslint --max-warnings 0 --ext .ts . && prettier --check '{*,**/*}.{js,ts,jsx,tsx,json}'","lint:fix":"eslint --fix --ext .ts . && yarn fmt","nuke":"shx rm -rf node_modules yarn.lock"},"dependencies":{"@araviel/web3.js":"^1.48.0","@solana/buffer-layout":"^4.0.0","@solana/buffer-layout-utils":"^0.2.0"},"devDependencies":{"@solana/spl-memo":"^0.1.0","@types/chai-as-promised":"^7.1.4","@types/eslint":"^8.4.0","@types/eslint-plugin-prettier":"^3.1.0","@types/mocha":"^9.1.0","@types/node":"^16.11.21","@types/node-fetch":"^2.6.2","@types/prettier":"^2.4.3","@typescript-eslint/eslint-plugin":"^5.10.0","@typescript-eslint/parser":"^5.10.0","chai":"^4.3.4","chai-as-promised":"^7.1.1","eslint":"^8.7.0","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^4.0.0","gh-pages":"^3.2.3","mocha":"^9.1.4","prettier":"^2.5.1","shx":"^0.3.4","start-server-and-test":"^1.14.0","ts-node":"^10.4.0","tslib":"^2.3.1","typedoc":"^0.22.11","typescript":"^4.5.5","typescript-esm":"^2.0.0"},"gitHead":"b39efe8fb84ce6119675ce81fbe68b04355cf48d","description":"A TypeScript library for interacting with the SPL Token program.","bugs":{"url":"https://github.com/solana-labs/solana-program-library/issues"},"homepage":"https://github.com/solana-labs/solana-program-library#readme","_id":"@araviel/safe-token@0.2.0","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"integrity":"sha512-8Ct8oaOk5oTYSy5tOu5c7lODGYs1F+8EScfHY88rXKOlCNOXquOvdU2HKzN5H+9h/0VVw1KV54nN5RzmPHmizQ==","shasum":"8d9047e7f53756998e83160b1423f18de6872a6f","tarball":"https://registry.npmjs.org/@araviel/safe-token/-/safe-token-0.2.0.tgz","fileCount":497,"unpackedSize":1057628,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHjlp8NOKl8Aq3P/PNmGJ3rhUQcbHwWAMvPCcqqdEtqCAiEAnooMFAhFz9ydasZZkUZDZ6yOSe6CbXg9XUOwPAQe78Y="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi1HLOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq6Pw/+K6i2aTbu7NKddYib0o44vjQ8R9QpJLa3SWCkJ8K35wG9GEsP\r\nogDuAnLMhdFt31vpy6AVuW1JI7r80mfyEaIZ4ogg3XrlU7pht9xbMnESHVim\r\nx7TLtMa//GW5b9EzXgGo+Uy8oTo28F8N/46bbGSgcvPG290oeFHYeR0dl52Y\r\nU1aZBbluw5Y8lspcvQaWtHI5fBgS3b7wB41IOuqpZM9x67O6YvpM++NRnzVu\r\n2by0xO/1ZgubGRCSzYMkgf0UCqeAHcxPNcUOJfH9Bvs79c5azWMAu9ZiPECE\r\nnoiiTsna6bkdh6n82zI9Ngm5ylPe+B0fp74zw9g9fo/+92dH0Y4eQupvm8Po\r\nCWPRGI9KtgTFg45Y+k4RhlWT2YO8ELZSTRzwWNpQ0aGjK0fWBGv3Gv54aNPi\r\nUjy1rYtd1MHU6urEC3lfAAMZL3V6Q94S7HefO3XsnXQuQ8gsFFRCSJLk5SSa\r\nEuX3TpRpCexLKEDPOaJzl2SPox94Qh42qiKJ+d6nrLxTlaPzbRjzAcrZKR44\r\nXgSKgtX1rLIPtOkYrAhMrMSUs2Y+vdSqEYNamoCU+NFshnhRgA6X/LQXyvII\r\n1QqXQdgPxnncNVLMyGubCNnbx04SOJWZheKd85rs4D6bRFDw2kX2MnM8Imny\r\nD9z2FoQayCO+QvDhQ4mypvcPbFcmh7eY1sA=\r\n=yB63\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"araviel","email":"contact@araviel.io"},"directories":{},"maintainers":[{"name":"araviel","email":"contact@araviel.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/safe-token_0.2.0_1658090190050_0.6467754190486512"},"_hasShrinkwrap":false}},"time":{"created":"2022-07-17T20:36:29.958Z","0.2.0":"2022-07-17T20:36:30.280Z","modified":"2022-07-17T20:36:30.402Z"},"maintainers":[{"name":"araviel","email":"contact@araviel.io"}],"description":"A TypeScript library for interacting with the SPL Token program.","homepage":"https://github.com/solana-labs/solana-program-library#readme","repository":{"type":"git","url":"git+https://github.com/solana-labs/solana-program-library.git"},"author":{"name":"Solana Maintainers","email":"maintainers@solana.foundation"},"bugs":{"url":"https://github.com/solana-labs/solana-program-library/issues"},"license":"Apache-2.0","readme":"# `@solana/spl-token`\n\nA TypeScript library for interacting with the SPL Token program.\n\n## Links\n\n- [TypeScript Docs](https://solana-labs.github.io/solana-program-library/token/js/)\n- [FAQ (Frequently Asked Questions)](./FAQ.md)\n- [Install](#install)\n- [Build from Source](#build-from-source)\n\n## Install\n\n```shell\nyarn add @solana/spl-token\n```\n\n## Build from Source\n\n1. Clone the project:\n```shell\ngit clone https://github.com/solana-labs/solana-program-library.git\n```\n\n2. Navigate to the library:\n```shell\ncd solana-program-library/token/js\n```\n\n3. Install the dependencies:\n```shell\nyarn install\n```\n\n4. Build the library:\n```shell\nyarn build\n```\n\n5. Build the on-chain programs:\n```shell\nyarn test:build-programs\n```\n\n6. Run the tests:\n```shell\nyarn test\n```\n\n7. Run the example:\n```shell\nyarn example\n```\n","readmeFilename":"README.md"}