{"_id":"@dpos-info/core-auto-refunds","name":"@dpos-info/core-auto-refunds","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@dpos-info/core-auto-refunds","description":"Automatically sends HTLC Refund transactions for expired locks","homepage":"https://github.com/dpos-info/core-auto-refunds","version":"1.0.0","author":{},"license":"MIT","main":"dist/index.js","scripts":{"build":"pnpm clean && tsc","build:watch":"pnpm clean && pnpm compile -w","clean":"rimraf dist","compile":"node ../../node_modules/typescript/bin/tsc","lint":"../../node_modules/eslint/bin/eslint.js . --ext .ts --fix","prettier":"prettier --write './**/*.{ts,js,json,md}'","format":"pnpm lint && pnpm prettier"},"prettier":{"printWidth":180,"singleQuote":false,"tabWidth":4,"trailingComma":"all","useTabs":false},"licenseText":"The MIT License (MIT)\n\nCopyright (c) Edgar Goetzendorff <contact@dpos.info> \n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n","_id":"@dpos-info/core-auto-refunds@1.0.0","dist":{"shasum":"3a220455e0d54a29ef77d240499db84540630550","integrity":"sha512-Gc4XM0CF7NhpvjmXP75p2Kx8DZIQHXEONnwNMk9bql2qRKOstQcsBXc4MFtPMngyGFZ2BErLzbepZyzWGLiqFA==","tarball":"https://registry.npmjs.org/@dpos-info/core-auto-refunds/-/core-auto-refunds-1.0.0.tgz","fileCount":21,"unpackedSize":16174,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAFf8cKN+PRRVG7wkUN7vJ7AkCDpL2Pd/8hnlCh7VmxuAiEAhWsCod5c0OoVo47TmXYuAbwq5IYqnu6QJPCwxHUVGEY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJicOAFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpbPQ/9GYhlh8bY0Tu+lqkly8lCGvU26F3AVQD8VTxv7M7E9G879bbP\r\nzLwkUUg401r4g5V3U+0XGu/aRX3dx0+hUweBwRNAoamzwXJzboq1rTQ/mcEf\r\nUgzIGi4r07hV5pM+xbUQ8a/Jb8zwQuFd0fmeFh9r/PdCYkkRqvtrZ2kY4KGL\r\nu3CsqPJbsN9CmVikFMIsFusIN5cGiOWqVT5OryyJskVYKULAJoK9+RPPX3ZD\r\nen7gq9ZfpjhIbv94n1H9sZFHrGmu4ZnQLaeftgk8K6Wp0hcBw0vdlL2igPKq\r\nrS6O6cqslyw1KtDy9eomgs+2HzNjMLVcJIVyxVFUxNwfrV1vjqdqqjs0lldI\r\njgJd/EcGfn8HBNOUtY6TSFkT/igLLWhq0BTQp9CF9hqwLbwGEow4P8+KVVZ6\r\nC6Awyy0CLSJtaa0SIJXJCUhfb3omVjLyyy+0p587GEpNO7AShf6uH5o5EuIP\r\njSARRvnWhQcGVKCCxnLqvOTuebBalssYkugcD7RnOEFBszYO4hcbGhF6LLpl\r\ntd48GaixIqenBzhKHrCav/x9MtGlf0LIEFuYIFdcyA1AQCBh2VKipGozXTck\r\nSJohKWPgSnC6nxc4kKf56bBxMOUiwLdJj/w0uBz+TBOS/Wi6Ed+2bS8An2Kn\r\nxwTIL1+hksvXjhm4gj2mQclfP5lmrTPMqeY=\r\n=Q5wO\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"dated","email":"hello@dated.fun"},"directories":{},"maintainers":[{"name":"dated","email":"hello@dated.fun"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/core-auto-refunds_1.0.0_1651564549407_0.40211921419757535"},"_hasShrinkwrap":false}},"time":{"created":"2022-05-03T07:55:49.362Z","1.0.0":"2022-05-03T07:55:49.581Z","modified":"2022-05-03T07:55:49.740Z"},"maintainers":[{"name":"dated","email":"hello@dated.fun"}],"description":"Automatically sends HTLC Refund transactions for expired locks","homepage":"https://github.com/dpos-info/core-auto-refunds","author":{},"license":"MIT","readme":"# Auto Refunds\n\nThis repository contains the **Auto Refunds** plugin.\n\n## Introduction\n\nExpired HTLC Locks need to be manually refunded by sending a respective HTLC Refund transaction. This plugin takes that burden off you, by refunding all matching locks it finds automatically.\n\n## Installation\n\nThe plugin can be installed by executing the following command:\n\n```sh\nark plugin:install @dpos-info/core-auto-refunds\n```\n\nEnable the plugin by adding the following entry to the `core` or `relay` section of your `app.json` file:\n\n```json\n{\n    \"package\": \"@dpos-info/core-auto-refunds\",\n    \"options\": {\n        \"enabled\": true,\n        \"passphrase\": \"passphrase\",\n        \"publicKeys\": [\"publicKey_1\", \"publicKey_2\"]\n    }\n}\n```\n\n## Configuration\n\nThe following options can be configured.\n\n### `enabled: boolean`\n\nIndicates whether the plugin should be enabled or not.\n\nDefault: `true`\n\n### `passphrase: string`\n\nThe passphrase used to sign the HTLC Refund transactions. Since the transactions are fee-less, any non-empty value can be used.\n\nDefault: `undefined`\n\n### `publicKeys: Array<string>`\n\nAn array of public keys. If defined, the plugins will send HTLC Refund transactions only for expired HTLC Locks sent by one of the public keys.\n\nDefault: `[\"*\"]`\n\n## Credits\n\n-   [All Contributors](../../contributors)\n\n## License\n\n[MIT](LICENSE) © [Edgar Goetzendorff](https://github.com/dpos-info)\n","readmeFilename":"README.md"}