{"_id":"@chugach-foundation/cypher-v3-reimbursement-lib","_rev":"5-d9d1859ac1b5f5c553229132d7c8b1d8","name":"@chugach-foundation/cypher-v3-reimbursement-lib","dist-tags":{"latest":"1.4.0"},"versions":{"1.0.0":{"name":"@chugach-foundation/cypher-v3-reimbursement-lib","license":"MIT","version":"1.0.0","scripts":{"build":"tsc","lint:fix":"prettier */*.js \"*/**/*{.js,.ts}\" -w","lint":"prettier */*.js \"*/**/*{.js,.ts}\" --check"},"dependencies":{"@chugach-foundation/cypher-client":"5.1.9","@project-serum/anchor":"^0.26.0","@solana/spl-token":"^0.3.5","@solana/web3.js":"^1.63.1"},"resolutions":{"@project-serum/anchor/@solana/web3.js":"1.63.1"},"devDependencies":{"@types/bn.js":"^5.1.0","@types/chai":"^4.3.0","@types/mocha":"^9.0.0","axios":"^1.1.3","chai":"^4.3.4","fast-csv":"^4.3.6","mocha":"^9.0.3","prettier":"^2.6.2","ts-mocha":"^10.0.0","typescript":"^4.3.5"},"gitHead":"9986a516cf278c1508587becac8c116324603374","description":"Flow","_id":"@chugach-foundation/cypher-v3-reimbursement-lib@1.0.0","_nodeVersion":"19.6.1","_npmVersion":"9.4.0","dist":{"integrity":"sha512-GMyXIidOFrtXAMvfIrae3dNtD0YdVvS9JQsauME3KrKDZcP1nK3+CZid6TWe63rI1U/SO2/eAauVebw8gNP6Mg==","shasum":"b40299b6799c8dad9096ebfeba479fadcc5b3f79","tarball":"https://registry.npmjs.org/@chugach-foundation/cypher-v3-reimbursement-lib/-/cypher-v3-reimbursement-lib-1.0.0.tgz","fileCount":42,"unpackedSize":135807,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDyIevU2yu8cC+bUjN05ewju7CHCxYDTUVd/X6RxZ2fJAiEAjdHTnpnEqRslkC0BLCYYv02MoSEIfEgs71z890JvhAw="}]},"_npmUser":{"name":"mark-at-cypher","email":"mark@offpiste.io"},"directories":{},"maintainers":[{"name":"mark-at-cypher","email":"mark@offpiste.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cypher-v3-reimbursement-lib_1.0.0_1693130691024_0.5216513803040019"},"_hasShrinkwrap":false},"1.0.1":{"name":"@chugach-foundation/cypher-v3-reimbursement-lib","license":"MIT","version":"1.0.1","scripts":{"build":"tsc","lint:fix":"prettier */*.js \"*/**/*{.js,.ts}\" -w","lint":"prettier */*.js \"*/**/*{.js,.ts}\" --check"},"dependencies":{"@chugach-foundation/cypher-client":"5.1.9","@project-serum/anchor":"^0.26.0","@solana/spl-token":"^0.3.5","@solana/web3.js":"^1.63.1"},"resolutions":{"@project-serum/anchor/@solana/web3.js":"1.63.1"},"devDependencies":{"@types/bn.js":"^5.1.0","@types/chai":"^4.3.0","@types/mocha":"^9.0.0","axios":"^1.1.3","chai":"^4.3.4","fast-csv":"^4.3.6","mocha":"^9.0.3","prettier":"^2.6.2","ts-mocha":"^10.0.0","typescript":"^4.3.5"},"description":"This repository contains code that allows users of mango v3 to receive re-imbursement after the emergency shutdown in Slot 154,889,307.","licenseText":"MIT License\n\nCopyright (c) 2022 Blockworks Foundation\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject 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,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@chugach-foundation/cypher-v3-reimbursement-lib@1.0.1","dist":{"shasum":"f90376e59b0f64ebb29a80647c77798bc50e3c68","integrity":"sha512-RzWQVknLsA6kYZPSSDvxwU6zIWZWlJaHWs5c18zWaOj+6QQzAcnbU3Dts1CihYtFYXxVZvqWRkTft1qFqL3r5A==","tarball":"https://registry.npmjs.org/@chugach-foundation/cypher-v3-reimbursement-lib/-/cypher-v3-reimbursement-lib-1.0.1.tgz","fileCount":47,"unpackedSize":148160,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAgF9emOJzTHd5Lwbz0HmizWBSDpctEeV9sqMCmrBj3GAiBQTm5vLM9S9iuFZ3l1ICOf36w4tWNkUUFJ2P+Q/f0n8A=="}]},"_npmUser":{"name":"mark-at-cypher","email":"mark@offpiste.io"},"directories":{},"maintainers":[{"name":"mark-at-cypher","email":"mark@offpiste.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cypher-v3-reimbursement-lib_1.0.1_1693287742078_0.9223136300591195"},"_hasShrinkwrap":false},"1.1.0":{"name":"@chugach-foundation/cypher-v3-reimbursement-lib","license":"MIT","version":"1.1.0","scripts":{"build":"tsc","lint:fix":"prettier */*.js \"*/**/*{.js,.ts}\" -w","lint":"prettier */*.js \"*/**/*{.js,.ts}\" --check"},"dependencies":{"@chugach-foundation/cypher-client":"5.1.9","@coral-xyz/anchor":"^0.28.0","@solana/spl-token":"^0.3.5","@solana/web3.js":"^1.63.1"},"resolutions":{"@project-serum/anchor/@solana/web3.js":"1.63.1"},"devDependencies":{"@types/bn.js":"^5.1.0","@types/chai":"^4.3.0","@types/mocha":"^9.0.0","axios":"^1.1.3","chai":"^4.3.4","fast-csv":"^4.3.6","mocha":"^9.0.3","prettier":"^2.6.2","ts-mocha":"^10.0.0","typescript":"^4.3.5"},"description":"This repository contains code that allows users of mango v3 to receive re-imbursement after the emergency shutdown in Slot 154,889,307.","licenseText":"MIT License\n\nCopyright (c) 2022 Blockworks Foundation\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject 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,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@chugach-foundation/cypher-v3-reimbursement-lib@1.1.0","dist":{"shasum":"474ea9bf58bd9992c4c207c3df49f3320034974d","integrity":"sha512-OicPkZnhV0Ol+7KqX9FKyeqqnquGLPWDhYU/hGf9EJOxRuWe999/0p5GHw3A8gblJv9yL6o54lEMh0d05FKS+A==","tarball":"https://registry.npmjs.org/@chugach-foundation/cypher-v3-reimbursement-lib/-/cypher-v3-reimbursement-lib-1.1.0.tgz","fileCount":47,"unpackedSize":148156,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCTV+PUzd2jRW634ChQeznR3wif5eYK2bAZA9UCnxUs5gIhAIA5oOh8oAzLOsdDmqp5jFAmQ7mO9DNVaeK8bH/LHlAR"}]},"_npmUser":{"name":"mark-at-cypher","email":"mark@offpiste.io"},"directories":{},"maintainers":[{"name":"mark-at-cypher","email":"mark@offpiste.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cypher-v3-reimbursement-lib_1.1.0_1693372669122_0.4995953944693279"},"_hasShrinkwrap":false},"1.2.0":{"name":"@chugach-foundation/cypher-v3-reimbursement-lib","license":"MIT","version":"1.2.0","scripts":{"build":"tsc","lint:fix":"prettier */*.js \"*/**/*{.js,.ts}\" -w","lint":"prettier */*.js \"*/**/*{.js,.ts}\" --check"},"dependencies":{"@chugach-foundation/cypher-client":"5.1.9","@coral-xyz/anchor":"^0.28.1-beta.2","@solana/spl-token":"^0.3.5","@solana/web3.js":"^1.63.1"},"resolutions":{"@project-serum/anchor/@solana/web3.js":"1.63.1"},"devDependencies":{"@types/bn.js":"^5.1.0","@types/chai":"^4.3.0","@types/mocha":"^9.0.0","axios":"^1.1.3","chai":"^4.3.4","fast-csv":"^4.3.6","mocha":"^9.0.3","prettier":"^2.6.2","ts-mocha":"^10.0.0","typescript":"^4.3.5"},"description":"This repository contains code that allows users of mango v3 to receive re-imbursement after the emergency shutdown in Slot 154,889,307.","licenseText":"MIT License\n\nCopyright (c) 2022 Blockworks Foundation\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject 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,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@chugach-foundation/cypher-v3-reimbursement-lib@1.2.0","dist":{"shasum":"b920d3f2dd88e96d544dd0353a233f2eab8192e2","integrity":"sha512-GU2eP7pwaHM/Xr19icpGeailE2dc9VOx/CKYm6FSG3BbgGBHeB/7Tz2Zjrz4/L5yxjRwW1ELUc51wKXZffhuag==","tarball":"https://registry.npmjs.org/@chugach-foundation/cypher-v3-reimbursement-lib/-/cypher-v3-reimbursement-lib-1.2.0.tgz","fileCount":47,"unpackedSize":148163,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCUKjSPyszfnunIBEPVdVhmbV693pGJD4lWrOo9722STQIgStqE6XoFCNI2Mlsg5cPRrs+wH1BuU//+FXLtN2mB+7s="}]},"_npmUser":{"name":"mark-at-cypher","email":"mark@offpiste.io"},"directories":{},"maintainers":[{"name":"mark-at-cypher","email":"mark@offpiste.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cypher-v3-reimbursement-lib_1.2.0_1693641549179_0.221852918134809"},"_hasShrinkwrap":false},"1.3.0":{"name":"@chugach-foundation/cypher-v3-reimbursement-lib","license":"MIT","version":"1.3.0","scripts":{"build":"tsc","lint:fix":"prettier */*.js \"*/**/*{.js,.ts}\" -w","lint":"prettier */*.js \"*/**/*{.js,.ts}\" --check"},"dependencies":{"@chugach-foundation/cypher-client":"5.1.9","@coral-xyz/anchor":"^0.28.1-beta.2","@solana/spl-token":"^0.3.5","@solana/web3.js":"^1.63.1"},"resolutions":{"@project-serum/anchor/@solana/web3.js":"1.63.1"},"devDependencies":{"@types/bn.js":"^5.1.0","@types/chai":"^4.3.0","@types/mocha":"^9.0.0","axios":"^1.1.3","chai":"^4.3.4","fast-csv":"^4.3.6","mocha":"^9.0.3","prettier":"^2.6.2","ts-mocha":"^10.0.0","typescript":"^4.3.5"},"description":"This repository contains code that allows users of mango v3 to receive re-imbursement after the emergency shutdown in Slot 154,889,307.","licenseText":"MIT License\n\nCopyright (c) 2022 Blockworks Foundation\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject 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,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@chugach-foundation/cypher-v3-reimbursement-lib@1.3.0","dist":{"shasum":"21f629e38606eaea25063708012ffbf91e98a747","integrity":"sha512-8/zP1q1K8MD/1UWztyW5JmXdO0T1Afbfo1j2pfBQzTKCTItwY885nfbnlb0Epu62VlVYRXZYrys3BVK/erYdIw==","tarball":"https://registry.npmjs.org/@chugach-foundation/cypher-v3-reimbursement-lib/-/cypher-v3-reimbursement-lib-1.3.0.tgz","fileCount":47,"unpackedSize":148164,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD/myBZddRdzXnDZOo7TWZWUjlLlHz+UPLgDZ+JY2mV8wIgERAy99LCCVCJU9Z1teRNszXhi88XF8LJbTuGCw86Mnw="}]},"_npmUser":{"name":"mark-at-cypher","email":"mark@offpiste.io"},"directories":{},"maintainers":[{"name":"mark-at-cypher","email":"mark@offpiste.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cypher-v3-reimbursement-lib_1.3.0_1693681268671_0.7557597269784067"},"_hasShrinkwrap":false},"1.4.0":{"name":"@chugach-foundation/cypher-v3-reimbursement-lib","license":"MIT","version":"1.4.0","scripts":{"build":"tsc","lint:fix":"prettier */*.js \"*/**/*{.js,.ts}\" -w","lint":"prettier */*.js \"*/**/*{.js,.ts}\" --check"},"dependencies":{"@chugach-foundation/cypher-client":"5.1.9","@coral-xyz/anchor":"^0.28.1-beta.2","@solana/spl-token":"^0.3.5","@solana/web3.js":"^1.63.1"},"resolutions":{"@project-serum/anchor/@solana/web3.js":"1.63.1"},"devDependencies":{"@types/bn.js":"^5.1.0","@types/chai":"^4.3.0","@types/mocha":"^9.0.0","axios":"^1.1.3","chai":"^4.3.4","fast-csv":"^4.3.6","mocha":"^9.0.3","prettier":"^2.6.2","ts-mocha":"^10.0.0","typescript":"^4.3.5"},"description":"This repository contains code that allows users of mango v3 to receive re-imbursement after the emergency shutdown in Slot 154,889,307.","licenseText":"MIT License\n\nCopyright (c) 2022 Blockworks Foundation\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject 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,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@chugach-foundation/cypher-v3-reimbursement-lib@1.4.0","dist":{"shasum":"c28456c4290016dce3c5a27e209038d64924edd9","integrity":"sha512-4tu4Zcywpwc/AHQZJJvgrletXAegXsGIRaRBCOqBbNCRHu3hmxHVOCw6BKUoCh45LRwiqGadGodpDBtJR6QAWQ==","tarball":"https://registry.npmjs.org/@chugach-foundation/cypher-v3-reimbursement-lib/-/cypher-v3-reimbursement-lib-1.4.0.tgz","fileCount":47,"unpackedSize":148108,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCYticwuqfnPzg4zPj2l81bb693u7bVM6Ajd+tLtaLJqQIgNF11v9sFwBf2mTcHCLb/vflV6SAvt//7QTzanyPToo4="}]},"_npmUser":{"name":"mark-at-cypher","email":"mark@offpiste.io"},"directories":{},"maintainers":[{"name":"mark-at-cypher","email":"mark@offpiste.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cypher-v3-reimbursement-lib_1.4.0_1693682064327_0.9222768310152738"},"_hasShrinkwrap":false}},"time":{"created":"2023-08-27T10:04:50.913Z","1.0.0":"2023-08-27T10:04:51.252Z","modified":"2023-09-02T19:14:24.730Z","1.0.1":"2023-08-29T05:42:22.275Z","1.1.0":"2023-08-30T05:17:49.305Z","1.2.0":"2023-09-02T07:59:09.337Z","1.3.0":"2023-09-02T19:01:08.875Z","1.4.0":"2023-09-02T19:14:24.534Z"},"maintainers":[{"name":"mark-at-cypher","email":"mark@offpiste.io"}],"description":"This repository contains code that allows users of mango v3 to receive re-imbursement after the emergency shutdown in Slot 154,889,307.","license":"MIT","readme":"Flow\n\n- Write to table\n- Create group\n- Create vaults\n- Token Transfer to vaults outside the context of the program\n- UI creates Reimbursement account\n- UI packs tx with ixs which contain\n  - create token account OR a create idempotent ATA\n  - reimburse to above token account OR ATA\n\n# mango-v3-reimbursement\n\nThis repository contains code that allows users of mango v3 to receive re-imbursement after the emergency shutdown in Slot 154,889,307.\n\n## Deployment\n\nFirst calculate the re-imbursement from a recent solana snapshot, we used Slot 154,856,403:\n\n- download the [solana snapshot](https://drive.google.com/file/d/1nYJjW0n2pSpAOwf7kUR_p-Cj2PpS3kcn/view?usp=sharing)\n- download the [deposits & withdrawals](https://docs.google.com/spreadsheets/d/1DwtllQeCw3j9-DjNFgxSk_Gl_L8405W9ExjeqvKVjds/edit#gid=0) since snapshot as tsv\n- compile [PR #208 on mango-v3](https://github.com/blockworks-foundation/mango-v3/pull/208) and the following two commands to generate a csv as well as a binary buffer\n\n```\ncargo run --bin cli equity-from-snapshot \\\n--snapshot snapshot-154856403-HJj8oytGGRnbUoFdojewzBWB3FrTBaTJdx1v4g63oUWc.sqlite \\\n--late-changes deposits_withdraws.tsv \\\n--program mv3ekLzLbnVPNxjSKvqBpU3ZeZXPQdEC3bp5MDEBG68 \\\n--group 98pjRuQjK3qA6gXts96PqZT4Ze5QmnCmt3QYjhbUSPue \\\n--outtype csv --outfile reimbursement.csv\n\ncargo run --bin cli equity-from-snapshot \\\n--snapshot snapshot-154856403-HJj8oytGGRnbUoFdojewzBWB3FrTBaTJdx1v4g63oUWc.sqlite \\\n--late-changes deposits_withdraws.tsv \\\n--program mv3ekLzLbnVPNxjSKvqBpU3ZeZXPQdEC3bp5MDEBG68 \\\n--group 98pjRuQjK3qA6gXts96PqZT4Ze5QmnCmt3QYjhbUSPue \\\n--outtype bin --outfile reimbursement.bin\n```\n","readmeFilename":"README.md"}