{"_id":"@canton-network/core-test-token","_rev":"3-3f23991e69cf5c603b9a9830bbd30dd6","name":"@canton-network/core-test-token","dist-tags":{"latest":"1.2.1"},"versions":{"1.1.0":{"name":"@canton-network/core-test-token","version":"1.1.0","author":"Mateusz Piątkowski <mateusz.piatkowski@digitalasset.com>","license":"Apache-2.0","_id":"@canton-network/core-test-token@1.1.0","maintainers":[{"name":"ov4_da","email":"oscar.valle@digitalasset.com"},{"name":"cantonfoundation","email":"amanda@canton.foundation"},{"name":"nycnewman","email":"edward@digitalasset.com"},{"name":"alexmatson-da","email":"alex.matson@digitalasset.com"},{"name":"asangeethada","email":"abhi.sangeetha@digitalasset.com"}],"homepage":"https://github.com/canton-network/wallet/tree/main/core/test-token#readme","bugs":{"url":"https://github.com/canton-network/wallet/issues"},"dist":{"shasum":"0d14341d2bde90900e645825395bcc85511657c0","tarball":"https://registry.npmjs.org/@canton-network/core-test-token/-/core-test-token-1.1.0.tgz","fileCount":16,"integrity":"sha512-/w3MQQYIsz5ALvYVKSdDP4KPxJPvgveU+xp1qYi9eMwTuLf+MqzKpsFrOcCLz9QI6IhrrWURd1in1QEGw+Hpgw==","signatures":[{"sig":"MEUCIAaw3BvsN3ooI+tOC0Rlh333XB5ZsAQoE9D4KIDAcOVlAiEA35rJtgAqKRoWqNKTd0bPrZl055wJxFyLI/NBso8ixqc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":747349},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","browser":"./dist/index.browser.js","default":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"f3058f39c2c7b5c4dea361c668df462a9967f4f3","scripts":{"dev":"rollup -c -w","build":"yarn generate:test-token && yarn clean && rollup -c && yarn clean:types-tmp","clean":"rm -rf dist","flatpack":"yarn pack --out \"$FLATPACK_OUTDIR\"","clean:types-tmp":"rm -rf dist/types"},"_npmUser":{"name":"alexmatson-da","email":"alex.matson@digitalasset.com"},"repository":{"url":"git+https://github.com/canton-network/wallet.git","type":"git","directory":"core/test-token"},"description":"daml codegen js for test-token package","directories":{},"dependencies":{"zod":"^4.4.3","uuid":"^14.0.0","lodash":"^4.18.1","@daml/types":"^3.5.1","openapi-fetch":"^0.17.0","@canton-network/core-types":"^1.9.0","@canton-network/wallet-sdk":"^1.4.0","@mojotech/json-type-validation":"^3.1.0","@canton-network/core-wallet-auth":"^1.9.0","@canton-network/core-token-standard":"^1.9.0","@canton-network/core-ledger-client-types":"^1.9.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tslib":"^2.8.1","rollup":"^4.62.0","playwright":"^1.60.0","typescript":"^5.9.3","@types/node":"^25.9.3","rollup-plugin-dts":"^6.4.1","@rollup/plugin-json":"^6.1.0","@rollup/plugin-alias":"^5.1.1","@rollup/plugin-commonjs":"^29.0.3","@rollup/plugin-typescript":"^12.3.0","@rollup/plugin-node-resolve":"^16.0.3"},"_npmOperationalInternal":{"tmp":"tmp/core-test-token_1.1.0_1786028253392_0.7212014539483269","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"@canton-network/core-test-token","version":"1.2.0","author":"Mateusz Piątkowski <mateusz.piatkowski@digitalasset.com>","license":"Apache-2.0","_id":"@canton-network/core-test-token@1.2.0","maintainers":[{"name":"ov4_da","email":"oscar.valle@digitalasset.com"},{"name":"cantonfoundation","email":"amanda@canton.foundation"},{"name":"nycnewman","email":"edward@digitalasset.com"},{"name":"alexmatson-da","email":"alex.matson@digitalasset.com"},{"name":"asangeethada","email":"abhi.sangeetha@digitalasset.com"}],"homepage":"https://github.com/canton-network/wallet/tree/main/core/test-token#readme","bugs":{"url":"https://github.com/canton-network/wallet/issues"},"dist":{"shasum":"ef7bcf9feafdb91123152861f95bb4e7f49c85b0","tarball":"https://registry.npmjs.org/@canton-network/core-test-token/-/core-test-token-1.2.0.tgz","fileCount":16,"integrity":"sha512-FuIQMrWHOiv1mpVdPUHz4CbMvvOu3EHRcl1MQDCj5WdyeolDZuckv9KfELVGKnVx2gza9DvTezxGZoO4aqtD3Q==","signatures":[{"sig":"MEQCIEqalsQDjEkyVPvnBAfo7q62QunzQ65dFXOPvga+kHxbAiAG0hUD2Fx/mNxoJNKJl0nQ7fcKToHYGvppUtmudEM9gQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":747353},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","browser":"./dist/index.browser.js","default":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"c15a5c17d1ee08294fd8767415d576156d25e9bf","scripts":{"dev":"rollup -c -w","build":"yarn generate:test-token && yarn clean && rollup -c && yarn clean:types-tmp","clean":"rm -rf dist","flatpack":"yarn pack --out \"$FLATPACK_OUTDIR\"","clean:types-tmp":"rm -rf dist/types"},"_npmUser":{"name":"alexmatson-da","email":"alex.matson@digitalasset.com"},"repository":{"url":"git+https://github.com/canton-network/wallet.git","type":"git","directory":"core/test-token"},"description":"daml codegen js for test-token package","directories":{},"dependencies":{"zod":"^4.4.3","uuid":"^14.0.0","lodash":"^4.18.1","@daml/types":"^3.5.1","openapi-fetch":"^0.17.0","@canton-network/core-types":"^1.10.0","@canton-network/wallet-sdk":"^1.4.0","@mojotech/json-type-validation":"^3.1.0","@canton-network/core-wallet-auth":"^1.10.0","@canton-network/core-token-standard":"^1.10.0","@canton-network/core-ledger-client-types":"^1.10.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tslib":"^2.8.1","rollup":"^4.62.0","playwright":"^1.60.0","typescript":"^5.9.3","@types/node":"^25.9.3","rollup-plugin-dts":"^6.4.1","@rollup/plugin-json":"^6.1.0","@rollup/plugin-alias":"^5.1.1","@rollup/plugin-commonjs":"^29.0.3","@rollup/plugin-typescript":"^12.3.0","@rollup/plugin-node-resolve":"^16.0.3"},"_npmOperationalInternal":{"tmp":"tmp/core-test-token_1.2.0_1786357170338_0.24559156854797926","host":"s3://npm-registry-packages-npm-production"}},"1.2.1":{"name":"@canton-network/core-test-token","version":"1.2.1","type":"module","description":"daml codegen js for test-token package","author":"Mateusz Piątkowski <mateusz.piatkowski@digitalasset.com>","license":"Apache-2.0","main":"dist/index.cjs","module":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","browser":"./dist/index.browser.js","import":"./dist/index.js","require":"./dist/index.cjs","default":"./dist/index.js"}},"dependencies":{"@daml/types":"^3.5.1","@mojotech/json-type-validation":"^3.1.0","lodash":"^4.18.1","openapi-fetch":"^0.17.0","uuid":"^14.0.0","zod":"^4.4.3","@canton-network/core-ledger-client-types":"^1.10.1","@canton-network/core-token-standard":"^1.10.1","@canton-network/core-wallet-auth":"^1.10.1","@canton-network/core-types":"^1.10.1","@canton-network/wallet-sdk":"^1.4.0"},"devDependencies":{"@rollup/plugin-alias":"^5.1.1","@rollup/plugin-commonjs":"^29.0.3","@rollup/plugin-json":"^6.1.0","@rollup/plugin-node-resolve":"^16.0.3","@rollup/plugin-typescript":"^12.3.0","@types/node":"^25.9.3","playwright":"^1.60.0","rollup":"^4.62.0","rollup-plugin-dts":"^6.4.1","tslib":"^2.8.1","typescript":"^5.9.3"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/canton-network/wallet.git","directory":"core/test-token"},"homepage":"https://github.com/canton-network/wallet/tree/main/core/test-token#readme","bugs":{"url":"https://github.com/canton-network/wallet/issues"},"scripts":{"build":"pnpm --workspace-root run generate:test-token && pnpm clean && rollup -c && pnpm clean:types-tmp","dev":"rollup -c -w","clean:types-tmp":"rm -rf dist/types","flatpack":"pnpm pack --pack-destination \"$FLATPACK_OUTDIR\"","clean":"rm -rf dist"},"_nodeVersion":"26.0.0","_id":"@canton-network/core-test-token@1.2.1","dist":{"integrity":"sha512-NvcIlrDv3C2oOIIuRZFFGOiqhIjM+M/QiBE9FaBqTOiNSBYRKYweFJEElrQ7WpSyIyXGPc3P8G0Rjt2qc5LkNg==","shasum":"4916b12b12a5952b11a6026e5b5a844d2691b1fd","tarball":"https://registry.npmjs.org/@canton-network/core-test-token/-/core-test-token-1.2.1.tgz","fileCount":17,"unpackedSize":758897,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIEcd9CRIPOBiRpD/xMlGoqfgqQ1/9JXBKadUnvrY7uMmAiANq46qJiMAJJRXmg1+pzfJ4fQ8bkiSlwnjW0ifWlzNWw=="}]},"_npmUser":{"name":"alexmatson-da","email":"alex.matson@digitalasset.com"},"directories":{},"maintainers":[{"name":"ov4_da","email":"oscar.valle@digitalasset.com"},{"name":"cantonfoundation","email":"amanda@canton.foundation"},{"name":"nycnewman","email":"edward@digitalasset.com"},{"name":"alexmatson-da","email":"alex.matson@digitalasset.com"},{"name":"asangeethada","email":"abhi.sangeetha@digitalasset.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/core-test-token_1.2.1_1787072856823_0.6790135894957934"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-06T14:57:33.150Z","modified":"2026-08-18T17:07:37.206Z","1.1.0":"2026-08-06T14:57:33.548Z","1.2.0":"2026-08-10T10:19:30.485Z","1.2.1":"2026-08-18T17:07:36.983Z"},"bugs":{"url":"https://github.com/canton-network/wallet/issues"},"author":"Mateusz Piątkowski <mateusz.piatkowski@digitalasset.com>","license":"Apache-2.0","homepage":"https://github.com/canton-network/wallet/tree/main/core/test-token#readme","repository":{"type":"git","url":"git+https://github.com/canton-network/wallet.git","directory":"core/test-token"},"description":"daml codegen js for test-token package","maintainers":[{"name":"ov4_da","email":"oscar.valle@digitalasset.com"},{"name":"cantonfoundation","email":"amanda@canton.foundation"},{"name":"nycnewman","email":"edward@digitalasset.com"},{"name":"alexmatson-da","email":"alex.matson@digitalasset.com"},{"name":"asangeethada","email":"abhi.sangeetha@digitalasset.com"}],"readme":"# @canton-network/core-test-token\n\nTypeScript wrapper package for the Test Token DAML codegen.\n\n## Requirements\n\nThis package requires a localnet instance that relies on Splice v0.6.12 or higher. Please ensure you have the latest localnet fetched.\n\n## Exports\n\nFrom [src/index.ts](src/index.ts):\n\n- `TestTokenV1`: shortcut to `Splice.Testing.Tokens.TestTokenV1`\n- `packageId`: re-export from `@daml.js/test-token-v1`\n- `commands`: command builders for Test Token templates and choices\n\n## Build\n\nFrom the repo root:\n\n```sh\npnpm --filter @canton-network/core-test-token build\n```\n\nThe build produces:\n\n- ESM: `dist/index.js`\n- CJS: `dist/index.cjs`\n- Browser ESM: `dist/index.browser.js`\n- Types: `dist/index.d.ts`\n\n## Regenerating DAML Codegen Inputs\n\nThis package depends on generated DAML JS artifacts under\n`damljs/test-token-v1`.\n\nTo refresh those artifacts, run:\n\n```sh\npnpm script:generate:test-token\n```\n\nThen rebuild this package.\n\n## Usage\n\n```ts\nimport {\n    TestTokenV1,\n    packageId,\n    commands,\n} from '@canton-network/core-test-token'\n\nconst template = TestTokenV1\nconsole.log(packageId)\n\n// Build a create command for TokenRules\nconst createRules = commands.create.rules({ admin: 'Alice::1220...' })\n\n// Build an exercise command for TokenTransferOffer.Accept\nconst acceptTransfer = commands.exercise.transferOffer.accept({\n    contractId: '00a1b2c3d4...',\n    choiceArgument: {},\n})\n```\n\n## Command Helpers\n\nThe `commands` export provides typed helpers that return\n`WrappedCommand<'CreateCommand'>` and `WrappedCommand<'ExerciseCommand'>`.\n\nAvailable builders:\n\n- `commands.create.transferOffer`\n- `commands.create.allocation`\n- `commands.create.rules`\n- `commands.exercise.transferOffer.accept`\n- `commands.exercise.transferOffer.reject`\n- `commands.exercise.transferOffer.withdraw`\n- `commands.exercise.transferOffer.update`\n- `commands.exercise.allocation.executeTransfer`\n- `commands.exercise.allocation.cancel`\n- `commands.exercise.allocation.withdraw`\n- `commands.exercise.rules.transfer.transfer`\n- `commands.exercise.rules.transfer.publicFetch`\n- `commands.exercise.rules.allocation.allocate`\n- `commands.exercise.rules.allocation.publicFetch`\n\nExample:\n\n```ts\nimport { commands } from '@canton-network/core-test-token'\n\nconst createAllocation = commands.create.allocation({\n    allocation: {\n        // Fill with your AllocationSpecification payload\n    },\n})\n\nconst executeTransfer = commands.exercise.allocation.executeTransfer({\n    contractId: '00f00d...',\n    choiceArgument: {\n        // Fill with Allocation_ExecuteTransfer choice argument\n    },\n})\n```\n\n## License\n\nApache-2.0\n","readmeFilename":""}