1Mazbt…BTxxvia pow.co·2.9y
❤️ 0 Likes · ⚡ 0 Tips
{
  "txid": "3957320ea07c740394284ca8e4b5efb287d0d595de36745f478bab213d23bc1b",
  "block_height": 801485,
  "time": null,
  "app": "pow.co",
  "type": "post",
  "map_content": "# @powco/smart-contracts\n\n### Quick access to all known smart contracts on powco at your fingertips\n\n[https://www.npmjs.com/package/@powco/smart-contracts](https://www.npmjs.com/package/@powco/smart-contracts)\n\n\n[![npm version](https://badge.fury.io/js/@powco%2Fsmart-contracts.svg)](https://badge.fury.io/js/@powco%2Fsmart-contracts)\n[![CircleCI](https://circleci.com/gh/pow-co/smart-contracts.svg?style=svg)](https://circleci.com/gh/pow-co/smart-contracts)\n![Bitcoin SV](https://img.shields.io/badge/Bitcoin%20SV-EAB300?style=for-the-badge&logo=Bitcoin%20SV&logoColor=white)\n![Visual Studio Code](https://img.shields.io/badge/Visual%20Studio%20Code-0078d7.svg?style=for-the-badge&logo=visual-studio-code&logoColor=white)\n![TypeScript](https://img.shields.io/badge/typescript-%23007ACC.svg?style=for-the-badge&logo=typescript&logoColor=white)\n![Mocha](https://img.shields.io/badge/-mocha-%238D6748?style=for-the-badge&logo=mocha&logoColor=white)\n\n```\nnpm install --save @powco/smart-contracts\n```\n\nEach contract added to ./src/contracts/ is compiled and its artifact.json pre-loaded\nso you can use the contract class immediately right out of the box\n\n```\nimport { TimeLockP2PKH } from '@powco/smart-contracts'\n\nimport { DevIssue } from '@powco/smart-contracts'\n\nimport { PersonalInterest } from '@powco/smart-contracts'\n\nimport { EventTicket } from '@powco/smart-contracts'\n\n```\n\nThe goal is to accumulate source code for all known useful scrypt smart contracts,\nand eventually allow for loading smart contract code classes directly from the\nblockchain.\n\n## Adding Your Contracts\n\nSimply write your contract in the same format as the others in src/contracts, which\nconform to the convention laid out by the scrypt-cli project generator.\n\n## Usage in Development\n\nIf you are developing a new contract and want to test support in your app before\npublishing a pull request to this repo, you can import the code into your project like\nthis:\n\n- First build the code\n\n`npm install && npm run build`\n\n- Then in your typescript project\n\n```\nimport { MySmartContract } from '/local/path/to/@powco/smart-contracts'\n\n```\n\nRemember to run `npm run build` after any change to your contract in development\n\n## Build\n\n```sh\nnpm run build\n```\n\n## Testing Locally\n\n```sh\nnpm run test\n```\n\n## Run Bitcoin Testnet Tests\n\n```sh\nnpm run testnet\n```",
  "media_type": "text/markdown",
  "filename": "|",
  "author": "1MazbtXD8eG42s72EUK57Vthb1PWkqBTxx",
  "display_name": null,
  "channel": null,
  "parent_txid": null,
  "ref_txid": null,
  "tags": null,
  "reply_count": 0,
  "like_count": 0,
  "timestamp": "2023-07-20T12:42:07.000Z",
  "media_url": null,
  "aip_verified": true,
  "thread_root_tx": null,
  "engagement_score": 0,
  "token_ref": null,
  "token_type": null,
  "kind": null,
  "lat": null,
  "lng": null,
  "category": null,
  "locked_sats": "0",
  "pow_bits": 0,
  "has_access": true,
  "attachments": [],
  "ui_name": "1Mazbt\u2026BTxx",
  "ui_display_name": "1Mazbt\u2026BTxx",
  "ui_handle": null,
  "ui_display_raw": null,
  "ui_signer": "1Mazbt\u2026BTxx",
  "ref_ui_name": "unknown",
  "ref_ui_signer": "unknown"
}
Signed by1Mazbt…BTxxAIP