{"id":13721274,"url":"https://github.com/ariady-putra/morbid","last_synced_at":"2025-05-07T13:32:09.989Z","repository":{"id":58104120,"uuid":"527897741","full_name":"ariady-putra/morbid","owner":"ariady-putra","description":"Davy Jones' Locker","archived":false,"fork":false,"pushed_at":"2024-12-19T08:02:09.000Z","size":1539,"stargazers_count":17,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-19T09:19:07.319Z","etag":null,"topics":["aiken","dapp","haskell","offchain","onchain","playground","plutus","smart-contract"],"latest_commit_sha":null,"homepage":"https://ariady-putra.github.io/morbid/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ariady-putra.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-23T08:23:43.000Z","updated_at":"2024-12-19T08:02:06.000Z","dependencies_parsed_at":"2024-01-06T01:07:53.463Z","dependency_job_id":"58f4b31a-b0dc-4328-a671-24e5a1bae505","html_url":"https://github.com/ariady-putra/morbid","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ariady-putra%2Fmorbid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ariady-putra%2Fmorbid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ariady-putra%2Fmorbid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ariady-putra%2Fmorbid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ariady-putra","download_url":"https://codeload.github.com/ariady-putra/morbid/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252886582,"owners_count":21819739,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aiken","dapp","haskell","offchain","onchain","playground","plutus","smart-contract"],"created_at":"2024-08-03T01:01:14.870Z","updated_at":"2025-05-07T13:32:09.545Z","avatar_url":"https://github.com/ariady-putra.png","language":"TypeScript","funding_links":[],"categories":["Dapps"],"sub_categories":[],"readme":"# Davy Jones' Locker\n\n\u003e [!IMPORTANT]\n\u003e The offchain is likely to fail after Conway era (Chang hardfork).\n\u003e A fix will be delivered some time later after the storm subsides.\n\u003e Or probably a new and better front-end will be developed instead.\n\n\u003cbr/\u003e\u003cdiv align=\"center\"\u003e\n  \u003e_Fifteen men on the dead man's chest—_\u003cbr/\u003e\n  \u003e_...Yo-ho-ho, and a bottle of rum!_\u003cbr/\u003e\n  \u003e_Drink and the devil had done for the rest—_\u003cbr/\u003e\n  \u003e_...Yo-ho-ho, and a bottle of rum!_\u003cbr/\u003e\n\u003c/div\u003e\u003cbr/\u003e\n\nThis is a dead-man's switch contract where you can:\n- Create Chest\n- Add Treasure\n- Delay Unlock\n- Unlock Chest\n- Resend Chest\n\n## Create Chest\nMints `ChestLock` and `ChestKey`(s), a new address will be generated. Send `ChestLock`\nwhile depositing initial assets. Keep `ChestKey` token(s) in your wallet, you will need\nto show it when `DelayUnlock`.\n\nGive access for delaying the chest unlocking deadline to anyone by sending them the\n`ChestKey` token.\n\n## Add Treasure\nAnyone can deposit more assets to the chest. Don't forget to include an arbitrary inline\ndatum to be redeemable.\n\n## Delay Unlock\nShow the matching `ChestKey` token to postpone the chest unlocking deadline.\n\n## Unlock Chest\nRedeem all assets from the chest when the deadline has passed. You will also receive the\n`ChestLock` NFT.\n\n## Resend Chest\nResend `ChestLock` to the chest address. Similar to `CreateChest` but it is done by\nthe chest unlocker. There is no real benefit to do this, but it's possible.\n\n---\n\n### Chest Address Sample\n\nUpdated for [aiken v1.0.14-alpha](https://github.com/aiken-lang/aiken/releases/tag/v1.0.14-alpha):\n```\naddr_test1wze6hmn8spj3lcqrckjmytms0uwm4830zjvdwzqsyrzlusqfhsyck\n```\n\nView it in action on\n[CExplorer](https://preview.cexplorer.io/address/addr_test1wze6hmn8spj3lcqrckjmytms0uwm4830zjvdwzqsyrzlusqfhsyck/tx#data).\n\n#### Timeline\n\n- **Create Chest**\u003cbr/\u003e\n  `https://preview.cexplorer.io/tx/218c1cb8564e1223202b7116d9897d955e493f44776d93b826e698c768a8b1c6`\n\u003cbr/\u003eMints **2 ChestKey** tokens. Sends some arbitrary tokens as well.\n\n- **Add Treasure**\u003cbr/\u003e\n  `https://preview.cexplorer.io/tx/9db99e7b49963bb5f63fbac80030c916b3a8a14e2b829e50cf87555d4f565aa2`\n\u003cbr/\u003ePut an arbitrary **inline datum** and send some arbitrary tokens.\n\n- **Delay Unlock**\u003cbr/\u003e\n  `https://preview.cexplorer.io/tx/0970f113f9004b184b72ac25533a5900360252b58d6a9c9b8af5a6245fb470f5`\n\u003cbr/\u003ePostpone chest unlocking deadline.\n\n- **Unlock Chest**\u003cbr/\u003e\n  `https://preview.cexplorer.io/tx/ca73a798869583209fe6330519710138bd05b9bdbdca2511442e22f1e18d2709`\n\u003cbr/\u003eRedeem all assets including **ChestLock** NFT (named as **Dead Man's Chest**) from the chest.\n\n- **Resend Chest**\u003cbr/\u003e\n  `https://preview.cexplorer.io/tx/10eead16236bb0c0d7fa1dae9d4c03dffdd8d927f89201449c8dd4f286035da3`\n\u003cbr/\u003eResend **ChestLock** to the chest address and some arbitrary tokens.\n\n- **Share Access**\u003cbr/\u003e\n  `https://preview.cexplorer.io/tx/b3b9c8d961120f9f7cf173884938877146b641612c5d2bd9c0c14a5f7e21b19b`\n\u003cbr/\u003eShare **1 ChestKey** token to another address.\n\n- **Delay Unlock** (by another address)\u003cbr/\u003e\n  `https://preview.cexplorer.io/tx/f0082d9e75fae24ec0c7ff8668ce4ed7206385afe01d13e215ef80c832dac2d5`\n\u003cbr/\u003eUsing the shared **ChestKey** token.\n\n---\n\n\u003cbr/\u003e\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"https://images5.alphacoders.com/641/641119.jpg\"/\u003e\n  \u003e_But one man of her crew alive,_\u003cbr/\u003e\n  \u003e_What put to sea with seventy-five._\u003cbr/\u003e\n\u003c/div\u003e\u003cbr/\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fariady-putra%2Fmorbid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fariady-putra%2Fmorbid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fariady-putra%2Fmorbid/lists"}