{"_id":"@midas-capital/sdk","_rev":"105-6bc6df86372fa7d20f306697b92562bd","name":"@midas-capital/sdk","dist-tags":{"beta":"0.6.9","latest":"0.6.4","preview":"0.1.4"},"versions":{"0.1.3-beta.1":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/contracts.git"},"version":"0.1.3-beta.1","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"Main repository for Midas Capital's contracts and SDK for interacting with those.","main":"./lib/cjs/src/index.js","module":"./lib/esm/src/index.js","scripts":{"test":"hardhat test","export":"hardhat export --export-all ./deployments.json","build":"npm run build:contracts && npm run build:sdk && npm run build:cjs","build:sdk":"tsc -p tsconfig-sdk.json","build:cjs":"tsc -p tsconfig-cjs.json","build:contracts":"hardhat compile","postinstall":"npm run build","clean":"rm -rf lib"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.11","@nomiclabs/hardhat-waffle":"^2.0.1","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/hardhat":"^3.0.0","@types/chai":"^4.3.0","@types/mocha":"^9.0.0","@types/node":"^16.11.12","bufferutil":"^4.0.6","bad-words":"^3.0.4","chai":"^4.3.4","dotenv":"^10.0.0","ethereum-waffle":"^3.4.0","ethers":"^5.5.3","hardhat":"^2.7.0","hardhat-deploy":"^0.9.14","ts-node":"^10.4.0","typechain":"^6.0.5","typescript":"^4.5.2","utf-8-validate":"^5.0.8"},"dependencies":{"@openzeppelin/contracts-upgradeable":"^3.4.2","@types/bad-words":"^3.0.1","@uniswap/v3-core":"^1.0.0","@uniswap/v3-periphery":"github:Uniswap/uniswap-v3-periphery#pull/96/head"},"types":"./lib/cjs/src/index.d.ts","gitHead":"926a73fd66e5e27e2552ee2610a191e18b43be22","bugs":{"url":"https://github.com/midas-protocol/contracts/issues"},"homepage":"https://github.com/midas-protocol/contracts#readme","_id":"@midas-capital/sdk@0.1.3-beta.1","_nodeVersion":"16.13.2","_npmVersion":"8.1.2","dist":{"integrity":"sha512-Z/H5cGY7xHM9YW5UqWGqV8CuoT+g5blgjg+PYzZ6LqA2nVaZsirkxXM7+BCadhCEv60JEAnieca2OEiROCC/0A==","shasum":"8fe0c94d926f7e770feac48d92824f7dd989433e","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.1.3-beta.1.tgz","fileCount":490,"unpackedSize":63316201,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh7EI4CRA9TVsSAnZWagAATicP/2dUM+1oPNVM3wRm6O2g\nauSPUY+5P7blOWxaDZPsTxrNZe40lwdBxtZAPqFBR/ATcOPZySLbA7LaoL1C\n+6IMD6Dw3GvQAtdKPrq7HZ7rZI53U2zHnEEOtNvshXDruAtdxbx1D1kK1rb5\nIG50/8JDjE/D2mvsKH0p36Zg09hpAhLKdvDEZ9a4bgT2ohqTO8rIm/6uaYfS\nMxLCAVt3QqY+Bc8LaG7vPhno9zRq+LFrst6qVKAZbdsIT2h4HAqGmmaNZV+j\nIAyIUXhyyzZ6PWAgn+g18PNUTp/fmRMt3YDhZpa8HLHioeGirVSyN0TVo3O1\n1CnyuXQz/5bpV65Nz4EIfA3jAv5ZQrWdHbMXByW2pszbKadWOgC/sOI7s1Us\ndpZ98NMdA66TiMBEsfqgfd/UYb/JGQIBjgmgZ/+aXazhvIvH9AW7zJlTSp17\nedQqssedS1rtlwiGHj/nKzbIMTl+C6/pVuFwm3hqEjNvWfX8A3GACAXDoKiZ\nZ2yU/vgmuWPZ2/o5IwbbDC+Odcy0hluodn4gV5yC/si4EuQDFzfTJcFXjpwv\n9NO4m5J5/CNVjvsrXZH1P7XIvkJfywxyDucBQJMsG600FRQ0oBBiDLDWqQff\nOAFtK7ti5yOnlJxGKDA6FnE7dNJpQeX2vwaZQ6USnjetZIoKEZtt9o7W+tSA\nklgn\r\n=AB/d\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEkxNotjvUcOTNfd7QnOghGndASlHPi6xTQTnHobQHb6AiBw8n6Wwe5rbCCALNnNRNlHi79r1ti6RZU8/gNQUxy+8g=="}]},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.1.3-beta.1_1642873399913_0.30365057782702487"},"_hasShrinkwrap":false},"0.1.3-beta.2":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/contracts.git"},"version":"0.1.3-beta.2","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"Main repository for Midas Capital's contracts and SDK for interacting with those.","main":"./lib/cjs/src/index.js","module":"./lib/esm/src/index.js","scripts":{"test":"hardhat test","export":"hardhat export --export-all ./deployments.json","build":"npm run build:contracts && npm run build:sdk && npm run build:cjs","build:sdk":"tsc -p tsconfig-sdk.json","build:cjs":"tsc -p tsconfig-cjs.json","build:contracts":"hardhat compile","clean":"rm -rf lib"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.11","@nomiclabs/hardhat-waffle":"^2.0.1","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/hardhat":"^3.0.0","@types/chai":"^4.3.0","@types/mocha":"^9.0.0","@types/node":"^16.11.12","bufferutil":"^4.0.6","bad-words":"^3.0.4","chai":"^4.3.4","dotenv":"^10.0.0","ethereum-waffle":"^3.4.0","ethers":"^5.5.3","hardhat":"^2.7.0","hardhat-deploy":"^0.9.14","ts-node":"^10.4.0","typechain":"^6.0.5","typescript":"^4.5.2","utf-8-validate":"^5.0.8"},"dependencies":{"@openzeppelin/contracts-upgradeable":"^3.4.2","@types/bad-words":"^3.0.1","@uniswap/v3-core":"^1.0.0","@uniswap/v3-periphery":"github:Uniswap/uniswap-v3-periphery#pull/96/head"},"types":"./lib/cjs/src/index.d.ts","readme":"# Contracts\n\nMain repository for Midas Capital's contracts and SDK for interacting with those. \n\n## Structure\n```text\n ┌── README.md                        <- The top-level README \n ├── .github/workflows/TestSuite.yaml <- CICD pipeline definition\n ├── .vscode                          <- IDE configs\n │          \n │── artifacts                        <- (Auto-generated, git ignored)\n │       └── contracts                \n │                  ├── compound      <- Compiled contracts mirroring /contracts      \n │                  ├── external               \n │                  └──  ...      \n │\n ├── contracts                         <- All of our contracts\n │          ├── compound               <- Compound interfaces      \n │          ├── external               <- External contracts we require\n │          ├── oracles                <- Oracle contracts\n │          ├── utils                  <- Utility contracts \n │          └──  ...                   <- Main Fuse contracts\n │\n ├── deploy                           <- hardhat deployment scripts\n ├── deployments                      <- hardhat-generated deployment files\n ├── scripts                          <- hardhat scripts\n ├── src                              <- midas-sdk main folder\n ├── deployments.json                 <- generated on \"npx hardhat export\"\n └── hardhat.config.ts                <- hardhat confing\n```\n\n## Dev Workflow\n\n0. Install dependencies\n\n```text\n>>> npm install\n```\n\n2. To develop against the SDK, artifacts and deployment files must be generated first, as they are used by the SDK:\n\n```text\n>>> npx hardhat node \n# in another console\n>>>> npm run export\n```\n\n3. Build the sdk\n\n```text\n>>> npm run build\n```\n\n4. Run tests\n\n```shell\n# must have the local hardhat node running in another shell\n>>> npx hardhat test --network localhost\n```\n","readmeFilename":"README.md","gitHead":"4ae011a7ec6a305a08540b84e14e05294404d348","bugs":{"url":"https://github.com/midas-protocol/contracts/issues"},"homepage":"https://github.com/midas-protocol/contracts#readme","_id":"@midas-capital/sdk@0.1.3-beta.2","_nodeVersion":"16.13.2","_npmVersion":"8.1.2","dist":{"integrity":"sha512-bZZFcRBz+byFQuY5wRccYsQqRgOdiX8/BofHK+J5Y2jBRWKRs+V5qSwslTKJr332J17xMCnndzM0Q70bFq+fSg==","shasum":"bdf5bceae8490f158011c186e1fb549d474a0bba","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.1.3-beta.2.tgz","fileCount":490,"unpackedSize":63316165,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh7RjfCRA9TVsSAnZWagAA5wYP/2kWlxDKHa5sF3np3iZv\nyNwui3SpzlQ78dVsddgGG9Ow9tyuFLoXJNEjkk9w2a0yo15XgwKm8yHYkj/x\nL//jjxM9yyEqnGCNWmNyL7Fn1PFaAzsSpV8luh2oUxPPL6IWsLFdXqXPzIpH\nUlcUoM9y33E+MkT5iD/3PBV8cnffeqt7XUK1jLA86KGIYgvJcJaa5fTR0Qyg\n1YW8dxVPu/mP7OvKAh+pkl0A6G7xTpGNqAw51KyN9eK98v10CPPKSY1cG2GO\nARgfszHuAgjIivjN3SprBDjh12jBsKEp4ybUHYnOTDdvVQP6VuPNjo00GTy+\nb6OO31EahjBGGK1ERBzCKxAtvAMQsfe9R6ujXeUIo+LPZcKrDPlxJZoRIeAU\npp4dh+FeIYuL2IxOhZp9MDIR0FY3lumjY3jpSVBrZ+3fIJpjXiaJkBpjOKO5\nDYnYCtaAJAOIaP3wT2xgp4Ql667Yaj3IdC3iXI7gXhEd1A5usZPlpHxW2nY7\nG7PJHaZTk0McbcoivmirN9GdWwqr5JRlzjzBjzXl4GT/STHBIHTSlcAnP0NG\nAEAPtxY33wvF515HXiMzVVbhxRpDLhw+M9+JhoapuRgeZPJdBhnuJuZfO/Re\nw1bxD2nmVcV8T6KxkxdY5baBgYOOSJK8/M30gslzg4UmUvUerqC3krihvEm4\nsugj\r\n=cHFm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG2Bi4j8Om4MyAbtLi/+daTkvMXL2QAoiagLjNeqy1KuAiB+UWfZ7t9f8bVYwW855hMQIkl7OOc6HuNIhA/r4xvpcQ=="}]},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.1.3-beta.2_1642928351149_0.8089628747285531"},"_hasShrinkwrap":false},"0.1.3-beta.3":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/contracts.git"},"version":"0.1.3-beta.3","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"Main repository for Midas Capital's contracts and SDK for interacting with those.","main":"./lib/cjs/src/index.js","module":"./lib/esm/src/index.js","scripts":{"test":"hardhat test","export":"hardhat export --export-all ./deployments.json","build":"npm run build:contracts && npm run build:sdk && npm run build:cjs","build:sdk":"tsc -p tsconfig-sdk.json","build:cjs":"tsc -p tsconfig-cjs.json","build:contracts":"hardhat compile","clean":"rm -rf lib"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.11","@nomiclabs/hardhat-waffle":"^2.0.1","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/hardhat":"^3.0.0","@types/chai":"^4.3.0","@types/mocha":"^9.0.0","@types/node":"^16.11.12","bufferutil":"^4.0.6","bad-words":"^3.0.4","chai":"^4.3.4","dotenv":"^10.0.0","ethereum-waffle":"^3.4.0","ethers":"^5.5.3","hardhat":"^2.7.0","hardhat-deploy":"^0.9.14","ts-node":"^10.4.0","typechain":"^6.0.5","typescript":"^4.5.2","utf-8-validate":"^5.0.8"},"dependencies":{"@openzeppelin/contracts-upgradeable":"^3.4.2","@types/bad-words":"^3.0.1","@uniswap/v3-core":"^1.0.0","@uniswap/v3-periphery":"github:Uniswap/uniswap-v3-periphery#pull/96/head"},"types":"./lib/cjs/src/index.d.ts","readme":"# Contracts\n\nMain repository for Midas Capital's contracts and SDK for interacting with those. \n\n## Structure\n```text\n ┌── README.md                        <- The top-level README \n ├── .github/workflows/TestSuite.yaml <- CICD pipeline definition\n ├── .vscode                          <- IDE configs\n │          \n │── artifacts                        <- (Auto-generated, git ignored)\n │       └── contracts                \n │                  ├── compound      <- Compiled contracts mirroring /contracts      \n │                  ├── external               \n │                  └──  ...      \n │\n ├── contracts                         <- All of our contracts\n │          ├── compound               <- Compound interfaces      \n │          ├── external               <- External contracts we require\n │          ├── oracles                <- Oracle contracts\n │          ├── utils                  <- Utility contracts \n │          └──  ...                   <- Main Fuse contracts\n │\n ├── deploy                           <- hardhat deployment scripts\n ├── deployments                      <- hardhat-generated deployment files\n ├── scripts                          <- hardhat scripts\n ├── src                              <- midas-sdk main folder\n ├── deployments.json                 <- generated on \"npx hardhat export\"\n └── hardhat.config.ts                <- hardhat confing\n```\n\n## Dev Workflow\n\n0. Install dependencies\n\n```text\n>>> npm install\n```\n\n2. To develop against the SDK, artifacts and deployment files must be generated first, as they are used by the SDK:\n\n```text\n>>> npx hardhat node \n# in another console\n>>>> npm run export\n```\n\n3. Build the sdk\n\n```text\n>>> npm run build\n```\n\n4. Run tests\n\n```shell\n# must have the local hardhat node running in another shell\n>>> npx hardhat test --network localhost\n```\n","readmeFilename":"README.md","gitHead":"96e3d8d67264de9d9d8028331c7a9bf40157f0fa","bugs":{"url":"https://github.com/midas-protocol/contracts/issues"},"homepage":"https://github.com/midas-protocol/contracts#readme","_id":"@midas-capital/sdk@0.1.3-beta.3","_nodeVersion":"16.13.2","_npmVersion":"8.1.2","dist":{"integrity":"sha512-fAgsBV3+oAR82lhUQwjnlWeagjh6w9lu60JqhzGveKa7ylqrqoVmlxVGmI2GenjzaaBnQdgnZ9o8ouUikPp0TA==","shasum":"42eed949fc142cbdc3d4b5f14e6e5e7afa00f782","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.1.3-beta.3.tgz","fileCount":490,"unpackedSize":63316165,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh7S5ICRA9TVsSAnZWagAA7WsQAJUU5/umZ82kZWCZl47H\naBEk/uPy+y7YaqtYcPkWs7DUL3N1TdRpv7Z6/5kdTTvS40GQAr6o4QEOqL5m\nCH6ZH2KtU/1xY+JcWTADxLpWlU7ZBUIfaT5nUr6oBa4+r7F9TL/QmNgW22uJ\npBUedQqKMlaFUzaM3+zIuqnoMpeb+mHd0D/h7YrOAzBCCj3/ulLPgPwTO8s9\nn+vniYLSpznCfsDcFbrU7CuOvRwFDwfTDL7gTaNfHxhpqwvQjbWcLHbzU/+w\n91ba6YxWzyWloVSK12j2a5rbfeJ7ml+6jq8CpBos0Tjl41iECPi/vLqnpOxP\ntYfFTe5+MoQE5TlCa1P43a2SYvG+iX2vZbBatAfEmeu+yzF95n/3ZQXgGTBu\nBowu2v+e3zphQPh/kN4JPYKLWT50iYN4hcTSv0p9M8Ku46r2POxa8DGGHEzj\no8y+DOOwzWRTDDIE7Mohl1zbBxnqop/npSqTpQI6TnEt9wFaq08WEAzktWit\nFNVSbZ4LxVxqTuRmbaRnAWMXf4UZaoeCf/svIWXwgjH2OkIbiaA5kZWgB7IN\ncjeW6iFVJx0PD76LkTWrryk5dx6EcqSaxTf1tRUFYyYwco4ATc7JcpDkJAZs\n3FMMtpvzNgnZrQA9JmLEjDQaUMEw9CLeMDcLRA3yLrOOE2SQEjNy8bhgZBJC\n000P\r\n=MoYd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEC0nBt+aoVvLEwLiw6m/aPNcv5SuSQklPLqckGDPZsxAiBz3ixSQGCXCl0VvsEsRMG6D9TgLPQXLaBs61q/M84RWQ=="}]},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.1.3-beta.3_1642933832109_0.9592227104121489"},"_hasShrinkwrap":false},"0.1.3-beta.4":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/contracts.git"},"version":"0.1.3-beta.4","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"Main repository for Midas Capital's contracts and SDK for interacting with those.","main":"./lib/cjs/src/index.js","module":"./lib/esm/src/index.js","scripts":{"test":"hardhat test","export":"hardhat export --export-all ./deployments.json","build":"npm run build:contracts && npm run build:sdk && npm run build:cjs","build:sdk":"tsc -p tsconfig-sdk.json","build:cjs":"tsc -p tsconfig-cjs.json","build:contracts":"hardhat compile","clean":"rm -rf lib"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.11","@nomiclabs/hardhat-waffle":"^2.0.1","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/hardhat":"^3.0.0","@types/chai":"^4.3.0","@types/mocha":"^9.0.0","@types/node":"^16.11.12","bufferutil":"^4.0.6","chai":"^4.3.4","dotenv":"^10.0.0","ethereum-waffle":"^3.4.0","ethers":"^5.5.3","hardhat":"^2.7.0","hardhat-deploy":"^0.9.14","ts-node":"^10.4.0","typechain":"^6.0.5","typescript":"^4.5.2","utf-8-validate":"^5.0.8"},"dependencies":{"@openzeppelin/contracts-upgradeable":"^3.4.2","bad-words":"^3.0.4","@types/bad-words":"^3.0.1","@uniswap/v3-core":"^1.0.0","@uniswap/v3-periphery":"github:Uniswap/uniswap-v3-periphery#pull/96/head"},"types":"./lib/cjs/src/index.d.ts","readme":"# Contracts\n\nMain repository for Midas Capital's contracts and SDK for interacting with those. \n\n## Structure\n```text\n ┌── README.md                        <- The top-level README \n ├── .github/workflows/TestSuite.yaml <- CICD pipeline definition\n ├── .vscode                          <- IDE configs\n │          \n │── artifacts                        <- (Auto-generated, git ignored)\n │       └── contracts                \n │                  ├── compound      <- Compiled contracts mirroring /contracts      \n │                  ├── external               \n │                  └──  ...      \n │\n ├── contracts                         <- All of our contracts\n │          ├── compound               <- Compound interfaces      \n │          ├── external               <- External contracts we require\n │          ├── oracles                <- Oracle contracts\n │          ├── utils                  <- Utility contracts \n │          └──  ...                   <- Main Fuse contracts\n │\n ├── deploy                           <- hardhat deployment scripts\n ├── deployments                      <- hardhat-generated deployment files\n ├── scripts                          <- hardhat scripts\n ├── src                              <- midas-sdk main folder\n ├── deployments.json                 <- generated on \"npx hardhat export\"\n └── hardhat.config.ts                <- hardhat confing\n```\n\n## Dev Workflow\n\n0. Install dependencies\n\n```text\n>>> npm install\n```\n\n2. To develop against the SDK, artifacts and deployment files must be generated first, as they are used by the SDK:\n\n```text\n>>> npx hardhat node \n# in another console\n>>>> npm run export\n```\n\n3. Build the sdk\n\n```text\n>>> npm run build\n```\n\n4. Run tests\n\n```shell\n# must have the local hardhat node running in another shell\n>>> npx hardhat test --network localhost\n```\n","readmeFilename":"README.md","gitHead":"465263f147d29c51a2b9e04096d26c7b07f10773","bugs":{"url":"https://github.com/midas-protocol/contracts/issues"},"homepage":"https://github.com/midas-protocol/contracts#readme","_id":"@midas-capital/sdk@0.1.3-beta.4","_nodeVersion":"16.13.2","_npmVersion":"8.1.2","dist":{"integrity":"sha512-xXeM1q8ffGUv9I0IIdDe4XAvxrjL/7ok+jN077vgVxltvem+D0dlnAPLi/m03AmAoCZ33QU9/cywh8cfPhO01g==","shasum":"3fcb451ba5388ae86c765dbfa10ee0f3ed8c892f","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.1.3-beta.4.tgz","fileCount":490,"unpackedSize":63316165,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh7TD6CRA9TVsSAnZWagAAPAwP/0D8/ucNz+vrv4oAnKHc\nYHHIux2ZvY9DGtwuQv5sdgc35/ViHtSxF/2H5fSfar3+o6DG2ZYq6e+fAFCG\npQr6R7S1dAWJhFwCCg3fWE9XJ49hPVxF4uJi7LRuiigu1RoA7Lc+Kpyact2X\nBaq6YdY/r85K+AhAPae7NIcQuXZzasdcvJEBMn5H48XahKdf0NtLOFp2+GQ3\n6GPZppfbrXT83917tUqqbi3BC265ROsqSsKV9z9aHp4gy1Eg2SwO6UfyYFYE\nr2hSoKw1PnuJmx0Er4GHiOfCS43y1dV17GwF1Xp0uXGD0GrPY6LMFjmLJXgs\nKciwYtJo4aIrnx7jdsMzpQ9tzV5ARdfOICpl1n1ZN2zRwtXnWEsrBv+doJx+\nAoLfXJ9Ooty6jMiJJqtsVR76DI0Wm+KUJnv6V3MQJt9TMtTQX8GZoShbO7jw\nEAq2hoLYkgdOZe06fUCNwNOucW9myyjS6TzTO/2VXJep0oUA0lKXasqptuvR\nm7sLTXQMHk2OIK4iThjv32s0L3Jp04t/9TxoodptvKSFaxaf/qT+lrmQnPsm\nopa3YuY2mjD6Y+kwc2zff91ed+iMaygVZcs31Q5Vu1UFpFh0enhUoK2jGGmr\nerrbdMdcUibuxT3YdQpiTx7mihXsFF8c47v6kKdxJn0iK7xs7cmGiCrvYU5e\nxLeG\r\n=jzhU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDj2CfXWS3eAb8lt0g6Bdvp+UoEkWBkq6uuNVo/gFUr4AIgQ6zkLSW6f6GrEU01azNZ3F8UcfcXRWZMltRvGMYHstc="}]},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.1.3-beta.4_1642934521944_0.40149390473869406"},"_hasShrinkwrap":false},"0.1.3-beta.5":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/contracts.git"},"version":"0.1.3-beta.5","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"Main repository for Midas Capital's contracts and SDK for interacting with those.","main":"./lib/cjs/src/index.js","module":"./lib/esm/src/index.js","scripts":{"test":"hardhat test","export":"hardhat export --export-all ./deployments.json","build":"npm run build:contracts && npm run build:sdk && npm run build:cjs","build:sdk":"tsc -p tsconfig-sdk.json","build:cjs":"tsc -p tsconfig-cjs.json","build:contracts":"hardhat compile","clean":"rm -rf lib"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.2","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/hardhat":"^4.0.0","@types/chai":"^4.3.0","@types/mocha":"^9.1.0","@types/node":"^17.0.10","bufferutil":"^4.0.6","chai":"^4.3.4","dotenv":"^14.2.0","ethereum-waffle":"^3.4.0","ethers":"^5.5.3","hardhat":"^2.8.3","hardhat-deploy":"^0.9.27","ts-node":"^10.4.0","typechain":"^7.0.0","typescript":"^4.5.5","utf-8-validate":"^5.0.8"},"dependencies":{"@openzeppelin/contracts-upgradeable":"^3.4.2","@typechain/ethers-v5":"^9.0.0","@types/bad-words":"^3.0.1","@uniswap/v3-core":"^1.0.0","@uniswap/v3-periphery":"github:Uniswap/uniswap-v3-periphery#pull/96/head","bad-words":"^3.0.4"},"types":"./lib/cjs/src/index.d.ts","readme":"# Contracts\n\nMain repository for Midas Capital's contracts and SDK for interacting with those. \n\n## Structure\n```text\n ┌── README.md                        <- The top-level README \n ├── .github/workflows/TestSuite.yaml <- CICD pipeline definition\n ├── .vscode                          <- IDE configs\n │          \n │── artifacts                        <- (Auto-generated, git ignored)\n │       └── contracts                \n │                  ├── compound      <- Compiled contracts mirroring /contracts      \n │                  ├── external               \n │                  └──  ...      \n │\n ├── contracts                         <- All of our contracts\n │          ├── compound               <- Compound interfaces      \n │          ├── external               <- External contracts we require\n │          ├── oracles                <- Oracle contracts\n │          ├── utils                  <- Utility contracts \n │          └──  ...                   <- Main Fuse contracts\n │\n ├── deploy                           <- hardhat deployment scripts\n ├── deployments                      <- hardhat-generated deployment files\n ├── scripts                          <- hardhat scripts\n ├── src                              <- midas-sdk main folder\n ├── deployments.json                 <- generated on \"npx hardhat export\"\n └── hardhat.config.ts                <- hardhat confing\n```\n\n## Dev Workflow\n\n0. Install dependencies\n\n```text\n>>> npm install\n```\n\n2. To develop against the SDK, artifacts and deployment files must be generated first, as they are used by the SDK:\n\n```text\n>>> npx hardhat node \n# in another console\n>>>> npm run export\n```\n\n3. Build the sdk\n\n```text\n>>> npm run build\n```\n\n4. Run tests\n\n```shell\n# must have the local hardhat node running in another shell\n>>> npx hardhat test --network localhost\n```\n","readmeFilename":"README.md","gitHead":"6855e8dde4106cb8d9bf0e14a58ecf793bde4a5f","bugs":{"url":"https://github.com/midas-protocol/contracts/issues"},"homepage":"https://github.com/midas-protocol/contracts#readme","_id":"@midas-capital/sdk@0.1.3-beta.5","_nodeVersion":"16.13.2","_npmVersion":"8.1.2","dist":{"integrity":"sha512-Y1SeHHG6cC/vBk6/LhRQJtf61fgC57bUNUiqXp90XQlyVRvm5NX/c0tPWVpARDz9BQoGli3VQRsU4jmpnKsviw==","shasum":"b6feb039d912abbadedc4ee3ecd56059d2fe03f0","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.1.3-beta.5.tgz","fileCount":486,"unpackedSize":64489404,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh79yHCRA9TVsSAnZWagAAR7IQAJvbT9PttFnnLAkF4jzY\nwEngY/y5rENDWa1qmIXWcj6HeQzjcs7OBN2z7YqsRClR8NyOrtxfYvS7qDVF\nf5bmsLxVy2kzUMFiwLEwYgDT0eg0BooBtcBn8xyPSzGvts29REAVZiAt5VUD\nOYY6q2J7X7TeR/FPS+WQeU/HQHWpNuiAaLtVDWyhWmRAZRz4O/2VtxmNOFu0\nnS0JilKfmaQNCkBxMsdWUQbi/wAbEMogeiHy4+5lzZbYSTTLJAPAjamOFli8\nqHTkWTLDrP/tE7Kxu440QFWX6cObCebsOmgnI9HgY77RWXCAqen8IwAC/kD/\nXYugJ4U1+U8jkZSkHyQp1tT9A2a1JPf2C9+UclOBVeyLQkXrb4ID4NLcLLZ7\nS3ZARZP47XjE45h5tQSwzipNyYDomu9kYfCEnIw+zuX6sGXye/r04nPzviOq\nItStDeb2MLI/6ldKm4Ff/KcJJoBC757WthEi5b/DisxHgZBXCiFNdcjrrvIQ\nzrQUOdN6En7DniUqJkQqITyJoe9nxHqVc8D01YqddfHQKc2gBPrm9Px7TslW\nn9s9kdxLpBQNH4FDU0oj7YtE+nXrgQQuoL4rsdwK32WTqThJsR/wRUceWnXz\nfYQVvJeNc+6vNDfkbbsw9lCqsuwwRv8HzOY631Za6NQy4hzznYa/0YOu8ZF5\nCdBp\r\n=BRv2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDqJ1efQyn133x7Bph2Bou1ChDCZnxbFpfSd2oB6tTW3AiEA38OyEMSeUPoEIb04qgH1PHN/NzJTj//NJsXHBjzHnfU="}]},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.1.3-beta.5_1643109511518_0.024971161158996447"},"_hasShrinkwrap":false},"0.1.3-beta.6":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/contracts.git"},"version":"0.1.3-beta.6","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"Main repository for Midas Capital's contracts and SDK for interacting with those.","main":"./lib/cjs/src/index.js","module":"./lib/esm/src/index.js","scripts":{"test":"hardhat test","export":"hardhat export --export-all ./deployments.json","build":"npm run build:contracts && npm run build:sdk && npm run build:cjs","build:sdk":"tsc -p tsconfig-sdk.json","build:cjs":"tsc -p tsconfig-cjs.json","build:contracts":"hardhat compile","clean":"rm -rf lib"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.2","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/hardhat":"^4.0.0","@types/chai":"^4.3.0","@types/mocha":"^9.1.0","@types/node":"^17.0.10","bufferutil":"^4.0.6","chai":"^4.3.4","dotenv":"^14.2.0","ethereum-waffle":"^3.4.0","ethers":"^5.5.3","hardhat":"^2.8.3","hardhat-deploy":"^0.9.27","ts-node":"^10.4.0","typechain":"^7.0.0","typescript":"^4.5.5","utf-8-validate":"^5.0.8"},"dependencies":{"@openzeppelin/contracts-upgradeable":"^3.4.2","@typechain/ethers-v5":"^9.0.0","@types/bad-words":"^3.0.1","@uniswap/v3-core":"^1.0.0","@uniswap/v3-periphery":"github:Uniswap/uniswap-v3-periphery#pull/96/head","bad-words":"^3.0.4"},"types":"./lib/cjs/src/index.d.ts","readme":"# Contracts\n\nMain repository for Midas Capital's contracts and SDK for interacting with those. \n\n## Structure\n```text\n ┌── README.md                        <- The top-level README \n ├── .github/workflows/TestSuite.yaml <- CICD pipeline definition\n ├── .vscode                          <- IDE configs\n │          \n │── artifacts                        <- (Auto-generated, git ignored)\n │       └── contracts                \n │                  ├── compound      <- Compiled contracts mirroring /contracts      \n │                  ├── external               \n │                  └──  ...      \n │\n ├── contracts                         <- All of our contracts\n │          ├── compound               <- Compound interfaces      \n │          ├── external               <- External contracts we require\n │          ├── oracles                <- Oracle contracts\n │          ├── utils                  <- Utility contracts \n │          └──  ...                   <- Main Fuse contracts\n │\n ├── deploy                           <- hardhat deployment scripts\n ├── deployments                      <- hardhat-generated deployment files\n ├── scripts                          <- hardhat scripts\n ├── src                              <- midas-sdk main folder\n ├── deployments.json                 <- generated on \"npx hardhat export\"\n └── hardhat.config.ts                <- hardhat confing\n```\n\n## Dev Workflow\n\n0. Install dependencies\n\n```text\n>>> npm install\n```\n\n2. To develop against the SDK, artifacts and deployment files must be generated first, as they are used by the SDK:\n\n```text\n>>> npx hardhat node \n# in another console\n>>>> npm run export\n```\n\n3. Build the sdk\n\n```text\n>>> npm run build\n```\n\n4. Run tests\n\n```shell\n# must have the local hardhat node running in another shell\n>>> npx hardhat test --network localhost\n```\n","readmeFilename":"README.md","gitHead":"2bf8e870d8e9975a052725cd92b172fb5fe18705","bugs":{"url":"https://github.com/midas-protocol/contracts/issues"},"homepage":"https://github.com/midas-protocol/contracts#readme","_id":"@midas-capital/sdk@0.1.3-beta.6","_nodeVersion":"16.13.2","_npmVersion":"8.1.2","dist":{"integrity":"sha512-YhmCrqULe8rBq/0ykizHVSRGhI9b7PKHSjaq0kNIrgR46QzsKdm2zcPPXNyJJIJQ0XoWaO8b30FHp3aWEbbaAw==","shasum":"4d55d70ef08ea103323b3c8533b1e3a1900423f5","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.1.3-beta.6.tgz","fileCount":486,"unpackedSize":64489506,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh7+C8CRA9TVsSAnZWagAAS34P/AnJOMbh5sBiBjPNf5Xp\nP/5MVntVAVZZQs+47OK1Q3pi3alX+7bke2tUCHWVorRqaWfR6W62uznINIf5\n4vlTPwD3rRS9oMR8eT23gl/0j4NjPk0a19S8uZJGHe76cuzAyrBsXccqrTnk\nvj1ggWHro8n4WuRZvwyQ29/jvcxPmB0JJUZYZ4cLDp7i7u7mbdO3Ifax6eW6\nlvtOI73+7y4RoZ9BX2XWb7O9waxwgfsCs18R7uELSwKA8K/LVpFhdEBMuDNJ\nV4Jpqh8tBhiUX7VsAF08M9PNqTFCNCmWoa3Yv6NwvfAUJ438XO4NP5x+mPjm\nhX+SCWckX91ZvbbpuYxLj8gaDU4bZs4+mEEk1v3Ud3cOcLgfsDzfRbPsufnM\nJkk03ExgQ/NQoOkhrGescVxtqfOGeBwwuBd5BAlnLqAsxdBghXraDIjX4nLr\nCsFcFJfI4Ykcj9xrqqz+42Ij3LTrJnFy9iDlxav4QIT9h65EEh/UZGWJ6tzq\nZQu1I6CiiN0Zg2cEikSxv5G7qG8HhD+7qRLAgByVcqVLRTSW1zV8LijicTMd\nUG7j6ms/AAS72pwQepWMtZ7a+xSUBRs6fa6ZCdYBSF0LzmObPDCfZi18Qe3s\nmZpna1wajgNAmbH/XPbk7GQmn/jUP7WEx2vIh1zbhzVrvsCCo/c0iX6Pvcx+\no5zH\r\n=NY8S\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEGSmgM8YqDn0LkjHwUK5A7z3uCzFj82aHjP5WhOE16zAiEA0opkVeaXhjXE/J754QVD0r/IPVJUt8GCWohJavsRPW8="}]},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.1.3-beta.6_1643110588562_0.12555621141388662"},"_hasShrinkwrap":false},"0.1.3-beta.7":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/contracts.git"},"version":"0.1.3-beta.7","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"Main repository for Midas Capital's contracts and SDK for interacting with those.","main":"./lib/cjs/src/index.js","module":"./lib/esm/src/index.js","scripts":{"test":"hardhat test","export":"hardhat export --export-all ./deployments.json","build":"npm run build:contracts && npm run build:sdk && npm run build:cjs","build:sdk":"tsc -p tsconfig-sdk.json","build:cjs":"tsc -p tsconfig-cjs.json","build:contracts":"hardhat compile","clean":"rm -rf lib"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.2","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/hardhat":"^4.0.0","@types/chai":"^4.3.0","@types/mocha":"^9.1.0","@types/node":"^17.0.10","bufferutil":"^4.0.6","chai":"^4.3.4","dotenv":"^14.2.0","ethereum-waffle":"^3.4.0","ethers":"^5.5.3","hardhat":"^2.8.3","hardhat-deploy":"^0.9.27","ts-node":"^10.4.0","typechain":"^7.0.0","typescript":"^4.5.5","utf-8-validate":"^5.0.8"},"dependencies":{"@openzeppelin/contracts-upgradeable":"^3.4.2","@typechain/ethers-v5":"^9.0.0","@types/bad-words":"^3.0.1","@uniswap/v3-core":"^1.0.0","@uniswap/v3-periphery":"github:Uniswap/uniswap-v3-periphery#pull/96/head","bad-words":"^3.0.4"},"types":"./lib/cjs/src/index.d.ts","readme":"# Contracts\n\nMain repository for Midas Capital's contracts and SDK for interacting with those. \n\n## Structure\n```text\n ┌── README.md                        <- The top-level README \n ├── .github/workflows/TestSuite.yaml <- CICD pipeline definition\n ├── .vscode                          <- IDE configs\n │          \n │── artifacts                        <- (Auto-generated, git ignored)\n │       └── contracts                \n │                  ├── compound      <- Compiled contracts mirroring /contracts      \n │                  ├── external               \n │                  └──  ...      \n │\n ├── contracts                         <- All of our contracts\n │          ├── compound               <- Compound interfaces      \n │          ├── external               <- External contracts we require\n │          ├── oracles                <- Oracle contracts\n │          ├── utils                  <- Utility contracts \n │          └──  ...                   <- Main Fuse contracts\n │\n ├── deploy                           <- hardhat deployment scripts\n ├── deployments                      <- hardhat-generated deployment files\n ├── scripts                          <- hardhat scripts\n ├── src                              <- midas-sdk main folder\n ├── deployments.json                 <- generated on \"npx hardhat export\"\n └── hardhat.config.ts                <- hardhat confing\n```\n\n## Dev Workflow\n\n0. Install dependencies\n\n```text\n>>> npm install\n```\n\n2. To develop against the SDK, artifacts and deployment files must be generated first, as they are used by the SDK:\n\n```text\n>>> npx hardhat node \n# in another console\n>>>> npm run export\n```\n\n3. Build the sdk\n\n```text\n>>> npm run build\n```\n\n4. Run tests\n\n```shell\n# must have the local hardhat node running in another shell\n>>> npx hardhat test --network localhost\n```\n","readmeFilename":"README.md","gitHead":"feea6fa7ac59e996316db9f2a6e695b60b06c9a0","bugs":{"url":"https://github.com/midas-protocol/contracts/issues"},"homepage":"https://github.com/midas-protocol/contracts#readme","_id":"@midas-capital/sdk@0.1.3-beta.7","_nodeVersion":"16.13.2","_npmVersion":"8.1.2","dist":{"integrity":"sha512-53TZ5VDPkJt++j/dd6GO7lMx9MTCB2VWYcin1mHh4WBJWNfklzk1DYLoHX5yKmyN+EkW9rKv/uX13q3GN7T40Q==","shasum":"57bc1fe38832de0e8596cac2a81d2146b73a2ed5","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.1.3-beta.7.tgz","fileCount":486,"unpackedSize":64489739,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh8VtoCRA9TVsSAnZWagAAiYcP/2YPYjy41gpjJfwWnQ7Q\nXFMeZNcQLMBYmig1yp3V9YI+K2ywCcrcuRURae7Eu7azdkx0gMvYV0+4conW\nGf+C8XjkCsyd1+C6CVWnoCmIXKk5KdVYC5kf1SQiVFG8KqGv3VcsFSxUMrxU\nKEa4bqm81KakZnvDpkyH80pUZ9zWpg9Cuprj4OCj81EN8E30q0G7DyH6dTNR\nxYPJx80I2F5obZXneqbsdOa1QYhMtIquSxSb0ONVHZHLu6Kw1+rUMkRnIvBj\nN/oKHIXeDiwLPRwsx7DLFXnkFlD4gOGtHfnNVz0T9tUVOozYX5kS7l1cru+y\nZz5eha7D1izDvhwrMEJEfcMHMltJxSRpWPoLo1e8PBSiDlZwrk4fYXDiTrY2\n7U3QgdRPUcBqzatjHVGpGDg3CeYVlvm+tBMpItGbFC09+NaDAYy5LukrWqtG\nLJFKfHmQmE13pOPFR+3mgu7j4DZUVyGsmt8ePPL5915qJiqqCZGBT8atyC9m\n8a1e6ob/cBMy2uynsXpQ3X2n8haXV1Hq2ODjfadg/SZmY+K7DbAWFWOXlucN\nRnEW8PIXF6ATR1Ac7MrQyRGB3dmqrp7mH1pcwXF/uBax1xiyj30qHjUPUvLn\nsAbSBMde353hkzN7E1TWXIbhE54/1BV9at+rsHbBHiuaGTTaLuc32NaEz1Nb\nCUOW\r\n=42yX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHLj02TJtNyfzN3ZRznRdEFoFjd70Bg56yw6m6SUIV4XAiBB2ubEf33DWQaktr6TuXfCFCbDQo5nTPkoSGmW1JK/Hw=="}]},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.1.3-beta.7_1643207528243_0.44843823575567354"},"_hasShrinkwrap":false},"0.1.3-beta.8":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/contracts.git"},"version":"0.1.3-beta.8","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"Main repository for Midas Capital's contracts and SDK for interacting with those.","main":"./lib/cjs/src/index.js","module":"./lib/esm/src/index.js","scripts":{"test":"hardhat test","export":"hardhat export --export-all ./deployments.json","build":"npm run build:contracts && npm run build:sdk && npm run build:cjs","build:sdk":"tsc -p tsconfig-sdk.json","build:cjs":"tsc -p tsconfig-cjs.json","build:contracts":"hardhat compile","clean":"rm -rf lib"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.2","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/hardhat":"^4.0.0","@types/chai":"^4.3.0","@types/mocha":"^9.1.0","@types/node":"^17.0.10","bufferutil":"^4.0.6","chai":"^4.3.4","dotenv":"^14.2.0","ethereum-waffle":"^3.4.0","ethers":"^5.5.3","hardhat":"^2.8.3","hardhat-deploy":"^0.9.27","ts-node":"^10.4.0","typechain":"^7.0.0","typescript":"^4.5.5","utf-8-validate":"^5.0.8"},"dependencies":{"@openzeppelin/contracts-upgradeable":"^3.4.2","@typechain/ethers-v5":"^9.0.0","@types/bad-words":"^3.0.1","@uniswap/v3-core":"^1.0.0","@uniswap/v3-periphery":"github:Uniswap/uniswap-v3-periphery#pull/96/head","bad-words":"^3.0.4"},"types":"./lib/cjs/src/index.d.ts","readme":"# Contracts\n\nMain repository for Midas Capital's contracts and SDK for interacting with those. \n\n## Structure\n```text\n ┌── README.md                        <- The top-level README \n ├── .github/workflows/TestSuite.yaml <- CICD pipeline definition\n ├── .vscode                          <- IDE configs\n │          \n │── artifacts                        <- (Auto-generated, git ignored)\n │       └── contracts                \n │                  ├── compound      <- Compiled contracts mirroring /contracts      \n │                  ├── external               \n │                  └──  ...      \n │\n ├── contracts                         <- All of our contracts\n │          ├── compound               <- Compound interfaces      \n │          ├── external               <- External contracts we require\n │          ├── oracles                <- Oracle contracts\n │          ├── utils                  <- Utility contracts \n │          └──  ...                   <- Main Fuse contracts\n │\n ├── deploy                           <- hardhat deployment scripts\n ├── deployments                      <- hardhat-generated deployment files\n ├── scripts                          <- hardhat scripts\n ├── src                              <- midas-sdk main folder\n ├── deployments.json                 <- generated on \"npx hardhat export\"\n └── hardhat.config.ts                <- hardhat confing\n```\n\n## Dev Workflow\n\n0. Install dependencies\n\n```text\n>>> npm install\n```\n\n2. To develop against the SDK, artifacts and deployment files must be generated first, as they are used by the SDK:\n\n```text\n>>> npx hardhat node \n# in another console\n>>>> npm run export\n```\n\n3. Build the sdk\n\n```text\n>>> npm run build\n```\n\n4. Run tests\n\n```shell\n# must have the local hardhat node running in another shell\n>>> npx hardhat test --network localhost\n```\n","readmeFilename":"README.md","gitHead":"dbe23cc26118d1415070f7e1070af88061ef3ee4","bugs":{"url":"https://github.com/midas-protocol/contracts/issues"},"homepage":"https://github.com/midas-protocol/contracts#readme","_id":"@midas-capital/sdk@0.1.3-beta.8","_nodeVersion":"16.13.2","_npmVersion":"8.1.2","dist":{"integrity":"sha512-uIM5wmMC196jJUMx8shKQOYe3N8iWtdY3cdw6Ul5GgTFPVV5224ouazIwWH6rj8ujpu5/vdMCITbl2Pk0X8f1Q==","shasum":"276270399bd9b36641bebb3da29f1f6f056ebae4","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.1.3-beta.8.tgz","fileCount":486,"unpackedSize":64489831,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh8XuSCRA9TVsSAnZWagAAeB0P/jQ2axRp5vrsy/5F+auP\nCu61fTaHoNcE9FxaEUcGW7co2bbjFcuaHK2MNGD6jbD0neH4G4vhlm2kd9ag\n3fg5vKD5gaU4N03R70ArXEJvs1+8uMMO1vgcaucvXD8PakpNIW2jP/8dCj+l\nrI/2OnbWUruzIWeYGtcjGLyes89bf7wVXGfNIwFKXDsoN4Ajoj1S4jYGzvtk\nH5kO4QVQJ7HMaPEvbJ5FJhCcy4VgSIo1rMyAj3NwFanO+/Vw2MP+d4ndVS1o\nCdgJq1kpj+GdrzynH77sloFVk+nGL7KK0Y3BaqAQBvBghHbnZX9l2j4aleuq\n6sRuAX+6z6kqVDxk+p5HvYhmdwQqCcNMB2b5ooNhTrKTq4NJOtPk56CmkMPp\n1rSTICHItqhVr9oe738qZr7TsHPqFB++Xfmjo6ZR0KV/PC5ANsvkhIWAfoVM\n3v4T19Kx7xW88g2E53GU0S6QJZUdZOYjAxtTP+DzBf8Ji+zEtNSaQmLgouY7\ndyASwdfvbDbk+AOHrifPGMy2QCkIajbYeRtnTSFPsrN87PGdSviBBw8FWCjq\nnQLPlqIJrwRtLD48bKEG9tY2StW/D0r2EdNP8Zn0mAnsKm+Gk3F1JtPVr0Ti\nKV8mD4uTMxJiRSDK3QR1POCxBx0c6+y5ti7+0rDr/8WOmE3xdPdVwGQ501zG\nW2uc\r\n=HH2l\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICgGqrBHvAJylctgLFRniuWqeXIkIzCGwP6Y4zyC8QUNAiBTO211tO6cQfViTOJqxoE1P3VIjvzNBr+wz0LR248WzQ=="}]},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.1.3-beta.8_1643215762009_0.8062087336795192"},"_hasShrinkwrap":false},"0.1.3-beta.9":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/contracts.git"},"version":"0.1.3-beta.9","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"Main repository for Midas Capital's contracts and SDK for interacting with those.","main":"./lib/cjs/src/index.js","module":"./lib/esm/src/index.js","scripts":{"test":"hardhat test","export":"hardhat export --export-all ./deployments.json","build":"npm run build:contracts && npm run build:sdk && npm run build:cjs","build:sdk":"tsc -p tsconfig-sdk.json","build:cjs":"tsc -p tsconfig-cjs.json","build:contracts":"hardhat compile","clean":"rm -rf lib"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.2","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/hardhat":"^4.0.0","@types/chai":"^4.3.0","@types/mocha":"^9.1.0","@types/node":"^17.0.10","bufferutil":"^4.0.6","chai":"^4.3.4","dotenv":"^14.2.0","ethereum-waffle":"^3.4.0","ethers":"^5.5.3","hardhat":"^2.8.3","hardhat-deploy":"^0.9.27","ts-node":"^10.4.0","typechain":"^7.0.0","typescript":"^4.5.5","utf-8-validate":"^5.0.8"},"dependencies":{"@openzeppelin/contracts-upgradeable":"^3.4.2","@typechain/ethers-v5":"^9.0.0","@types/bad-words":"^3.0.1","@uniswap/v3-core":"^1.0.0","@uniswap/v3-periphery":"github:Uniswap/uniswap-v3-periphery#pull/96/head","bad-words":"^3.0.4"},"types":"./lib/cjs/src/index.d.ts","readme":"# Contracts\n\nMain repository for Midas Capital's contracts and SDK for interacting with those. \n\n## Structure\n```text\n ┌── README.md                        <- The top-level README \n ├── .github/workflows/TestSuite.yaml <- CICD pipeline definition\n ├── .vscode                          <- IDE configs\n │          \n │── artifacts                        <- (Auto-generated, git ignored)\n │       └── contracts                \n │                  ├── compound      <- Compiled contracts mirroring /contracts      \n │                  ├── external               \n │                  └──  ...      \n │\n ├── contracts                         <- All of our contracts\n │          ├── compound               <- Compound interfaces      \n │          ├── external               <- External contracts we require\n │          ├── oracles                <- Oracle contracts\n │          ├── utils                  <- Utility contracts \n │          └──  ...                   <- Main Fuse contracts\n │\n ├── deploy                           <- hardhat deployment scripts\n ├── deployments                      <- hardhat-generated deployment files\n ├── scripts                          <- hardhat scripts\n ├── src                              <- midas-sdk main folder\n ├── deployments.json                 <- generated on \"npx hardhat export\"\n └── hardhat.config.ts                <- hardhat confing\n```\n\n## Dev Workflow\n\n0. Install dependencies\n\n```text\n>>> npm install\n```\n\n2. To develop against the SDK, artifacts and deployment files must be generated first, as they are used by the SDK:\n\n```text\n>>> npx hardhat node \n# in another console\n>>>> npm run export\n```\n\n3. Build the sdk\n\n```text\n>>> npm run build\n```\n\n4. Run tests\n\n```shell\n# must have the local hardhat node running in another shell\n>>> npx hardhat test --network localhost\n```\n","readmeFilename":"README.md","gitHead":"e245768ecfd2425c8d12b1cea91041b132ff3a72","bugs":{"url":"https://github.com/midas-protocol/contracts/issues"},"homepage":"https://github.com/midas-protocol/contracts#readme","_id":"@midas-capital/sdk@0.1.3-beta.9","_nodeVersion":"16.13.2","_npmVersion":"8.1.2","dist":{"integrity":"sha512-89hjSAx7ddp5tlw64QWiuPSVHDK8gp7LeQS0n6Yv5pXyObF5GqbRMrmb6bBwLBcgBubo5jNL491/EIWdqfaV5Q==","shasum":"75aa86b992cad734ceaca55214c7f7516f703e9e","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.1.3-beta.9.tgz","fileCount":486,"unpackedSize":64503680,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh8mDPCRA9TVsSAnZWagAANEsP+wUSvyj3PPyc594xhNi0\n/Xln11PLXUc8Ggex7bXIFbQP8JyLFlHxNzuwcTLyViCzPkJhDAZRoIIx3rTw\nw1jLZJitIb6nJco4Cqi3Cn7zWypspoqY8apBCVHf8G/wwe5lGG9PZappdMfi\nneqOaEOlwpg6ahjvDeFGZzs2Cx7YqMakv82K8Y/OIHy8FKNB2Ucg1YIR8ArW\njVlYthEeU128S/Jff+MWE5HPW11WdLbQb8aKtzp2m7UZ0wSFnxbrxg7htX+v\nExnJEVgSiHCSYQ4j+IjoCFImIoqHDIiUEWNfFc0Wq+eKooirYnbONbrxMlNf\n2qXoPdx8ijEeF/DcLexHTJ2rjtbIWmoBF2ivQ1ilntT0bCzx5wfIkiHu3cO1\nJujKLQDjLfT014OE32dR936OAZgheA+E2APgR90x68XQtOGtuSIlOslb6XOy\nCieSAzKDCkvTL0j5laNEhm+Ig+2+3MH4+I+Hc+SehPT1Dkd6eKvTMlLVKXZR\n/CmWu7ST3MAhRLd6jebdYU9R+YwZY6k58dr0jz6kXP7PPOeg3FRUunedgIuC\nFX5CO882telkDaeDV8KFVZ9BEBkL5w6/HYVv7pB0IXMPae3lhqHHlCzw+2MA\nRSCKf3ZUsBASnNN1r6QhC3EoWLqRKFWz8JCHWdopKq/MMAXdi4MG5g2APvpZ\n6ozl\r\n=kUIU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDgaxPaT6JS+1sHyVSeojXM6zs6L2v/1j20zX07Bqa9mwIgAJ4T6FdZ2JpVo7LtV3zgEgtj6x3wsNpBZdrdU2wgEyk="}]},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.1.3-beta.9_1643274446732_0.4017815825507294"},"_hasShrinkwrap":false},"0.1.3-beta.10":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/contracts.git"},"version":"0.1.3-beta.10","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"Main repository for Midas Capital's contracts and SDK for interacting with those.","main":"./lib/cjs/src/index.js","module":"./lib/esm/src/index.js","scripts":{"test":"hardhat test","export":"hardhat export --export-all ./deployments.json","build":"npm run build:contracts && npm run build:sdk && npm run build:cjs","build:sdk":"tsc -p tsconfig-sdk.json","build:cjs":"tsc -p tsconfig-cjs.json","build:contracts":"hardhat compile","clean":"rm -rf lib"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.2","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/hardhat":"^4.0.0","@types/chai":"^4.3.0","@types/mocha":"^9.1.0","@types/node":"^17.0.10","bufferutil":"^4.0.6","chai":"^4.3.4","dotenv":"^14.2.0","ethereum-waffle":"^3.4.0","ethers":"^5.5.3","hardhat":"^2.8.3","hardhat-deploy":"^0.9.27","ts-node":"^10.4.0","typechain":"^7.0.0","typescript":"^4.5.5","utf-8-validate":"^5.0.8"},"dependencies":{"@openzeppelin/contracts-upgradeable":"^3.4.2","@typechain/ethers-v5":"^9.0.0","@types/bad-words":"^3.0.1","@uniswap/v3-core":"^1.0.0","@uniswap/v3-periphery":"github:Uniswap/uniswap-v3-periphery#pull/96/head","bad-words":"^3.0.4"},"types":"./lib/cjs/src/index.d.ts","readme":"# Contracts\n\nMain repository for Midas Capital's contracts and SDK for interacting with those. \n\n## Structure\n```text\n ┌── README.md                        <- The top-level README \n ├── .github/workflows/TestSuite.yaml <- CICD pipeline definition\n ├── .vscode                          <- IDE configs\n │          \n │── artifacts                        <- (Auto-generated, git ignored)\n │       └── contracts                \n │                  ├── compound      <- Compiled contracts mirroring /contracts      \n │                  ├── external               \n │                  └──  ...      \n │\n ├── contracts                         <- All of our contracts\n │          ├── compound               <- Compound interfaces      \n │          ├── external               <- External contracts we require\n │          ├── oracles                <- Oracle contracts\n │          ├── utils                  <- Utility contracts \n │          └──  ...                   <- Main Fuse contracts\n │\n ├── deploy                           <- hardhat deployment scripts\n ├── deployments                      <- hardhat-generated deployment files\n ├── scripts                          <- hardhat scripts\n ├── src                              <- midas-sdk main folder\n ├── deployments.json                 <- generated on \"npx hardhat export\"\n └── hardhat.config.ts                <- hardhat confing\n```\n\n## Dev Workflow\n\n0. Install dependencies\n\n```text\n>>> npm install\n```\n\n2. To develop against the SDK, artifacts and deployment files must be generated first, as they are used by the SDK:\n\n```text\n>>> npx hardhat node \n# in another console\n>>>> npm run export\n```\n\n3. Build the sdk\n\n```text\n>>> npm run build\n```\n\n4. Run tests\n\n```shell\n# must have the local hardhat node running in another shell\n>>> npx hardhat test --network localhost\n```\n","readmeFilename":"README.md","gitHead":"1c153920f201fc145c42d761c0b0ffe90d6ff642","bugs":{"url":"https://github.com/midas-protocol/contracts/issues"},"homepage":"https://github.com/midas-protocol/contracts#readme","_id":"@midas-capital/sdk@0.1.3-beta.10","_nodeVersion":"16.13.2","_npmVersion":"8.1.2","dist":{"integrity":"sha512-p3JHFQrwS4CvNJkz6p3xeeocXeZBc1UNjlpB26MLtw20yNW45SorpPkbePDQsn0L0XXiUXPqxIVlgirrJ7rffg==","shasum":"e4857fc7e0d094e11485cc663b17c7d385352e74","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.1.3-beta.10.tgz","fileCount":486,"unpackedSize":64494665,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh8oWdCRA9TVsSAnZWagAAUpUP/2ASkv59aPL0VvmIrXBK\nfoC/QK4Vm6t9dcslqNY3xDZiKvy4QiGjAKmiDFS9A9tGlya+D2Fb5gyaoux9\nDGzolsIhBck9PUae84Qk44VgMSHhbJHmF5NuCOKfTx5Zljav33Z16zVZIWEo\n9caxOwOJttkMHJjjg9i3r4HuBmCfbg/ZbVPc+soCT5syQygSUSDXYNNFxOXW\nEyNXvctwX53hEXa/MMmOiNH3hF/7J0ZTXytWg593GHa9v8V9Vfs/vHliqwp2\nIMiTCug0b3RUl0uT8TFMMJO7+sDBUKhPzv72Dxa8h+tfV3Z6AlJjVgVt4MMm\n0znDywpPShJ+v9b/k+9JOSR3v1N6QfU22KBSiDXCUyrYN5v/9JyzqNTjbDxX\nioN/3owddXvv5ovvJXq5FGX4jyzM5A+wx8kxTB9aR742iLQ65um3xcUNZHBb\nWzLeOgBZSjkJ4DkA5V+G2E3uuIMQNcW+ZhDOYwYo8cADPQ7HJV6jQkcjbhhY\n2nkY9TtgYgJfSNYw/l4MfF3aO7FAFVo7g+VSlZ5Lwq3JMJpArlzRl2r8v2Bx\nglrcT6ec5o2cLDFHcjd3cxrayJveqTUWutSZncpU/VImg98I4YUNJogZmGv1\n/uF3vw25uGNBKHy1hjdksn6s2/aV5BaTbkpedLEhtzqRFiuuz6GD8BT2Qa2F\n7ACq\r\n=ZkJO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCsKZvBo0wwdcThlgVxfiHuLJnVgvkXiG27q7g/qSTb5gIgVuTTlHYBVQ0w8GYq7o/Lrajl7YAQRI4CbNF514tG2Y8="}]},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.1.3-beta.10_1643283869098_0.3648088965815828"},"_hasShrinkwrap":false},"0.1.3-beta.11":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/contracts.git"},"version":"0.1.3-beta.11","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"Main repository for Midas Capital's contracts and SDK for interacting with those.","main":"./lib/cjs/src/index.js","module":"./lib/esm/src/index.js","scripts":{"test":"hardhat test","export":"hardhat export --export-all ./deployments.json","build":"npm run build:contracts && npm run build:sdk && npm run build:cjs","build:sdk":"tsc -p tsconfig-sdk.json","build:cjs":"tsc -p tsconfig-cjs.json","build:contracts":"hardhat compile","clean":"rm -rf lib"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.2","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/hardhat":"^4.0.0","@types/chai":"^4.3.0","@types/mocha":"^9.1.0","@types/node":"^17.0.10","bufferutil":"^4.0.6","chai":"^4.3.4","dotenv":"^14.2.0","ethereum-waffle":"^3.4.0","ethers":"^5.5.3","hardhat":"^2.8.3","hardhat-deploy":"^0.9.27","ts-node":"^10.4.0","typechain":"^7.0.0","typescript":"^4.5.5","utf-8-validate":"^5.0.8"},"dependencies":{"@openzeppelin/contracts-upgradeable":"^3.4.2","@typechain/ethers-v5":"^9.0.0","@types/bad-words":"^3.0.1","@uniswap/v3-core":"^1.0.0","@uniswap/v3-periphery":"github:Uniswap/uniswap-v3-periphery#pull/96/head","bad-words":"^3.0.4"},"types":"./lib/cjs/src/index.d.ts","readme":"# Contracts\n\nMain repository for Midas Capital's contracts and SDK for interacting with those. \n\n## Structure\n```text\n ┌── README.md                        <- The top-level README \n ├── .github/workflows/TestSuite.yaml <- CICD pipeline definition\n ├── .vscode                          <- IDE configs\n │          \n │── artifacts                        <- (Auto-generated, git ignored)\n │       └── contracts                \n │                  ├── compound      <- Compiled contracts mirroring /contracts      \n │                  ├── external               \n │                  └──  ...      \n │\n ├── contracts                         <- All of our contracts\n │          ├── compound               <- Compound interfaces      \n │          ├── external               <- External contracts we require\n │          ├── oracles                <- Oracle contracts\n │          ├── utils                  <- Utility contracts \n │          └──  ...                   <- Main Fuse contracts\n │\n ├── deploy                           <- hardhat deployment scripts\n ├── deployments                      <- hardhat-generated deployment files\n ├── scripts                          <- hardhat scripts\n ├── src                              <- midas-sdk main folder\n ├── deployments.json                 <- generated on \"npx hardhat export\"\n └── hardhat.config.ts                <- hardhat confing\n```\n\n## Dev Workflow\n\n0. Install dependencies\n\n```text\n>>> npm install\n```\n\n2. To develop against the SDK, artifacts and deployment files must be generated first, as they are used by the SDK:\n\n```text\n>>> npx hardhat node \n# in another console\n>>>> npm run export\n```\n\n3. Build the sdk\n\n```text\n>>> npm run build\n```\n\n4. Run tests\n\n```shell\n# must have the local hardhat node running in another shell\n>>> npx hardhat test --network localhost\n```\n","readmeFilename":"README.md","gitHead":"084ecbf14465119ba6c5e72a6e4128cdc3110c84","bugs":{"url":"https://github.com/midas-protocol/contracts/issues"},"homepage":"https://github.com/midas-protocol/contracts#readme","_id":"@midas-capital/sdk@0.1.3-beta.11","_nodeVersion":"16.13.2","_npmVersion":"8.1.2","dist":{"integrity":"sha512-mGYqvT6yUoFXWIcpQmevY4Aj9IBhXswnJ/+S+3XrERR/aMnyD8ih7BgDA17Krt9jnhNDnVyVudCPqjzDcCJzFA==","shasum":"0f7ebf20187528b3c65d0abbde4f6cc87f865951","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.1.3-beta.11.tgz","fileCount":486,"unpackedSize":64445977,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh9r4MCRA9TVsSAnZWagAAg9QP/2IIflh13OsVMaBXZxXC\nw4gHB5H+gob4wbKKghhz6sryR+aO+TZmHDf2dEJkt7HmTbpb/HdojDA8Kx0q\nnXBQgs50PV6D4KSsyH06SITTohOMNJTJdrKWOxBW8Wosbaom+V9hc1VCPMv6\n1ETonu8jXwI0yjdX3KKTs9t85zClMtxmcoFNb3nWXyprG1+ovZVV3bQ6y6R9\nKK83izw3oq1NXGF/1oTkIOCB5Uf2qt6pKufq+L3+IFhYwB1dHKeUYmRDLK23\nQPgzy0C53GRPPDl2rONOf7H16D9Q/NzVwzZKf+qkWV71lTWEFbGt+xay8hkY\n9TWI7m+/74KoBuIRwgmGZvzRSma16PwTPVs82Jto5d4deebUx7OveOkDaT6/\nrE5cloIIMvF8AMkDcnrFXjFn8VAefeRWpgkdnVex0Zf75GQ6zUwFVHk1YjfQ\nu269tksqP+RtmH7GcDd+DWVVvFsmMDZX+URI8fq2SsG+8/4VNXf4R1/M7Fc4\nVRg3DdTHofI9oMCzhBNYTSncgkOS0sNhcFPjw6HNYHobL1Z/RH+PZjWx6R2O\nSFrq2WMfGS0CkMh/WF1fbw/9Cw/8xd7iuInxgoQwLOrKM3bKfecfiO7ITYk7\nYejUxt1IMD5zyrr0ofGKG+jUqa5xK5f99porNHUIknpfmEmME0yhqFvk3KDj\nFiC4\r\n=tdkl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDd67LyTioLXY2+fDBqQxg+669nE452Vq4tIOH0d/5vIQIhANMlBhYAgzvRmocpLb38qHKfbA//4Am4AkSMqJ3XNtI8"}]},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.1.3-beta.11_1643560459797_0.9388938630785835"},"_hasShrinkwrap":false},"0.1.3-beta.12":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/contracts.git"},"version":"0.1.3-beta.12","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"Main repository for Midas Capital's contracts and SDK for interacting with those.","main":"./lib/cjs/src/index.js","module":"./lib/esm/src/index.js","scripts":{"test":"hardhat test","export":"hardhat export --export-all ./deployments.json","build":"npm run build:contracts && npm run build:sdk && npm run build:cjs","build:sdk":"tsc -p tsconfig-sdk.json","build:cjs":"tsc -p tsconfig-cjs.json","build:contracts":"hardhat compile","clean":"rm -rf lib"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.2","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/hardhat":"^4.0.0","@types/chai":"^4.3.0","@types/mocha":"^9.1.0","@types/node":"^17.0.10","bufferutil":"^4.0.6","chai":"^4.3.4","dotenv":"^14.2.0","ethereum-waffle":"^3.4.0","ethers":"^5.5.3","hardhat":"^2.8.3","hardhat-deploy":"^0.9.27","ts-node":"^10.4.0","typechain":"^7.0.0","typescript":"^4.5.5","utf-8-validate":"^5.0.8"},"dependencies":{"@openzeppelin/contracts-upgradeable":"^3.4.2","@typechain/ethers-v5":"^9.0.0","@types/bad-words":"^3.0.1","@uniswap/v3-core":"^1.0.0","@uniswap/v3-periphery":"github:Uniswap/uniswap-v3-periphery#pull/96/head","bad-words":"^3.0.4"},"types":"./lib/cjs/src/index.d.ts","readme":"# Contracts\n\nMain repository for Midas Capital's contracts and SDK for interacting with those. \n\n## Structure\n```text\n ┌── README.md                        <- The top-level README \n ├── .github/workflows/TestSuite.yaml <- CICD pipeline definition\n ├── .vscode                          <- IDE configs\n │          \n │── artifacts                        <- (Auto-generated, git ignored)\n │       └── contracts                \n │                  ├── compound      <- Compiled contracts mirroring /contracts      \n │                  ├── external               \n │                  └──  ...      \n │\n ├── contracts                         <- All of our contracts\n │          ├── compound               <- Compound interfaces      \n │          ├── external               <- External contracts we require\n │          ├── oracles                <- Oracle contracts\n │          ├── utils                  <- Utility contracts \n │          └──  ...                   <- Main Fuse contracts\n │\n ├── deploy                           <- hardhat deployment scripts\n ├── deployments                      <- hardhat-generated deployment files\n ├── scripts                          <- hardhat scripts\n ├── src                              <- midas-sdk main folder\n ├── deployments.json                 <- generated on \"npx hardhat export\"\n └── hardhat.config.ts                <- hardhat confing\n```\n\n## Dev Workflow\n\n0. Install dependencies\n\n```text\n>>> npm install\n```\n\n2. To develop against the SDK, artifacts and deployment files must be generated first, as they are used by the SDK:\n\n```text\n>>> npx hardhat node \n# in another console\n>>>> npm run export\n```\n\n3. Build the sdk\n\n```text\n>>> npm run build\n```\n\n4. Run tests\n\n```shell\n# must have the local hardhat node running in another shell\n>>> npx hardhat test --network localhost\n```\n","readmeFilename":"README.md","gitHead":"1a3df45ad283cda8c220e2388d4e4a923f042fad","bugs":{"url":"https://github.com/midas-protocol/contracts/issues"},"homepage":"https://github.com/midas-protocol/contracts#readme","_id":"@midas-capital/sdk@0.1.3-beta.12","_nodeVersion":"16.13.2","_npmVersion":"8.1.2","dist":{"integrity":"sha512-4k4lTGY870+Y4IuCV/RAnTK1eapRv+tPtkfpI+nNPjIGhzbwYdxcLJFrP8SZSXSS0an+kIUUOJ3xY5IFpVi3ZA==","shasum":"7cadb23feaa4a6a1ae0d3cfac5762af7c987541a","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.1.3-beta.12.tgz","fileCount":483,"unpackedSize":62680768,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh+QewCRA9TVsSAnZWagAAL2UP/3q0wndT5xFBAu8chweQ\n9eQ7GMJCvNaK8gmRrZhbziH8T1/N86J3sy7wZWv9423fAAqmJfT1/BuFnxqJ\nGHM5KBNIiiyVyBwFXhTetu72X2araRQC7jHu1368tOuHMovBJ1LNLs3pAsA9\noSGZFCe8oGDuKFFvNynlNzdufQhuUK7Zw0gVLVPlJ8bMmR/6NpBbUp+Hsycr\neDE7QBJFgFwtWagRl+4xDAS5KuaUCK4arvtDE0rixpK9tCzofgEyiRmtcGBX\nwxSbYJyc3KV9E5CGzs12ewWicP+VX2KkYgyz4lKSfdEODhQZ4itcWes4U1xW\nsWRlpo5LskOiLHADqUmpeP35XmIF5pKbIINBl6tKSoZyZWv8fAjM3LAgoP/X\nnGQu4Jnz01LTOi9lT8cFii1q31+ladWC6fSX/dNbGI4h+V5MKjcJdb8r2jNu\nCa62YsOSzAbqUPRj4p/LvX7/r37Be4mNV1emtrwazoMU9w7gANdhhcAK4f+X\n0IkTik3JMKDyiz3Gl7sTb92jKO0xfbrI+VenQstF4U3nDCFjhmfj/9zWJ9fH\nIL1lmvETRXvxbj2R4KeFV7XmF/vYek3rQQ3o0H7LrCcJNAW+WuIgAzP490Au\ni4mpFVoL562R+GJT3ZbrkZ88oVHYRziJ1QCbUzlRA129oFF9ViCBALo0l1yA\ny7L4\r\n=S0Fr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHhK6FnbVhnsph04EROh/FN6+Bytt2KHkmsNBJMlBWzrAiBPBWviOAIchwYtFIY901fvukxzA1U2JrZ8JPF0PdLpUQ=="}]},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.1.3-beta.12_1643710383750_0.034116530836149295"},"_hasShrinkwrap":false},"0.1.3-beta.13":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/contracts.git"},"version":"0.1.3-beta.13","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"Main repository for Midas Capital's contracts and SDK for interacting with those.","main":"./lib/cjs/src/index.js","module":"./lib/esm/src/index.js","scripts":{"test":"hardhat test","export":"hardhat export --export-all ./deployments.json","build":"npm run build:contracts && npm run build:sdk && npm run build:cjs","build:sdk":"tsc -p tsconfig-sdk.json","build:cjs":"tsc -p tsconfig-cjs.json","build:contracts":"hardhat compile","clean":"rm -rf lib"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.2","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/hardhat":"^4.0.0","@types/chai":"^4.3.0","@types/mocha":"^9.1.0","@types/node":"^17.0.10","bufferutil":"^4.0.6","chai":"^4.3.4","dotenv":"^14.2.0","ethereum-waffle":"^3.4.0","ethers":"^5.5.3","hardhat":"^2.8.3","hardhat-deploy":"^0.9.27","ts-node":"^10.4.0","typechain":"^7.0.0","typescript":"^4.5.5","utf-8-validate":"^5.0.8"},"dependencies":{"@openzeppelin/contracts-upgradeable":"^3.4.2","@typechain/ethers-v5":"^9.0.0","@types/bad-words":"^3.0.1","@uniswap/v3-core":"^1.0.0","@uniswap/v3-periphery":"github:Uniswap/uniswap-v3-periphery#pull/96/head","bad-words":"^3.0.4"},"types":"./lib/cjs/src/index.d.ts","readme":"# Contracts\n\nMain repository for Midas Capital's contracts and SDK for interacting with those. \n\n## Structure\n```text\n ┌── README.md                        <- The top-level README \n ├── .github/workflows/TestSuite.yaml <- CICD pipeline definition\n ├── .vscode                          <- IDE configs\n │          \n │── artifacts                        <- (Auto-generated, git ignored)\n │       └── contracts                \n │                  ├── compound      <- Compiled contracts mirroring /contracts      \n │                  ├── external               \n │                  └──  ...      \n │\n ├── contracts                         <- All of our contracts\n │          ├── compound               <- Compound interfaces      \n │          ├── external               <- External contracts we require\n │          ├── oracles                <- Oracle contracts\n │          ├── utils                  <- Utility contracts \n │          └──  ...                   <- Main Fuse contracts\n │\n ├── deploy                           <- hardhat deployment scripts\n ├── deployments                      <- hardhat-generated deployment files\n ├── scripts                          <- hardhat scripts\n ├── src                              <- midas-sdk main folder\n ├── deployments.json                 <- generated on \"npx hardhat export\"\n └── hardhat.config.ts                <- hardhat confing\n```\n\n## Dev Workflow\n\n0. Install dependencies\n\n```text\n>>> npm install\n```\n\n2. To develop against the SDK, artifacts and deployment files must be generated first, as they are used by the SDK:\n\n```text\n>>> npx hardhat node \n# in another console\n>>>> npm run export\n```\n\n3. Build the sdk\n\n```text\n>>> npm run build\n```\n\n4. Run tests\n\n```shell\n# must have the local hardhat node running in another shell\n>>> npx hardhat test --network localhost\n```\n","readmeFilename":"README.md","gitHead":"c7cdd83a527f049bf17308dfd4c0d79b123d7b78","bugs":{"url":"https://github.com/midas-protocol/contracts/issues"},"homepage":"https://github.com/midas-protocol/contracts#readme","_id":"@midas-capital/sdk@0.1.3-beta.13","_nodeVersion":"16.13.2","_npmVersion":"8.1.2","dist":{"integrity":"sha512-w1pILBE44LuIR8nud07lh4aW3bDLHcHgdLSfq8kr8utVj4EqdzJBKP91cBUBv/sAvy1YNdGMnDIMSUIMV8InlQ==","shasum":"d9d0c5da69e5698ce7cd7ebc6bc74fe759bd1285","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.1.3-beta.13.tgz","fileCount":483,"unpackedSize":62683319,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh+UU2CRA9TVsSAnZWagAA0BYP/jLitjrVUOg6yOtWXreK\ntJGg9M+W1exJ9O/u9vLHFSmCzOqJc8VPAcdWqrYEmYYY/F5OJKCJ1wNgw4tg\n5b38QutD7M7cpsAql1i+ppDhD/DsolJkgLJoCjCCHPq0BzA1okv/8AclVVfh\nYP3nGUYo6D5chII59YEyJFlGd0nZwzsppvrUmik7FfaH6sGI1nfOYwFaDwGZ\nCqSxALP56eZNRRIpp0Km4iAN0Q4nKiAWz2umZ3Vrfb4Wm4e5oIMPS8rEAY1V\nE2JJGxy4CCbtXVpM9D7nPKokJejS94id82EEy5OdWhskmZgtozKtQyol1Vsg\nw8Tr/ZvMgowHksxTXoINZaQIoanihc9Quaz8GqeQf6lqFTj4o4v5D9S28/td\njFKsTaDFgyNzE1Ht3eLGOFdaefxnUP/K47f3WfII3gygf8WDea8sWIBaJJkz\nZkpANJ3l4dpV7NEXm66Evo8SKld55fmVNScbWpotScErfjbbv48PzUj2RUbM\nJ0I1ocZUMIYN0INQtiMqgfom9xW8orRBqIPua3PJJE0RjHS7R4Upu56Kgmfi\noZaMXZY7bLXfS3+TCpnjLQHwUcOCwa3fYPKe2Pgi+mvNmz6aEo0qGujvnkFa\nYe8wJXBIe17JNa2BN8Lqs9FOY0GVIcm2H9PuJnLd0i3ly2rzeQwV8s1zOFmT\nZSln\r\n=tlJC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHP8hg39eao6Y+DWElrSGlxpp5pnBqxLRwn9O3UHjq2OAiEA+deWwfNbc9qP3D4mD+MNTF60wKTCv8k4J/3484pcQPM="}]},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.1.3-beta.13_1643726134308_0.5335377692733412"},"_hasShrinkwrap":false},"0.1.3-beta.14":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/contracts.git"},"version":"0.1.3-beta.14","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"Main repository for Midas Capital's contracts and SDK for interacting with those.","main":"./lib/cjs/src/index.js","module":"./lib/esm/src/index.js","scripts":{"test":"hardhat test","export":"hardhat export --export-all ./deployments.json","build":"hardhat compile && npm run build:sdk","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","clean":"hardhat clean && rm -rf lib"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.2","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/hardhat":"^4.0.0","@types/chai":"^4.3.0","@types/mocha":"^9.1.0","@types/node":"^17.0.10","bufferutil":"^4.0.6","chai":"^4.3.4","dotenv":"^14.2.0","ethereum-waffle":"^3.4.0","ethers":"^5.5.3","hardhat":"^2.8.3","hardhat-abi-exporter":"^2.8.0","hardhat-deploy":"^0.9.27","hardhat-tracer":"^1.0.0-alpha.6","ts-node":"^10.4.0","typechain":"^7.0.0","typescript":"^4.5.5","utf-8-validate":"^5.0.8"},"dependencies":{"@openzeppelin/contracts-upgradeable":"^3.4.2","@typechain/ethers-v5":"^9.0.0","@types/bad-words":"^3.0.1","@uniswap/v3-core":"^1.0.0","@uniswap/v3-periphery":"github:Uniswap/uniswap-v3-periphery#pull/96/head","bad-words":"^3.0.4"},"types":"./lib/cjs/src/index.d.ts","readme":"# Contracts\n\nMain repository for Midas Capital's contracts and SDK for interacting with those. \n\n## Structure\n```text\n ┌── README.md                        <- The top-level README \n ├── .github/workflows/TestSuite.yaml <- CICD pipeline definition\n ├── .vscode                          <- IDE configs\n │          \n │── artifacts                        <- (Auto-generated, git ignored)\n │       └── contracts                \n │                  ├── compound      <- Compiled contracts mirroring /contracts      \n │                  ├── external               \n │                  └──  ...      \n │\n ├── contracts                         <- All of our contracts\n │          ├── compound               <- Compound interfaces      \n │          ├── external               <- External contracts we require\n │          ├── oracles                <- Oracle contracts\n │          ├── utils                  <- Utility contracts \n │          └──  ...                   <- Main Fuse contracts\n │\n ├── deploy                           <- hardhat deployment scripts\n ├── deployments                      <- hardhat-generated deployment files\n ├── scripts                          <- hardhat scripts\n ├── src                              <- midas-sdk main folder\n ├── deployments.json                 <- generated on \"npx hardhat export\"\n └── hardhat.config.ts                <- hardhat confing\n```\n\n## Dev Workflow\n\n0. Install dependencies\n\n```text\n>>> npm install\n```\n\n2. To develop against the SDK, artifacts and deployment files must be generated first, as they are used by the SDK:\n\n```text\n>>> npx hardhat node \n# in another console\n>>>> npm run export\n```\n\n3. Build the sdk\n\n```text\n>>> npm run build\n```\n\n4. Run tests\n\n```shell\n# must have the local hardhat node running in another shell\n>>> npx hardhat test --network localhost\n```\n","readmeFilename":"README.md","gitHead":"bf909b4860e4dadf4fb472d3bf682c41b3fad7f1","bugs":{"url":"https://github.com/midas-protocol/contracts/issues"},"homepage":"https://github.com/midas-protocol/contracts#readme","_id":"@midas-capital/sdk@0.1.3-beta.14","_nodeVersion":"16.13.2","_npmVersion":"8.1.2","dist":{"integrity":"sha512-L3q0aDNmU/IfKCSaqnqPfitUucKzvug/aH5f93UmC8pqB/X/yKx3SGdxwOBphN5w9Vn8vOmltADiN9ZNB/2GcQ==","shasum":"9b643929f9e679a30954d2a216ef6d227115e84b","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.1.3-beta.14.tgz","fileCount":483,"unpackedSize":62683348,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh+ksVCRA9TVsSAnZWagAAWi0QAIQlpFYNY8xd9otWuZ2c\nFvXrvcI97xWCpID+V8R1N8cvW9IV9+oPUYBIeyK7bXyhHhnmCnjigYXkQv6m\ny2iSllM0FUW1Y7gzXtJ9Jrm5FsMFKnVGRh4PLW05/7pHKkLVFXE4rntxdUfn\nXx/w58KO5KkXP23d4rT2RjeiLXHTa8I6DNlDDnSXdnHAKGMw9xZmDAXrB87p\nRVXj/GwcHWvzr5tqmbXlJCz9fL6VNKVd67yCagDpeALtxN3kfFo+CxIsIj1b\n0txleN8WTDABergZ7r3beteOGjMRopQ4zq6qU5sW7lF4+6GlBeOuyJNmTN/Y\nR37vrv+B5Sx7TkQsEFxpPqOXs+9dAojb+j4+16zOjAt8VxxsBxcVJyxrm7+R\nfb2dpzDSKUHqYktLIWMR8PtMYd6GLLkW3dkXJuDWh2yjDukvRp+ytqkyZQWp\nwicS/Eu+LNAIZG+wSRXSyMiu4RIgsu5g5Ho6guJUdELdLJDUWUG5eo2V0942\n5GJkrLbmkUgU+hi8KO7GjkICw+RwRofgcVGD7IBiVEz/ktZWhZHdd4yQMDRV\nAnQoSdwlEEZwHHTpioqp4WKzf3OKfsCHyhJgvO2J+He7EFRaF94w89FoW5lq\n0lYCt3zLqbIHRFUzR6kwpB0YD5xzgSOjO5HyiA+JMvEqLpAywzFDOZXXrk9u\nznxs\r\n=/twC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCZDa12dyfatbNBxSHefEZxnMQPKbk0oOQUeyE0XwjfNQIgewvUEwxjBboTBSBPp4oAUrWspeFTSbVqXUgjvXKFct8="}]},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.1.3-beta.14_1643793172826_0.48828769833647634"},"_hasShrinkwrap":false},"0.1.3-beta.15":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/contracts.git"},"version":"0.1.3-beta.15","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"Main repository for Midas Capital's contracts and SDK for interacting with those.","main":"./lib/cjs/src/index.js","module":"./lib/esm/src/index.js","scripts":{"test":"hardhat test","export":"hardhat export --export-all ./deployments.json","build":"hardhat compile && npm run build:sdk","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","clean":"hardhat clean && rm -rf lib"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.2","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/hardhat":"^4.0.0","@types/chai":"^4.3.0","@types/mocha":"^9.1.0","@types/node":"^17.0.10","bufferutil":"^4.0.6","chai":"^4.3.4","dotenv":"^14.2.0","ethereum-waffle":"^3.4.0","ethers":"^5.5.3","hardhat":"^2.8.3","hardhat-abi-exporter":"^2.8.0","hardhat-deploy":"^0.9.27","hardhat-tracer":"^1.0.0-alpha.6","ts-node":"^10.4.0","typechain":"^7.0.0","typescript":"^4.5.5","utf-8-validate":"^5.0.8"},"dependencies":{"@openzeppelin/contracts-upgradeable":"^3.4.2","@typechain/ethers-v5":"^9.0.0","@types/bad-words":"^3.0.1","@uniswap/v3-core":"^1.0.0","@uniswap/v3-periphery":"github:Uniswap/uniswap-v3-periphery#pull/96/head","bad-words":"^3.0.4"},"types":"./lib/cjs/src/index.d.ts","readme":"# Contracts\n\nMain repository for Midas Capital's contracts and SDK for interacting with those. \n\n## Structure\n```text\n ┌── README.md                        <- The top-level README \n ├── .github/workflows/TestSuite.yaml <- CICD pipeline definition\n ├── .vscode                          <- IDE configs\n │          \n │── artifacts                        <- (Auto-generated, git ignored)\n │       └── contracts                \n │                  ├── compound      <- Compiled contracts mirroring /contracts      \n │                  ├── external               \n │                  └──  ...      \n │\n ├── contracts                         <- All of our contracts\n │          ├── compound               <- Compound interfaces      \n │          ├── external               <- External contracts we require\n │          ├── oracles                <- Oracle contracts\n │          ├── utils                  <- Utility contracts \n │          └──  ...                   <- Main Fuse contracts\n │\n ├── deploy                           <- hardhat deployment scripts\n ├── deployments                      <- hardhat-generated deployment files\n ├── scripts                          <- hardhat scripts\n ├── src                              <- midas-sdk main folder\n ├── deployments.json                 <- generated on \"npx hardhat export\"\n └── hardhat.config.ts                <- hardhat confing\n```\n\n## Dev Workflow\n\n0. Install dependencies\n\n```text\n>>> npm install\n```\n\n2. To develop against the SDK, artifacts and deployment files must be generated first, as they are used by the SDK:\n\n```text\n>>> npx hardhat node \n# in another console\n>>>> npm run export\n```\n\n3. Build the sdk\n\n```text\n>>> npm run build\n```\n\n4. Run tests\n\n```shell\n# must have the local hardhat node running in another shell\n>>> npx hardhat test --network localhost\n```\n","readmeFilename":"README.md","gitHead":"ce0b855cd113ce01886a73d268938016d9bbe970","bugs":{"url":"https://github.com/midas-protocol/contracts/issues"},"homepage":"https://github.com/midas-protocol/contracts#readme","_id":"@midas-capital/sdk@0.1.3-beta.15","_nodeVersion":"16.13.2","_npmVersion":"8.1.2","dist":{"integrity":"sha512-zM11TFZB1qUFUYYKHkb8XiTt2tmDoD3LhSlP6mSosO6REoEn/kHY0FWZsjYs85xUGuL8akKV3dKERjEpI6+zbQ==","shasum":"78af371f96305efa062c232491583b88d12cb243","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.1.3-beta.15.tgz","fileCount":483,"unpackedSize":62685395,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh+o54CRA9TVsSAnZWagAAY2YQAIjgvi5J7XBhbGGjWH34\nrLV5KGZfo7XiGg662101ujmDCdf9da5ZOfl/xHuqDusL4ra4XPZG9x2C/seW\nWRfgs+d65hbbnDrgnd9h/yaKP1X08/aBhU6smJ1PrwCxUsI+ym6Xu2kyo2Bg\neiEMJTQAPzU2gQsb3fh1DKt5J5JGjhAgTcCi4zPZGF/+siV8iSRr9MBPorGB\nshhGXjfEA7wbUYDPus4OQBeansTW2VB4oceqiSbic1Of4gySMXuHXP76dUui\nUu+gYjd0GkV4ND9sNpfCRhXT9ptFKU1NXZfnVmVrveaISuJVS9rPlF7lSNGm\noenJBUSuEG/nFpJ5T6ZUwH2BBf2/2nl2nf5JuqgkdkN83VQj7ouMt31UEnV3\nR3AKdgpU8CeQvSc8j0IdP/1WJ4fuaH4qFb7sbs+17iJ283xUKVpItHnj1pvP\nPSMp8z21ecP2H2IAUoR+ZaKxnw1mObAVBreyCPyJBRuJP3AJmQf94L9Daj22\nvW9C8T2j+T2RSjf5I89IqH43q1X/CZ2tez65qSQ9agoHWDQlnImF3mIOfnJi\nknmbo5eyPrAZgXO2+m4U9AMwHj0wEu7jjmlDTc7zsNZ2YaUVWu4QqErR75HU\na3iCHRw0Q0GR/Gds9YfHdf98Ub50TQFUCBm8ai8bhVuuN5+VqZ4MKog1JAgI\n+FKo\r\n=ZXM8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG15xWHA9Rv2DCmD5JRiRzIP060yenbUtwfsvqQfmGqTAiEAgA9+chyKH2fAKl7zfDsb+WzbXXRkHpptCY5LLKLCCmY="}]},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.1.3-beta.15_1643810424438_0.6856901967032822"},"_hasShrinkwrap":false},"0.1.3-beta.16":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/contracts.git"},"version":"0.1.3-beta.16","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"Main repository for Midas Capital's contracts and SDK for interacting with those.","main":"./lib/cjs/src/index.js","module":"./lib/esm/src/index.js","scripts":{"test":"hardhat test","export":"hardhat export --export-all ./deployments.json","build":"hardhat compile && npm run build:sdk","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","clean":"hardhat clean && rm -rf lib"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.2","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/hardhat":"^4.0.0","@types/chai":"^4.3.0","@types/mocha":"^9.1.0","@types/node":"^17.0.10","bufferutil":"^4.0.6","chai":"^4.3.4","dotenv":"^14.2.0","ethereum-waffle":"^3.4.0","ethers":"^5.5.3","hardhat":"^2.8.3","hardhat-abi-exporter":"^2.8.0","hardhat-deploy":"^0.9.27","hardhat-tracer":"^1.0.0-alpha.6","ts-node":"^10.4.0","typechain":"^7.0.0","typescript":"^4.5.5","utf-8-validate":"^5.0.8"},"dependencies":{"@openzeppelin/contracts-upgradeable":"^3.4.2","@typechain/ethers-v5":"^9.0.0","@types/bad-words":"^3.0.1","@uniswap/v3-core":"^1.0.0","@uniswap/v3-periphery":"github:Uniswap/uniswap-v3-periphery#pull/96/head","bad-words":"^3.0.4"},"types":"./lib/cjs/src/index.d.ts","readme":"# Contracts\n\nMain repository for Midas Capital's contracts and SDK for interacting with those. \n\n## Structure\n```text\n ┌── README.md                        <- The top-level README \n ├── .github/workflows/TestSuite.yaml <- CICD pipeline definition\n ├── .vscode                          <- IDE configs\n │          \n │── artifacts                        <- (Auto-generated, git ignored)\n │       └── contracts                \n │                  ├── compound      <- Compiled contracts mirroring /contracts      \n │                  ├── external               \n │                  └──  ...      \n │\n ├── contracts                         <- All of our contracts\n │          ├── compound               <- Compound interfaces      \n │          ├── external               <- External contracts we require\n │          ├── oracles                <- Oracle contracts\n │          ├── utils                  <- Utility contracts \n │          └──  ...                   <- Main Fuse contracts\n │\n ├── deploy                           <- hardhat deployment scripts\n ├── deployments                      <- hardhat-generated deployment files\n ├── scripts                          <- hardhat scripts\n ├── src                              <- midas-sdk main folder\n ├── deployments.json                 <- generated on \"npx hardhat export\"\n └── hardhat.config.ts                <- hardhat confing\n```\n\n## Dev Workflow\n\n0. Install dependencies\n\n```text\n>>> npm install\n```\n\n2. To develop against the SDK, artifacts and deployment files must be generated first, as they are used by the SDK:\n\n```text\n>>> npx hardhat node \n# in another console\n>>>> npm run export\n```\n\n3. Build the sdk\n\n```text\n>>> npm run build\n```\n\n4. Run tests\n\n```shell\n# must have the local hardhat node running in another shell\n>>> npx hardhat test --network localhost\n```\n","readmeFilename":"README.md","gitHead":"dc3779b167241b7b7d05070cdfe559aaf5a47614","bugs":{"url":"https://github.com/midas-protocol/contracts/issues"},"homepage":"https://github.com/midas-protocol/contracts#readme","_id":"@midas-capital/sdk@0.1.3-beta.16","_nodeVersion":"16.13.2","_npmVersion":"8.1.2","dist":{"integrity":"sha512-X85iNA7cEGOkW/0SDI31g9pWzAUbnfD0HtdeKNbRvMGukqtjvxndSUz4eIozP5ncjhSlzmdZcQyGiwlcD91CEA==","shasum":"232418cc048ea27ef751ddb6a1ddbccefee01bc6","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.1.3-beta.16.tgz","fileCount":483,"unpackedSize":62789905,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiARWWCRA9TVsSAnZWagAACkgQAKTFyOl4aKcApWpIRBh6\nUelmCEUgC7bjSlPZKnby0KZCAiy6N4CpwYFrmk1dVm8wGq5M4r1V2X/nb9UE\nJrZZ2UrqkaUe8Nz8HhWeBNNGihnUGeXAkl7e/Z6nA9MXrKEJZ7U8RG86kbAt\nF595qdWEn6txrjsm9yvS6/DYo7s86KCM79ba1YNCMOmP0D8XoKcQUa3TyAPb\n8CtLe36oG6zlsNwhkuCJphujWjyjM4nfX4JtmSB96gB/isdYRKUdNjuJbGMt\n4tKgkoKdLALf8zdFRlM+LWRWWnR+/+aQWSQlYAcr+eq92zdfllDwuykRVhBq\nwEMwzcY98g4vHw8BGMKo8RUx7WtNOaUpkNQCvat6MZ8avfvXeJz2R+qfNuB2\nj8nGwXReD6KXBZ3p4sbTYb9yVziZuimMoLO88IJXyc4M8lV7YD/yFf2+Fg84\neoJsovNpY/0JqCJb+wrwcHrDs0KI3psS/LI7JYds8bNE0MT3P8hOtmfM3Dw2\nbpEFTE3scKCevJEKAhgGauu7xn6O6sQRIja4Pu5V5v40Z+7k72a5PEe1EcaX\ncPtNdd6kEvDb+FHSY/8INaogChAS4JD1zjxqlUoZJNkB/6B2bOn9MO4MKmKv\nSZ9GgChtYcCQyThaMmiMRe6nE5zEir6zLYkUnVdXVeWBZ43GGT2txSzPCe6n\n+tnq\r\n=mSbI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHmEWJjmy9zziA5mWDPFipcMpi4LbObIGTpa1nhZTEsFAiEAv6VX0EJ0bFGjtRaY92KVQPGb4cPANl6Kbk/o9oOItag="}]},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.1.3-beta.16_1644238229882_0.005690747275806984"},"_hasShrinkwrap":false},"0.1.3-beta.17":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/contracts.git"},"version":"0.1.3-beta.17","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"Main repository for Midas Capital's contracts and SDK for interacting with those.","main":"./lib/cjs/src/index.js","module":"./lib/esm/src/index.js","scripts":{"test":"hardhat test","export":"hardhat export --export-all ./deployments.json","build":"hardhat compile && npm run build:sdk","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","clean":"hardhat clean && rm -rf lib"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.2","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/hardhat":"^4.0.0","@types/chai":"^4.3.0","@types/mocha":"^9.1.0","@types/node":"^17.0.10","bufferutil":"^4.0.6","chai":"^4.3.4","dotenv":"^14.2.0","ethereum-waffle":"^3.4.0","ethers":"^5.5.3","hardhat":"^2.8.3","hardhat-abi-exporter":"^2.8.0","hardhat-deploy":"^0.9.27","hardhat-tracer":"^1.0.0-alpha.6","ts-node":"^10.4.0","typechain":"^7.0.0","typescript":"^4.5.5","utf-8-validate":"^5.0.8"},"dependencies":{"@openzeppelin/contracts-upgradeable":"^3.4.2","@typechain/ethers-v5":"^9.0.0","@types/bad-words":"^3.0.1","@uniswap/v3-core":"^1.0.0","@uniswap/v3-periphery":"github:Uniswap/uniswap-v3-periphery#pull/96/head","bad-words":"^3.0.4"},"types":"./lib/cjs/src/index.d.ts","gitHead":"97a0e2c67fcf28edcc7ea39be1c25e874a4b1c81","readme":"# Contracts\n\nMain repository for Midas Capital's contracts and SDK for interacting with those. \n\n## Structure\n```text\n ┌── README.md                        <- The top-level README \n ├── .github/workflows/TestSuite.yaml <- CICD pipeline definition\n ├── .vscode                          <- IDE configs\n │          \n │── artifacts                        <- (Auto-generated, git ignored)\n │       └── contracts                \n │                  ├── compound      <- Compiled contracts mirroring /contracts      \n │                  ├── external               \n │                  └──  ...      \n │\n ├── contracts                         <- All of our contracts\n │          ├── compound               <- Compound interfaces      \n │          ├── external               <- External contracts we require\n │          ├── oracles                <- Oracle contracts\n │          ├── utils                  <- Utility contracts \n │          └──  ...                   <- Main Fuse contracts\n │\n ├── deploy                           <- hardhat deployment scripts\n ├── deployments                      <- hardhat-generated deployment files\n ├── scripts                          <- hardhat scripts\n ├── src                              <- midas-sdk main folder\n ├── deployments.json                 <- generated on \"npx hardhat export\"\n └── hardhat.config.ts                <- hardhat confing\n```\n\n## Dev Workflow\n\n0. Install dependencies\n\n```text\n>>> npm install\n```\n\n2. To develop against the SDK, artifacts and deployment files must be generated first, as they are used by the SDK:\n\n```text\n>>> npx hardhat node \n# in another console\n>>>> npm run export\n```\n\n3. Build the sdk\n\n```text\n>>> npm run build\n```\n\n4. Run tests\n\n```shell\n# must have the local hardhat node running in another shell\n>>> npx hardhat test --network localhost\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/midas-protocol/contracts/issues"},"homepage":"https://github.com/midas-protocol/contracts#readme","_id":"@midas-capital/sdk@0.1.3-beta.17","_nodeVersion":"16.13.2","_npmVersion":"8.1.2","dist":{"integrity":"sha512-uVgM6jjx9nA/Y5Tk4BScTeTcQRZWTxBsZJ8a8Qbdw2XrA20B0zaxyuMWkicw0TMOzX3ALEAkgEE46fBVNkeaKA==","shasum":"7dce2b17450cfe9e89963b286cd203d27ad45070","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.1.3-beta.17.tgz","fileCount":483,"unpackedSize":62790012,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiA4zmCRA9TVsSAnZWagAAKlUP/ip0if1qbo/uYJrhvxKk\nHwSPw8+ZxN1ONVQYnlV5qCrw7Fdyu82NWygR9zCKHUQBSyNhoZrbQeydih+z\nsy4bKxFWCP/HToBnX5zjjy2n5g6ZLu3YYk6D1unAgDhyzR7uwcDperi9EDwL\nyRSFhyfsgXCccdUJ714jrR5Yhchoq/4GTqk5JTGZMduH+zTgPkqw3nXrFwjx\nHA+eQH1HjPR3yf6Uu9kRLTsZplWQpS0AOToy90L1DIrv8Bqdek1H+wQtxICD\n0TE3lor582eNMsNO4qhxZGMRgYYTYQyDJyiy3na66aeqe2LyV+HBJIk8rQoO\nsHvTj4b693NzYRV0v+I8F7Im3bW8y3wqsTEDuw3Rf6ejWd4DGT0sj9YGlFtJ\nd64ZOFSg1kTcuOhwB2oS94QAMGRmhNpgADou8S1UdPlKjPo7hMeYV1ju+8Dg\n1nvTU9GseyYGmaPHh3ymHGmsUqPZ7w6//7evLWr/14NdRrXT/v9ye2nM+ZNo\nre30q7CXgCJZamgm0Adf9KHMSq3Gh3oeM7oJ2khlD4xp8CFzwVg81bCgR73F\n8NxwAXsS/Mr81Va59rlPm0xys6FIEewE65ywfoC2Snz0HllG4vnJrRhwJxIs\n2IrvUU3gP/4SUSLGtBwLDtyk1qT8ACDscw3pP7ksbEh3jc2IRjCqfZPNk54m\n7YYa\r\n=7QMt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHpVHd9I2hYAhJOFdBdzX1t0d61fdRwkBbHuGWjeQUpmAiA7n2HQPuQlhP+ercQ99fCdpN1eatEqk1dIsGv964JVNA=="}]},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.1.3-beta.17_1644399845614_0.5632577871199524"},"_hasShrinkwrap":false},"0.1.3-beta.18":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/contracts.git"},"version":"0.1.3-beta.18","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"Main repository for Midas Capital's contracts and SDK for interacting with those.","main":"./lib/cjs/src/index.js","module":"./lib/esm/src/index.js","scripts":{"test":"hardhat test","export":"hardhat export --export-all ./deployments.json","build":"hardhat compile && npm run build:sdk","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","clean":"hardhat clean && rm -rf lib"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.2","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/hardhat":"^4.0.0","@types/chai":"^4.3.0","@types/mocha":"^9.1.0","@types/node":"^17.0.10","bufferutil":"^4.0.6","chai":"^4.3.4","dotenv":"^14.2.0","ethereum-waffle":"^3.4.0","ethers":"^5.5.3","hardhat":"^2.8.3","hardhat-abi-exporter":"^2.8.0","hardhat-deploy":"^0.9.27","hardhat-tracer":"^1.0.0-alpha.6","ts-node":"^10.4.0","typechain":"^7.0.0","typescript":"^4.5.5","utf-8-validate":"^5.0.8"},"dependencies":{"@openzeppelin/contracts-upgradeable":"^3.4.2","@typechain/ethers-v5":"^9.0.0","@types/bad-words":"^3.0.1","@uniswap/v3-core":"^1.0.0","@uniswap/v3-periphery":"github:Uniswap/uniswap-v3-periphery#pull/96/head","bad-words":"^3.0.4"},"types":"./lib/cjs/src/index.d.ts","readme":"# Contracts\n\nMain repository for Midas Capital's contracts and SDK for interacting with those. \n\n## Structure\n```text\n ┌── README.md                        <- The top-level README \n ├── .github/workflows/TestSuite.yaml <- CICD pipeline definition\n ├── .vscode                          <- IDE configs\n │          \n │── artifacts                        <- (Auto-generated, git ignored)\n │       └── contracts                \n │                  ├── compound      <- Compiled contracts mirroring /contracts      \n │                  ├── external               \n │                  └──  ...      \n │\n ├── contracts                         <- All of our contracts\n │          ├── compound               <- Compound interfaces      \n │          ├── external               <- External contracts we require\n │          ├── oracles                <- Oracle contracts\n │          ├── utils                  <- Utility contracts \n │          └──  ...                   <- Main Fuse contracts\n │\n ├── deploy                           <- hardhat deployment scripts\n ├── deployments                      <- hardhat-generated deployment files\n ├── scripts                          <- hardhat scripts\n ├── src                              <- midas-sdk main folder\n ├── deployments.json                 <- generated on \"npx hardhat export\"\n └── hardhat.config.ts                <- hardhat confing\n```\n\n## Dev Workflow\n\n0. Install dependencies\n\n```text\n>>> npm install\n```\n\n2. To develop against the SDK, artifacts and deployment files must be generated first, as they are used by the SDK:\n\n```text\n>>> npx hardhat node \n# in another console\n>>>> npm run export\n```\n\n3. Build the sdk\n\n```text\n>>> npm run build\n```\n\n4. Run tests\n\n```shell\n# must have the local hardhat node running in another shell\n>>> npx hardhat test --network localhost\n```\n","readmeFilename":"README.md","gitHead":"7ba6bf0f24d3e27960155660174827852866172a","bugs":{"url":"https://github.com/midas-protocol/contracts/issues"},"homepage":"https://github.com/midas-protocol/contracts#readme","_id":"@midas-capital/sdk@0.1.3-beta.18","_nodeVersion":"16.13.2","_npmVersion":"8.1.2","dist":{"integrity":"sha512-2IcGxdOygW7ceoZNf4S6F4RPOKS8EJe4MufjMhQ+dNiGP5LUfo45yuRrpM7Z0GYrA7Jw7zcsGzU0Bca8JwxkBw==","shasum":"718a2b885aa423b4f00f590be286d02c245e1b04","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.1.3-beta.18.tgz","fileCount":483,"unpackedSize":62876670,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiBWbjCRA9TVsSAnZWagAA0RMQAJ5BHJ0Ka1YjrHblV3lW\nMzOzhI/n/Mxrmm2rdDOAzyUFLl+1L1NNAvC0UfVvVjyeR5DseV4xzyO6di8X\ny9/FzH7zua+V2cBW0AjaWAWcT+zqPtRQpuetShf51mbNAcPXXRf5vmbdbVC4\n2nb2HyWKtSf1SceeBuabhjkg7wacPEFvXmO7L3HTG2sr8ByI8fP+IfDBMD+J\n2wvl2RJ4UMLvPGiEfQ78glMXC7xn3+HTUU8R3ROVi5jnN1pbDgcgSMT+N9uF\nVjKnUAld/jrZ9NSJVFeC+IRjx5Dzs9dv1o+veVxXBdZqVv7eevjUTkDZ443l\nAhWBJJGMZa4C7fCvR6ACzm7YDFSUXYPNDpLF+UcrG1+HHuHQWS/WHepaOAzW\nlJfS9rsWWxuXBmFfO1Ygi6CdrbsdHQuC7lZE+mSywYa6Kb3vLEpY06Dt95Sd\nFXxAsmJZbR248oIcyZlTKSRyc33PoSO7WcC+eUBtdMJpXX3wewtmvMV9h/wZ\n5nIDdj+PV8NkuLR+DrBDCPAd6OC+S6wClz9p2vy5kqpYbGISdM9EI/U/92GD\nNeD0pg7rTj0xzUmBrOlMyub1rSVurgXh8/4bXKI4ZLyKlG1xNzeYOkP+K9Kl\nxbLbXX4aeFKa8iBt+0oYsBNgc5hI9KsszDNEazB2zFgBX2EEagP5ntbtGXya\n0xmX\r\n=sdFO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCZH/b3FEaLVmqLE8PP7t9pV2/oBSBq5Ijw2DxqK29NiwIgEZTzjuIwDJxy9PZfuAusR0hmC2KvJ7wRCWc4854Feak="}]},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.1.3-beta.18_1644521187091_0.24903997025498503"},"_hasShrinkwrap":false},"0.1.3-beta.19":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/contracts.git"},"version":"0.1.3-beta.19","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"Main repository for Midas Capital's contracts and SDK for interacting with those.","main":"./lib/cjs/src/index.js","module":"./lib/esm/src/index.js","scripts":{"test":"hardhat test","export":"hardhat export --export-all ./deployments.json","build":"hardhat compile && npm run build:sdk","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","clean":"hardhat clean && rm -rf lib"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.2","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/hardhat":"^4.0.0","@types/chai":"^4.3.0","@types/mocha":"^9.1.0","@types/node":"^17.0.10","bufferutil":"^4.0.6","chai":"^4.3.4","dotenv":"^14.2.0","ethereum-waffle":"^3.4.0","ethers":"^5.5.3","hardhat":"^2.8.3","hardhat-abi-exporter":"^2.8.0","hardhat-deploy":"^0.9.27","hardhat-tracer":"^1.0.0-alpha.6","ts-node":"^10.4.0","typechain":"^7.0.0","typescript":"^4.5.5","utf-8-validate":"^5.0.8"},"dependencies":{"@openzeppelin/contracts-upgradeable":"^4.4.2","@typechain/ethers-v5":"^9.0.0","@types/bad-words":"^3.0.1","@uniswap/v3-core":"^1.0.0","@uniswap/v3-periphery":"github:Uniswap/uniswap-v3-periphery#pull/96/head","bad-words":"^3.0.4"},"types":"./lib/cjs/src/index.d.ts","readme":"# Contracts\n\nMain repository for Midas Capital's contracts and SDK for interacting with those. \n\n## Structure\n```text\n ┌── README.md                        <- The top-level README \n ├── .github/workflows/TestSuite.yaml <- CICD pipeline definition\n ├── .vscode                          <- IDE configs\n │          \n │── artifacts                        <- (Auto-generated, git ignored)\n │       └── contracts                \n │                  ├── compound      <- Compiled contracts mirroring /contracts      \n │                  ├── external               \n │                  └──  ...      \n │\n ├── contracts                         <- All of our contracts\n │          ├── compound               <- Compound interfaces      \n │          ├── external               <- External contracts we require\n │          ├── oracles                <- Oracle contracts\n │          ├── utils                  <- Utility contracts \n │          └──  ...                   <- Main Fuse contracts\n │\n ├── deploy                           <- hardhat deployment scripts\n ├── deployments                      <- hardhat-generated deployment files\n ├── scripts                          <- hardhat scripts\n ├── src                              <- midas-sdk main folder\n ├── deployments.json                 <- generated on \"npx hardhat export\"\n └── hardhat.config.ts                <- hardhat confing\n```\n\n## Dev Workflow\n\n0. Install dependencies\n\n```text\n>>> npm install\n```\n\n2. To develop against the SDK, artifacts and deployment files must be generated first, as they are used by the SDK:\n\n```text\n>>> npx hardhat node \n# in another console\n>>>> npm run export\n```\n\n3. Build the sdk\n\n```text\n>>> npm run build\n```\n\n4. Run tests\n\n```shell\n# must have the local hardhat node running in another shell\n>>> npx hardhat test --network localhost\n```\n\n## Running local node + liquidation bot\n\n1. Edit the `liquidation.env` file, add the account and private key from any of the\nsigner's accounts\n\n2. Edit desired parameters, if needed\n```shell\n>>> docker-compose up\n```\n\nThis will spin up the bot and a local node, and create an unhealthy pool. The bot\nwill act on it and liquidate it. \n\n3. Further test liquidations:\n\nIn another shell:\n\n```shell\n>>> npx hardhat pools:create-unhealthy --name \"test unhealthy\" --network localhost\n```\n\nCheck the logs from the bot and ensure it is performing the liquidations appropriately.\nYou can also run the UI and check the \"test unhealthy\", as it gets liquidated. ","readmeFilename":"README.md","gitHead":"f5287c0887b6cb6ea7db3e75e019dafa2a439a1c","bugs":{"url":"https://github.com/midas-protocol/contracts/issues"},"homepage":"https://github.com/midas-protocol/contracts#readme","_id":"@midas-capital/sdk@0.1.3-beta.19","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-xhQVPCRZfYvAGPviyXWC8udHFi/AQ68HjRhMbDHOa3qKfGrrKcIu84n7ftfDaF7gKYwu0WzKBDSCxjf1mrdaxw==","shasum":"5f7321a3f25f2241d5b82552451ccb78bc4bfa72","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.1.3-beta.19.tgz","fileCount":483,"unpackedSize":85308438,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiFCqaACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoLcA/9EwNz1ExGROSEfrXWEaSWV3HZxMDNtOTJrzFjNWrc6GsMBPmH\r\nVZDFdjvmh6ozHxd1SccPP6h1OKDOVR/8/fUvwaeoi+QADTL4ht+MfTlRTKXA\r\na9kKX8rER0KjLugHIe+/mQ6LkAGRJWIZos7S6vBYiFpj+GhO7thQ4y5tAcul\r\nf1nIzel8+vR4XruTBdzGoe0UwcyCMx13COR/quHki3uUjaZuG0aElX6KmWMT\r\nNtXsypK2PSDfxnbtwru2ndmNLgb7sLV/pztTs20cSWewqTcBxdltxmffHlmQ\r\nf2LIz0ozOj3qiZXMe8TMU+aPKS7iMlw0SPpLB62YYvn6/zdVgw/0fE/AMHTK\r\nw4viI0ZK0SqQpq0gBQPzsSNAc9dvo+o3FD8Y1AQNajkgOxFKOaEurvC8lCpZ\r\nqpIaNsH/hcFP0q0Jw7TigREYBaCnndeigdAnsskhhTNm6HiuYrgDr/erWC9N\r\nqrSS9qcxAPqTzclFU7L+WxKM3VASu4KoyVQpDk+mhOiHPyjkP457OqQqXjs7\r\nlmI6Ema2arY0Q8XOx7kt2lIx9w70n+G2jQLGEucFePl8ieudsBeWmOr7R2DG\r\nuPxhPEEm4jbFBcIyjWRIGsxaMhhYSdlaRdCpg0N0n+lIcRHLpC/tlZuPab6d\r\nd+gVu6EB+wvUu2qvM4G88rnrkOPSGhADv7g=\r\n=jfWc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDW5nGuTtjbMczfhmV90B6TLBbQQFKjfSoCuZ7AlYRqcAiEA2dy7tRrcVQu5fqX8R/ncMHG62QUlOKqoEX1pl5QW+RU="}]},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.1.3-beta.19_1645488794633_0.3182408688180818"},"_hasShrinkwrap":false},"0.1.3-beta.20":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/contracts.git"},"version":"0.1.3-beta.20","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"Main repository for Midas Capital's contracts and SDK for interacting with those.","main":"./lib/cjs/src/index.js","module":"./lib/esm/src/index.js","scripts":{"test":"hardhat test","export":"hardhat export --export-all ./deployments.json","build":"hardhat compile && npm run build:sdk","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","clean":"hardhat clean && rm -rf lib"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.2","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/hardhat":"^4.0.0","@types/chai":"^4.3.0","@types/mocha":"^9.1.0","@types/node":"^17.0.10","bufferutil":"^4.0.6","chai":"^4.3.4","dotenv":"^14.2.0","ethereum-waffle":"^3.4.0","ethers":"^5.5.3","hardhat":"^2.8.3","hardhat-abi-exporter":"^2.8.0","hardhat-deploy":"^0.9.27","hardhat-tracer":"^1.0.0-alpha.6","ts-node":"^10.4.0","typechain":"^7.0.0","typescript":"^4.5.5","utf-8-validate":"^5.0.8"},"dependencies":{"@openzeppelin/contracts-upgradeable":"^4.4.2","@typechain/ethers-v5":"^9.0.0","@types/bad-words":"^3.0.1","@uniswap/v3-core":"^1.0.0","@uniswap/v3-periphery":"github:Uniswap/uniswap-v3-periphery#pull/96/head","bad-words":"^3.0.4"},"types":"./lib/cjs/src/index.d.ts","gitHead":"da245e7bd1eb84cecd1f39dfb3d1e61453f0e6c2","readme":"# Contracts\n\nMain repository for Midas Capital's contracts and SDK for interacting with those. \n\n## Structure\n```text\n ┌── README.md                        <- The top-level README \n ├── .github/workflows/TestSuite.yaml <- CICD pipeline definition\n ├── .vscode                          <- IDE configs\n │          \n │── artifacts                        <- (Auto-generated, git ignored)\n │       └── contracts                \n │                  ├── compound      <- Compiled contracts mirroring /contracts      \n │                  ├── external               \n │                  └──  ...      \n │\n ├── contracts                         <- All of our contracts\n │          ├── compound               <- Compound interfaces      \n │          ├── external               <- External contracts we require\n │          ├── oracles                <- Oracle contracts\n │          ├── utils                  <- Utility contracts \n │          └──  ...                   <- Main Fuse contracts\n │\n ├── deploy                           <- hardhat deployment scripts\n ├── deployments                      <- hardhat-generated deployment files\n ├── scripts                          <- hardhat scripts\n ├── src                              <- midas-sdk main folder\n ├── deployments.json                 <- generated on \"npx hardhat export\"\n └── hardhat.config.ts                <- hardhat confing\n```\n\n## Dev Workflow\n\n0. Install dependencies\n\n```text\n>>> npm install\n```\n\n2. To develop against the SDK, artifacts and deployment files must be generated first, as they are used by the SDK:\n\n```text\n>>> npx hardhat node \n# in another console\n>>>> npm run export\n```\n\n3. Build the sdk\n\n```text\n>>> npm run build\n```\n\n4. Run tests\n\n```shell\n# must have the local hardhat node running in another shell\n>>> npx hardhat test --network localhost\n```\n\n## Running local node + liquidation bot\n\n1. Edit the `liquidation.env` file, add the account and private key from any of the\nsigner's accounts\n\n2. Edit desired parameters, if needed\n```shell\n>>> docker-compose up\n```\n\nThis will spin up the bot and a local node, and create an unhealthy pool. The bot\nwill act on it and liquidate it. \n\n3. Further test liquidations:\n\nIn another shell:\n\n```shell\n>>> npx hardhat pools:create-unhealthy --name \"test unhealthy\" --network localhost\n```\n\nCheck the logs from the bot and ensure it is performing the liquidations appropriately.\nYou can also run the UI and check the \"test unhealthy\", as it gets liquidated. ","readmeFilename":"README.md","bugs":{"url":"https://github.com/midas-protocol/contracts/issues"},"homepage":"https://github.com/midas-protocol/contracts#readme","_id":"@midas-capital/sdk@0.1.3-beta.20","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-sxyGcJZbMZE2KDSfBV8xIKMz5m10/AKzfhDLAlQiEn6lrMKsWbyNLXR7iBFN6KifWQzsrmpU1/jxoE/rT5j7NA==","shasum":"4e4335399ccec00bd479204ebf96371798d6131e","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.1.3-beta.20.tgz","fileCount":484,"unpackedSize":98264821,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiH0gWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqe2Q/6ApAw1Cxd9trCCxRqwEL5w/qOLuyJvQGHSId94+8OlCwBcs+r\r\noPBkYQuqTXSDr9HPZfQslLAZU7LAxmT8UWfBq+GFWBGy4NIMvxvqwmocuLuE\r\n1uutyFTeBz8K51qAedH/5+IfYN07V9p6hBPWwn49LBZC55FRxLgKTExCBeJN\r\ntM+/Mu3zFQnBnrxiRUYgkw8pp0hCV9LRgw6zHJUUN1DJQ1gstejvfLSRSjue\r\nhvpt3pBNbGN0QMDU3tOYXhMNJir80K8tPvjtAWgKwStnTmj/UdIeGra8u6j+\r\n3NPCE6sNJG3vvulsLfQn7oZhFtrLVhqifBtyvlMKbhb3wHiOzJ/WgDPMVSIR\r\n0DDgFoU4MZqHkm9ZVCtgoupTNdbQRXLEnIXmEBOh+Yi1iwL/mFWH7+qsbcRP\r\nOjgodtvDv0xZ+ubSQKRNV+Op5loApUZ2hhkxI+8hAZLOEhAyXOQgbRVKO1i4\r\nnXyIPIqtRoCCs7v2s/kfTjKeBmt98uRuCVC8egyvySo8a2I5lfjaeQ65V7HA\r\nGav8aoBSKPxnEXCRDuWMb50H/YOwqM9f+CB8koLWix9WExFK/e+Xx4Fh9BQo\r\nGNE1ccrKPQVObsCkQhBF4uA8kjZOQVjhdwLpkAlQX1vMRc/lokS5Xval1o2X\r\nLafwzRq7RhLHcDMvZwE/i0dyJ6x9CWgXWl8=\r\n=VwEZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDSKUFNecOvu7SeN1ycFAIVfvEGmAiywHUfBG0KKBOj7AIhAOEBlN3WAGq3+FbZX66wQjRqel0yx1Su/iNxIyaeIpYJ"}]},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.1.3-beta.20_1646217237685_0.6908674316590824"},"_hasShrinkwrap":false},"0.1.3-beta.21":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/contracts.git"},"version":"0.1.3-beta.21","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"Main repository for Midas Capital's contracts and SDK for interacting with those.","main":"./lib/cjs/src/index.js","module":"./lib/esm/src/index.js","scripts":{"test":"hardhat test","test:bsc":"ts-node prepare-chain bsc && hardhat test","export":"hardhat export --export-all ./deployments.json","build":"hardhat compile && npm run build:sdk","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","clean":"hardhat clean && rm -rf lib"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.2","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/hardhat":"^4.0.0","@types/chai":"^4.3.0","@types/mocha":"^9.1.0","@types/node":"^17.0.10","bufferutil":"^4.0.6","chai":"^4.3.4","dotenv":"^14.2.0","ethereum-waffle":"^3.4.0","ethers":"^5.5.3","hardhat":"^2.8.3","hardhat-abi-exporter":"^2.8.0","hardhat-deploy":"^0.9.27","hardhat-tracer":"^1.0.0-alpha.6","ts-node":"^10.5.0","typechain":"^7.0.0","typescript":"^4.5.5","utf-8-validate":"^5.0.8"},"dependencies":{"@openzeppelin/contracts-upgradeable":"^4.4.2","@typechain/ethers-v5":"^9.0.0","@types/bad-words":"^3.0.1","@uniswap/v3-core":"^1.0.0","@uniswap/v3-periphery":"github:Uniswap/uniswap-v3-periphery#pull/96/head","bad-words":"^3.0.4"},"types":"./lib/cjs/src/index.d.ts","readme":"# Contracts\n\nMain repository for Midas Capital's contracts and SDK for interacting with those. \n\n## Structure\n```text\n ┌── README.md                        <- The top-level README \n ├── .github/workflows/TestSuite.yaml <- CICD pipeline definition\n ├── .vscode                          <- IDE configs\n │          \n │── artifacts                        <- (Auto-generated, git ignored)\n │       └── contracts                \n │                  ├── compound      <- Compiled contracts mirroring /contracts      \n │                  ├── external               \n │                  └──  ...      \n │\n ├── contracts                         <- All of our contracts\n │          ├── compound               <- Compound interfaces      \n │          ├── external               <- External contracts we require\n │          ├── oracles                <- Oracle contracts\n │          ├── utils                  <- Utility contracts \n │          └──  ...                   <- Main Fuse contracts\n │\n ├── deploy                           <- hardhat deployment scripts\n ├── deployments                      <- hardhat-generated deployment files\n ├── scripts                          <- hardhat scripts\n ├── src                              <- midas-sdk main folder\n ├── deployments.json                 <- generated on \"npx hardhat export\"\n └── hardhat.config.ts                <- hardhat confing\n```\n\n## Dev Workflow\n\n0. Install dependencies\n\n```text\n>>> npm install\n```\n\n2. To develop against the SDK, artifacts and deployment files must be generated first, as they are used by the SDK:\n\n```text\n>>> npx hardhat node \n# in another console\n>>>> npm run export\n```\n\n3. Build the sdk\n\n```text\n>>> npm run build\n```\n\n4. Run tests\n\n```shell\n# must have the local hardhat node running in another shell\n>>> npx hardhat test --network localhost\n```\n\n## Running local node + liquidation bot\n\n1. Edit the `liquidation.env` file, add the account and private key from any of the\nsigner's accounts\n\n2. Edit desired parameters, if needed\n```shell\n>>> docker-compose up\n```\n\nThis will spin up the bot and a local node, and create an unhealthy pool. The bot\nwill act on it and liquidate it. \n\n3. Further test liquidations:\n\nIn another shell:\n\n```shell\n>>> npx hardhat pools:create-unhealthy --name \"test unhealthy\" --network localhost\n```\n\nCheck the logs from the bot and ensure it is performing the liquidations appropriately.\nYou can also run the UI and check the \"test unhealthy\", as it gets liquidated. ","readmeFilename":"README.md","gitHead":"26064ee068a27e701a46a35d5ba1635c45c60402","bugs":{"url":"https://github.com/midas-protocol/contracts/issues"},"homepage":"https://github.com/midas-protocol/contracts#readme","_id":"@midas-capital/sdk@0.1.3-beta.21","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-d8TozOYLnthRnb+M56JYyOPkCqKjBOfqOb6MM6OqrcJol0vL2wA5wkC34VAXJ78hChENdSjscAy/SwsiupBq9A==","shasum":"8fd9a055eaeaa70b6d58afa72a2d567d812010be","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.1.3-beta.21.tgz","fileCount":491,"unpackedSize":94894959,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiIKwcACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpSgw/+Ij5p94pM0WgN5HxVmcPdWyYFJ4SiE4Hy6YQyRK9khDp+RJas\r\nq8WKBA5zfKGYEeJjKqYqCJmpMakhm1ENcuHJhkpBJxNoibYNGgGnCNau00S8\r\nyY4+MahGtmNffyRtCmWav+vDbtgfpd/QHyVcu0HTCaGhENwxtnYZIr0fX45B\r\np5TwK8UPWLGO0yBemibU0RYo5tXcuKP209UehLpl8S1mWvqvmKgF5vPaIcIW\r\nKWXXJr6e3kp41JHpTkSJCueXGFV23jnaFoxcdZhXA3YMYnsZenjkfHyB5GNi\r\nXGnImOrrfIBz8gWHZG5P8gDJFwC77aeoZA6liASetHm+mhNJZlhd+IX7/Yua\r\nlAro/otYgnI+77eBizIcLvADPNSwrXDdfC6C+iLykKY36BhRTaPHLVWZA3gW\r\ndy92dXgvnR/u8cwvuA3zW0A6J3hyQnw7uizxRy1UJEt9MkB5WxNhEIjdV25F\r\nWj3J16By+3OhD9yiiwTg3BC18qZjiCNymhspZIvL6ZhW6jrd89XAlRmDAsVl\r\nK609haWPjhaPkz1TmMlf/SkHoXbEMKkpRVwXydq6MbPliyNafMngKGUfuwRp\r\n8zLeUq13Kjte/SWyEtnrbYTS8eAPHe905hf/fzf4QekZg0uDZaLUDqU5Mmk6\r\nvY9NFoXocGkM7FxUpjixbdebf0qYhq+mIac=\r\n=U8V1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCsoc2DZUI+W2mafLCOQsdPLYBFiVw2QV7PQ5xUj7kwjwIhALUn3jAHxM0+82uGtf0/BxXMM5Fz51Wqjfqm8qj3oTKw"}]},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.1.3-beta.21_1646308380260_0.4093159276761753"},"_hasShrinkwrap":false},"0.1.3-beta.22":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/contracts.git"},"version":"0.1.3-beta.22","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"Main repository for Midas Capital's contracts and SDK for interacting with those.","main":"./lib/cjs/src/index.js","module":"./lib/esm/src/index.js","scripts":{"test":"hardhat test","test:bsc":"ts-node prepare-chain bsc && hardhat test","export":"hardhat export --export-all ./deployments.json","build":"hardhat compile && npm run build:sdk","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","clean":"hardhat clean && rm -rf lib","prettier:sol":"prettier --write 'contracts/**/*.sol'","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'test/**/*.ts'","prettier":"npm run prettier:sol && npm run prettier:ts"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.2","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/hardhat":"^4.0.0","@types/chai":"^4.3.0","@types/mocha":"^9.1.0","@types/node":"^17.0.10","bufferutil":"^4.0.6","chai":"^4.3.4","dotenv":"^14.2.0","ethereum-waffle":"^3.4.0","ethers":"^5.5.3","hardhat":"^2.8.3","hardhat-abi-exporter":"^2.8.0","hardhat-deploy":"^0.9.27","hardhat-tracer":"^1.0.0-alpha.6","ts-node":"^10.5.0","typechain":"^7.0.0","typescript":"^4.5.5","utf-8-validate":"^5.0.8"},"dependencies":{"@openzeppelin/contracts-upgradeable":"^4.4.2","@typechain/ethers-v5":"^9.0.0","@types/bad-words":"^3.0.1","@uniswap/v3-core":"^1.0.0","@uniswap/v3-periphery":"github:Uniswap/uniswap-v3-periphery#pull/96/head","bad-words":"^3.0.4","prettier":"2.5.1","prettier-plugin-solidity":"1.0.0-beta.19","lint-staged":"12.2.1"},"types":"./lib/cjs/src/index.d.ts","readme":"# Contracts\n\nMain repository for Midas Capital's contracts and SDK for interacting with those. \n\n## Structure\n```text\n ┌── README.md                        <- The top-level README \n ├── .github/workflows/TestSuite.yaml <- CICD pipeline definition\n ├── .vscode                          <- IDE configs\n │          \n │── artifacts                        <- (Auto-generated, git ignored)\n │       └── contracts                \n │                  ├── compound      <- Compiled contracts mirroring /contracts      \n │                  ├── external               \n │                  └──  ...      \n │\n ├── contracts                         <- All of our contracts\n │          ├── compound               <- Compound interfaces      \n │          ├── external               <- External contracts we require\n │          ├── oracles                <- Oracle contracts\n │          ├── utils                  <- Utility contracts \n │          └──  ...                   <- Main Fuse contracts\n │\n ├── deploy                           <- hardhat deployment scripts\n ├── deployments                      <- hardhat-generated deployment files\n ├── scripts                          <- hardhat scripts\n ├── src                              <- midas-sdk main folder\n ├── deployments.json                 <- generated on \"npx hardhat export\"\n └── hardhat.config.ts                <- hardhat confing\n```\n\n## Dev Workflow\n\n0. Install dependencies\n\n```text\n>>> npm install\n```\n\n2. To develop against the SDK, artifacts and deployment files must be generated first, as they are used by the SDK:\n\n```text\n>>> npx hardhat node \n# in another console\n>>>> npm run export\n```\n\n3. Build the sdk\n\n```text\n>>> npm run build\n```\n\n4. Run tests\n\n```shell\n>>> npx hardhat test\n\n```\n\n### Gotchas\n\nIf you're developing against the contracts, and you're getting errors such as\n\n```shell\n Error: Deployment and registration of new Fuse pool failed: Transaction reverted: function returned an unexpected amount of data\n```\n\nIt is likely because the address of the `FuseFeeDistributor` has changed. Since it is hardcoded into one of the main \ncontracts that many others inherit from (all the Comptroller stuff), any calls to the old contract address will fail.\n\nBottom line: whenever you make changes to the `FuseFeeDistributor`, make sure that this contract address is updated in the two\nmain files that hardcode it:\n\n- `ComptrollerStorage.sol`\n- `CTokenInterfaces.sol`\n\n\nThis requires a few-step approach:\n\n1. Make your desired changes to the contracts\n2. Deploy them locally and run export\n3. Get the new FFD address and replace it where needed (if it all changed -- if its source code changed, so will its bytecode, and thus its deployed contract address)\n4. Re run the node / deployment and export / build\n\nThen, your tests should pass (assuming no other failures)\n\n### Running BSC mainnet fork locally\n\n1. Prepare hardhat config\n\n```shell\n>>> ts-node prepare-chain bsc\n```\n**NOTE**: this command is not idempotent, so running it twice will fail. Do not commit the changes to the hh config \n\n2. Run node\n\n```shell\n>>> npx hardhat node\n```\n \nYou can then generate the deployments for bsc (chain id 56)\n\n```shell\n>>> npm run export\n```\n \n\n## Running local node + liquidation bot\n\n1. Edit the `liquidation.env` file, add the account and private key from any of the\nsigner's accounts\n\n2. Edit desired parameters, if needed\n```shell\n>>> docker-compose up\n```\n\nThis will spin up the bot and a local node, and create an unhealthy pool. The bot\nwill act on it and liquidate it. \n\n3. Further test liquidations:\n\nIn another shell:\n\n```shell\n>>> npx hardhat pools:create-unhealthy --name \"test unhealthy\" --network localhost\n```\n\nCheck the logs from the bot and ensure it is performing the liquidations appropriately.\nYou can also run the UI and check the \"test unhealthy\", as it gets liquidated. ","readmeFilename":"README.md","gitHead":"218c6bb06d0069105ceefeda7cad0b2b50305f45","bugs":{"url":"https://github.com/midas-protocol/contracts/issues"},"homepage":"https://github.com/midas-protocol/contracts#readme","_id":"@midas-capital/sdk@0.1.3-beta.22","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-actbgUf7sosRWITrX6382as0vHTMIYvUs1ANyJXLJKGMTcfJAKBnnNvONtlwaIJtW2mpAsPKR364lzqF1Kxgbw==","shasum":"1e7cfee8c0ee17dac257a4ae61ddc8ae52d5c03f","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.1.3-beta.22.tgz","fileCount":491,"unpackedSize":94698621,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiIcLpACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqNMQ/+O+lN8Vb1ywUCDsmKZVSeCSq7/qFRKsD/pIaPm21X8k84RPfb\r\n52MiubeTv6b9TkBRhSMGUeASDAg6InP7RIUBNbFTB0wG5ivQQxVKD4c3S4Ju\r\nRX2u4aSVIaRAgMzq3iYskVL45Mk4xk5oIsRbFPRyWiMC6iXrIFHDbxzYmWU1\r\nQXA/3iWCZFSbfEb4LqVt/Ic2DyIboH0HvOnEeVowBpKL5Xeq+mcuzASKYYKr\r\n4PHJnrfsfkMiHilaJOsfXQiCxtivnszsDVouhmTM+39Lce4hJ9DyJMMXaLZ2\r\nP4BqsymxA+4HFiASNm9FreL1pFOmvQ5Typ7ulL849qhnDK1tmhQHRPyM8DNq\r\nU7GlncbtrORxwj17NSLAd9+iS5woEcUZ9KJkaUih4kMJjnwtNeSZAa9a/B24\r\nALXnLl5AmFSQFcv1Ms5ju1Nm9caDoMMLT69qW3oDfQSwEdYm33v2UHHsau6T\r\nCw+r+uH3yaSfqhy6UBaum04XGWOgQBPesM/HpdbbdL5UqIdydgC8tasXYU85\r\nCyeW8oCqSy5mIX8oQdl8SEBwD9BlYUP9y1egCIa9LEgmpzr+B0Jc6sID0hhT\r\nMwSCFayAbczmS7bjycps1wv91d78CMng58VdAqK2+208b8h1wo2e52dV++p/\r\nOSTLs6TBDuO70s7vtzO2BbQUWr8aKL4X788=\r\n=UGL4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEPO8TN5P+oyPtGVAYmSMRwTgwmHLR2HPPmkvQGGZE35AiEAw0Atmh9r0HvaIw6QfwVsKLSgP3wkl0UbGyNjCpk/PFM="}]},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.1.3-beta.22_1646379752991_0.2522096676749741"},"_hasShrinkwrap":false},"0.1.3-beta.23":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/contracts.git"},"version":"0.1.3-beta.23","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"Main repository for Midas Capital's contracts and SDK for interacting with those.","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","scripts":{"test":"hardhat test","test:forge":"forge test","test:bsc":"ts-node prepare-chain bsc && hardhat test","export":"hardhat export --export-all ./deployments.json","build":"hardhat compile && forge build && npm run build:sdk","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","clean":"hardhat clean && rm -rf lib","prettier:sol":"prettier --write 'contracts/**/*.sol' 'contracts_forge/**/*.sol'","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'test/**/*.ts'","prettier":"npm run prettier:ts && npm run prettier:sol"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.2","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/hardhat":"^4.0.0","@types/chai":"^4.3.0","@types/mocha":"^9.1.0","@types/node":"^17.0.10","bufferutil":"^4.0.6","chai":"^4.3.4","dotenv":"^14.2.0","ethereum-waffle":"^3.4.0","ethers":"^5.5.3","hardhat":"^2.8.3","hardhat-abi-exporter":"^2.8.0","hardhat-deploy":"^0.9.27","hardhat-tracer":"^1.0.0-alpha.6","ts-node":"^10.5.0","typechain":"^7.0.0","typescript":"^4.5.5","utf-8-validate":"^5.0.8"},"dependencies":{"@openzeppelin/contracts-upgradeable":"^4.5.0","@rari-capital/solmate":"^6.2.0","@typechain/ethers-v5":"^9.0.0","@types/bad-words":"^3.0.1","@uniswap/v3-core":"^1.0.0","@uniswap/v3-periphery":"github:Uniswap/uniswap-v3-periphery#pull/96/head","bad-words":"^3.0.4","prettier":"2.5.1","prettier-plugin-solidity":"1.0.0-beta.19","lint-staged":"12.2.1"},"types":"./dist/cjs/src/index.d.ts","readme":"# Contracts\n\nMain repository for Midas Capital's contracts and SDK for interacting with those.\n\n## Structure\n\n```text\n ┌── README.md                        <- The top-level README\n ├── .github/workflows/TestSuite.yaml <- CICD pipeline definition\n ├── .vscode                          <- IDE configs\n │\n │── artifacts                        <- (Auto-generated, git ignored)\n │       └── contracts\n │                  ├── compound      <- Compiled contracts mirroring /contracts\n │                  ├── external\n │                  └──  ...\n │\n ├── contracts                         <- All of our contracts\n │          ├── compound               <- Compound interfaces\n │          ├── external               <- External contracts we require\n │          ├── oracles                <- Oracle contracts\n │          ├── utils                  <- Utility contracts\n │          └──  ...                   <- Main Fuse contracts\n │\n ├── deploy                           <- hardhat deployment scripts\n ├── deployments                      <- hardhat-generated deployment files\n ├── scripts                          <- hardhat scripts\n ├── src                              <- midas-sdk main folder\n ├── deployments.json                 <- generated on \"npx hardhat export\"\n └── hardhat.config.ts                <- hardhat confing\n```\n\n## Dev Workflow\n\n0. Install dependencies\n\n```text\n>>> npm install\n```\n\n2. To develop against the SDK, artifacts and deployment files must be generated first, as they are used by the SDK:\n\n```text\n>>> npx hardhat node\n# in another console\n>>>> npm run export\n```\n\n3. Build the sdk\n\n```text\n>>> npm run build\n```\n\n4. Run tests\n\n```shell\n>>> npx hardhat test\n\n```\n\n### Gotchas\n\nIf you're developing against the contracts, and you're getting errors such as\n\n```shell\n Error: Deployment and registration of new Fuse pool failed: Transaction reverted: function returned an unexpected amount of data\n```\n\nIt is likely because the address of the `FuseFeeDistributor` has changed. Since it is hardcoded into one of the main\ncontracts that many others inherit from (all the Comptroller stuff), any calls to the old contract address will fail.\n\nBottom line: whenever you make changes to the `FuseFeeDistributor`, make sure that this contract address is updated in the two\nmain files that hardcode it:\n\n- `ComptrollerStorage.sol`\n- `CTokenInterfaces.sol`\n\nThis requires a few-step approach:\n\n1. Make your desired changes to the contracts\n2. Deploy them locally and run export\n3. Get the new FFD address and replace it where needed (if it all changed -- if its source code changed, so will its bytecode, and thus its deployed contract address)\n4. Re run the node / deployment and export / build\n\nThen, your tests should pass (assuming no other failures)\n\n### Running BSC mainnet fork locally\n\n1. Prepare hardhat config\n\n```shell\n>>> ts-node prepare-chain bsc\n```\n\n**NOTE**: this command is not idempotent, so running it twice will fail. Do not commit the changes to the hh config\n\n2. Run node\n\n```shell\n>>> npx hardhat node\n```\n\nYou can then generate the deployments for bsc (chain id 56)\n\n```shell\n>>> npm run export\n```\n\n## Running local node + liquidation bot\n\n1. Edit the `liquidation.env` file, add the account and private key from any of the\n   signer's accounts\n\n2. Edit desired parameters, if needed\n\n```shell\n>>> docker-compose up\n```\n\nThis will spin up the bot and a local node, and create an unhealthy pool. The bot\nwill act on it and liquidate it.\n\n3. Further test liquidations:\n\nIn another shell:\n\n```shell\n>>> npx hardhat pools:create-unhealthy --name \"test unhealthy\" --network localhost\n```\n\nCheck the logs from the bot and ensure it is performing the liquidations appropriately.\nYou can also run the UI and check the \"test unhealthy\", as it gets liquidated.\n\n## Running Forge tests\n\n1. Install forge (mac, linux)\n\n```\ncurl -L https://foundry.paradigm.xyz | bash\nfoundryup\n```\n\n2. Initalize forge in the repo\n\n```\nforge init --force\n```\n\n3.  Build the contracts\n\n```\nforge build\n```\n\n4. Test away\n\n```\nforge test\n```\n","readmeFilename":"README.md","gitHead":"1a863823bb730d6615dfeb84ceae893c903533e1","bugs":{"url":"https://github.com/midas-protocol/contracts/issues"},"homepage":"https://github.com/midas-protocol/contracts#readme","_id":"@midas-capital/sdk@0.1.3-beta.23","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-UyGVtrAOW1eKpX5RPIHrQMxP1pwRhbhjG7+kMse9HpE9iOg23VSoifRUigYDVQp/FQvDwU44NaK8eMyXO3bypg==","shasum":"5d97bf52fc2f9eae9d8c10db187e6b2133c9e1c5","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.1.3-beta.23.tgz","fileCount":556,"unpackedSize":109695519,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiIiDdACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqD1A//ZhFUiweN+JeQXcA/V25ZKgts8iH2iSScC6idK/v5FCrmIlCM\r\nYACPVc09Kxb0Ou2F1TF3NcUnMqyZxU1ZGzH/bC4xs5sfbwrTMBog+9zx7VpL\r\nqQzOndih619YD73GGHDh6qXLBBuq6oDX8O3M2Rg1u3r4zb4JbVQezaIAe3Jl\r\nrD4upYxYAqTZgaNzMrpd4nHkMA8SGWef4R4zTBQEO/r9YXjjWWKbsmIkS7IT\r\nP2LcQsyb1/K2vCcDUcJ2ESmpbHQ6Z86KBD1SSny1OHuI1FinpxXkg4/FsQ3v\r\nY1AfRPh/hcUOnFSGiQ7v/pAUjKyyrPcV/9TgB7QMtoFgvB63jbKvItWNhFNQ\r\nXXpVo/LqJbTmcl1xLg0ezO7KL8Yt3jIJSAkOegqYaZ1hKy9OwYFjhUV44CPv\r\n8+04/JNNhpnUrnhYxkTdOAiGYTfVk1fz+aiHJ2CpauZqHN+RXcNJWt6/bAPd\r\nHO2Y4jiBci8LxCMU5MxnZ9Zl48nDKptZ/MQNYY8Cx0R3A4UdkdWzXKHGpRC2\r\noJX4tWDRhIZYX3lIUjXPXUDSK6oKE6YKMxO7oPEHxdY/srZcneHe7f//OeOV\r\niCDG5QTL8jlPDR6ugjzYKQsSaSmmKRlQXn3phFmz4IbctWoiUbFzkI+SZgiq\r\n4chRP1TbhEtaiwAGlQhsFuLOhwlnnhdoudo=\r\n=4CcZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDwHOCcGcKCMDSBNw6zlNkcmGUZBbMzWqPbdWpEWXXUAQIgANuLvNsoMfGTSgNrv8iMVm7xWPFEwx4+qnerMrbecyU="}]},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.1.3-beta.23_1646403804952_0.5357127004566209"},"_hasShrinkwrap":false},"0.1.3-beta.24":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/contracts.git"},"version":"0.1.3-beta.24","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"Main repository for Midas Capital's contracts and SDK for interacting with those.","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","scripts":{"test":"hardhat test","test:forge":"forge test --no-match-contract LiquidityMining","test:bsc":"FORK_URL=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/mainnet/archive FORK_BLOCK_NUMBER=15641803 FORK_CHAIN_ID=56 hardhat test","export":"hardhat export --export-all ./deployments.json","build":"hardhat compile && forge build && npm run build:sdk","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","clean":"hardhat clean && rm -rf lib","prettier:sol":"prettier --write 'contracts/**/*.sol' 'contracts_forge/**/*.sol'","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'test/**/*.ts'","prettier":"npm run prettier:ts && npm run prettier:sol"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.2","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/hardhat":"^4.0.0","@types/chai":"^4.3.0","@types/mocha":"^9.1.0","@types/node":"^17.0.10","bufferutil":"^4.0.6","chai":"^4.3.4","dotenv":"^14.2.0","ethereum-waffle":"^3.4.0","ethers":"^5.5.3","hardhat":"^2.8.3","hardhat-abi-exporter":"^2.8.0","hardhat-deploy":"^0.9.27","hardhat-tracer":"^1.0.0-alpha.6","ts-node":"^10.5.0","typechain":"^7.0.0","typescript":"^4.5.5","utf-8-validate":"^5.0.8"},"dependencies":{"@keydonix/uniswap-oracle-contracts":"^1.0.6","@keydonix/uniswap-oracle-sdk":"^1.0.7","@keydonix/uniswap-oracle-sdk-adapter":"file:../../uniswap-oracle/sdk-adapter","@openzeppelin/contracts-upgradeable":"^4.5.0","@rari-capital/solmate":"^6.2.0","@typechain/ethers-v5":"^9.0.0","@types/bad-words":"^3.0.1","@uniswap/v3-core":"^1.0.0","@uniswap/v3-periphery":"github:Uniswap/uniswap-v3-periphery#pull/96/head","bad-words":"^3.0.4","prettier":"2.5.1","prettier-plugin-solidity":"1.0.0-beta.19","lint-staged":"12.2.1"},"types":"./dist/cjs/src/index.d.ts","gitHead":"795cc300aa0327ce29e3f6bc3f50dbc72e5fc432","readme":"# Contracts\n\nMain repository for Midas Capital's contracts and SDK for interacting with those.\n\n## Structure\n\n```text\n ┌── README.md                        <- The top-level README\n ├── .github/workflows/TestSuite.yaml <- CICD pipeline definition\n ├── .vscode                          <- IDE configs\n │\n │── artifacts                        <- (Auto-generated, git ignored)\n │       └── contracts\n │                  ├── compound      <- Compiled contracts mirroring /contracts\n │                  ├── external\n │                  └──  ...\n │\n ├── contracts                         <- All of our contracts\n │          ├── compound               <- Compound interfaces\n │          ├── external               <- External contracts we require\n │          ├── oracles                <- Oracle contracts\n │          ├── utils                  <- Utility contracts\n │          └──  ...                   <- Main Fuse contracts\n │\n ├── deploy                           <- hardhat deployment scripts\n ├── deployments                      <- hardhat-generated deployment files\n ├── scripts                          <- hardhat scripts\n ├── src                              <- midas-sdk main folder\n ├── deployments.json                 <- generated on \"npx hardhat export\"\n └── hardhat.config.ts                <- hardhat confing\n```\n\n## Dev Workflow\n\n0. Install dependencies\n\n```text\n>>> npm install\n```\n\n2. To develop against the SDK, artifacts and deployment files must be generated first, as they are used by the SDK:\n\n```text\n>>> npx hardhat node\n# in another console\n>>>> npm run export\n```\n\n3. Build the sdk\n\n```text\n>>> npm run build\n```\n\n4. Run tests\n\n```shell\n>>> npx hardhat test\n\n```\n\n### Gotchas\n\nIf you're developing against the contracts, and you're getting errors such as\n\n```shell\n Error: Deployment and registration of new Fuse pool failed: Transaction reverted: function returned an unexpected amount of data\n```\n\nIt is likely because the address of the `FuseFeeDistributor` has changed. Since it is hardcoded into one of the main\ncontracts that many others inherit from (all the Comptroller stuff), any calls to the old contract address will fail.\n\nBottom line: whenever you make changes to the `FuseFeeDistributor`, make sure that this contract address is updated in the two\nmain files that hardcode it:\n\n- `ComptrollerStorage.sol`\n- `CTokenInterfaces.sol`\n\nThis requires a few-step approach:\n\n1. Make your desired changes to the contracts\n2. Deploy them locally and run export\n3. Get the new FFD address and replace it where needed (if it all changed -- if its source code changed, so will its bytecode, and thus its deployed contract address)\n4. Re run the node / deployment and export / build\n\nThen, your tests should pass (assuming no other failures)\n\n### Running BSC mainnet fork locally\n\n1. Add env vars in .env\n\n`.env`\n```\nFORK_URL=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/mainnet/archive\nFORK_BLOCK_NUMBER=15641803\nFORK_CHAIN_ID=56\n```\n\n2. Run node\n\n```shell\n>>> npx hardhat node\n```\n\nYou can then generate the deployments for bsc (chain id 56)\n\n```shell\n>>> npm run export\n```\n\n## Running local node + liquidation bot\n\n1. Edit the `liquidation.env` file, add the account and private key from any of the\n   signer's accounts\n\n2. Edit desired parameters, if needed\n\n```shell\n>>> docker-compose up\n```\n\nThis will spin up the bot and a local node, and create an unhealthy pool. The bot\nwill act on it and liquidate it.\n\n3. Further test liquidations:\n\nIn another shell:\n\n```shell\n>>> npx hardhat pools:create-unhealthy --name \"test unhealthy\" --network localhost\n```\n\nCheck the logs from the bot and ensure it is performing the liquidations appropriately.\nYou can also run the UI and check the \"test unhealthy\", as it gets liquidated.\n\n## Running Forge tests\n\n1. Install forge (mac, linux)\n\n```\ncurl -L https://foundry.paradigm.xyz | bash\nfoundryup\n```\n\n2. Initalize forge in the repo\n\n```\nforge init --force\n```\n\n3.  Build the contracts\n\n```\nforge build\n```\n\n4. Test away\n\n```\nforge test\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/midas-protocol/contracts/issues"},"homepage":"https://github.com/midas-protocol/contracts#readme","_id":"@midas-capital/sdk@0.1.3-beta.24","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-V2DswwbA/Eg86Rdd8lUYtAa8THDmwMNyk3S+na6Buv3OEaFwFB/lFZXLBak2wgbVmnhUwsV74quQUWE/Ssc3lQ==","shasum":"2a13d48c18f8e0b59be6c59fb33ed271a9bc2da5","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.1.3-beta.24.tgz","fileCount":574,"unpackedSize":118100207,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiKb4MACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpN7hAAgBjSH0K4i+HRplteDALJxKTA/Hd7g476HCz6E2iF2YBUCPzi\r\nPUnk16Tc5i35kCiPCAHfNmOvjgbF2bgHDWXTY/chk1IcWYtNdmEYgXmYdI9V\r\n6juTUWOO13UB5wI1BaNilyKJdUcVYMBHfgAO/zfcGfzzCnEgrGjqqvjmJG2b\r\nkjT0qABro81py8rYVLiH84smZM9r2RvuFtZyHWVeKy2BHySlk3JFtvKjJGLz\r\nDExryb5XjXYlyXAtLT5FgMr8wJVQPf1w/QHLaZadrePzwJ3rOrwVYFCkkN8G\r\nbBgjjyzsvESYP+7SucDW9q6ZjQiT3/A8u6HJBPPgPIstB6AMlw+x26vGUHvM\r\nFPSMDHi+yu4PRXUZoBgXCC8d19wid8MOjz9x9Vyd+bt+xxEUMndPa9Vi0uZy\r\nU5Zno/9PNYuTBMsbrjlF9wEsdWjY8B4ejHzkPhj2dgxsHzmxtvTC8qqK1iY/\r\nzXYnj8/sG8yUgbc3hRJNIx9gTjFo+5CZqJTJRqyeRHD6TwpL1nqPEac+GvZ3\r\nBQ27KlSWqjYBDRnKK/jV6SkqQOC4EqamuFl1yZYSWz9ei9PV++PkHBqHxQBi\r\nLvt+dstqFmka5Bid6piw3NIXe1WaeDjUk/gkT/EmWWnwOs8B7Qr29l1tQlQW\r\nDBWrm92z0/96K59VZmVuleDxaCpmnduQZME=\r\n=DGxI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGVgk86O5gDg+oFrhkUW7VOpoJkB/Pkv5vjAaqOZBCKiAiEAmHjF5wVeOaPcYAiiOrhPLM2H20+Ui6VwtZfFxcrA0vY="}]},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.1.3-beta.24_1646902795631_0.735357120460429"},"_hasShrinkwrap":false},"0.1.3-beta.25":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/contracts.git"},"version":"0.1.3-beta.25","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"Main repository for Midas Capital's contracts and SDK for interacting with those.","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","scripts":{"test":"hardhat test","test:forge":"forge test --no-match-contract LiquidityMining","test:bsc":"FORK_URL=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/mainnet/archive FORK_BLOCK_NUMBER=15641803 FORK_CHAIN_ID=56 hardhat test","export":"hardhat export --export-all ./deployments.json","build":"npm run build:hardhat && npm run build:sdk && npm run build:forge","build:forge":"forge build","build:hardhat":"hardhat compile","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","clean":"hardhat clean && rm -rf lib","prettier:sol":"prettier --write 'contracts/**/*.sol' 'contracts_forge/**/*.sol'","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'test/**/*.ts'","prettier":"npm run prettier:ts && npm run prettier:sol"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.2","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/hardhat":"^5.0.0","@types/chai":"^4.3.0","@types/mocha":"^9.1.0","@types/node":"^17.0.10","bufferutil":"^4.0.6","chai":"^4.3.4","dotenv":"^14.2.0","ethereum-waffle":"^3.4.0","ethers":"^5.5.3","hardhat":"^2.9.1","hardhat-abi-exporter":"^2.8.0","hardhat-deploy":"^0.9.27","hardhat-tracer":"^1.0.0-alpha.6","ts-node":"^10.5.0","typechain":"^7.0.1","typescript":"^4.6.2","utf-8-validate":"^5.0.8"},"dependencies":{"@keydonix/uniswap-oracle-contracts":"^1.0.6","@keydonix/uniswap-oracle-sdk":"^1.0.7","@keydonix/uniswap-oracle-sdk-adapter":"^1.0.7","@openzeppelin/contracts-upgradeable":"^4.5.0","@rari-capital/solmate":"^6.2.0","@typechain/ethers-v5":"^9.0.0","@types/bad-words":"^3.0.1","@uniswap/v3-core":"^1.0.0","@uniswap/v3-periphery":"github:Uniswap/uniswap-v3-periphery#pull/96/head","bad-words":"^3.0.4","prettier":"2.5.1","prettier-plugin-solidity":"1.0.0-beta.19","lint-staged":"12.2.1"},"types":"./dist/cjs/src/index.d.ts","readme":"# Contracts\n\nMain repository for Midas Capital's contracts and SDK for interacting with those.\n\n## Structure\n\n```text\n ┌── README.md                        <- The top-level README\n ├── .github/workflows/TestSuite.yaml <- CICD pipeline definition\n ├── .vscode                          <- IDE configs\n │\n │── artifacts                        <- (Auto-generated, git ignored)\n │       └── contracts\n │                  ├── compound      <- Compiled contracts mirroring /contracts\n │                  ├── external\n │                  └──  ...\n │\n ├── contracts                         <- All of our contracts\n │          ├── compound               <- Compound interfaces\n │          ├── external               <- External contracts we require\n │          ├── oracles                <- Oracle contracts\n │          ├── utils                  <- Utility contracts\n │          └──  ...                   <- Main Fuse contracts\n │\n ├── deploy                           <- hardhat deployment scripts\n ├── deployments                      <- hardhat-generated deployment files\n ├── scripts                          <- hardhat scripts\n ├── src                              <- midas-sdk main folder\n ├── deployments.json                 <- generated on \"npx hardhat export\"\n └── hardhat.config.ts                <- hardhat confing\n```\n\n## Dev Workflow\n\n0. Install dependencies\n\n```text\n>>> npm install\n```\n\n2. To develop against the SDK, artifacts and deployment files must be generated first, as they are used by the SDK:\n\n```text\n>>> npx hardhat node\n# in another console\n>>>> npm run export\n```\n\n3. Build the sdk\n\n```text\n>>> npm run build\n```\n\n4. Run tests\n\n```shell\n>>> npx hardhat test\n\n```\n\n### Gotchas\n\nIf you're developing against the contracts, and you're getting errors such as\n\n```shell\n Error: Deployment and registration of new Fuse pool failed: Transaction reverted: function returned an unexpected amount of data\n```\n\nIt is likely because the address of the `FuseFeeDistributor` has changed. Since it is hardcoded into one of the main\ncontracts that many others inherit from (all the Comptroller stuff), any calls to the old contract address will fail.\n\nBottom line: whenever you make changes to the `FuseFeeDistributor`, make sure that this contract address is updated in the two\nmain files that hardcode it:\n\n- `ComptrollerStorage.sol`\n- `CTokenInterfaces.sol`\n\nThis requires a few-step approach:\n\n1. Make your desired changes to the contracts\n2. Deploy them locally and run export\n3. Get the new FFD address and replace it where needed (if it all changed -- if its source code changed, so will its bytecode, and thus its deployed contract address)\n4. Re run the node / deployment and export / build\n\nThen, your tests should pass (assuming no other failures)\n\n### Running BSC mainnet fork locally\n\n1. Add env vars in .env\n\n`.env`\n```\nFORK_URL=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/mainnet/archive\nFORK_BLOCK_NUMBER=15641803\nFORK_CHAIN_ID=56\n```\n\n2. Run node\n\n```shell\n>>> npx hardhat node\n```\n\nYou can then generate the deployments for bsc (chain id 56)\n\n```shell\n>>> npm run export\n```\n\n## Running local node + liquidation bot\n\n1. Edit the `liquidation.env` file, add the account and private key from any of the\n   signer's accounts\n\n2. Edit desired parameters, if needed\n\n```shell\n>>> docker-compose up\n```\n\nThis will spin up the bot and a local node, and create an unhealthy pool. The bot\nwill act on it and liquidate it.\n\n3. Further test liquidations:\n\nIn another shell:\n\n```shell\n>>> npx hardhat pools:create-unhealthy --name \"test unhealthy\" --network localhost\n```\n\nCheck the logs from the bot and ensure it is performing the liquidations appropriately.\nYou can also run the UI and check the \"test unhealthy\", as it gets liquidated.\n\n## Running Forge tests\n\n1. Install forge (mac, linux)\n\n```\ncurl -L https://foundry.paradigm.xyz | bash\nfoundryup\n```\n\n2. Initalize forge in the repo\n\n```\nforge init --force\n```\n\n3.  Build the contracts\n\n```\nforge build\n```\n\n4. Test away\n\n```\nforge test\n```\n","readmeFilename":"README.md","gitHead":"43a4019e3955fc195dd4f3fef8ad22c0b17abd57","bugs":{"url":"https://github.com/midas-protocol/contracts/issues"},"homepage":"https://github.com/midas-protocol/contracts#readme","_id":"@midas-capital/sdk@0.1.3-beta.25","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-P2ecyJLEH3aTraCz4GjlzFHT5H3y3nhGwwGGbbs0tMVSYIhVcwTM3gfyrxomoz1HtLCqBVB9HC6neP+sBnyBpQ==","shasum":"8f901ccb1caf199eeff34420de0560494af2e839","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.1.3-beta.25.tgz","fileCount":574,"unpackedSize":117388982,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiKhkCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpkxQ/+KEoj35b/MviCBV2i3R//d9TcdxPFWxRKgdXW4WJ4RTZsLd+V\r\nSCuph5HZZd78IBiTaH3TYDqDkPIYLGs7xpqmuoRp58dWXK7OdrI1ZfXGr1wg\r\n5+FoijqV20wGQb3ZWy1i99cj0hmgwf0gVIFeu9CJA7W0qhqIUBlRdk7iIB9n\r\n7WlAfgIqbtVm6Crsss71MwBlOC2DhONZBqjp5pnI15uVFMZXY23vqD5LqND1\r\ntg1ZfHolu3AljmLPwnrK/X8XfUbatXkr+phy/kNn7yD/malApA4nWSmF7MTX\r\nuLIfhzSd64cxUmhG5CTif/dfUj3Bm/qB2MA7PjpG1wsob6G/ZvVjzs2w4K5R\r\nkZ6H4TeyXJDYnhhhNPUGqNsJVOavJBaL7zeZzzpJM51gMksEZxw++RgyRSAB\r\nqjt1cwTy7IFLzhYYdgPsl6WS/dSe988kfixNniPp/kKr7oIMGLpj/LxMPrK9\r\nQwmPhxKSn4UfbPaN00xr6hXCP3cXQC5JknWb/EgXMkcOvCeubdBhM5jHJ83k\r\nFIDyXDN/ndC0ne9zcSYKmZI6D5/4FaGPMUmvDnzcjy4tJ0TyUpuK3Wxf52tw\r\nPtbR33Ua/fqwIRncwNX984Qstvsivtf7nzn/mhWXQoLLUZnrykCVZKbLK80y\r\na3YJntsxWwPL37dpgOSnj5XnSkq0/3Sq5Do=\r\n=BTzB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDqp1JdRJ0wnqEHoq7VKChH5KlERl8PbukLtjVNoxA50AiEA7gKQl40babl8O1DPIdmlQ+gdA7ZPjMAhYmQEFEjbcds="}]},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.1.3-beta.25_1646926081945_0.4713943711485107"},"_hasShrinkwrap":false},"0.1.4":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/contracts.git"},"version":"0.1.4","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"Main repository for Midas Capital's contracts and SDK for interacting with those.","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","scripts":{"test":"hardhat test","test:forge":"forge test --no-match-contract LiquidityMining","test:bsc":"FORK_URL=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/mainnet/archive FORK_BLOCK_NUMBER=15641803 FORK_CHAIN_ID=56 hardhat test","export":"hardhat export --export-all ./deployments.json","build":"npm run build:hardhat && npm run build:sdk && npm run build:forge","build:forge":"forge build","build:hardhat":"hardhat compile","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","clean":"hardhat clean && rm -rf lib","prettier:sol":"prettier --write 'contracts/**/*.sol' 'contracts_forge/**/*.sol'","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'test/**/*.ts'","prettier":"npm run prettier:ts && npm run prettier:sol"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.2","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/hardhat":"^5.0.0","@types/chai":"^4.3.0","@types/mocha":"^9.1.0","@types/node":"^17.0.10","bufferutil":"^4.0.6","chai":"^4.3.4","dotenv":"^14.2.0","ethereum-waffle":"^3.4.0","ethers":"^5.5.3","hardhat":"^2.9.1","hardhat-abi-exporter":"^2.8.0","hardhat-deploy":"^0.9.27","hardhat-tracer":"^1.0.0-alpha.6","ts-node":"^10.5.0","typechain":"^7.0.1","typescript":"^4.6.2","utf-8-validate":"^5.0.8"},"dependencies":{"@keydonix/uniswap-oracle-contracts":"^1.0.6","@keydonix/uniswap-oracle-sdk":"^1.0.7","@keydonix/uniswap-oracle-sdk-adapter":"^1.0.7","@openzeppelin/contracts-upgradeable":"^4.5.0","@rari-capital/solmate":"^6.2.0","@typechain/ethers-v5":"^9.0.0","@types/bad-words":"^3.0.1","@uniswap/v3-core":"^1.0.0","@uniswap/v3-periphery":"github:Uniswap/uniswap-v3-periphery#pull/96/head","bad-words":"^3.0.4","prettier":"2.5.1","prettier-plugin-solidity":"1.0.0-beta.19","lint-staged":"12.2.1"},"types":"./dist/cjs/src/index.d.ts","gitHead":"5c63df417b344efea32fd57a3101f2220dc349af","readme":"# Contracts\n\nMain repository for Midas Capital's contracts and SDK for interacting with those.\n\n## Structure\n\n```text\n ┌── README.md                        <- The top-level README\n ├── .github/workflows/TestSuite.yaml <- CICD pipeline definition\n ├── .vscode                          <- IDE configs\n │\n │── artifacts                        <- (Auto-generated, git ignored)\n │       └── contracts\n │                  ├── compound      <- Compiled contracts mirroring /contracts\n │                  ├── external\n │                  └──  ...\n │\n ├── contracts                         <- All of our contracts\n │          ├── compound               <- Compound interfaces\n │          ├── external               <- External contracts we require\n │          ├── oracles                <- Oracle contracts\n │          ├── utils                  <- Utility contracts\n │          └──  ...                   <- Main Fuse contracts\n │\n ├── deploy                           <- hardhat deployment scripts\n ├── deployments                      <- hardhat-generated deployment files\n ├── scripts                          <- hardhat scripts\n ├── src                              <- midas-sdk main folder\n ├── deployments.json                 <- generated on \"npx hardhat export\"\n └── hardhat.config.ts                <- hardhat confing\n```\n\n## Dev Workflow\n\n0. Install dependencies\n\n```text\n>>> npm install\n```\n\n2. To develop against the SDK, artifacts and deployment files must be generated first, as they are used by the SDK:\n\n```text\n>>> npx hardhat node\n# in another console\n>>>> npm run export\n```\n\n3. Build the sdk\n\n```text\n>>> npm run build\n```\n\n4. Run tests\n\n```shell\n>>> npx hardhat test\n\n```\n\n### Gotchas\n\nIf you're developing against the contracts, and you're getting errors such as\n\n```shell\n Error: Deployment and registration of new Fuse pool failed: Transaction reverted: function returned an unexpected amount of data\n```\n\nIt is likely because the address of the `FuseFeeDistributor` has changed. Since it is hardcoded into one of the main\ncontracts that many others inherit from (all the Comptroller stuff), any calls to the old contract address will fail.\n\nBottom line: whenever you make changes to the `FuseFeeDistributor`, make sure that this contract address is updated in the two\nmain files that hardcode it:\n\n- `ComptrollerStorage.sol`\n- `CTokenInterfaces.sol`\n\nThis requires a few-step approach:\n\n1. Make your desired changes to the contracts\n2. Deploy them locally and run export\n3. Get the new FFD address and replace it where needed (if it all changed -- if its source code changed, so will its bytecode, and thus its deployed contract address)\n4. Re run the node / deployment and export / build\n\nThen, your tests should pass (assuming no other failures)\n\n### Running BSC mainnet fork locally\n\n1. Add env vars in .env\n\n`.env`\n```\nFORK_URL=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/mainnet/archive\nFORK_BLOCK_NUMBER=15641803\nFORK_CHAIN_ID=56\n```\n\n2. Run node\n\n```shell\n>>> npx hardhat node\n```\n\nYou can then generate the deployments for bsc (chain id 56)\n\n```shell\n>>> npm run export\n```\n\n## Running local node + liquidation bot\n\n1. Edit the `liquidation.env` file, add the account and private key from any of the\n   signer's accounts\n\n2. Edit desired parameters, if needed\n\n```shell\n>>> docker-compose up\n```\n\nThis will spin up the bot and a local node, and create an unhealthy pool. The bot\nwill act on it and liquidate it.\n\n3. Further test liquidations:\n\nIn another shell:\n\n```shell\n>>> npx hardhat pools:create-unhealthy --name \"test unhealthy\" --network localhost\n```\n\nCheck the logs from the bot and ensure it is performing the liquidations appropriately.\nYou can also run the UI and check the \"test unhealthy\", as it gets liquidated.\n\n## Running Forge tests\n\n1. Install forge (mac, linux)\n\n```\ncurl -L https://foundry.paradigm.xyz | bash\nfoundryup\n```\n\n2. Initalize forge in the repo\n\n```\nforge init --force\n```\n\n3.  Build the contracts\n\n```\nforge build\n```\n\n4. Test away\n\n```\nforge test\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/midas-protocol/contracts/issues"},"homepage":"https://github.com/midas-protocol/contracts#readme","_id":"@midas-capital/sdk@0.1.4","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-zUEHE9JuVE3eTyP7kJvKBVZj8Tjgk0npLjbgrMoSVpyEfxuUPG8+tCxDyjy3EZLEMqTJPUoJh1JlZ6BTyWYGpA==","shasum":"48b81941e2654d37d85fe3f62f857063f934752a","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.1.4.tgz","fileCount":574,"unpackedSize":117388974,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiKjZrACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrQ+Q/9FdqGBfPkYXfPTDzd13Xlr+3KDx5n5+V4ewYWyQIkIcRorCgP\r\n3bAqY47RtbPuB07nHzh5hI65BPDL537JKZ4eKR3tdov56x6c3nzbs0d9gqg3\r\nz8rL7KZYhj5/2LW213CvwYMwispbsPIkofRet12cWGdxqv8sou8kUzta6zYi\r\nwobbH4e8O8KhTPaCRYLZpcnygr8ATtnkJ2CvPphACa3j53HkBOfaoMyYIe3+\r\neyhi50JU5g7cnqlhi2tK7lhJilBN8EnhNqZaPx7j5QfoOfO/N76MOmRYYNNa\r\nWkonkSGDWdWi2+NnHD78AfprahFyM42vAKz7pFNeetz1tmavbO+HQiDxCVcJ\r\n2KXezBwLycpu4QdvscXnYbUZjMQt5qziNIIF7t4/uH1ROKFIAGER2B1MFXYx\r\nZxvevA4K/X8Xxvo8IR/jA27/4qtDCL86bh8rpWtB3nh8D9jkxYFs0/F4fFcS\r\nh+k5xtmCT4RSMwXduqKwv3TpejjsXhhy/NlFl1AVf+YWz2Omc6jBS7yQdOGB\r\nEZ9I0SdXT/jxNBopvg6LBJYyhvLImWTJfPwC8Gu4wV22X0qCU2h9Iu7Gp7cC\r\n0ja4TJU1N8TGqRNc32+pqr78WsKV9Pko6ki55Slg4ba+AiBQk1EhepponBx+\r\nT0tbNDVmQS4rFl1ki1T3ZvdCxqndfG97gxQ=\r\n=jvRK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDTJf6/NaDdfoC4+ykD/eFwRxeCkZTrGWtX9Bog9xyvqgIgGUVyYiOeBGSSvMDv999cas/oaX2qncUmyrBAR4qXfvM="}]},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.1.4_1646933611317_0.22911601251639024"},"_hasShrinkwrap":false},"0.1.3-beta.26":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/contracts.git"},"version":"0.1.3-beta.26","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"Main repository for Midas Capital's contracts and SDK for interacting with those.","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","scripts":{"test":"hardhat test","test:forge":"forge test --no-match-contract LiquidityMining","test:bsc":"FORK_URL=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/mainnet/archive FORK_BLOCK_NUMBER=15641803 FORK_CHAIN_ID=56 hardhat test","export":"hardhat export --export-all ./deployments.json","build":"npm run build:hardhat && npm run build:sdk && npm run build:forge","build:forge":"forge build","build:hardhat":"hardhat compile","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","clean":"hardhat clean && rm -rf lib","prettier:sol":"prettier --write 'contracts/**/*.sol' 'contracts_forge/**/*.sol'","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'test/**/*.ts'","prettier":"npm run prettier:ts && npm run prettier:sol"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.2","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/hardhat":"^5.0.0","@types/chai":"^4.3.0","@types/mocha":"^9.1.0","@types/node":"^17.0.10","bufferutil":"^4.0.6","chai":"^4.3.4","dotenv":"^14.2.0","ethereum-waffle":"^3.4.0","ethers":"^5.5.3","hardhat":"^2.9.1","hardhat-abi-exporter":"^2.8.0","hardhat-deploy":"^0.9.27","hardhat-tracer":"^1.0.0-alpha.6","ts-node":"^10.5.0","typechain":"^7.0.1","typescript":"^4.6.2","utf-8-validate":"^5.0.8"},"dependencies":{"@keydonix/uniswap-oracle-contracts":"^1.0.6","@keydonix/uniswap-oracle-sdk":"^1.0.7","@keydonix/uniswap-oracle-sdk-adapter":"^1.0.7","@openzeppelin/contracts-upgradeable":"^4.5.0","@rari-capital/solmate":"^6.2.0","@typechain/ethers-v5":"^9.0.0","@types/bad-words":"^3.0.1","@uniswap/v3-core":"^1.0.0","@uniswap/v3-periphery":"github:Uniswap/uniswap-v3-periphery#pull/96/head","bad-words":"^3.0.4","prettier":"2.5.1","prettier-plugin-solidity":"1.0.0-beta.19","lint-staged":"12.2.1"},"types":"./dist/cjs/src/index.d.ts","gitHead":"c55b4c7b117c6fb9cedb3da49e3ad51352e30998","readme":"# Contracts\n\nMain repository for Midas Capital's contracts and SDK for interacting with those.\n\n## Structure\n\n```text\n ┌── README.md                        <- The top-level README\n ├── .github/workflows/TestSuite.yaml <- CICD pipeline definition\n ├── .vscode                          <- IDE configs\n │\n │── artifacts                        <- (Auto-generated, git ignored)\n │       └── contracts\n │                  ├── compound      <- Compiled contracts mirroring /contracts\n │                  ├── external\n │                  └──  ...\n │\n ├── contracts                         <- All of our contracts\n │          ├── compound               <- Compound interfaces\n │          ├── external               <- External contracts we require\n │          ├── oracles                <- Oracle contracts\n │          ├── utils                  <- Utility contracts\n │          └──  ...                   <- Main Fuse contracts\n │\n ├── deploy                           <- hardhat deployment scripts\n ├── deployments                      <- hardhat-generated deployment files\n ├── scripts                          <- hardhat scripts\n ├── src                              <- midas-sdk main folder\n ├── deployments.json                 <- generated on \"npx hardhat export\"\n └── hardhat.config.ts                <- hardhat confing\n```\n\n## Dev Workflow\n\n0. Install dependencies\n\n```text\n>>> npm install\n```\n\n2. To develop against the SDK, artifacts and deployment files must be generated first, as they are used by the SDK:\n\n```text\n>>> npx hardhat node\n# in another console\n>>>> npm run export\n```\n\n3. Build the sdk\n\n```text\n>>> npm run build\n```\n\n4. Run tests\n\n```shell\n>>> npx hardhat test\n\n```\n\n### Gotchas\n\nIf you're developing against the contracts, and you're getting errors such as\n\n```shell\n Error: Deployment and registration of new Fuse pool failed: Transaction reverted: function returned an unexpected amount of data\n```\n\nIt is likely because the address of the `FuseFeeDistributor` has changed. Since it is hardcoded into one of the main\ncontracts that many others inherit from (all the Comptroller stuff), any calls to the old contract address will fail.\n\nBottom line: whenever you make changes to the `FuseFeeDistributor`, make sure that this contract address is updated in the two\nmain files that hardcode it:\n\n- `ComptrollerStorage.sol`\n- `CTokenInterfaces.sol`\n\nThis requires a few-step approach:\n\n1. Make your desired changes to the contracts\n2. Deploy them locally and run export\n3. Get the new FFD address and replace it where needed (if it all changed -- if its source code changed, so will its bytecode, and thus its deployed contract address)\n4. Re run the node / deployment and export / build\n\nThen, your tests should pass (assuming no other failures)\n\n### Running BSC mainnet fork locally\n\n1. Add env vars in .env\n\n`.env`\n```\nFORK_URL=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/mainnet/archive\nFORK_BLOCK_NUMBER=15641803\nFORK_CHAIN_ID=56\n```\n\n2. Run node\n\n```shell\n>>> npx hardhat node\n```\n\nYou can then generate the deployments for bsc (chain id 56)\n\n```shell\n>>> npm run export\n```\n\n## Running local node + liquidation bot\n\n1. Edit the `liquidation.env` file, add the account and private key from any of the\n   signer's accounts\n\n2. Edit desired parameters, if needed\n\n```shell\n>>> docker-compose up\n```\n\nThis will spin up the bot and a local node, and create an unhealthy pool. The bot\nwill act on it and liquidate it.\n\n3. Further test liquidations:\n\nIn another shell:\n\n```shell\n>>> npx hardhat pools:create-unhealthy --name \"test unhealthy\" --network localhost\n```\n\nCheck the logs from the bot and ensure it is performing the liquidations appropriately.\nYou can also run the UI and check the \"test unhealthy\", as it gets liquidated.\n\n## Running Forge tests\n\n1. Install forge (mac, linux)\n\n```\ncurl -L https://foundry.paradigm.xyz | bash\nfoundryup\n```\n\n2. Initalize forge in the repo\n\n```\nforge init --force\n```\n\n3.  Build the contracts\n\n```\nforge build\n```\n\n4. Test away\n\n```\nforge test\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/midas-protocol/contracts/issues"},"homepage":"https://github.com/midas-protocol/contracts#readme","_id":"@midas-capital/sdk@0.1.3-beta.26","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-pNnjmW9Xmheg+lM178j2TukLwxIjEi3vFkl3bhhZsbDOxKhrk+p31uK4FK1Qg8JUSJiHLLQXenVUWzoHgvEv3Q==","shasum":"1f993c82b91f89a2cf63b6e95d6e99fc3da5d103","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.1.3-beta.26.tgz","fileCount":578,"unpackedSize":117406351,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiKx9qACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqX2g/+LAIJXPZTlJwokisrWI0SIGcyAjMuFa4PoGHz0/feWJEgEmrV\r\nw+GXi2hLp2AnZct3rGXsdmEemayXGTYO4dIqRH+owDrTz3tdKHl/PEm5sFJN\r\nOeRYJA7SAAn/86cZ9haOh8HqmGlcweutNSJr2KtpyO7Sx5I1Nxd/koai6NJB\r\nzgXNI/P4r0l16bZSmVt3dSazu02E0ABlIBjmCnLbLJUObB20Z/7omLOCiXnB\r\nO+bxbKw41NsA9TgE0hal2z9UK9O3MlxhRWxtadCnFbbyFbp6nHFSuGFcorRM\r\n9uUXOPfIbpH3UGHb7NgKcRmkNOz13VRbMdhq+by/0U08YVKReAf4o2RJ4/F1\r\n2PRp4VgOW61sU5vFo2OovXVFq8lmKFg0eutC6CKC0ZedNCY2XsXS4d+OsO8y\r\nMKwd7tbYDdoN6FKd1qycnJFA3doEDCaSWQaLzUovaZhbeN50rMFVBTptpvCY\r\nw6ntfpXk9jKko78f7DZLt7MNS9nzFxBfjehJUlv5ibXvaP9GtXINXmqi/wws\r\nFLQ1oBxspxhHjXy8/tytevFcehr6gwXZXBD5taEbmAEyYoEnZEieIjoHBcxL\r\nXdGfVHDzdZc5SBAxjFVuLM1o04iB33QX1WICJS/q6M7ZmTV7GfTsOvsHEVFQ\r\nabwtoisdokuXUV7JWu1GKyvMumLEbVyKs08=\r\n=sJjO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDst2YdYKyOPvoiIxX6VVTuqG5O/BNTr6U7BhwGO49TfQIhAPhqXU0ib8kWwoGIRYPj1nZ6ypa1a2hNtQaHQglkVP8m"}]},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.1.3-beta.26_1646993258468_0.7247675847611765"},"_hasShrinkwrap":false},"0.1.3-beta.27":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/contracts.git"},"version":"0.1.3-beta.27","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"Main repository for Midas Capital's contracts and SDK for interacting with those.","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","scripts":{"test":"hardhat test","test:forge":"forge test --no-match-contract LiquidityMining","test:bsc":"FORK_URL=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/mainnet/archive FORK_BLOCK_NUMBER=15641803 FORK_CHAIN_ID=56 hardhat test","export":"hardhat export --export-all ./deployments.json","build":"npm run build:hardhat && npm run build:sdk && npm run build:forge","build:forge":"forge build","build:hardhat":"hardhat compile","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","clean":"hardhat clean && rm -rf lib","prettier:sol":"prettier --write 'contracts/**/*.sol' 'contracts_forge/**/*.sol'","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'test/**/*.ts'","prettier":"npm run prettier:ts && npm run prettier:sol"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.2","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/hardhat":"^5.0.0","@types/chai":"^4.3.0","@types/mocha":"^9.1.0","@types/node":"^17.0.10","bufferutil":"^4.0.6","chai":"^4.3.4","dotenv":"^14.2.0","ethereum-waffle":"^3.4.0","ethers":"^5.5.3","hardhat":"^2.9.1","hardhat-abi-exporter":"^2.8.0","hardhat-deploy":"^0.9.27","hardhat-tracer":"^1.0.0-alpha.6","ts-node":"^10.5.0","typechain":"^7.0.1","typescript":"^4.6.2","utf-8-validate":"^5.0.8"},"dependencies":{"@keydonix/uniswap-oracle-contracts":"^1.0.6","@keydonix/uniswap-oracle-sdk":"^1.0.7","@keydonix/uniswap-oracle-sdk-adapter":"^1.0.7","@openzeppelin/contracts":"^4.5.0","@openzeppelin/contracts-upgradeable":"^4.5.0","@rari-capital/solmate":"^6.2.0","@typechain/ethers-v5":"^9.0.0","@types/bad-words":"^3.0.1","@uniswap/v3-core":"^1.0.0","@uniswap/v3-periphery":"github:Uniswap/uniswap-v3-periphery#pull/96/head","bad-words":"^3.0.4","lint-staged":"12.2.1","prettier":"2.5.1","prettier-plugin-solidity":"1.0.0-beta.19"},"types":"./dist/cjs/src/index.d.ts","readme":"# Contracts\n\nMain repository for Midas Capital's contracts and SDK for interacting with those.\n\n## Structure\n\n```text\n ┌── README.md                        <- The top-level README\n ├── .github/workflows/TestSuite.yaml <- CICD pipeline definition\n ├── .vscode                          <- IDE configs\n │\n │── artifacts                        <- (Auto-generated, git ignored)\n │       └── contracts\n │                  ├── compound      <- Compiled contracts mirroring /contracts\n │                  ├── external\n │                  └──  ...\n │\n ├── contracts                         <- All of our contracts\n │          ├── compound               <- Compound interfaces\n │          ├── external               <- External contracts we require\n │          ├── oracles                <- Oracle contracts\n │          ├── utils                  <- Utility contracts\n │          └──  ...                   <- Main Fuse contracts\n │\n ├── deploy                           <- hardhat deployment scripts\n ├── deployments                      <- hardhat-generated deployment files\n ├── scripts                          <- hardhat scripts\n ├── src                              <- midas-sdk main folder\n ├── deployments.json                 <- generated on \"npx hardhat export\"\n └── hardhat.config.ts                <- hardhat confing\n```\n\n## Dev Workflow\n\n0. Install dependencies\n\n```text\n>>> npm install\n```\n\n2. To develop against the SDK, artifacts and deployment files must be generated first, as they are used by the SDK:\n\n```text\n>>> npx hardhat node\n# in another console\n>>>> npm run export\n```\n\n3. Build the sdk\n\n```text\n>>> npm run build\n```\n\n4. Run tests\n\n```shell\n>>> npx hardhat test\n\n```\n\n### Gotchas\n\nIf you're developing against the contracts, and you're getting errors such as\n\n```shell\n Error: Deployment and registration of new Fuse pool failed: Transaction reverted: function returned an unexpected amount of data\n```\n\nIt is likely because the address of the `FuseFeeDistributor` has changed. Since it is hardcoded into one of the main\ncontracts that many others inherit from (all the Comptroller stuff), any calls to the old contract address will fail.\n\nBottom line: whenever you make changes to the `FuseFeeDistributor`, make sure that this contract address is updated in the two\nmain files that hardcode it:\n\n- `ComptrollerStorage.sol`\n- `CTokenInterfaces.sol`\n\nThis requires a few-step approach:\n\n1. Make your desired changes to the contracts\n2. Deploy them locally and run export\n3. Get the new FFD address and replace it where needed (if it all changed -- if its source code changed, so will its bytecode, and thus its deployed contract address)\n4. Re run the node / deployment and export / build\n\nThen, your tests should pass (assuming no other failures)\n\n### Running BSC mainnet fork locally\n\n1. Add env vars in .env\n\n`.env`\n```\nFORK_URL=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/mainnet/archive\nFORK_BLOCK_NUMBER=15641803\nFORK_CHAIN_ID=56\n```\n\n2. Run node\n\n```shell\n>>> npx hardhat node\n```\n\nYou can then generate the deployments for bsc (chain id 56)\n\n```shell\n>>> npm run export\n```\n\n## Running local node + liquidation bot\n\n1. Edit the `liquidation.env` file, add the account and private key from any of the\n   signer's accounts\n\n2. Edit desired parameters, if needed\n\n```shell\n>>> docker-compose up\n```\n\nThis will spin up the bot and a local node, and create an unhealthy pool. The bot\nwill act on it and liquidate it.\n\n3. Further test liquidations:\n\nIn another shell:\n\n```shell\n>>> npx hardhat pools:create-unhealthy --name \"test unhealthy\" --network localhost\n```\n\nCheck the logs from the bot and ensure it is performing the liquidations appropriately.\nYou can also run the UI and check the \"test unhealthy\", as it gets liquidated.\n\n## Running Forge tests\n\n1. Install forge (mac, linux)\n\n```\ncurl -L https://foundry.paradigm.xyz | bash\nfoundryup\n```\n\n2. Initalize forge in the repo\n\n```\nforge init --force\n```\n\n3.  Build the contracts\n\n```\nforge build\n```\n\n4. Test away\n\n```\nforge test\n```\n","readmeFilename":"README.md","gitHead":"74f430e473a897f445fcf36946f191679960eec3","bugs":{"url":"https://github.com/midas-protocol/contracts/issues"},"homepage":"https://github.com/midas-protocol/contracts#readme","_id":"@midas-capital/sdk@0.1.3-beta.27","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-ckDfMEvl3zoOGCRCGpNDWcESXn85eCN/h4xlpKUTPSU73fEjrZ3KH/A/dD0OAMstUdp+Cpc/DHrA8tpe3sPC7A==","shasum":"b0e4204ec5b471027ec8db825b787330ca9724a9","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.1.3-beta.27.tgz","fileCount":584,"unpackedSize":121496838,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiK8ajACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpcwQ//VUTuTCKTBWda2z2coZMMiwXQcDx+JpMCYGviaq9lw9AfR8Jc\r\nupG+Sur4OuYXKg7stdbxVGwozatgRuYP2FRBwEGpc89nmfSViGl59tAn73zb\r\n0oJsD4BrmOT4ryQCg5V/obfQ0Ja2/Xq/C6d0Ddg/b9WRM6v/Ft+ncM6hXLl3\r\nbTuwQQsZlV1gEtDLc2hJbGP8kHDi3XKpD4Tz5j/06nTrCSyy14d+I5/dOdxG\r\n4JkyN6P53uph9Bvob54Yx0H2ci0wNHtE9K6LdexOQrTjH4y17w7IEsxrdHeE\r\niGZnEcqARHNQj/H7rscJsrOV2eEKJqOY4b80lTlaaGGu3/TpZCcPG1KfT1CZ\r\nWc6zttQUfI8KF0pHtTOA+nWNBuWvjVLyugqIZf/ien3yF3GKV+vSw6BLgYHM\r\n7jUox5b8Cth5RTvy6Wk49aEReIFzpRorVlZPlL0/QdW+wJGp9KEq4attRzZU\r\nmh+5IsRwKQpb3/RZD9BnMVgOgkHBTebPp19RHFu9rlkveVsjy69V18MIhj2Z\r\ncgxXXsWFJhw2Sbh6qBIHPJSMhA38BJN381xn80k4vC5ZRmdHXrd6tRdWXOFt\r\nf11MRY2uqzZZu8XwgpnWP3Dd6MKN2sQd2JwRcLNlEqQ7n5BeEtD0wkORZizp\r\n1xLM4wHayCf6w3o9L9AYBIsh+49r3JHndS8=\r\n=BqAp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHKp3V+lL03sqUbIwRL2cMXjiBcDNOeSfsSBfRM9OhHNAiEAzVMRx0VO2t5FzvZezOOCUzmNbhY9GB2xgvo2k1hRbzk="}]},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.1.3-beta.27_1647036067022_0.5838715976737279"},"_hasShrinkwrap":false},"0.1.3-beta.28":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/contracts.git"},"version":"0.1.3-beta.28","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"Main repository for Midas Capital's contracts and SDK for interacting with those.","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","scripts":{"test":"hardhat test","test:forge":"forge test --no-match-contract LiquidityMining","test:bsc":"FORK_URL=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/mainnet/archive FORK_BLOCK_NUMBER=15990502 FORK_CHAIN_ID=56 hardhat test","export":"hardhat export --export-all ./deployments.json","build":"npm run build:hardhat && npm run build:sdk && npm run build:forge","build:forge":"forge build","build:hardhat":"hardhat compile","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","clean":"hardhat clean && rm -rf lib","prettier:sol":"prettier --write 'contracts/**/*.sol' 'contracts_forge/**/*.sol'","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'test/**/*.ts'","prettier":"npm run prettier:ts && npm run prettier:sol"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.2","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/hardhat":"^5.0.0","@types/chai":"^4.3.0","@types/mocha":"^9.1.0","@types/node":"^17.0.10","bufferutil":"^4.0.6","chai":"^4.3.4","dotenv":"^14.2.0","ethereum-waffle":"^3.4.0","ethers":"^5.5.3","hardhat":"^2.9.1","hardhat-abi-exporter":"^2.8.0","hardhat-deploy":"^0.9.27","hardhat-tracer":"^1.0.0-alpha.6","ts-node":"^10.5.0","typechain":"^7.0.1","typescript":"^4.6.2","utf-8-validate":"^5.0.8"},"dependencies":{"@keydonix/uniswap-oracle-contracts":"^1.0.6","@keydonix/uniswap-oracle-sdk":"^1.0.7","@keydonix/uniswap-oracle-sdk-adapter":"^1.0.7","@openzeppelin/contracts":"^4.5.0","@openzeppelin/contracts-upgradeable":"^4.5.0","@rari-capital/solmate":"^6.2.0","@typechain/ethers-v5":"^9.0.0","@types/bad-words":"^3.0.1","@uniswap/v3-core":"^1.0.0","@uniswap/v3-periphery":"github:Uniswap/uniswap-v3-periphery#pull/96/head","bad-words":"^3.0.4","lint-staged":"12.2.1","prettier":"2.5.1","prettier-plugin-solidity":"1.0.0-beta.19"},"types":"./dist/cjs/src/index.d.ts","readme":"# Contracts\n\nMain repository for Midas Capital's contracts and SDK for interacting with those.\n\n## Structure\n\n```text\n ┌── README.md                        <- The top-level README\n ├── .github/workflows/TestSuite.yaml <- CICD pipeline definition\n ├── .vscode                          <- IDE configs\n │\n │── artifacts                        <- (Auto-generated, git ignored)\n │       └── contracts\n │                  ├── compound      <- Compiled contracts mirroring /contracts\n │                  ├── external\n │                  └──  ...\n │\n ├── contracts                         <- All of our contracts\n │          ├── compound               <- Compound interfaces\n │          ├── external               <- External contracts we require\n │          ├── oracles                <- Oracle contracts\n │          ├── utils                  <- Utility contracts\n │          └──  ...                   <- Main Fuse contracts\n │\n ├── deploy                           <- hardhat deployment scripts\n ├── deployments                      <- hardhat-generated deployment files\n ├── scripts                          <- hardhat scripts\n ├── src                              <- midas-sdk main folder\n ├── deployments.json                 <- generated on \"npx hardhat export\"\n └── hardhat.config.ts                <- hardhat confing\n```\n\n## Dev Workflow\n\n0. Install dependencies\n\n```text\n>>> npm install\n```\n\n2. To develop against the SDK, artifacts and deployment files must be generated first, as they are used by the SDK:\n\n```text\n>>> npx hardhat node\n# in another console\n>>>> npm run export\n```\n\n3. Build the sdk\n\n```text\n>>> npm run build\n```\n\n4. Run tests\n\n```shell\n>>> npx hardhat test\n\n```\n\n### Gotchas\n\nIf you're developing against the contracts, and you're getting errors such as\n\n```shell\n Error: Deployment and registration of new Fuse pool failed: Transaction reverted: function returned an unexpected amount of data\n```\n\nIt is likely because the address of the `FuseFeeDistributor` has changed. Since it is hardcoded into one of the main\ncontracts that many others inherit from (all the Comptroller stuff), any calls to the old contract address will fail.\n\nBottom line: whenever you make changes to the `FuseFeeDistributor`, make sure that this contract address is updated in the two\nmain files that hardcode it:\n\n- `ComptrollerStorage.sol`\n- `CTokenInterfaces.sol`\n\nThis requires a few-step approach:\n\n1. Make your desired changes to the contracts\n2. Deploy them locally and run export\n3. Get the new FFD address and replace it where needed (if it all changed -- if its source code changed, so will its bytecode, and thus its deployed contract address)\n4. Re run the node / deployment and export / build\n\nThen, your tests should pass (assuming no other failures)\n\n### Running BSC mainnet fork locally\n\n1. Add env vars in .env\n\n`.env`\n```\nFORK_URL=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/mainnet/archive\nFORK_BLOCK_NUMBER=15641803\nFORK_CHAIN_ID=56\n```\n\n2. Run node\n\n```shell\n>>> npx hardhat node\n```\n\nYou can then generate the deployments for bsc (chain id 56)\n\n```shell\n>>> npm run export\n```\n\n## Running local node + liquidation bot\n\n1. Edit the `liquidation.env` file, add the account and private key from any of the\n   signer's accounts\n\n2. Edit desired parameters, if needed\n\n```shell\n>>> docker-compose up\n```\n\nThis will spin up the bot and a local node, and create an unhealthy pool. The bot\nwill act on it and liquidate it.\n\n3. Further test liquidations:\n\nIn another shell:\n\n```shell\n>>> npx hardhat pools:create-unhealthy --name \"test unhealthy\" --network localhost\n```\n\nCheck the logs from the bot and ensure it is performing the liquidations appropriately.\nYou can also run the UI and check the \"test unhealthy\", as it gets liquidated.\n\n## Running Forge tests\n\n1. Install forge (mac, linux)\n\n```\ncurl -L https://foundry.paradigm.xyz | bash\nfoundryup\n```\n\n2. Initalize forge in the repo\n\n```\nforge init --force\n```\n\n3.  Build the contracts\n\n```\nforge build\n```\n\n4. Test away\n\n```\nforge test\n```\n","readmeFilename":"README.md","gitHead":"899f74cc5c94a4119325eea9bd88878c374e31db","bugs":{"url":"https://github.com/midas-protocol/contracts/issues"},"homepage":"https://github.com/midas-protocol/contracts#readme","_id":"@midas-capital/sdk@0.1.3-beta.28","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-sSo5IOrjsrLWoshmsB4cUoDnX5FT+OHrLGZ+W1PRiEsIQKaH5eUdY0i3ky5yg5KieZB1ElTJ37tEl4BGnJx7jg==","shasum":"84d0c9d08bbac55df3c85dc026856d9622818b4a","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.1.3-beta.28.tgz","fileCount":583,"unpackedSize":111685524,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiLGtqACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrwGxAAhR1thZ8+eRQ6Im4Oyx/kscyBRYZty4Herm4EL99grpjzNhzv\r\n88jY2UAO+RcsfZE3bzcrhXG55jLp5w0KSASzD7qsEZ2MkS7HqdSmmQogZTH3\r\nBOqHrwE7ir0RGj3lDKgt6zN1+zha3ZZnA/+Jjuunwn8jelZ5V9lMX0QuGbxW\r\nVmENfAOAxIDiS8fl7M/i1wuAtDowVgVaMcgWNyu+qaww2KgAofNI64myLW16\r\nrs92qFutXptQLxUNHSaiHL0qOR7mHkm5kIkjuSmoH79awLR4ZHKjQaTL3/0H\r\nMYYlVVa4P72w+S4PdWWWa8oUjRV1Qk/f7Jv66t29QHx4OKDB0TfZKHvmb7Zh\r\n/vkjeOuUU+da+m2LOfnYxHahHxHMe022lczpagTf/CQp2gz8vOP/XBel9Z3c\r\n2D4zmdN54HKJV7xgS539Vyj5DtHJaLLs35xCV21Tg8zkQlQNeEbXth/i7dOb\r\ntKqmUw5XnwtpMlkcITjlDQqNHbwiWRcHs7QSHLvqnLeayOwUHCWUwjUNBYLS\r\np+6a+9mkSbijZgZWYmKdj1XDExM4Z3z5gfWZ+V9T7RVqD69qc9/MfXSs/CuI\r\n2AlJH43cLxxKzBHNvq8txwIlXQda2iMDT1pt70TQfOafYil/MP6g/BXyO2Hl\r\nxUynPmGH/PPdocF/q5aKajXoK/sO4MmzIPQ=\r\n=qn+E\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQClYfOgmSKczP0igEl5jGeJ3RNQh0X5PWY2PgDEk5WsGgIhAKv6tzPR6U4IZiWxchxt3HHM0DQ8Ww/EjgSRv53MhwiJ"}]},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.1.3-beta.28_1647078250131_0.3726001342925087"},"_hasShrinkwrap":false},"0.1.3-beta.29":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/contracts.git"},"version":"0.1.3-beta.29","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"Main repository for Midas Capital's contracts and SDK for interacting with those.","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","scripts":{"test":"hardhat test","test:forge":"forge test --no-match-contract LiquidityMining","test:bsc":"FORK_URL=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/mainnet/archive FORK_BLOCK_NUMBER=15990502 FORK_CHAIN_ID=56 hardhat test","export":"hardhat export --export-all ./deployments.json","build":"npm run build:hardhat && npm run build:sdk && npm run build:forge","build:forge":"forge build","build:hardhat":"hardhat compile","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","clean":"hardhat clean && rm -rf lib","prettier:sol":"prettier --write 'contracts/**/*.sol' 'contracts_forge/**/*.sol'","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'test/**/*.ts'","prettier":"npm run prettier:ts && npm run prettier:sol"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.2","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/hardhat":"^5.0.0","@types/chai":"^4.3.0","@types/mocha":"^9.1.0","@types/node":"^17.0.10","bufferutil":"^4.0.6","chai":"^4.3.4","dotenv":"^14.2.0","ethereum-waffle":"^3.4.0","ethers":"^5.5.3","hardhat":"^2.9.1","hardhat-abi-exporter":"^2.8.0","hardhat-deploy":"^0.9.27","hardhat-tracer":"^1.0.0-alpha.6","ts-node":"^10.5.0","typechain":"^7.0.1","typescript":"^4.6.2","utf-8-validate":"^5.0.8"},"dependencies":{"@keydonix/uniswap-oracle-contracts":"^1.0.6","@keydonix/uniswap-oracle-sdk":"^1.0.7","@keydonix/uniswap-oracle-sdk-adapter":"^1.0.7","@openzeppelin/contracts":"^4.5.0","@openzeppelin/contracts-upgradeable":"^4.5.0","@rari-capital/solmate":"^6.2.0","@typechain/ethers-v5":"^9.0.0","@types/bad-words":"^3.0.1","@uniswap/v3-core":"^1.0.0","@uniswap/v3-periphery":"github:Uniswap/uniswap-v3-periphery#pull/96/head","bad-words":"^3.0.4","lint-staged":"12.2.1","prettier":"2.5.1","prettier-plugin-solidity":"1.0.0-beta.19"},"readme":"# Contracts\n\nMain repository for Midas Capital's contracts and SDK for interacting with those.\n\n## Structure\n\n```text\n ┌── README.md                        <- The top-level README\n ├── .github/workflows/TestSuite.yaml <- CICD pipeline definition\n ├── .vscode                          <- IDE configs\n │\n │── artifacts                        <- (Auto-generated, git ignored)\n │       └── contracts\n │                  ├── compound      <- Compiled contracts mirroring /contracts\n │                  ├── external\n │                  └──  ...\n │\n ├── contracts                         <- All of our contracts\n │          ├── compound               <- Compound interfaces\n │          ├── external               <- External contracts we require\n │          ├── oracles                <- Oracle contracts\n │          ├── utils                  <- Utility contracts\n │          └──  ...                   <- Main Fuse contracts\n │\n ├── deploy                           <- hardhat deployment scripts\n ├── deployments                      <- hardhat-generated deployment files\n ├── scripts                          <- hardhat scripts\n ├── src                              <- midas-sdk main folder\n ├── deployments.json                 <- generated on \"npx hardhat export\"\n └── hardhat.config.ts                <- hardhat confing\n```\n\n## Dev Workflow\n\n0. Install dependencies\n\n```text\n>>> npm install\n```\n\n2. To develop against the SDK, artifacts and deployment files must be generated first, as they are used by the SDK:\n\n```text\n>>> npx hardhat node\n# in another console\n>>>> npm run export\n```\n\n3. Build the sdk\n\n```text\n>>> npm run build\n```\n\n4. Run tests\n\n```shell\n>>> npx hardhat test\n\n```\n\n### Gotchas\n\nIf you're developing against the contracts, and you're getting errors such as\n\n```shell\n Error: Deployment and registration of new Fuse pool failed: Transaction reverted: function returned an unexpected amount of data\n```\n\nIt is likely because the address of the `FuseFeeDistributor` has changed. Since it is hardcoded into one of the main\ncontracts that many others inherit from (all the Comptroller stuff), any calls to the old contract address will fail.\n\nBottom line: whenever you make changes to the `FuseFeeDistributor`, make sure that this contract address is updated in the two\nmain files that hardcode it:\n\n- `ComptrollerStorage.sol`\n- `CTokenInterfaces.sol`\n\nThis requires a few-step approach:\n\n1. Make your desired changes to the contracts\n2. Deploy them locally and run export\n3. Get the new FFD address and replace it where needed (if it all changed -- if its source code changed, so will its bytecode, and thus its deployed contract address)\n4. Re run the node / deployment and export / build\n\nThen, your tests should pass (assuming no other failures)\n\n### Running BSC mainnet fork locally\n\n1. Add env vars in .env\n\n`.env`\n```\nFORK_URL=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/mainnet/archive\nFORK_BLOCK_NUMBER=15641803\nFORK_CHAIN_ID=56\n```\n\n2. Run node\n\n```shell\n>>> npx hardhat node\n```\n\nYou can then generate the deployments for bsc (chain id 56)\n\n```shell\n>>> npm run export\n```\n\n## Running local node + liquidation bot\n\n1. Edit the `liquidation.env` file, add the account and private key from any of the\n   signer's accounts\n\n2. Edit desired parameters, if needed\n\n```shell\n>>> docker-compose up\n```\n\nThis will spin up the bot and a local node, and create an unhealthy pool. The bot\nwill act on it and liquidate it.\n\n3. Further test liquidations:\n\nIn another shell:\n\n```shell\n>>> npx hardhat pools:create-unhealthy --name \"test unhealthy\" --network localhost\n```\n\nCheck the logs from the bot and ensure it is performing the liquidations appropriately.\nYou can also run the UI and check the \"test unhealthy\", as it gets liquidated.\n\n## Running Forge tests\n\n1. Install forge (mac, linux)\n\n```\ncurl -L https://foundry.paradigm.xyz | bash\nfoundryup\n```\n\n2. Initalize forge in the repo\n\n```\nforge init --force\n```\n\n3.  Build the contracts\n\n```\nforge build\n```\n\n4. Test away\n\n```\nforge test\n```\n","readmeFilename":"README.md","gitHead":"3161f0807abda52bf3674c85bc112e3826974eb2","bugs":{"url":"https://github.com/midas-protocol/contracts/issues"},"homepage":"https://github.com/midas-protocol/contracts#readme","_id":"@midas-capital/sdk@0.1.3-beta.29","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-GgoKB/wJHpoC6ZkXEpQDZhZyxvKn7J6eHHb4prK7Jz2ejdD78QWcEB0/ofm64Pglr0QhoQl9rBwW+jMJjEGryg==","shasum":"6b3876c419ab6b3aca60d25ac51f36ee33162e2f","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.1.3-beta.29.tgz","fileCount":3,"unpackedSize":1653337,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiLKjtACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrU2hAAjyqCijKGuSmrR6Fwj77Uh8utUjPlpHUDkBvADd+u/i+xw+eY\r\noDEyyMD0K2n+L2oZL4V7rYdXoduNJjZ0T86F1HkkvpvCHW/xp57QpBp3ZdIW\r\nzGjQIs/6XnOK1x66rUo96ztPuzTeS09WdhGr5t+6vYxTKBfspyXdveSKhJhA\r\n8UJjOZnK/ERwC4pznx3edRFLDRpVswXGy9AwyV9pbAd92PgsagPeTnKVQ80s\r\nluY1Ged9tYkZSy3toguu2WaF7sXi2ZscZEBpWZ2Wp9xLzruZ4EnSbfBa7J/r\r\n6LYLDKgzDjXRlsGIFYoJ+anF+dJH7LT3udXioZ4tOcZKhEbKzoUn167xQy8+\r\nlGNK4jexdLP+/IzNsV8oJ9Zyw8gsdvJW6Hqr8eELd5DRuHjw8j+FPjbRx+ea\r\ntqTJ0JGYwZm4Cwe/iJIlflU3pWTatKePGMyHYzePddBK6eDDyjStwsINXvE2\r\nesgAY06EeBi+bD8p6KgDfFSgikBdBRx6o+L96AR6U1R5MGHMKfGJgLNPbGm9\r\nSNGTQgRDSbYhpF9E0is0y9sOF9UPRYCXONK+aKswO5QPGl6TcOjYLL4+EA/d\r\n2eFcePEvzeycViWyRiBbHeEngKPg4g2dGcW1Kb1y+yl5t6TWgVJimyd0jv9r\r\nvlhj3wBbW4qP8kXd0hbFFa3GOkwvlKE0wtI=\r\n=JgvF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBjwDeHoVXBGZimmrazKzNPywXnC8Gd10RMuY5MvtZhtAiBDAQpn86H1dHhqWEtZoAU7sMUMBM0xs81w5ixwQXqNUg=="}]},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.1.3-beta.29_1647093997214_0.8852826678697654"},"_hasShrinkwrap":false},"0.1.5":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/contracts.git"},"version":"0.1.5","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"Main repository for Midas Capital's contracts and SDK for interacting with those.","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","scripts":{"test":"hardhat test","test:forge":"forge test --no-match-contract LiquidityMining","test:bsc":"FORK_URL=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/mainnet/archive FORK_BLOCK_NUMBER=15990502 FORK_CHAIN_ID=56 hardhat test","export":"hardhat export --export-all ./deployments.json","build":"npm run build:hardhat && npm run build:sdk && npm run build:forge","build:forge":"forge build","build:hardhat":"hardhat compile","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","clean":"hardhat clean && rm -rf lib","prettier:sol":"prettier --write 'contracts/**/*.sol' 'contracts_forge/**/*.sol'","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'test/**/*.ts'","prettier":"npm run prettier:ts && npm run prettier:sol"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.2","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/hardhat":"^5.0.0","@types/chai":"^4.3.0","@types/mocha":"^9.1.0","@types/node":"^17.0.10","bufferutil":"^4.0.6","chai":"^4.3.4","dotenv":"^14.2.0","ethereum-waffle":"^3.4.0","ethers":"^5.5.3","hardhat":"^2.9.1","hardhat-abi-exporter":"^2.8.0","hardhat-deploy":"^0.9.27","hardhat-tracer":"^1.0.0-alpha.6","ts-node":"^10.5.0","typechain":"^7.0.1","typescript":"^4.6.2","utf-8-validate":"^5.0.8"},"dependencies":{"@keydonix/uniswap-oracle-contracts":"^1.0.6","@keydonix/uniswap-oracle-sdk":"^1.0.7","@keydonix/uniswap-oracle-sdk-adapter":"^1.0.7","@openzeppelin/contracts":"^4.5.0","@openzeppelin/contracts-upgradeable":"^4.5.0","@rari-capital/solmate":"^6.2.0","@typechain/ethers-v5":"^9.0.0","@types/bad-words":"^3.0.1","@uniswap/v3-core":"^1.0.0","@uniswap/v3-periphery":"github:Uniswap/uniswap-v3-periphery#pull/96/head","bad-words":"^3.0.4","lint-staged":"12.2.1","prettier":"2.5.1","prettier-plugin-solidity":"1.0.0-beta.19"},"readme":"# Contracts\n\nMain repository for Midas Capital's contracts and SDK for interacting with those.\n\n## Structure\n\n```text\n ┌── README.md                        <- The top-level README\n ├── .github/workflows/TestSuite.yaml <- CICD pipeline definition\n ├── .vscode                          <- IDE configs\n │\n │── artifacts                        <- (Auto-generated, git ignored)\n │       └── contracts\n │                  ├── compound      <- Compiled contracts mirroring /contracts\n │                  ├── external\n │                  └──  ...\n │\n ├── contracts                         <- All of our contracts\n │          ├── compound               <- Compound interfaces\n │          ├── external               <- External contracts we require\n │          ├── oracles                <- Oracle contracts\n │          ├── utils                  <- Utility contracts\n │          └──  ...                   <- Main Fuse contracts\n │\n ├── deploy                           <- hardhat deployment scripts\n ├── deployments                      <- hardhat-generated deployment files\n ├── scripts                          <- hardhat scripts\n ├── src                              <- midas-sdk main folder\n ├── deployments.json                 <- generated on \"npx hardhat export\"\n └── hardhat.config.ts                <- hardhat confing\n```\n\n## Dev Workflow\n\n0. Install dependencies\n\n```text\n>>> npm install\n```\n\n2. To develop against the SDK, artifacts and deployment files must be generated first, as they are used by the SDK:\n\n```text\n>>> npx hardhat node\n# in another console\n>>>> npm run export\n```\n\n3. Build the sdk\n\n```text\n>>> npm run build\n```\n\n4. Run tests\n\n```shell\n>>> npx hardhat test\n\n```\n\n### Gotchas\n\nIf you're developing against the contracts, and you're getting errors such as\n\n```shell\n Error: Deployment and registration of new Fuse pool failed: Transaction reverted: function returned an unexpected amount of data\n```\n\nIt is likely because the address of the `FuseFeeDistributor` has changed. Since it is hardcoded into one of the main\ncontracts that many others inherit from (all the Comptroller stuff), any calls to the old contract address will fail.\n\nBottom line: whenever you make changes to the `FuseFeeDistributor`, make sure that this contract address is updated in the two\nmain files that hardcode it:\n\n- `ComptrollerStorage.sol`\n- `CTokenInterfaces.sol`\n\nThis requires a few-step approach:\n\n1. Make your desired changes to the contracts\n2. Deploy them locally and run export\n3. Get the new FFD address and replace it where needed (if it all changed -- if its source code changed, so will its bytecode, and thus its deployed contract address)\n4. Re run the node / deployment and export / build\n\nThen, your tests should pass (assuming no other failures)\n\n### Running BSC mainnet fork locally\n\n1. Add env vars in .env\n\n`.env`\n```\nFORK_URL=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/mainnet/archive\nFORK_BLOCK_NUMBER=15641803\nFORK_CHAIN_ID=56\n```\n\n2. Run node\n\n```shell\n>>> npx hardhat node\n```\n\nYou can then generate the deployments for bsc (chain id 56)\n\n```shell\n>>> npm run export\n```\n\n## Running local node + liquidation bot\n\n1. Edit the `liquidation.env` file, add the account and private key from any of the\n   signer's accounts\n\n2. Edit desired parameters, if needed\n\n```shell\n>>> docker-compose up\n```\n\nThis will spin up the bot and a local node, and create an unhealthy pool. The bot\nwill act on it and liquidate it.\n\n3. Further test liquidations:\n\nIn another shell:\n\n```shell\n>>> npx hardhat pools:create-unhealthy --name \"test unhealthy\" --network localhost\n```\n\nCheck the logs from the bot and ensure it is performing the liquidations appropriately.\nYou can also run the UI and check the \"test unhealthy\", as it gets liquidated.\n\n## Running Forge tests\n\n1. Install forge (mac, linux)\n\n```\ncurl -L https://foundry.paradigm.xyz | bash\nfoundryup\n```\n\n2. Initalize forge in the repo\n\n```\nforge init --force\n```\n\n3.  Build the contracts\n\n```\nforge build\n```\n\n4. Test away\n\n```\nforge test\n```\n","readmeFilename":"README.md","gitHead":"3deb8d603452d4f84c28f408209cf699566ab7f2","bugs":{"url":"https://github.com/midas-protocol/contracts/issues"},"homepage":"https://github.com/midas-protocol/contracts#readme","_id":"@midas-capital/sdk@0.1.5","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-jXaKHjdQEMhCUddrVVHA6WuBI8ofLWm9NWdiQ+VsdZR9mue8fOPjFvxKQM09SMgNn+AxTSkQbgGiXijbKSKlJA==","shasum":"419a929b393a11eea915912fcdc3fc365c7d7303","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.1.5.tgz","fileCount":3,"unpackedSize":1653329,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiLwghACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq4bw//Ujx1Zkh99yY0NoLn7qWqgQ8LWHRfn22H4DCNNwfXYXvNIyjH\r\ngxQVv1JUH46+jRdrTG8PSy2TwhdWpDPNHo8tF3HjzPZIr6qPDWT8wEMDKpQt\r\nAyZiJ3mByOW7fkTNdGv55yf9+cGzfy3JgMYTesMYtE7Cf3tWfQoB6mqj6J/7\r\nz6S4UmNgoBTuszdw6uw1fIsdM4UYwWnF+QRHUFSzviYnMPqTDFyKQqk6pYNv\r\nd3MmWM1DIGaRT8KxfGV26OAQtlwNINYFKSL6CcvBu3zKcd+SAh59otmneNu/\r\nLebMZTry+l7/19xYxCNzOB02XnVevovZzSvjC+YtEPxGf1B5bgoWms55UR0N\r\nIvOZR/WJMhj3gAijaPiKQP40etokqnbTtGKh70pg0MGDkxf8v1mZnF1i6G/T\r\ndeKMJWlhH3wg2Y2D0zhcmS0KWyOC6BRBSz3Qo0p/ulXQKZFXNlVrSjnZA60A\r\nsQjK2C98lAm6WUAnY1tKsrtz6tPJ7+9sQTqTldiv8NpgwAL9QwbqWhLZjdHT\r\nn7RfyuksBSSih+PyXiEQfkhtQ6UWqdor62gmGDUYoaOSmqBO81jT6zZfRjzK\r\n6HDRpQup6kQnFkCmrPdlD7BToU43ROxU57hz4wZHw1T11lqlFxXKSnjfnzHg\r\nibYGkFwiDaucubSk4UmJCrGjVEmgQfpBLC8=\r\n=dbq+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCnvEyskap+j60dMuJ9N/bitXoUCpmrfG9goF8OCamGNgIhAMU5LMjihBxLsnr6d/Pk2CmMQEnk/T/gezuuD7ekjB5i"}]},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.1.5_1647249441142_0.49689006797978186"},"_hasShrinkwrap":false},"0.1.6":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/contracts.git"},"version":"0.1.6","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"Main repository for Midas Capital's contracts and SDK for interacting with those.","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","scripts":{"test":"hardhat test","test:forge":"forge test --no-match-contract LiquidityMining","test:bsc":"FORK_URL=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/mainnet/archive FORK_BLOCK_NUMBER=15990502 FORK_CHAIN_ID=56 hardhat test","export":"hardhat export --export-all ./deployments.json","build":"npm run build:hardhat && npm run build:sdk && npm run build:forge","build:forge":"forge build","build:hardhat":"hardhat compile","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","clean":"hardhat clean && rm -rf lib","prettier:sol":"prettier --write 'contracts/**/*.sol' 'contracts_forge/**/*.sol'","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'test/**/*.ts'","prettier":"npm run prettier:ts && npm run prettier:sol"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.2","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/hardhat":"^5.0.0","@types/chai":"^4.3.0","@types/mocha":"^9.1.0","@types/node":"^17.0.10","bufferutil":"^4.0.6","chai":"^4.3.4","dotenv":"^14.2.0","ethereum-waffle":"^3.4.0","ethers":"^5.5.3","hardhat":"^2.9.1","hardhat-abi-exporter":"^2.8.0","hardhat-deploy":"^0.9.27","hardhat-tracer":"^1.0.0-alpha.6","ts-node":"^10.5.0","typechain":"^7.0.1","typescript":"^4.6.2","utf-8-validate":"^5.0.8"},"dependencies":{"@keydonix/uniswap-oracle-contracts":"^1.0.6","@keydonix/uniswap-oracle-sdk":"^1.0.7","@keydonix/uniswap-oracle-sdk-adapter":"^1.0.7","@openzeppelin/contracts":"^4.5.0","@openzeppelin/contracts-upgradeable":"^4.5.0","@rari-capital/solmate":"^6.2.0","@typechain/ethers-v5":"^9.0.0","@types/bad-words":"^3.0.1","@uniswap/v3-core":"^1.0.0","@uniswap/v3-periphery":"github:Uniswap/uniswap-v3-periphery#pull/96/head","bad-words":"^3.0.4","lint-staged":"12.2.1","prettier":"2.5.1","prettier-plugin-solidity":"1.0.0-beta.19"},"types":"./dist/cjs/src/index.d.ts","readme":"# Contracts\n\nMain repository for Midas Capital's contracts and SDK for interacting with those.\n\n## Structure\n\n```text\n ┌── README.md                        <- The top-level README\n ├── .github/workflows/TestSuite.yaml <- CICD pipeline definition\n ├── .vscode                          <- IDE configs\n │\n │── artifacts                        <- (Auto-generated, git ignored)\n │       └── contracts\n │                  ├── compound      <- Compiled contracts mirroring /contracts\n │                  ├── external\n │                  └──  ...\n │\n ├── contracts                         <- All of our contracts\n │          ├── compound               <- Compound interfaces\n │          ├── external               <- External contracts we require\n │          ├── oracles                <- Oracle contracts\n │          ├── utils                  <- Utility contracts\n │          └──  ...                   <- Main Fuse contracts\n │\n ├── deploy                           <- hardhat deployment scripts\n ├── deployments                      <- hardhat-generated deployment files\n ├── scripts                          <- hardhat scripts\n ├── src                              <- midas-sdk main folder\n ├── deployments.json                 <- generated on \"npx hardhat export\"\n └── hardhat.config.ts                <- hardhat confing\n```\n\n## Dev Workflow\n\n0. Install dependencies\n\n```text\n>>> npm install\n```\n\n2. To develop against the SDK, artifacts and deployment files must be generated first, as they are used by the SDK:\n\n```text\n>>> npx hardhat node\n# in another console\n>>>> npm run export\n```\n\n3. Build the sdk\n\n```text\n>>> npm run build\n```\n\n4. Run tests\n\n```shell\n>>> npx hardhat test\n\n```\n\n### Gotchas\n\nIf you're developing against the contracts, and you're getting errors such as\n\n```shell\n Error: Deployment and registration of new Fuse pool failed: Transaction reverted: function returned an unexpected amount of data\n```\n\nIt is likely because the address of the `FuseFeeDistributor` has changed. Since it is hardcoded into one of the main\ncontracts that many others inherit from (all the Comptroller stuff), any calls to the old contract address will fail.\n\nBottom line: whenever you make changes to the `FuseFeeDistributor`, make sure that this contract address is updated in the two\nmain files that hardcode it:\n\n- `ComptrollerStorage.sol`\n- `CTokenInterfaces.sol`\n\nThis requires a few-step approach:\n\n1. Make your desired changes to the contracts\n2. Deploy them locally and run export\n3. Get the new FFD address and replace it where needed (if it all changed -- if its source code changed, so will its bytecode, and thus its deployed contract address)\n4. Re run the node / deployment and export / build\n\nThen, your tests should pass (assuming no other failures)\n\n### Running BSC mainnet fork locally\n\n1. Add env vars in .env\n\n`.env`\n```\nFORK_URL=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/mainnet/archive\nFORK_BLOCK_NUMBER=15641803\nFORK_CHAIN_ID=56\n```\n\n2. Run node\n\n```shell\n>>> npx hardhat node\n```\n\nYou can then generate the deployments for bsc (chain id 56)\n\n```shell\n>>> npm run export\n```\n\n## Running local node + liquidation bot\n\n1. Edit the `liquidation.env` file, add the account and private key from any of the\n   signer's accounts\n\n2. Edit desired parameters, if needed\n\n```shell\n>>> docker-compose up\n```\n\nThis will spin up the bot and a local node, and create an unhealthy pool. The bot\nwill act on it and liquidate it.\n\n3. Further test liquidations:\n\nIn another shell:\n\n```shell\n>>> npx hardhat pools:create-unhealthy --name \"test unhealthy\" --network localhost\n```\n\nCheck the logs from the bot and ensure it is performing the liquidations appropriately.\nYou can also run the UI and check the \"test unhealthy\", as it gets liquidated.\n\n## Running Forge tests\n\n1. Install forge (mac, linux)\n\n```\ncurl -L https://foundry.paradigm.xyz | bash\nfoundryup\n```\n\n2. Initalize forge in the repo\n\n```\nforge init --force\n```\n\n3.  Build the contracts\n\n```\nforge build\n```\n\n4. Test away\n\n```\nforge test\n```\n","readmeFilename":"README.md","gitHead":"56b9a2ec6770d15153d3592f89261f022e7408a6","bugs":{"url":"https://github.com/midas-protocol/contracts/issues"},"homepage":"https://github.com/midas-protocol/contracts#readme","_id":"@midas-capital/sdk@0.1.6","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-tbEidr1KxBPAtzIA8mz5sDfvPOwvOgYQPSzu7R8BeaR8B5PFb9eh3fLJHJPfJqkGPSEkUqBMy88Gjyxn5IDSLQ==","shasum":"fc4a74775a2934f9c101712d713aa8224bd7e2f4","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.1.6.tgz","fileCount":607,"unpackedSize":111911098,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiLxFxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqv3g//SB4ZdInICorCp0GCbW73sPKN4hRthmihll9JJR0J5fcxkVFt\r\n+K/TqEHb9CFAHCre2omkguTwKuEDHXwbazJBGE+9PmABFh/oRZvY6vsJBw0H\r\n3BGnurCcVb18Tnn+Y7boIbbJcgnFVb0Bn7fc+IUhhvXhJZQZObVR1nFJq/zO\r\nDntGWPM3bpzPbhFQh/jygjDZfkJtsDPwLc61VplbqyiEu+1WmzM5vTVbCrsK\r\nnUWhlC2TbGfGWmiWExqvU/P/gaRFlTX2Q1RJJAjrUZH44oyzYPfO+7ZC55TF\r\nlHkNhDPabLz35pDHZxk+E8lSKAY/SQ8xbHZPjDlPKOgsdbGneGmIKfXDcohZ\r\n5BzikjHTUQDutTvE4/h5dG8Tz4ZYZyZbIFcM8mFortc0HJbP/MRhjvZgk91O\r\n+cUbVUeuXpASsxvHAPzlUTDjJQTXM9NHiJwf+zNJQGEe/J6ISz6Lji6czXJd\r\nZAn3feldjE4TIQR8SLlThBjZ43caAsFd5q4nSPg+mS9ITFpa8aDjTL3D3vlz\r\niu9D4SdoaXs6GWNuSM8w0Rzd0oNPzGvBBuLbf5VhvcXPqudc0CPwngzUHmzz\r\n8zpo7G+1H1PfxrIPAIC6sYNaYqjF7Il/YpMx3oIVrN2x9BtnxhDOZWTG44cc\r\nLGNmcsv/umtzjTU2CUKUJiDZSLDZxisng0s=\r\n=tkIJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD5MtDPDXvZVxOpNXOx3yz1FUhowb9ophbv/CJ5O4rniwIhAOwNVoT4frB8K/F6kMpvJfrNjAvcQN4d9/SaOck4ki8F"}]},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.1.6_1647251824969_0.7240473641567369"},"_hasShrinkwrap":false},"0.1.7-beta.1":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/contracts.git"},"version":"0.1.7-beta.1","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"Main repository for Midas Capital's contracts and SDK for interacting with those.","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","scripts":{"test":"hardhat test","test:forge":"forge test --no-match-contract LiquidityMining","test:bsc":"FORK_URL=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/mainnet/archive FORK_BLOCK_NUMBER=15990502 FORK_CHAIN_ID=56 hardhat test","export":"hardhat export --export-all ./deployments.json","build":"npm run build:hardhat && npm run build:sdk && npm run build:forge","build:forge":"forge build","build:hardhat":"hardhat compile","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","clean":"hardhat clean && rm -rf lib","prettier:sol":"prettier --write 'contracts/**/*.sol' 'contracts_forge/**/*.sol'","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'test/**/*.ts'","prettier":"npm run prettier:ts && npm run prettier:sol"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.2","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/hardhat":"^5.0.0","@types/chai":"^4.3.0","@types/mocha":"^9.1.0","@types/node":"^17.0.10","bufferutil":"^4.0.6","chai":"^4.3.4","dotenv":"^14.2.0","ethereum-waffle":"^3.4.0","ethers":"^5.5.3","hardhat":"^2.9.1","hardhat-abi-exporter":"^2.8.0","hardhat-deploy":"^0.9.27","hardhat-tracer":"^1.0.0-alpha.6","ts-node":"^10.5.0","typechain":"^7.0.1","typescript":"^4.6.2","utf-8-validate":"^5.0.8"},"dependencies":{"@keydonix/uniswap-oracle-contracts":"^1.0.6","@keydonix/uniswap-oracle-sdk":"^1.0.7","@keydonix/uniswap-oracle-sdk-adapter":"^1.0.7","@openzeppelin/contracts":"^4.5.0","@openzeppelin/contracts-upgradeable":"^4.5.0","@rari-capital/solmate":"^6.2.0","@typechain/ethers-v5":"^9.0.0","@types/bad-words":"^3.0.1","@uniswap/v3-core":"^1.0.0","@uniswap/v3-periphery":"github:Uniswap/uniswap-v3-periphery#pull/96/head","bad-words":"^3.0.4","lint-staged":"12.2.1","prettier":"2.5.1","prettier-plugin-solidity":"1.0.0-beta.19"},"types":"./dist/cjs/src/index.d.ts","readme":"# Contracts\n\nMain repository for Midas Capital's contracts and SDK for interacting with those.\n\n## Structure\n\n```text\n ┌── README.md                        <- The top-level README\n ├── .github/workflows/TestSuite.yaml <- CICD pipeline definition\n ├── .vscode                          <- IDE configs\n │\n │── artifacts                        <- (Auto-generated, git ignored)\n │       └── contracts\n │                  ├── compound      <- Compiled contracts mirroring /contracts\n │                  ├── external\n │                  └──  ...\n │\n ├── contracts                         <- All of our contracts\n │          ├── compound               <- Compound interfaces\n │          ├── external               <- External contracts we require\n │          ├── oracles                <- Oracle contracts\n │          ├── utils                  <- Utility contracts\n │          └──  ...                   <- Main Fuse contracts\n │\n ├── deploy                           <- hardhat deployment scripts\n ├── deployments                      <- hardhat-generated deployment files\n ├── scripts                          <- hardhat scripts\n ├── src                              <- midas-sdk main folder\n ├── deployments.json                 <- generated on \"npx hardhat export\"\n └── hardhat.config.ts                <- hardhat confing\n```\n\n## Dev Workflow\n\n0. Install dependencies\n\n```text\n>>> npm install\n```\n\n2. To develop against the SDK, artifacts and deployment files must be generated first, as they are used by the SDK:\n\n```text\n>>> npx hardhat node\n# in another console\n>>>> npm run export\n```\n\n3. Build the sdk\n\n```text\n>>> npm run build\n```\n\n4. Run tests\n\n```shell\n>>> npx hardhat test\n\n```\n\n### Gotchas\n\nIf you're developing against the contracts, and you're getting errors such as\n\n```shell\n Error: Deployment and registration of new Fuse pool failed: Transaction reverted: function returned an unexpected amount of data\n```\n\nIt is likely because the address of the `FuseFeeDistributor` has changed. Since it is hardcoded into one of the main\ncontracts that many others inherit from (all the Comptroller stuff), any calls to the old contract address will fail.\n\nBottom line: whenever you make changes to the `FuseFeeDistributor`, make sure that this contract address is updated in the two\nmain files that hardcode it:\n\n- `ComptrollerStorage.sol`\n- `CTokenInterfaces.sol`\n\nThis requires a few-step approach:\n\n1. Make your desired changes to the contracts\n2. Deploy them locally and run export\n3. Get the new FFD address and replace it where needed (if it all changed -- if its source code changed, so will its bytecode, and thus its deployed contract address)\n4. Re run the node / deployment and export / build\n\nThen, your tests should pass (assuming no other failures)\n\n### Running BSC mainnet fork locally\n\n1. Add env vars in .env\n\n`.env`\n```\nFORK_URL=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/mainnet/archive\nFORK_BLOCK_NUMBER=15641803\nFORK_CHAIN_ID=56\n```\n\n2. Run node\n\n```shell\n>>> npx hardhat node\n```\n\nYou can then generate the deployments for bsc (chain id 56)\n\n```shell\n>>> npm run export\n```\n\n## Running local node + liquidation bot\n\n1. Edit the `liquidation.env` file, add the account and private key from any of the\n   signer's accounts\n\n2. Edit desired parameters, if needed\n\n```shell\n>>> docker-compose up\n```\n\nThis will spin up the bot and a local node, and create an unhealthy pool. The bot\nwill act on it and liquidate it.\n\n3. Further test liquidations:\n\nIn another shell:\n\n```shell\n>>> npx hardhat pools:create-unhealthy --name \"test unhealthy\" --network localhost\n```\n\nCheck the logs from the bot and ensure it is performing the liquidations appropriately.\nYou can also run the UI and check the \"test unhealthy\", as it gets liquidated.\n\n## Running Forge tests\n\n1. Install forge (mac, linux)\n\n```\ncurl -L https://foundry.paradigm.xyz | bash\nfoundryup\n```\n\n2. Initalize forge in the repo\n\n```\nforge init --force\n```\n\n3.  Build the contracts\n\n```\nforge build\n```\n\n4. Test away\n\n```\nforge test\n```\n","readmeFilename":"README.md","gitHead":"d74601679207c82e9e099570f084466ddb7a61f8","bugs":{"url":"https://github.com/midas-protocol/contracts/issues"},"homepage":"https://github.com/midas-protocol/contracts#readme","_id":"@midas-capital/sdk@0.1.7-beta.1","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-kx2COrhzHRbBkk5zaJ3BJ1c8cMs+YvSkD6mbxK1bqWVeTKzwg3FPaxfZh/1CubjEzVkbE4ssejZYc4EpZ6QmmQ==","shasum":"51fd2fcaf00184fcd3086630b70b7f2cba34695e","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.1.7-beta.1.tgz","fileCount":611,"unpackedSize":111927659,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiL17TACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoORA/9Eo7QZ4JeowC4M/2AZN1mCU51neqwPrsgP08fDul1yKjRp9pe\r\n/8I1Ug95zo8thUE3+Qo2UjEz0UKlZP3g+zC8zm5irIGcyWYaoz+kk8CTaWD3\r\nlbGrbqlibMxNMt7+JMkK8TmuXGs3hCuSM/hErhJxQGdFCPRM1AFn82M/m4ut\r\nTC26PHsM7AcLwdD9epzS+aVG9eontk5yheHo4FBmyL/TPSuTjyMhTF81076y\r\nmGKHC9axp9iZ465p1jHBMcjbJ+DJIZjyn4K9mrug+iu1pMQhsp5gDc2Gas1J\r\njCDeUcWyEKXBfrHfRw+xeV/RsSj37KgNFmvheAbu3iuVhaPHueVX9woN6MSv\r\n/1U4XRiFpEbz9sfWC6C1BK6qpu6EniK0rotBlbBlrf4/XZ1KKO4jy5SBVORd\r\nxXQVyJDbEqA+nsJNP2sBJ3DCLZ/MOIIVoKBZi7VDNL4UP2rbJ0rKCK9X3OIV\r\no9iaoSMydttOYXxYI9tE5mRvBjhQIrZLOBpNtcOvHZclGeECQkGwdMKIVDjl\r\ngRK9An4dpQQ7JWBET2RVr5AaKD+6dAh9+a9AzSo/gUrGhqG29yYSOwBbvTbF\r\nvV88ULY2koIsoKlT0Si9io/lxALqYH95ZpAM7PHUVBiS60dwlIVcFDPKMY8B\r\nzisguWaKhgPPcstOyIWW07JzuZO9Y8ZFNgY=\r\n=r8iX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHjVHJGY5OU0K7f16nzoKclV4Uomw7KrWCc6e5MvOeJ2AiEAgI2TJ8gFBYCMyqtyJURM4GLfdnasXh0VKG3EAUdu1R4="}]},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.1.7-beta.1_1647271635557_0.26060783094673634"},"_hasShrinkwrap":false},"0.1.7-beta.2":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/contracts.git"},"version":"0.1.7-beta.2","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"Main repository for Midas Capital's contracts and SDK for interacting with those.","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","scripts":{"test":"hardhat test","test:forge":"forge test --no-match-contract LiquidityMining","test:bsc":"FORK_URL=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/mainnet/archive FORK_BLOCK_NUMBER=15990502 FORK_CHAIN_ID=56 hardhat test","export":"hardhat export --export-all ./deployments.json","build":"npm run build:hardhat && npm run build:sdk && npm run build:forge","build:forge":"forge build","build:hardhat":"hardhat compile","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","clean":"hardhat clean && rm -rf lib","prettier:sol":"prettier --write 'contracts/**/*.sol' 'contracts_forge/**/*.sol'","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'test/**/*.ts'","prettier":"npm run prettier:ts && npm run prettier:sol"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.2","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/hardhat":"^5.0.0","@types/chai":"^4.3.0","@types/mocha":"^9.1.0","@types/node":"^17.0.10","bufferutil":"^4.0.6","chai":"^4.3.4","dotenv":"^14.2.0","ethereum-waffle":"^3.4.0","ethers":"^5.5.3","hardhat":"^2.9.1","hardhat-abi-exporter":"^2.8.0","hardhat-deploy":"^0.9.27","hardhat-tracer":"^1.0.0-alpha.6","ts-node":"^10.5.0","typechain":"^7.0.1","typescript":"^4.6.2","utf-8-validate":"^5.0.8"},"dependencies":{"@keydonix/uniswap-oracle-contracts":"^1.0.6","@keydonix/uniswap-oracle-sdk":"^1.0.7","@keydonix/uniswap-oracle-sdk-adapter":"^1.0.7","@openzeppelin/contracts":"^4.5.0","@openzeppelin/contracts-upgradeable":"^4.5.0","@rari-capital/solmate":"^6.2.0","@typechain/ethers-v5":"^9.0.0","@types/bad-words":"^3.0.1","@uniswap/v3-core":"^1.0.0","@uniswap/v3-periphery":"github:Uniswap/uniswap-v3-periphery#pull/96/head","bad-words":"^3.0.4","lint-staged":"12.2.1","prettier":"2.5.1","prettier-plugin-solidity":"1.0.0-beta.19"},"types":"./dist/cjs/src/index.d.ts","readme":"# Contracts\n\nMain repository for Midas Capital's contracts and SDK for interacting with those.\n\n## Structure\n\n```text\n ┌── README.md                        <- The top-level README\n ├── .github/workflows/TestSuite.yaml <- CICD pipeline definition\n ├── .vscode                          <- IDE configs\n │\n │── artifacts                        <- (Auto-generated, git ignored)\n │       └── contracts\n │                  ├── compound      <- Compiled contracts mirroring /contracts\n │                  ├── external\n │                  └──  ...\n │\n ├── contracts                         <- All of our contracts\n │          ├── compound               <- Compound interfaces\n │          ├── external               <- External contracts we require\n │          ├── oracles                <- Oracle contracts\n │          ├── utils                  <- Utility contracts\n │          └──  ...                   <- Main Fuse contracts\n │\n ├── deploy                           <- hardhat deployment scripts\n ├── deployments                      <- hardhat-generated deployment files\n ├── scripts                          <- hardhat scripts\n ├── src                              <- midas-sdk main folder\n ├── deployments.json                 <- generated on \"npx hardhat export\"\n └── hardhat.config.ts                <- hardhat confing\n```\n\n## Dev Workflow\n\n0. Install dependencies\n\n```text\n>>> npm install\n```\n\n2. To develop against the SDK, artifacts and deployment files must be generated first, as they are used by the SDK:\n\n```text\n>>> npx hardhat node\n# in another console\n>>>> npm run export\n```\n\n3. Build the sdk\n\n```text\n>>> npm run build\n```\n\n4. Run tests\n\n```shell\n>>> npx hardhat test\n\n```\n\n### Gotchas\n\nIf you're developing against the contracts, and you're getting errors such as\n\n```shell\n Error: Deployment and registration of new Fuse pool failed: Transaction reverted: function returned an unexpected amount of data\n```\n\nIt is likely because the address of the `FuseFeeDistributor` has changed. Since it is hardcoded into one of the main\ncontracts that many others inherit from (all the Comptroller stuff), any calls to the old contract address will fail.\n\nBottom line: whenever you make changes to the `FuseFeeDistributor`, make sure that this contract address is updated in the two\nmain files that hardcode it:\n\n- `ComptrollerStorage.sol`\n- `CTokenInterfaces.sol`\n\nThis requires a few-step approach:\n\n1. Make your desired changes to the contracts\n2. Deploy them locally and run export\n3. Get the new FFD address and replace it where needed (if it all changed -- if its source code changed, so will its bytecode, and thus its deployed contract address)\n4. Re run the node / deployment and export / build\n\nThen, your tests should pass (assuming no other failures)\n\n### Running BSC mainnet fork locally\n\n1. Add env vars in .env\n\n`.env`\n```\nFORK_URL=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/mainnet/archive\nFORK_BLOCK_NUMBER=15641803\nFORK_CHAIN_ID=56\n```\n\n2. Run node\n\n```shell\n>>> npx hardhat node\n```\n\nYou can then generate the deployments for bsc (chain id 56)\n\n```shell\n>>> npm run export\n```\n\n## Running local node + liquidation bot\n\n1. Edit the `liquidation.env` file, add the account and private key from any of the\n   signer's accounts\n\n2. Edit desired parameters, if needed\n\n```shell\n>>> docker-compose up\n```\n\nThis will spin up the bot and a local node, and create an unhealthy pool. The bot\nwill act on it and liquidate it.\n\n3. Further test liquidations:\n\nIn another shell:\n\n```shell\n>>> npx hardhat pools:create-unhealthy --name \"test unhealthy\" --network localhost\n```\n\nCheck the logs from the bot and ensure it is performing the liquidations appropriately.\nYou can also run the UI and check the \"test unhealthy\", as it gets liquidated.\n\n## Running Forge tests\n\n1. Install forge (mac, linux)\n\n```\ncurl -L https://foundry.paradigm.xyz | bash\nfoundryup\n```\n\n2. Initalize forge in the repo\n\n```\nforge init --force\n```\n\n3.  Build the contracts\n\n```\nforge build\n```\n\n4. Test away\n\n```\nforge test\n```\n","readmeFilename":"README.md","gitHead":"a639a03184deff33a32541fb2f654d664bc132c9","bugs":{"url":"https://github.com/midas-protocol/contracts/issues"},"homepage":"https://github.com/midas-protocol/contracts#readme","_id":"@midas-capital/sdk@0.1.7-beta.2","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-JmsLAbYEPqd6XFfEw9ifdJ9OQjWMGcfeRaZUxSSgoqk3taOjHcziuquc5S9VD03DBvYcXdoGAzYUnA1t9gBGCg==","shasum":"98f729c3e7c0b88857bbebceb7d29c8cd48b43e8","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.1.7-beta.2.tgz","fileCount":611,"unpackedSize":111819204,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiL5u5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmomOQ/9GbSDNcNq57bQSOP76DiaBsm1ZMNA7uedOHYzf+57cI0w97Yv\r\nIIX5nxBaahFE7sZFxbAdhT8wIZ9flGAPBk7PDRwxrzSbbZekbVOcr+smQ/Hu\r\nV0nRiWUBWoH5EEVsl5BOQ5mynC3uxBeOWZ0nkAYNhu+TJWQFQoAgRpqmAF2r\r\nAWWp126Ls0sENLPso333+3bsddIxD3Bxgj2W4l53uJmZTl/c7g8/fdXaZkPj\r\no/NgFH/EyhIi/3Nve5KRqkx47XUc1CmtI+7yVdHPRDKNqVqy5O/6/AQVj6FW\r\nYT5pCNpj3d3kT5Ih1mYECXQtTpSGDOBTBbyw15/o8aYMHPiOvwZdjVHLamG3\r\nh2vz2geSsHXUOdI09YOl0B6NiV+mmsnsJxUarSkechuMz+xrIU8Hxht5esi0\r\nMKL1LHsjOr2Q4e2H7NYboUsbgkTqIQ4vh4jz42J6syuE6EnL5LWAQgLgETpm\r\naL0DSFHDzWVRdwJN+5pTlGwwmkZmi4MShhFis6F67RlHZdMLx0FrwPeWZxH2\r\n0hGay6RaNK9VUhb/3/bXRMrPv5aojMZurAl8Legi8Shj2maNltCvaKKiaFyC\r\naItGuRAuqpxVt3EtTvsOGAk5s6zH6HYN6q0LHo4rj71ZCrbMjPRhxzL3wC7e\r\nvylh0Gk6wLb9gB3hHRmCZGRrxX8LTBec5YU=\r\n=yuJq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDtfWtPjrcbw6mRQBp+wXxbUm+B9aDEvaWsZsMWala60AiAssAX+zoadeMwlj7sTl3MC0WVwrWQ5K5DgS06C7EaV9Q=="}]},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.1.7-beta.2_1647287225656_0.9479013547377058"},"_hasShrinkwrap":false},"0.1.8":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/contracts.git"},"version":"0.1.8","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"Main repository for Midas Capital's contracts and SDK for interacting with those.","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","scripts":{"test":"hardhat test","test:forge":"forge test --no-match-contract LiquidityMining","test:bsc":"FORK_URL=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/mainnet/archive FORK_BLOCK_NUMBER=15990502 FORK_CHAIN_ID=56 hardhat test","export":"hardhat export --export-all ./deployments.json","build":"npm run build:hardhat && npm run build:sdk && npm run build:forge","build:forge":"forge build","build:hardhat":"hardhat compile","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","clean":"hardhat clean && rm -rf lib","prettier:sol":"prettier --write 'contracts/**/*.sol' 'contracts_forge/**/*.sol'","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'test/**/*.ts'","prettier":"npm run prettier:ts && npm run prettier:sol"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.2","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/hardhat":"^5.0.0","@types/chai":"^4.3.0","@types/mocha":"^9.1.0","@types/node":"^17.0.10","bufferutil":"^4.0.6","chai":"^4.3.4","dotenv":"^14.2.0","ethereum-waffle":"^3.4.0","ethers":"^5.5.3","hardhat":"^2.9.1","hardhat-abi-exporter":"^2.8.0","hardhat-deploy":"^0.9.27","hardhat-tracer":"^1.0.0-alpha.6","ts-node":"^10.5.0","typechain":"^7.0.1","typescript":"^4.6.2","utf-8-validate":"^5.0.8"},"dependencies":{"@keydonix/uniswap-oracle-contracts":"^1.0.6","@keydonix/uniswap-oracle-sdk":"^1.0.7","@keydonix/uniswap-oracle-sdk-adapter":"^1.0.7","@openzeppelin/contracts":"^4.5.0","@openzeppelin/contracts-upgradeable":"^4.5.0","@rari-capital/solmate":"^6.2.0","@typechain/ethers-v5":"^9.0.0","@types/bad-words":"^3.0.1","@uniswap/v3-core":"^1.0.0","@uniswap/v3-periphery":"github:Uniswap/uniswap-v3-periphery#pull/96/head","bad-words":"^3.0.4","lint-staged":"12.2.1","prettier":"2.5.1","prettier-plugin-solidity":"1.0.0-beta.19"},"types":"./dist/cjs/src/index.d.ts","gitHead":"7b9073950c8c6d60f0a89861adcc2a43da73a942","readme":"# Contracts\n\nMain repository for Midas Capital's contracts and SDK for interacting with those.\n\n## Structure\n\n```text\n ┌── README.md                        <- The top-level README\n ├── .github/workflows/TestSuite.yaml <- CICD pipeline definition\n ├── .vscode                          <- IDE configs\n │\n │── artifacts                        <- (Auto-generated, git ignored)\n │       └── contracts\n │                  ├── compound      <- Compiled contracts mirroring /contracts\n │                  ├── external\n │                  └──  ...\n │\n ├── contracts                         <- All of our contracts\n │          ├── compound               <- Compound interfaces\n │          ├── external               <- External contracts we require\n │          ├── oracles                <- Oracle contracts\n │          ├── utils                  <- Utility contracts\n │          └──  ...                   <- Main Fuse contracts\n │\n ├── deploy                           <- hardhat deployment scripts\n ├── deployments                      <- hardhat-generated deployment files\n ├── scripts                          <- hardhat scripts\n ├── src                              <- midas-sdk main folder\n ├── deployments.json                 <- generated on \"npx hardhat export\"\n └── hardhat.config.ts                <- hardhat confing\n```\n\n## Dev Workflow\n\n0. Install dependencies\n\n```text\n>>> npm install\n```\n\n2. To develop against the SDK, artifacts and deployment files must be generated first, as they are used by the SDK:\n\n```text\n>>> npx hardhat node\n# in another console\n>>>> npm run export\n```\n\n3. Build the sdk\n\n```text\n>>> npm run build\n```\n\n4. Run tests\n\n```shell\n>>> npx hardhat test\n\n```\n\n### Gotchas\n\nIf you're developing against the contracts, and you're getting errors such as\n\n```shell\n Error: Deployment and registration of new Fuse pool failed: Transaction reverted: function returned an unexpected amount of data\n```\n\nIt is likely because the address of the `FuseFeeDistributor` has changed. Since it is hardcoded into one of the main\ncontracts that many others inherit from (all the Comptroller stuff), any calls to the old contract address will fail.\n\nBottom line: whenever you make changes to the `FuseFeeDistributor`, make sure that this contract address is updated in the two\nmain files that hardcode it:\n\n- `ComptrollerStorage.sol`\n- `CTokenInterfaces.sol`\n\nThis requires a few-step approach:\n\n1. Make your desired changes to the contracts\n2. Deploy them locally and run export\n3. Get the new FFD address and replace it where needed (if it all changed -- if its source code changed, so will its bytecode, and thus its deployed contract address)\n4. Re run the node / deployment and export / build\n\nThen, your tests should pass (assuming no other failures)\n\n### Running BSC mainnet fork locally\n\n1. Add env vars in .env\n\n`.env`\n```\nFORK_URL=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/mainnet/archive\nFORK_BLOCK_NUMBER=15641803\nFORK_CHAIN_ID=56\n```\n\n2. Run node\n\n```shell\n>>> npx hardhat node\n```\n\nYou can then generate the deployments for bsc (chain id 56)\n\n```shell\n>>> npm run export\n```\n\n## Running local node + liquidation bot\n\n1. Edit the `liquidation.env` file, add the account and private key from any of the\n   signer's accounts\n\n2. Edit desired parameters, if needed\n\n```shell\n>>> docker-compose up\n```\n\nThis will spin up the bot and a local node, and create an unhealthy pool. The bot\nwill act on it and liquidate it.\n\n3. Further test liquidations:\n\nIn another shell:\n\n```shell\n>>> npx hardhat pools:create-unhealthy --name \"test unhealthy\" --network localhost\n```\n\nCheck the logs from the bot and ensure it is performing the liquidations appropriately.\nYou can also run the UI and check the \"test unhealthy\", as it gets liquidated.\n\n## Running Forge tests\n\n1. Install forge (mac, linux)\n\n```\ncurl -L https://foundry.paradigm.xyz | bash\nfoundryup\n```\n\n2. Initalize forge in the repo\n\n```\nforge init --force\n```\n\n3.  Build the contracts\n\n```\nforge build\n```\n\n4. Test away\n\n```\nforge test\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/midas-protocol/contracts/issues"},"homepage":"https://github.com/midas-protocol/contracts#readme","_id":"@midas-capital/sdk@0.1.8","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-phuw02sDI3wyFUU0cHddQWdMncOdt7u8TPaCKxxlFeCiCY1gU5O3VimdOtaTIFOpVLcttWbqukXJAr7WqGqtGA==","shasum":"71717d5bf1d91eeb23378cb512dd54d5c9d6f0ec","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.1.8.tgz","fileCount":623,"unpackedSize":112099519,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiMfMjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpwqg//VqMhCAaDhOGmwhD/fVjpxvfMtW7PJXdjVX9XYviHArz/qltM\r\nDAlfVdhPbH4v+RIMeA8GjPDbGv80Sy8YD5C63/9Iwlal7jhfUg4L2OAc5kEK\r\nFQPb2dRN2lE7SV88lfQYwdWZYvnmnde4KABNInPKH33k//5AjNoBcSA8wWFS\r\n35bapXi4k8Ko2F7GZZOlQys8mUJLbsZgzlO6QsnnQddh+omjHf6p1YOhqZYQ\r\n4aaAz9OHopTx7TLaqWVN8lPyTqU+GTa6V9tK4V4oWoagLba1W6jcX/t8EDBZ\r\n7Wy9IMuehpkSkZxwmUcrHrgpWREKaSkVB6iXWEeX+Zp8T4rx1O6Pv1YNfJdK\r\nxyY9uyIB0n8jEYqy97xyPOKrKYQ8GQfhL20PxOo0UgKT2Yceb/Ft/bccpX2h\r\nad3QQC8mJXSWeQOhTr2zckw3G+vb/sHBAxYd1J8ZMZiGBxKaXnJ/rwfL8UXv\r\n0jbNC4aj3MbhE45VjsuvZXAHNAKbBk+42TUqrCENT56TptDn/E7kd20yVFut\r\nBsekM4Fp1lzcxrWwHtACC8Xqs2Yw51C6uxogBqqss4KT4EZHnRAkt+9s6zsN\r\nwmBoMqbsg+w1eVkrtADKltzrZUWW+Gj+sAHY9pZNka2EqD55p3hQdXVW0oWN\r\ncDNDaKp//HX5AuEYbP5vZHzq1pwwcMONbW4=\r\n=O/2v\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGnYbwSmShXK8ONWe04quf9Jw9ShhgjXSxcAwLq/PCIBAiAqBBE4EOtr9QYiPm+v+Zlwf5DYjh4EPL20zpUFOdOYwQ=="}]},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.1.8_1647440674872_0.25767440553234877"},"_hasShrinkwrap":false},"0.1.9":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/contracts.git"},"version":"0.1.9","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"Main repository for Midas Capital's contracts and SDK for interacting with those.","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","scripts":{"test":"hardhat test","test:hardhat":"hardhat test","test:forge":"forge test --no-match-contract LiquidityMining","test:bsc":"FORK_URL=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/mainnet/archive FORK_BLOCK_NUMBER=15990502 FORK_CHAIN_ID=56 hardhat test","export":"hardhat export --export-all ./deployments.json","build":"npm run build:hardhat && npm run build:sdk && npm run build:forge","build:forge":"forge build","build:hardhat":"hardhat compile","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","clean":"hardhat clean && rm -rf lib","prettier:sol":"prettier --write 'contracts/**/*.sol' 'contracts_forge/**/*.sol'","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'test/**/*.ts'","prettier":"npm run prettier:ts && npm run prettier:sol"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.2","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/hardhat":"^5.0.0","@types/chai":"^4.3.0","@types/mocha":"^9.1.0","@types/node":"^17.0.10","bufferutil":"^4.0.6","chai":"^4.3.4","dotenv":"^14.2.0","ethereum-waffle":"^3.4.0","ethers":"^5.5.3","hardhat":"^2.9.1","hardhat-abi-exporter":"^2.8.0","hardhat-deploy":"^0.9.27","hardhat-tracer":"^1.0.0-alpha.6","ts-node":"^10.5.0","typechain":"^7.0.1","typescript":"^4.6.2","utf-8-validate":"^5.0.8"},"dependencies":{"@keydonix/uniswap-oracle-contracts":"^1.0.6","@keydonix/uniswap-oracle-sdk":"^1.0.7","@keydonix/uniswap-oracle-sdk-adapter":"^1.0.7","@openzeppelin/contracts":"^4.5.0","@openzeppelin/contracts-upgradeable":"^4.5.0","@rari-capital/solmate":"^6.2.0","@typechain/ethers-v5":"^9.0.0","@types/bad-words":"^3.0.1","@uniswap/v3-core":"^1.0.0","@uniswap/v3-periphery":"github:Uniswap/uniswap-v3-periphery#pull/96/head","bad-words":"^3.0.4","lint-staged":"12.2.1","prettier":"2.5.1","prettier-plugin-solidity":"1.0.0-beta.19"},"types":"./dist/cjs/src/index.d.ts","readme":"# Contracts\n\nMain repository for Midas Capital's contracts and SDK for interacting with those.\n\n## Structure\n\n```text\n ┌── README.md                        <- The top-level README\n ├── .github/workflows/TestSuite.yaml <- CICD pipeline definition\n ├── .vscode                          <- IDE configs\n │\n │── artifacts                        <- (Auto-generated, git ignored)\n │       └── contracts\n │                  ├── compound      <- Compiled contracts mirroring /contracts\n │                  ├── external\n │                  └──  ...\n │\n ├── contracts                         <- All of our contracts\n │          ├── compound               <- Compound interfaces\n │          ├── external               <- External contracts we require\n │          ├── oracles                <- Oracle contracts\n │          ├── utils                  <- Utility contracts\n │          └──  ...                   <- Main Fuse contracts\n │\n ├── deploy                           <- hardhat deployment scripts\n ├── deployments                      <- hardhat-generated deployment files\n ├── scripts                          <- hardhat scripts\n ├── src                              <- midas-sdk main folder\n ├── deployments.json                 <- generated on \"npx hardhat export\"\n └── hardhat.config.ts                <- hardhat confing\n```\n\n## Dev Workflow\n\n0. Install dependencies\n\n```text\n>>> npm install\n```\n\n2. To develop against the SDK, artifacts and deployment files must be generated first, as they are used by the SDK:\n\n```text\n>>> npx hardhat node\n# in another console\n>>>> npm run export\n```\n\n3. Build the sdk\n\n```text\n>>> npm run build\n```\n\n4. Run tests\n\n```shell\n>>> npx hardhat test\n\n```\n\n### Gotchas\n\nIf you're developing against the contracts, and you're getting errors such as\n\n```shell\n Error: Deployment and registration of new Fuse pool failed: Transaction reverted: function returned an unexpected amount of data\n```\n\nIt is likely because the address of the `FuseFeeDistributor` has changed. Since it is hardcoded into one of the main\ncontracts that many others inherit from (all the Comptroller stuff), any calls to the old contract address will fail.\n\nBottom line: whenever you make changes to the `FuseFeeDistributor`, make sure that this contract address is updated in the two\nmain files that hardcode it:\n\n- `ComptrollerStorage.sol`\n- `CTokenInterfaces.sol`\n\nThis requires a few-step approach:\n\n1. Make your desired changes to the contracts\n2. Deploy them locally and run export\n3. Get the new FFD address and replace it where needed (if it all changed -- if its source code changed, so will its bytecode, and thus its deployed contract address)\n4. Re run the node / deployment and export / build\n\nThen, your tests should pass (assuming no other failures)\n\n### Running BSC mainnet fork locally\n\n1. Add env vars in .env\n\n`.env`\n```\nFORK_URL=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/mainnet/archive\nFORK_BLOCK_NUMBER=15641803\nFORK_CHAIN_ID=56\n```\n\n2. Run node\n\n```shell\n>>> npx hardhat node\n```\n\nYou can then generate the deployments for bsc (chain id 56)\n\n```shell\n>>> npm run export\n```\n\n## Running local node + liquidation bot\n\n1. Edit the `liquidation.env` file, add the account and private key from any of the\n   signer's accounts\n\n2. Edit desired parameters, if needed\n\n```shell\n>>> docker-compose up\n```\n\nThis will spin up the bot and a local node, and create an unhealthy pool. The bot\nwill act on it and liquidate it.\n\n3. Further test liquidations:\n\nIn another shell:\n\n```shell\n>>> npx hardhat pools:create-unhealthy --name \"test unhealthy\" --network localhost\n```\n\nCheck the logs from the bot and ensure it is performing the liquidations appropriately.\nYou can also run the UI and check the \"test unhealthy\", as it gets liquidated.\n\n## Running Forge tests\n\n1. Install forge (mac, linux)\n\n```\ncurl -L https://foundry.paradigm.xyz | bash\nfoundryup\n```\n\n2. Initalize forge in the repo\n\n```\nforge init --force\n```\n\n3.  Build the contracts\n\n```\nforge build\n```\n\n4. Test away\n\n```\nforge test\n```\n","readmeFilename":"README.md","gitHead":"fc832286ad53fa8fe83ac753b208c2bc5bfb3c34","bugs":{"url":"https://github.com/midas-protocol/contracts/issues"},"homepage":"https://github.com/midas-protocol/contracts#readme","_id":"@midas-capital/sdk@0.1.9","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-7nhjnQesB08/KR3dYrIPcxSwJeawOOhswxkfKWPHz1qgBUhibTG72DAg+5f7lPaPLyAFBpitny14qphI/DOJeg==","shasum":"7b8e6ca058fc45836c412ee7e96035bce7903b44","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.1.9.tgz","fileCount":623,"unpackedSize":112103385,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiMgh4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpddw//UNZBSol5KcZHvZfWUaUtn3P3lYRQgpe1QK3vStl/tFlXEchm\r\n/dQwH+ampZf3S8c5/025YdV/P/x/VcAX94ER7BSAj8iYkmxCV1gtvYfVkU83\r\nvbqbjKeEavW5dRrzv2lUh3caHsyqOjF1jJwhCXGUHPBc9iQP7EVzq3Lo1V5S\r\no9aAoDbEkUAyiQS7BGV3Xu0YxClKYhHv/9BE1jh5/JisD0ACG7iU7z24uzSu\r\nzKDX8aDucP+ho2R0OGzB14mOP3tT+Jwuphxc+jbJGFrz82yx/mv91MVyxsiJ\r\ntb0UrcARmaVbSBSACnQQnlwbt+ZYMqn6v7YG/hKyzJmFTnywNGSg6B0vNioY\r\neIT0LtZIM/YouNe/XkJvHfcI7QWW9fayPWMPgKlI+5LscpXxoLSwAJy31c3k\r\nut6U0TN5ZNFn6STHYIOlt3Rmc/9ESdfP3BfeHUU76SzvYqIul0c+Dhhu0C2P\r\nCtRoFtUWSY+OaSvMXZiYuu7wLha2spobb5SaFRZeXbQEi6g6dgAbgSzhjEJE\r\nYHw6fuML3alOhGNi+6m0eB8ObKWjIn5Xy4ZAa5vHQXQ96xlhB5KIGJcUoqsc\r\n8g4B+N9Qv/dOScjLTIOLI6o6fQsiJDmuDMTAJtBLUq9ZzvZAEcITsbN98wud\r\nSEll3hh5asyatJ9aAZ58IKwUxn2jShC57XQ=\r\n=HErG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCQQgTXhGe2mFnEpIZZUUvjRNOPc2z9XcYakj5ueaMjbwIgCOyLz3Dlo/AdeB13kBmDCmLkXirwA0b46agYCNKUlwk="}]},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.1.9_1647446135753_0.7413791558520029"},"_hasShrinkwrap":false},"0.1.10":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/contracts.git"},"version":"0.1.10","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"Main repository for Midas Capital's contracts and SDK for interacting with those.","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","scripts":{"test":"hardhat test","test:hardhat":"hardhat test --parallel","test:forge":"forge test","test:forge:bsc":"forge test --fork-url ${FORK_URL_BSC} --fork-block-number 16281867 --match-path $INIT_CWD/contracts_forge/bsc_mainnet/","test:bsc":"FORK_URL=${FORK_URL_BSC} FORK_BLOCK_NUMBER=16281867 FORK_CHAIN_ID=56 hardhat test","export":"hardhat export --export-all ./deployments.json","build":"npm run build:hardhat && npm run build:sdk && npm run build:forge","build:forge":"forge build","build:hardhat":"hardhat compile","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","clean":"hardhat clean && rm -rf lib","prettier:sol":"prettier --write 'contracts/**/*.sol' 'contracts_forge/**/*.sol'","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'test/**/*.ts'","prettier":"npm run prettier:ts && npm run prettier:sol"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.2","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/hardhat":"^5.0.0","@types/chai":"^4.3.0","@types/mocha":"^9.1.0","@types/node":"^17.0.10","bufferutil":"^4.0.6","chai":"^4.3.4","dotenv":"^14.2.0","ethereum-waffle":"^3.4.0","ethers":"^5.5.3","hardhat":"^2.9.1","hardhat-abi-exporter":"^2.8.0","hardhat-deploy":"^0.9.27","hardhat-tracer":"^1.0.0-alpha.6","ts-node":"^10.5.0","typechain":"^7.0.1","typescript":"^4.6.2","utf-8-validate":"^5.0.8"},"dependencies":{"@keydonix/uniswap-oracle-contracts":"^1.0.6","@keydonix/uniswap-oracle-sdk":"^1.0.7","@keydonix/uniswap-oracle-sdk-adapter":"^1.0.7","@openzeppelin/contracts":"^4.5.0","@openzeppelin/contracts-upgradeable":"^4.5.0","@rari-capital/solmate":"^6.2.0","@typechain/ethers-v5":"^9.0.0","@types/bad-words":"^3.0.1","@uniswap/v3-core":"^1.0.0","@uniswap/v3-periphery":"github:Uniswap/uniswap-v3-periphery#pull/96/head","bad-words":"^3.0.4","lint-staged":"12.2.1","prettier":"2.5.1","prettier-plugin-solidity":"1.0.0-beta.19"},"types":"./dist/cjs/src/index.d.ts","readme":"# Contracts\n\nMain repository for Midas Capital's contracts and SDK for interacting with those.\n\n## Structure\n\n```text\n ┌── README.md                        <- The top-level README\n ├── .github/workflows/TestSuite.yaml <- CICD pipeline definition\n ├── .vscode                          <- IDE configs\n │\n │── artifacts                        <- (Auto-generated, git ignored)\n │       └── contracts\n │                  ├── compound      <- Compiled contracts mirroring /contracts\n │                  ├── external\n │                  └──  ...\n │\n ├── contracts                         <- All of our contracts\n │          ├── compound               <- Compound interfaces\n │          ├── external               <- External contracts we require\n │          ├── oracles                <- Oracle contracts\n │          ├── utils                  <- Utility contracts\n │          └──  ...                   <- Main Fuse contracts\n │\n ├── deploy                           <- hardhat deployment scripts\n ├── deployments                      <- hardhat-generated deployment files\n ├── scripts                          <- hardhat scripts\n ├── src                              <- midas-sdk main folder\n ├── deployments.json                 <- generated on \"npx hardhat export\"\n └── hardhat.config.ts                <- hardhat confing\n```\n\n## Dev Workflow\n\n0. Install dependencies\n\n```text\n>>> npm install\n```\n\n2. To develop against the SDK, artifacts and deployment files must be generated first, as they are used by the SDK:\n\n```text\n>>> npx hardhat node\n# in another console\n>>>> npm run export\n```\n\n3. Build the sdk\n\n```text\n>>> npm run build\n```\n\n4. Run tests\n\n```shell\n>>> npx hardhat test\n\n```\n\n### Gotchas\n\nIf you're developing against the contracts, and you're getting errors such as\n\n```shell\n Error: Deployment and registration of new Fuse pool failed: Transaction reverted: function returned an unexpected amount of data\n```\n\nIt is likely because the address of the `FuseFeeDistributor` has changed. Since it is hardcoded into one of the main\ncontracts that many others inherit from (all the Comptroller stuff), any calls to the old contract address will fail.\n\nBottom line: whenever you make changes to the `FuseFeeDistributor`, make sure that this contract address is updated in the two\nmain files that hardcode it:\n\n- `ComptrollerStorage.sol`\n- `CTokenInterfaces.sol`\n\nThis requires a few-step approach:\n\n1. Make your desired changes to the contracts\n2. Deploy them locally and run export\n3. Get the new FFD address and replace it where needed (if it all changed -- if its source code changed, so will its bytecode, and thus its deployed contract address)\n4. Re run the node / deployment and export / build\n\nThen, your tests should pass (assuming no other failures)\n\n### Running BSC mainnet fork locally\n\n1. Add env vars in .env\n\n`.env`\n```\nFORK_URL=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/mainnet/archive\nFORK_BLOCK_NUMBER=15641803\nFORK_CHAIN_ID=56\n```\n\n2. Run node\n\n```shell\n>>> npx hardhat node\n```\n\nYou can then generate the deployments for bsc (chain id 56)\n\n```shell\n>>> npm run export\n```\n\n## Running local node + liquidation bot\n\n1. Edit the `liquidation.env` file, add the account and private key from any of the\n   signer's accounts\n\n2. Edit desired parameters, if needed\n\n```shell\n>>> docker-compose up\n```\n\nThis will spin up the bot and a local node, and create an unhealthy pool. The bot\nwill act on it and liquidate it.\n\n3. Further test liquidations:\n\nIn another shell:\n\n```shell\n>>> npx hardhat pools:create-unhealthy --name \"test unhealthy\" --network localhost\n```\n\nCheck the logs from the bot and ensure it is performing the liquidations appropriately.\nYou can also run the UI and check the \"test unhealthy\", as it gets liquidated.\n\n## Running Forge tests\n\n1. Install forge (mac, linux)\n\n```\ncurl -L https://foundry.paradigm.xyz | bash\nfoundryup\n```\n\n2. Initalize forge in the repo\n\n```\nforge init --force\n```\n\n3.  Build the contracts\n\n```\nforge build\n```\n\n4. Test away\n\n```\nforge test\n```\n","readmeFilename":"README.md","gitHead":"75affcaf47894b11886acc83d2a2b4defa63242c","bugs":{"url":"https://github.com/midas-protocol/contracts/issues"},"homepage":"https://github.com/midas-protocol/contracts#readme","_id":"@midas-capital/sdk@0.1.10","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-A/w5Ily0lPPRjMkdbAdVonnHuJh/wC3ayPFlaDrviSkTGIbIQ4+SFPyPeBY/7Q4OGFg1ddDhzLYDtvRecgSiOA==","shasum":"ed153a11f9478a510ee528f958d4c35b3b5a435d","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.1.10.tgz","fileCount":687,"unpackedSize":114064893,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiPaQIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqPyA//WSNQBcv5tfksZ+JmWSZwWJzqNCsQIys5K3RaxGcicVTLP9Ll\r\n9vS2rk6ZZq26TCObHrXsN22/JB8ZL4Clnt0ex4udYnrvC9WehGzEpE6cfFQg\r\nhA4dztcFGGKCMkoEyJQ10Hv/z92ayuOM+7/7IN2yxYs6o6uDNYrjKWNdVy6n\r\n8O/8zUX0I2lxQkyTSII3HiufJNOldej5WpaUipQm/XdehQC5GO4FH0g3ifiV\r\nA3u4gf8ZIWwK2qfv9u2FWwfby3AWTOAgrT4NmsLuk+OajjmQoU0VYnag1bDV\r\nk0yXFqLIVgqYTn3zcYg2vxxZegb3G1KP7LHGqX5YYO1gdlP0kHuPd9d9UGsC\r\nyy3cSxfFzVAJy4Ni6S15RXF35uEo0kaqbJRzhu2PnSnpz9uILo7oG8a1asZ2\r\nYH2HBmVZsEkUVc4PfLr8Ig8QiCtoNH4wsm/9Or0k/yEkCXWxMvDYXO8/chPy\r\nuDyoG3R69hCvpAZnQaJ4IlZpeV3zdpHWnAbT4mCC4lP9Jj+c4LQXLZtGf4yR\r\nYIPrzsPZMUCfo2gnaXTM7EVIABwpe+zbYAyrdmFsveBBL/Q4U6dw/fIiIGEK\r\nnR0Jsvp6cD4aWHFxHfaH1wlC/uLA5svGbfiZptRaiV8/yhPPLv6CohkEZzpk\r\nQprL5/EPEJoHORNfV+ta1h4Pt4mMAEZOcn4=\r\n=OERo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCHQP4PTHla7AfYoCGXV/gSFgR0kHWz/2A1wwePO5jOcwIgH6Wq6mpqzV4JKcfgSoWh4GpktgCMssv9WLDsnZIYSlY="}]},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.1.10_1648206855864_0.8490801168982292"},"_hasShrinkwrap":false},"0.1.11":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/contracts.git"},"version":"0.1.11","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"Main repository for Midas Capital's contracts and SDK for interacting with those.","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","scripts":{"test":"hardhat test","test:hardhat":"hardhat test --parallel","test:forge":"forge test","test:forge:bsc":"forge test --fork-url ${FORK_URL_BSC} --fork-block-number 16281867","test:bsc":"FORK_URL=${FORK_URL_BSC} FORK_BLOCK_NUMBER=16281867 FORK_CHAIN_ID=56 hardhat test","export":"hardhat export --export-all ./deployments.json","build":"npm run build:hardhat && npm run build:sdk && npm run build:forge","build:forge":"forge build","build:hardhat":"hardhat compile","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","clean":"hardhat clean && rm -rf lib","deploy:simulate:bsc:mainnet":"FORK_URL=${FORK_URL_BSC} FORK_BLOCK_NUMBER=16281867 FORK_CHAIN_ID=56 hardhat node --tags simulate","deploy:bsc:mainnet":"hardhat --network bsc deploy --tags prod","prettier:sol":"prettier --write 'contracts/**/*.sol' 'contracts_forge/**/*.sol'","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'test/**/*.ts'","prettier":"npm run prettier:ts && npm run prettier:sol"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.2","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/hardhat":"^5.0.0","@types/chai":"^4.3.0","@types/mocha":"^9.1.0","@types/node":"^17.0.10","bufferutil":"^4.0.6","chai":"^4.3.4","dotenv":"^14.2.0","ethereum-waffle":"^3.4.0","ethers":"^5.5.3","hardhat":"^2.9.1","hardhat-abi-exporter":"^2.8.0","hardhat-deploy":"^0.9.27","hardhat-tracer":"^1.0.0-alpha.6","ts-node":"^10.5.0","typechain":"^7.0.1","typescript":"^4.6.2","utf-8-validate":"^5.0.8"},"dependencies":{"@keydonix/uniswap-oracle-contracts":"^1.0.6","@keydonix/uniswap-oracle-sdk":"^1.0.7","@keydonix/uniswap-oracle-sdk-adapter":"^1.0.7","@openzeppelin/contracts":"^4.5.0","@openzeppelin/contracts-upgradeable":"^4.5.0","@rari-capital/solmate":"^6.2.0","@typechain/ethers-v5":"^9.0.0","@types/bad-words":"^3.0.1","@uniswap/v3-core":"^1.0.0","@uniswap/v3-periphery":"github:Uniswap/uniswap-v3-periphery#pull/96/head","bad-words":"^3.0.4","lint-staged":"12.2.1","prettier":"2.5.1","prettier-plugin-solidity":"1.0.0-beta.19"},"types":"./dist/cjs/src/index.d.ts","readme":"# Contracts\n\nMain repository for Midas Capital's contracts and SDK for interacting with those.\n\n## Structure\n\n```text\n ┌── README.md                        <- The top-level README\n ├── .github/workflows/TestSuite.yaml <- CICD pipeline definition\n ├── .vscode                          <- IDE configs\n │\n │── artifacts                        <- (Auto-generated, git ignored)\n │       └── contracts\n │                  ├── compound      <- Compiled contracts mirroring /contracts\n │                  ├── external\n │                  └──  ...\n │\n ├── contracts                         <- All of our contracts\n │          ├── compound               <- Compound interfaces\n │          ├── external               <- External contracts we require\n │          ├── oracles                <- Oracle contracts\n │          ├── utils                  <- Utility contracts\n │          └──  ...                   <- Main Fuse contracts\n │\n ├── deploy                           <- hardhat deployment scripts\n ├── deployments                      <- hardhat-generated deployment files\n ├── scripts                          <- hardhat scripts\n ├── src                              <- midas-sdk main folder\n ├── deployments.json                 <- generated on \"npx hardhat export\"\n └── hardhat.config.ts                <- hardhat confing\n```\n\n## Dev Workflow\n\n0. Install dependencies\n\n```text\n>>> npm install\n```\n\n2. To develop against the SDK, artifacts and deployment files must be generated first, as they are used by the SDK:\n\n```text\n>>> npx hardhat node --tags local\n# in another console\n>>>> npm run export\n```\n\n3. Build the sdk\n\n```text\n>>> npm run build\n```\n\n4. Run tests\n\n```shell\n>>> npx hardhat test\n\n```\n\n### Gotchas\n\nIf you're developing against the contracts, and you're getting errors such as\n\n```shell\n Error: Deployment and registration of new Fuse pool failed: Transaction reverted: function returned an unexpected amount of data\n```\n\nIt is likely because the address of the `FuseFeeDistributor` has changed. Since it is hardcoded into one of the main\ncontracts that many others inherit from (all the Comptroller stuff), any calls to the old contract address will fail.\n\nBottom line: whenever you make changes to the `FuseFeeDistributor`, make sure that this contract address is updated in the two\nmain files that hardcode it:\n\n- `ComptrollerStorage.sol`\n- `CTokenInterfaces.sol`\n\nThis requires a few-step approach:\n\n1. Make your desired changes to the contracts\n2. Deploy them locally and run export\n3. Get the new FFD address and replace it where needed (if it all changed -- if its source code changed, so will its bytecode, and thus its deployed contract address)\n4. Re run the node / deployment and export / build\n\nThen, your tests should pass (assuming no other failures)\n\n### Running BSC mainnet fork locally\n\n1. Add env vars in .env\n\n`.env`\n```\nFORK_URL=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/mainnet/archive\nFORK_BLOCK_NUMBER=15641803\nFORK_CHAIN_ID=56\n```\n\n2. Run node\n\n```shell\n>>> npx hardhat node --tags fork\n```\n\nYou can then generate the deployments for bsc (chain id 56)\n\n```shell\n>>> npm run export\n```\n\n## Running local node + liquidation bot\n\n1. Edit the `liquidation.env` file, add the account and private key from any of the\n   signer's accounts\n\n2. Edit desired parameters, if needed\n\n```shell\n>>> docker-compose up\n```\n\nThis will spin up the bot and a local node, and create an unhealthy pool. The bot\nwill act on it and liquidate it.\n\n3. Further test liquidations:\n\nIn another shell:\n\n```shell\n>>> npx hardhat e2e:unhealthy-pools-exist --network localhost\n```\n\nCheck the logs from the bot and ensure it is performing the liquidations appropriately.\nYou can also run the UI and check the \"test unhealthy\", as it gets liquidated.\n\n## Running Forge tests\n\n1. Install forge (mac, linux)\n\n```\ncurl -L https://foundry.paradigm.xyz | bash\nfoundryup\n```\n\n2. Initialize forge in the repo\n\n```\nforge init --force\n```\n\n3. Build the contracts\n\n```\nforge build\n```\n\n4. Test away\n\n```\nforge test\n```\n\n5. To run the tests on a BSC mainnet fork, run\n\n```\nnpm run test:forge:bsc\n```\n\n## Simulating a prod deploy\n\n1. Add the chain-specific env vars in .env\n\n2. Then run\n\n```shell\n>>> npx hardhat node --tags simulate\n```\n\n## Deploying to prod (BSC mainnet)\n\n1. Set the correct mnemonic in the .env file\n\n2. Run\n\n```\nhardhat --network bsc deploy --tags prod\n```\n","readmeFilename":"README.md","gitHead":"481daf553d9540e39588357e926469ea8fd2a35f","bugs":{"url":"https://github.com/midas-protocol/contracts/issues"},"homepage":"https://github.com/midas-protocol/contracts#readme","_id":"@midas-capital/sdk@0.1.11","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-vvkTRaqautv1ptwgX7tzfbhL9NBvMCN0G3Ebmgf3Arz5CiznqBAVBoGI4zPSWc/S3oMk7SZCYYFEylJe8N3YqA==","shasum":"e7ed37a2071097ebd3500fef0a64b4ac205facdd","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.1.11.tgz","fileCount":701,"unpackedSize":113436163,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEkIygr+h+ASSV4DArDfEszLa39/wIZXp/Go1awz3mawAiEAnARjQyYdvuEEFUGabINL7ppLhJwdeqP+H2X86eFHIJ4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRrnqACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpmEg//ZxiasDOP/Ptzp7nm8UhKBjJCxXP9o7/Vcm9d/ZWWIyiIBk+q\r\nKb9Yux+NyZ7prb8BLHragEFY65tCwxhhp2GnB3K42kRIWNKzBzj/vSurZ4vA\r\nBPZghXeR2WK4TFTP7XuGLtMuH6u3/OSUEB1PSa3ZEtZY3wLaRePUjlhClv6T\r\nte3aPWighg6w9+wmpnvJy7D1If21L8YSxuA8Ru5fsYW55rlEuAQQPGvDl5NM\r\nj1UimbRUqZe1C43QwV7/95hnkS4Xi3R6FUneCp4A86GqqVav5HpoHng6zOQj\r\n9QbhiDmsdKpQU9Nzkr8eZWL9094mIkPu3XrTdAnVctTStEt2gn0IBLSY48t/\r\ndD0f+ZGcX5jYcotbTqWrUG7RC0OiHFNNGCv2DlDQmpAY/cuVk8g345Z2QqgF\r\nAskvFR0eFtEyhYH2AmKLus6ZW5iDN2E9TCuNqUv0QOxT+wL3Bsulknp69sOg\r\nogD9FUY0IxGl+tgXZfFeVpXntv8gOHfsSdgyO0a8BRxu9eGzohlwR8IpqV+O\r\nJgpteGioVeNUJeqi/2gqmWmgSzJ6Jwz8siiX93F/dWodk7cujKU+fd+NcHqz\r\n4WAo4sBtqpN30xge0qIQk/eEgwWJR8hitR9DYMWp5Mmh0gatucj0ECZxoWW+\r\nU3ew2XD/nuW+0twzuNGwJbwcf0vOUNk6nSA=\r\n=LaZj\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.1.11_1648802282074_0.12459168523813435"},"_hasShrinkwrap":false},"0.1.14":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/contracts.git"},"version":"0.1.14","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"Main repository for Midas Capital's contracts and SDK for interacting with those.","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","scripts":{"test":"hardhat test","test:hardhat":"hardhat test --parallel","test:forge":"forge test","test:forge:bsc":"forge test --fork-url ${FORK_URL_BSC} --fork-block-number ${FORK_BLOCK_NUMBER}","test:bsc":"FORK_URL=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat test","export":"hardhat export --export-all ./deployments.json","build":"npm run build:forge && npm run typechain && npm run build:sdk ","build:forge":"forge build","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","clean":"hardhat clean && rm -rf lib","typechain":"typechain --target ethers-v5 --out-dir './typechain' 'out/*/**.json'","deploy:simulate:bsc:mainnet":"FORK_URL_BSC=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat node --tags simulate","deploy:bsc:mainnet":"hardhat --network bsc deploy --tags prod","prettier:sol":"prettier --write 'contracts/**/*.sol' 'contracts_forge/**/*.sol'","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'test/**/*.ts'","prettier":"npm run prettier:ts && npm run prettier:sol"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.3","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/hardhat":"^6.0.0","@types/chai":"^4.3.0","@types/mocha":"^9.1.0","@types/node":"^17.0.23","bufferutil":"^4.0.6","chai":"^4.3.6","dotenv":"^16.0.0","ethereum-waffle":"^3.4.4","ethers":"^5.6.2","hardhat":"^2.9.2","hardhat-abi-exporter":"^2.8.0","hardhat-deploy":"^0.11.4","hardhat-tracer":"^1.0.0-alpha.6","ts-node":"^10.7.0","typechain":"^8.0.0","typescript":"^4.6.3","utf-8-validate":"^5.0.9"},"dependencies":{"@keydonix/uniswap-oracle-sdk":"^1.0.7","@keydonix/uniswap-oracle-sdk-adapter":"^1.0.7","@typechain/ethers-v5":"^10.0.0","@types/bad-words":"^3.0.1","bad-words":"^3.0.4","lint-staged":"12.3.7","prettier":"2.6.1","prettier-plugin-solidity":"1.0.0-beta.19"},"types":"./dist/cjs/src/index.d.ts","readme":"# Contracts\n\nMain repository for Midas Capital's contracts and SDK for interacting with those.\n\n## Structure\n\n```text\n ┌── README.md                        <- The top-level README\n ├── .github/workflows/TestSuite.yaml <- CICD pipeline definition\n ├── .vscode                          <- IDE configs\n │\n │── artifacts                        <- (Auto-generated, git ignored)\n │       └── contracts\n │                  ├── compound      <- Compiled contracts mirroring /contracts\n │                  ├── external\n │                  └──  ...\n │\n ├── contracts                         <- All of our contracts\n │          ├── compound               <- Compound interfaces\n │          ├── external               <- External contracts we require\n │          ├── oracles                <- Oracle contracts\n │          ├── utils                  <- Utility contracts\n │          └──  ...                   <- Main Fuse contracts\n │\n ├── deploy                           <- hardhat deployment scripts\n ├── deployments                      <- hardhat-generated deployment files\n ├── scripts                          <- hardhat scripts\n ├── src                              <- midas-sdk main folder\n ├── deployments.json                 <- generated on \"npx hardhat export\"\n └── hardhat.config.ts                <- hardhat confing\n```\n\n## Dev Workflow\n\n0. Install dependencies\n\n```text\n>>> npm install\n```\n\n2. To develop against the SDK, artifacts and deployment files must be generated first, as they are used by the SDK:\n\n```text\n>>> npx hardhat node --tags local\n# in another console\n>>>> npm run export\n```\n\n3. Build the sdk\n\n```text\n>>> npm run build\n```\n\n4. Run tests\n\n```shell\n>>> npx hardhat test\n\n```\n\n### Gotchas\n\nIf you're developing against the contracts, and you're getting errors such as\n\n```shell\n Error: Deployment and registration of new Fuse pool failed: Transaction reverted: function returned an unexpected amount of data\n```\n\nIt is likely because the address of the `FuseFeeDistributor` has changed. Since it is hardcoded into one of the main\ncontracts that many others inherit from (all the Comptroller stuff), any calls to the old contract address will fail.\n\nBottom line: whenever you make changes to the `FuseFeeDistributor`, make sure that this contract address is updated in the two\nmain files that hardcode it:\n\n- `ComptrollerStorage.sol`\n- `CTokenInterfaces.sol`\n\nThis requires a few-step approach:\n\n1. Make your desired changes to the contracts\n2. Deploy them locally and run export\n3. Get the new FFD address and replace it where needed (if it all changed -- if its source code changed, so will its bytecode, and thus its deployed contract address)\n4. Re run the node / deployment and export / build\n\nThen, your tests should pass (assuming no other failures)\n\n### Running BSC mainnet fork locally\n\n1. Add env vars in .env\n\n`.env`\n```\nFORK_URL=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/mainnet/archive\nFORK_BLOCK_NUMBER=15641803\nFORK_CHAIN_ID=56\n```\n\n2. Run node\n\n```shell\n>>> npx hardhat node --tags fork\n```\n\nYou can then generate the deployments for bsc (chain id 56)\n\n```shell\n>>> npm run export\n```\n\n## Running local node + liquidation bot\n\n1. Edit the `liquidation.env` file, add the account and private key from any of the\n   signer's accounts\n\n2. Edit desired parameters, if needed\n\n```shell\n>>> docker-compose up\n```\n\nThis will spin up the bot and a local node, and create an unhealthy pool. The bot\nwill act on it and liquidate it.\n\n3. Further test liquidations:\n\nIn another shell:\n\n```shell\n>>> npx hardhat e2e:unhealthy-pools-exist --network localhost\n```\n\nCheck the logs from the bot and ensure it is performing the liquidations appropriately.\nYou can also run the UI and check the \"test unhealthy\", as it gets liquidated.\n\n## Running Forge tests\n\n1. Install forge (mac, linux)\n\n```\ncurl -L https://foundry.paradigm.xyz | bash\nfoundryup\n```\n\n2. Initialize forge in the repo\n\n```\nforge init --force\n```\n\n3. Build the contracts\n\n```\nforge build\n```\n\n4. Test away\n\n```\nforge test\n```\n\n5. To run the tests on a BSC mainnet fork, run\n\n```\nnpm run test:forge:bsc\n```\n\n## Simulating a prod deploy\n\n1. Add the chain-specific env vars in .env\n\n2. Then run\n\n```shell\n>>> npx hardhat node --tags simulate\n```\n\n## Deploying to prod (BSC mainnet)\n\n1. Set the correct mnemonic in the .env file\n\n2. Run\n\n```\nhardhat --network bsc deploy --tags prod\n```\n","readmeFilename":"README.md","gitHead":"3858cd63ed082089a18052d9c50722085b53a60f","bugs":{"url":"https://github.com/midas-protocol/contracts/issues"},"homepage":"https://github.com/midas-protocol/contracts#readme","_id":"@midas-capital/sdk@0.1.14","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"integrity":"sha512-i3HYctbfU3LB/V9ZmJQJcGFwfYrGAqslIyeXDO/OlVUOTRIQcGIqzmh1EAlytlCcahRRDYo85q+QehaWpJVogw==","shasum":"40def0163db9eae26310676d22ec26f525a1c948","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.1.14.tgz","fileCount":183,"unpackedSize":22281908,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDE4IJg0jkixjvMMHfuv2fPiD/5ITQiBtuyVZMzqDBpsgIge7MxwqX6AleqeT/5Qg9pfz/AtzHbkZKOTKxWCO+sLH4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiTRRQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrT5Q//dMhnPKL4wZszGB8PJ17tkNDIqX6LJEZuv3Y42ivNnKPE52bq\r\nbC0p8v60SWMYtlDVmKxhFHehlNqeBZ9r9qL6KK4Cx7uprtEP6zHOzPesqcmA\r\n4PExuC2B/3MTWvBpzdBMzocvWMBclevHRsPS0xQeMpv+PzLGL34iGVI4opcN\r\nKbDpQHT2ShRGUd952hkH8+fAlv86jCOjDJSfQAADc37Jr39XqYAWVu4zU3ad\r\nbOgFOXpI1fzOsqeEwEgUxvdh5XoNTHUDzf4pINjRFi6hdfYPr3Tk40cr043n\r\ngDKoDJsq1Ss/4xnwiG6gcCV/i31rIN0CcHPf3cAmERbFmcjm534tXsLrpIwT\r\nYPgEZJovPqVewQ5rLWfqtxmQXzRO8ltXnb4lhrzV+E2r8p9kIe+2o5oXArRL\r\nV/zD7gQrfyqJ1LO6ooV8g2hUCAXGHVHmNWAwZaTw7gfDgmK9ggiiqZNt7k6r\r\nYfTAFUC+MiHTfM3si2Lwi+93BTEQJJ2f6pfujRq/pHn5msdTdyJasXwJX9Md\r\nqrZR/vOJwfipABtLOSS5Z2VYFohhM9wzYX/fWH5v34y8jJjbIRb7Nwv/r+id\r\n1B5tg6AI9BipTY/lmb+khOYXmEGkVrtzKwPYytqP/a0WBb4+xmpyTayvwkYG\r\nVvkwS16H1FrkN2zd3v8f29+U5yQP0hUOP8w=\r\n=QJZV\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.1.14_1649218640585_0.19359727360046763"},"_hasShrinkwrap":false},"0.1.15":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/contracts.git"},"version":"0.1.15","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"Main repository for Midas Capital's contracts and SDK for interacting with those.","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","scripts":{"test":"hardhat test","test:hardhat":"hardhat test --parallel","test:forge":"forge test","test:forge:bsc":"forge test --fork-url ${FORK_URL_BSC} --fork-block-number ${FORK_BLOCK_NUMBER}","test:bsc":"FORK_URL=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat test","export":"hardhat export --export-all ./deployments.json","build":"npm run build:forge && npm run typechain && npm run build:sdk ","build:forge":"forge build","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","clean":"hardhat clean && rm -rf lib","typechain":"typechain --target ethers-v5 --out-dir './typechain' 'out/*/**.json'","deploy:simulate:bsc:mainnet":"FORK_URL_BSC=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat node --tags simulate","deploy:bsc:mainnet":"hardhat --network bsc deploy --tags prod","prettier:sol":"prettier --write 'contracts/**/*.sol' 'contracts_forge/**/*.sol'","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'test/**/*.ts'","prettier":"npm run prettier:ts && npm run prettier:sol"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.3","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/hardhat":"^6.0.0","@types/chai":"^4.3.0","@types/mocha":"^9.1.0","@types/node":"^17.0.23","bufferutil":"^4.0.6","chai":"^4.3.6","dotenv":"^16.0.0","ethereum-waffle":"^3.4.4","ethers":"^5.6.2","hardhat":"^2.9.2","hardhat-abi-exporter":"^2.8.0","hardhat-deploy":"^0.11.4","hardhat-tracer":"^1.0.0-alpha.6","ts-node":"^10.7.0","typechain":"^8.0.0","typescript":"^4.6.3","utf-8-validate":"^5.0.9"},"dependencies":{"@keydonix/uniswap-oracle-sdk":"^1.0.7","@keydonix/uniswap-oracle-sdk-adapter":"^1.0.7","@typechain/ethers-v5":"^10.0.0","@types/bad-words":"^3.0.1","bad-words":"^3.0.4","lint-staged":"12.3.7","prettier":"2.6.1","prettier-plugin-solidity":"1.0.0-beta.19"},"types":"./dist/cjs/src/index.d.ts","readme":"# Contracts\n\nMain repository for Midas Capital's contracts and SDK for interacting with those.\n\n## Structure\n\n```text\n ┌── README.md                        <- The top-level README\n ├── .github/workflows/TestSuite.yaml <- CICD pipeline definition\n ├── .vscode                          <- IDE configs\n │\n │── artifacts                        <- (Auto-generated, git ignored)\n │       └── contracts\n │                  ├── compound      <- Compiled contracts mirroring /contracts\n │                  ├── external\n │                  └──  ...\n │\n ├── contracts                         <- All of our contracts\n │          ├── compound               <- Compound interfaces\n │          ├── external               <- External contracts we require\n │          ├── oracles                <- Oracle contracts\n │          ├── utils                  <- Utility contracts\n │          └──  ...                   <- Main Fuse contracts\n │\n ├── deploy                           <- hardhat deployment scripts\n ├── deployments                      <- hardhat-generated deployment files\n ├── scripts                          <- hardhat scripts\n ├── src                              <- midas-sdk main folder\n ├── deployments.json                 <- generated on \"npx hardhat export\"\n └── hardhat.config.ts                <- hardhat confing\n```\n\n## Dev Workflow\n\n0. Install dependencies\n\n```text\n>>> npm install\n```\n\n2. To develop against the SDK, artifacts and deployment files must be generated first, as they are used by the SDK:\n\n```text\n>>> npx hardhat node --tags local\n# in another console\n>>>> npm run export\n```\n\n3. Build the sdk\n\n```text\n>>> npm run build\n```\n\n4. Run tests\n\n```shell\n>>> npx hardhat test\n\n```\n\n### Gotchas\n\nIf you're developing against the contracts, and you're getting errors such as\n\n```shell\n Error: Deployment and registration of new Fuse pool failed: Transaction reverted: function returned an unexpected amount of data\n```\n\nIt is likely because the address of the `FuseFeeDistributor` has changed. Since it is hardcoded into one of the main\ncontracts that many others inherit from (all the Comptroller stuff), any calls to the old contract address will fail.\n\nBottom line: whenever you make changes to the `FuseFeeDistributor`, make sure that this contract address is updated in the two\nmain files that hardcode it:\n\n- `ComptrollerStorage.sol`\n- `CTokenInterfaces.sol`\n\nThis requires a few-step approach:\n\n1. Make your desired changes to the contracts\n2. Deploy them locally and run export\n3. Get the new FFD address and replace it where needed (if it all changed -- if its source code changed, so will its bytecode, and thus its deployed contract address)\n4. Re run the node / deployment and export / build\n\nThen, your tests should pass (assuming no other failures)\n\n### Running BSC mainnet fork locally\n\n1. Add env vars in .env\n\n`.env`\n```\nFORK_URL=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/mainnet/archive\nFORK_BLOCK_NUMBER=15641803\nFORK_CHAIN_ID=56\n```\n\n2. Run node\n\n```shell\n>>> npx hardhat node --tags fork\n```\n\nYou can then generate the deployments for bsc (chain id 56)\n\n```shell\n>>> npm run export\n```\n\n## Running local node + liquidation bot\n\n1. Edit the `liquidation.env` file, add the account and private key from any of the\n   signer's accounts\n\n2. Edit desired parameters, if needed\n\n```shell\n>>> docker-compose up\n```\n\nThis will spin up the bot and a local node, and create an unhealthy pool. The bot\nwill act on it and liquidate it.\n\n3. Further test liquidations:\n\nIn another shell:\n\n```shell\n>>> npx hardhat e2e:unhealthy-pools-exist --network localhost\n```\n\nCheck the logs from the bot and ensure it is performing the liquidations appropriately.\nYou can also run the UI and check the \"test unhealthy\", as it gets liquidated.\n\n## Running Forge tests\n\n1. Install forge (mac, linux)\n\n```\ncurl -L https://foundry.paradigm.xyz | bash\nfoundryup\n```\n\n2. Initialize forge in the repo\n\n```\nforge init --force\n```\n\n3. Build the contracts\n\n```\nforge build\n```\n\n4. Test away\n\n```\nforge test\n```\n\n5. To run the tests on a BSC mainnet fork, run\n\n```\nnpm run test:forge:bsc\n```\n\n## Simulating a prod deploy\n\n1. Add the chain-specific env vars in .env\n\n2. Then run\n\n```shell\n>>> npx hardhat node --tags simulate\n```\n\n## Deploying to prod (BSC mainnet)\n\n1. Set the correct mnemonic in the .env file\n\n2. Run\n\n```\nhardhat --network bsc deploy --tags prod\n```\n","readmeFilename":"README.md","gitHead":"f75c219d804235c85e04eb36fa1a9dc7c59d8a06","bugs":{"url":"https://github.com/midas-protocol/contracts/issues"},"homepage":"https://github.com/midas-protocol/contracts#readme","_id":"@midas-capital/sdk@0.1.15","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"integrity":"sha512-b3gDoBigk7pXKV7kdfA3ake95P4r6yR0xKgxJeVs+6llKnv7AgE+DxzF9gsyKRQrlUkQeFuiMN0FzavJPHjNmQ==","shasum":"38cb29976dee13e584953329b2ae33747abe492d","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.1.15.tgz","fileCount":233,"unpackedSize":26518933,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDZsN9n0Gp80antShG7NHWfpy3eD/n6k3u418/U7wsI5wIhAJMwSVNCYDdHYfA71gHyEqb093voCdFiMHHpEcftP+4t"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiTuf0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqAIQ/+JcxobfqN5Qm2bon5OTFskoSQiGA65sRcRiLuQpcuIAnPp8KN\r\n8BvxhWTFAckwNZ9eY2MDQnWIqgTRKzpVJsypkiNUYnV2Yv0DHe4eXZeLzdoI\r\nd/7B4roCbEiV2odqQU0g+AtQsA8NgVRGBB6SBviwdZwO+NgCFHiNbynLwZRH\r\ngQWOMO9O5/jtrhaQoVx6DZULakZefTnQccY0mSejh0hoAgB3jVDDJtrqkdQ/\r\n1oeELBaTJrspFLLZ9di1rVL5U7+bqmjlrYc8uhvS0EMoQc9dMU6mAb4UvpYp\r\nH7ZpSOV90PEILKsKATL4ouED9fIGZYyUxOc56UJoY9aHTiMkIIDm89YngxNw\r\n5XRCqDGdvFHAcU/jAAkijBAcdbqoaYt+lyS57z09OkEYec5bxpLYSxYeW1NZ\r\nsaOnAa6Vv0Qn2tzvre1kt+7oHqODqV/U6sSZvAGlcFOxHCYtEtUQqBc6n8Ow\r\nzzgO4Gatzhbf8MA/R0MSLHzN3fZp4VEgLzQoe3v1jHqxEdKba2K8yh3vw5mp\r\norKaBuVd144hKTCg1HjXdP7W7kGOOvyrqh2VFsFSAlGIcsGVFaQAz/2jwAgG\r\nP4JcGvasNU8MJHrXC9FlM0uhQsQQ5BHFmku2AJIqtzJ87MFtqRvjAyY7c/Rq\r\nf1NmT7PEUAAwIVf4w6Sf2CW597svaX2atDQ=\r\n=nosU\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.1.15_1649338356240_0.1571481427571224"},"_hasShrinkwrap":false},"0.1.16":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/contracts.git"},"version":"0.1.16","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"Main repository for Midas Capital's contracts and SDK for interacting with those.","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","scripts":{"test":"hardhat test","test:hardhat":"hardhat test --parallel","test:forge":"forge test","test:forge:bsc":"forge test --fork-url ${FORK_URL_BSC} --fork-block-number ${FORK_BLOCK_NUMBER}","test:bsc":"FORK_URL=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat test","export":"hardhat export --export-all ./deployments.json","build":"npm run build:forge && npm run typechain && npm run build:sdk ","build:forge":"forge build","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","clean":"hardhat clean && rm -rf lib","typechain":"typechain --target ethers-v5 --out-dir './typechain' 'out/*/**.json'","deploy:simulate:bsc:mainnet":"FORK_URL_BSC=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat node --tags simulate","deploy:bsc:mainnet":"hardhat --network bsc deploy --tags prod","prettier:sol":"prettier --write 'contracts/**/*.sol' 'contracts_forge/**/*.sol'","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'test/**/*.ts'","prettier":"npm run prettier:ts && npm run prettier:sol"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.3","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/hardhat":"^6.0.0","@types/chai":"^4.3.0","@types/mocha":"^9.1.0","@types/node":"^17.0.23","bufferutil":"^4.0.6","chai":"^4.3.6","dotenv":"^16.0.0","ethereum-waffle":"^3.4.4","ethers":"^5.6.2","hardhat":"^2.9.2","hardhat-abi-exporter":"^2.8.0","hardhat-deploy":"^0.11.4","hardhat-tracer":"^1.0.0-alpha.6","ts-node":"^10.7.0","typechain":"^8.0.0","typescript":"^4.6.3","utf-8-validate":"^5.0.9"},"dependencies":{"@keydonix/uniswap-oracle-sdk":"^1.0.7","@keydonix/uniswap-oracle-sdk-adapter":"^1.0.7","@typechain/ethers-v5":"^10.0.0","@types/bad-words":"^3.0.1","bad-words":"^3.0.4","lint-staged":"12.3.7","prettier":"2.6.1","prettier-plugin-solidity":"1.0.0-beta.19"},"types":"./dist/cjs/src/index.d.ts","readme":"# Contracts\n\nMain repository for Midas Capital's contracts and SDK for interacting with those.\n\n## Structure\n\n```text\n ┌── README.md                        <- The top-level README\n ├── .github/workflows/TestSuite.yaml <- CICD pipeline definition\n ├── .vscode                          <- IDE configs\n │\n │── artifacts                        <- (Auto-generated, git ignored)\n │       └── contracts\n │                  ├── compound      <- Compiled contracts mirroring /contracts\n │                  ├── external\n │                  └──  ...\n │\n ├── contracts                         <- All of our contracts\n │          ├── compound               <- Compound interfaces\n │          ├── external               <- External contracts we require\n │          ├── oracles                <- Oracle contracts\n │          ├── utils                  <- Utility contracts\n │          └──  ...                   <- Main Fuse contracts\n │\n ├── deploy                           <- hardhat deployment scripts\n ├── deployments                      <- hardhat-generated deployment files\n ├── scripts                          <- hardhat scripts\n ├── src                              <- midas-sdk main folder\n ├── deployments.json                 <- generated on \"npx hardhat export\"\n └── hardhat.config.ts                <- hardhat confing\n```\n\n## Dev Workflow\n\n0. Install dependencies\n\n```text\n>>> npm install\n```\n\n2. To develop against the SDK, artifacts and deployment files must be generated first, as they are used by the SDK:\n\n```text\n>>> npx hardhat node --tags local\n# in another console\n>>>> npm run export\n```\n\n3. Build the sdk\n\n```text\n>>> npm run build\n```\n\n4. Run tests\n\n```shell\n>>> npx hardhat test\n\n```\n\n### Gotchas\n\nIf you're developing against the contracts, and you're getting errors such as\n\n```shell\n Error: Deployment and registration of new Fuse pool failed: Transaction reverted: function returned an unexpected amount of data\n```\n\nIt is likely because the address of the `FuseFeeDistributor` has changed. Since it is hardcoded into one of the main\ncontracts that many others inherit from (all the Comptroller stuff), any calls to the old contract address will fail.\n\nBottom line: whenever you make changes to the `FuseFeeDistributor`, make sure that this contract address is updated in the two\nmain files that hardcode it:\n\n- `ComptrollerStorage.sol`\n- `CTokenInterfaces.sol`\n\nThis requires a few-step approach:\n\n1. Make your desired changes to the contracts\n2. Deploy them locally and run export\n3. Get the new FFD address and replace it where needed (if it all changed -- if its source code changed, so will its bytecode, and thus its deployed contract address)\n4. Re run the node / deployment and export / build\n\nThen, your tests should pass (assuming no other failures)\n\n### Running BSC mainnet fork locally\n\n1. Add env vars in .env\n\n`.env`\n```\nFORK_URL=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/mainnet/archive\nFORK_BLOCK_NUMBER=15641803\nFORK_CHAIN_ID=56\n```\n\n2. Run node\n\n```shell\n>>> npx hardhat node --tags fork\n```\n\nYou can then generate the deployments for bsc (chain id 56)\n\n```shell\n>>> npm run export\n```\n\n## Running local node + liquidation bot\n\n1. Edit the `liquidation.env` file, add the account and private key from any of the\n   signer's accounts\n\n2. Edit desired parameters, if needed\n\n```shell\n>>> docker-compose up\n```\n\nThis will spin up the bot and a local node, and create an unhealthy pool. The bot\nwill act on it and liquidate it.\n\n3. Further test liquidations:\n\nIn another shell:\n\n```shell\n>>> npx hardhat e2e:unhealthy-pools-exist --network localhost\n```\n\nCheck the logs from the bot and ensure it is performing the liquidations appropriately.\nYou can also run the UI and check the \"test unhealthy\", as it gets liquidated.\n\n## Running Forge tests\n\n1. Install forge (mac, linux)\n\n```\ncurl -L https://foundry.paradigm.xyz | bash\nfoundryup\n```\n\n2. Initialize forge in the repo\n\n```\nforge init --force\n```\n\n3. Build the contracts\n\n```\nforge build\n```\n\n4. Test away\n\n```\nforge test\n```\n\n5. To run the tests on a BSC mainnet fork, run\n\n```\nnpm run test:forge:bsc\n```\n\n## Simulating a prod deploy\n\n1. Add the chain-specific env vars in .env\n\n2. Then run\n\n```shell\n>>> npx hardhat node --tags simulate\n```\n\n## Deploying to prod (BSC mainnet)\n\n1. Set the correct mnemonic in the .env file\n\n2. Run\n\n```\nhardhat --network bsc deploy --tags prod\n```\n","readmeFilename":"README.md","gitHead":"380ce0cb8b89adce8896f587d7cb9269daec00be","bugs":{"url":"https://github.com/midas-protocol/contracts/issues"},"homepage":"https://github.com/midas-protocol/contracts#readme","_id":"@midas-capital/sdk@0.1.16","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"integrity":"sha512-rKA6pSaNF9JMq6pjsHHY4DzRouUbYF1Ly+u3koIySmeP2wQVQ2Gop/Y0J7Fk0o+Nn7r9yna1xUhpoMqTTF3wGA==","shasum":"f81e7d13e6c7c215ca63816759a7019a91c30f15","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.1.16.tgz","fileCount":233,"unpackedSize":26594273,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCxBWBD6BiKkMoG225lwt3wuiHaoqQDLd1K+95CTEtLoQIhAL86nJzRdLWZPrAeTl5LFHCBaNJ1RE30/TVqr5TL6dxE"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiUdL6ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoBiw//ZXFBlaDvFNSGbfvVRO+ZUDU3zpfqJpVEDp2YGmCAmPKNR38S\r\nkMWxZI7cCB5Hi3iV5/6xWcrrtxcA0ywGLhnIE2efHKast+7NPzxYO+l9s89b\r\n2QOWtERMGneViJObnA1bZAEm1CwtxRMnCqJ3FkPPIU00GN5tdYjZHkZpcz1t\r\nBSKAgiMpUyZGYgcUFh5wc4HYbw9GdrgK11+VauQ7qU9rKHiCNEcyMP504lm6\r\nwfXfOJ9Lkb5AvOSIs+4Y/VunPCQ2CJWHAGO1C9MeK6GjJbYTxyVrIjEQoUcO\r\ngsr5Kiz098xsvhePKGJKkExoX2Gdgq0pBfNJ1Ga6xRInSwT1LIDAPcAfco8r\r\nedeiEMmpXc9F7DGTfPmhNP5nYRBw0MOGXxS/MJpPBdAQC11ZcAnz6Yo4BZKq\r\nfI8FNgP+RDA8ls0thfI22WyCIl1opqZ9TaSSgEu6KU0LCA3TIu/bHh304g0L\r\n3voSnbFMBlMJACWrz8G+VEPstH8yqH5q/1npAhLWsJvP9Bh7VKkdmeR8koHI\r\nO9KdCxLHT0vFe78RuGqGbEm5KAre1fYSjyVJLeRd9Lvs3aOubRGIE7/IFOaB\r\n7cNZ7kLkUSw2cQr6jvRJvSJ7H8Pn73prjWLhq/l1NIRExPa4VB4W6T1AVqMY\r\nFEpBnYUe3NZtMWCVQYF/F+ZYuepur6wqcbk=\r\n=0rwY\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.1.16_1649529594636_0.8712725396798302"},"_hasShrinkwrap":false},"0.1.17":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/contracts.git"},"version":"0.1.17","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"Main repository for Midas Capital's contracts and SDK for interacting with those.","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","scripts":{"test":"hardhat test","test:hardhat":"hardhat test --parallel","test:forge":"forge test","test:forge:bsc":"forge test --fork-url ${FORK_URL_BSC} --fork-block-number ${FORK_BLOCK_NUMBER}","test:bsc":"FORK_URL=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat test","export":"hardhat export --export-all ./deployments.json","build":"npm run build:forge && npm run typechain && npm run build:sdk ","build:forge":"forge build","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","clean":"hardhat clean && rm -rf lib","typechain":"typechain --target ethers-v5 --out-dir './typechain' 'out/*/**.json'","deploy:simulate:bsc:mainnet":"FORK_URL_BSC=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat node --tags simulate","deploy:bsc:mainnet":"hardhat --network bsc deploy --tags prod","prettier:sol":"prettier --write 'contracts/**/*.sol' 'contracts_forge/**/*.sol'","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'test/**/*.ts'","prettier":"npm run prettier:ts && npm run prettier:sol"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.3","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/hardhat":"^6.0.0","@types/chai":"^4.3.0","@types/mocha":"^9.1.0","@types/node":"^17.0.23","bufferutil":"^4.0.6","chai":"^4.3.6","dotenv":"^16.0.0","ethereum-waffle":"^3.4.4","ethers":"^5.6.2","hardhat":"^2.9.2","hardhat-abi-exporter":"^2.8.0","hardhat-deploy":"^0.11.4","hardhat-tracer":"^1.0.0-alpha.6","ts-node":"^10.7.0","typechain":"^8.0.0","typescript":"^4.6.3","utf-8-validate":"^5.0.9"},"dependencies":{"@keydonix/uniswap-oracle-sdk":"^1.0.7","@keydonix/uniswap-oracle-sdk-adapter":"^1.0.7","@typechain/ethers-v5":"^10.0.0","@types/bad-words":"^3.0.1","bad-words":"^3.0.4","lint-staged":"12.3.7","prettier":"2.6.1","prettier-plugin-solidity":"1.0.0-beta.19"},"types":"./dist/cjs/src/index.d.ts","readme":"# Contracts\n\nMain repository for Midas Capital's contracts and SDK for interacting with those.\n\n## Structure\n\n```text\n ┌── README.md                        <- The top-level README\n ├── .github/workflows/TestSuite.yaml <- CICD pipeline definition\n ├── .vscode                          <- IDE configs\n │\n ├── out                              <- (forge-generated, git ignored)\n │    ├── *.sol/*.json                <- All the built contracts\n │    └──  ...                        \n │\n ├── typechain                        <- (typechain-generated, git ignored)\n │\n ├── dist                             <- (typechain-generated, git ignored)\n │\n ├── lib                              <- git submodules with forge-based dependencies\n │    ├── flywheel-v2                 <- Tribe flywheel contracts\n │    ├── fuse-flywheel               <- Fuse flywheel contracts\n │    ├── oz-contracts-upgreadable    <- OpenZeppelin deps\n │    └──  ...                        <- other deps\n │\n ├── contracts                        <- All of our contracts\n │    ├── compound                    <- Compound interfaces\n │    ├── external                    <- External contracts we require\n │    ├── oracles                     <- Oracle contracts\n │    ├── utils                       <- Utility contracts\n │    └──  ...                        <- Main Fuse contracts\n │\n ├── deploy                           <- main hardhat deployment scripts\n ├── chainDeploy                      <- hardhat chain-specific deployment scripts \n ├── tasks                            <- hardhat scripts\n ├── src                              <- midas-sdk main folder\n ├── test                             <- chai-based tests (SDK integration tests)\n ├── deployments.json                 <- generated on \"npx hardhat export\"\n └── hardhat.config.ts                <- hardhat confing\n```\n\n## Dev Workflow\n\n0. Install dependencies: npm & [foundry](https://github.com/gakonst/foundry) (forge + cast)\n\nForge dependencies\n\n```text\n>>> curl -L https://foundry.paradigm.xyz | bash \n>>> foundryup\n# ensure forge and cast are available in your $PATH\n# install submodule libraries via forge \n>>> forge install \n```\n\nNPM dependencies\n\n```text\n>>> npm install\n```\n\n### Developing Against the SDK\n\nTo develop against the SDK, artifacts and deployment files must be generated first, as they are used by the SDK.\nThis is taken care by forge\n\n```shell\n>>> npm run build\n```\n\nWill generate all the required artifacts: `typechain` files, built contracts in `out` directory, and the newly built\nSDK in `dist`. Another file that is extremely important for the correct behavior of the SDK is the\n`deployments.json` file, which contains all the deployed contract addresses and ABIs for each of the \nchains we deploy to\n\nNow, make the desired changes to the SDK. To test them, run the \"integration\" tests:\n\n```shell\n>>> npx hardhat test:hardhat\n# with forking, see note below on forking\n>>> npx hardhat test:bsc \n```\n\n### Developing Against the contracts\n\nNow, you make some changes to the contracts. Once statisfied:\n\n```shell\n>>> npm run build:forge\n```\n\nAnd then test the changes with forge-based tests:\n\n```shell\n>>> npm run test:forge\n# tests with forking, see note below on forking\n>>> npm run test:forge:bsc\n```\n\nAt this point, you also want to run integration tests that leverage the SDK. For that, you need to \nregenerate the required artifacts:\n\n```shell\n# create freshly compiled artifacts\n>>> npm run build\n```\n\nRedeploy the contracts locally\n\n```shell\n# deploy new contracts to localhost, and export them to the deployments.json file\n>>> npx hardhat node --tags local\n# in another console\n>>> npm run export\n# rebuild the SDK with the newly created artifacts\n>>> npm run build\n```\n\nOnce this is done, you can run the integration tests:\n\n\n```shell\n# Integration tests against local node\n>>> npm run test:hardhat\n```\n\n```shell\n# Integration tests against bsc fork node\n>>> npm run test:bsc\n```\n\n**NOTE**: to run tests against a BSC forked node, set the correct env variables in `.env`:\n```\nFORK_URL_BSC=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/mainnet/archive\n# this is well before the deployment of our contracts, so you should start with a fresh set of contracts\nFORK_BLOCK_NUMBER=14621736\nFORK_CHAIN_ID=56\n```\n\n(if these env vars are set, the tests will always use them, so make sure to comment them out if you're intending\nto run tests against a non-forked node)\n\n## Running a node for FE development or integration testing\n\nWith the `.env` set up as above:\n\n```shell\n>>> npx hardhat node --tags fork\n```\nor alternatively, using the live currently deployed contracts (change the `FORK_BLOCK_NUMBER` to something recent)\n\n```shell\n# no deploy is needed because contracts at those addresses already exist\n>>> npx hardhat node --tags prod --no-deploy\n```\n\nor alternatively, just run a local node without forking. Comment out all the `FORK_*` variables from the `.env` file\nand:\n\n```shell\n>>> npx hardhat node --tags prod \n```\n\n## Deploying to prod (BSC mainnet)\n\n1. Set the correct mnemonic in the .env file\n\n2. Run\n\n```\nhardhat --network bsc deploy --tags prod\n```\n\n### Current & Desired Workflow\n\nDeployment flow of contracts:\n\n1. Make desired changes, and push to branch, creating a PR against `main` branch\n2. Ensure integration and forge tests pass for the local case (`npm run test:hardhat` and `npm run test:forge`)\n3. Once the local tests pass, redeploy the contracts to all target chains\n4. Export deployments files, and commit new deployment artifacts, and bump SDK version\n6. Merge to main, which triggers new SDK release\n\nThis is OK, but it does not enforce the testing against the pre and post deploy BSC forked node. Our ideal scenario instead\nlooks like the following:\n\n1. Make desired changes, and push to branch, creating a PR against `development` branch\n2. Ensure integration and forge tests pass for the local case & for the pre-deploy forked node case\n3. Once tests pass, redeploy the contracts to all target chains \n4. Export deployments files, and commit new deployment artifacts, and bump SDK version\n5. Merge into `development` branch\n6. Create PR from `development` into `main` \n7. Ensure tests against a **post-deploy** BSC fork works (both forge and hh-based tests). This will ensure that \nthe newly deployed contracts are both integration and unit tested.\n8. Update SDK, merge to `main`, which triggers new SDK release ","readmeFilename":"README.md","gitHead":"939f97e69e8da4b71a54bd8d01dba46dc6e1fca0","bugs":{"url":"https://github.com/midas-protocol/contracts/issues"},"homepage":"https://github.com/midas-protocol/contracts#readme","_id":"@midas-capital/sdk@0.1.17","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"integrity":"sha512-s87fda5oSCFKiiuSetYhGAUq4gQN2Q1+IPvNE4jcEJJPUjCniBu5pn04vUPfmYDPm8UX4Yh2bzVX4PZXUVMULQ==","shasum":"1f2fac12baf92491b34b97a12d5d529cc0847cda","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.1.17.tgz","fileCount":233,"unpackedSize":26604788,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC08U6crQu5OHY1M35c1wfgZPCQ51pbQ9qZpdh3W9Wl0AiEAubikSb3nakveoFD3tCNA1KaNoj6EyaxuBy8qUQ4AoPI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiVBoBACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrLWg/9FILVhi+L7utEk87bp5hXLB5wTQSjinSoE1BLnbhO38/sCOS6\r\nh3aNi61KzwnqcxVJQ1reIE1y+rgGvULsewCSsOK+vd04fXaBqijhexfotal2\r\nWqqKp6VqhgxA3aFApGe8ofy5ObKP1rZ7m/biJ9fDQSRkhUFo68Yz5U0XBgUn\r\nWlGdDFeue6ToJyz9OcqfcKVE/CITCqF9r/bXXXHHYu9IptzifsGVXEksOimv\r\nWZ23ZFvPYRaLKYK+3x7+WnmnDiFhDL7hqjGp19h1bIj6E32op4VaPfxW6uNB\r\nNzxFisvXfSO2pUJKj7y2PU8vDKyPvu2fxjkKHj/fRFwECEKaZ7SRYCZn1FGy\r\nt1qb5a3SBYR0yoeyyq0ahk863DwkSKLgVTljB2uRtBOXccQVhv1uBXvR0n+2\r\nmrupzz0M4sX4yWuS8+B0seqvBxp+Dmnow+X0r+EiGlQxmyvE87lan20P2iNS\r\nCalweh5DpJ6aBdtKicINz4Xm8d1m19k/E0fqKqo4hzeff2672Q0U/snDjiNi\r\nnaiviFfN1bSMLsmRer3YzRs2cVHvTQoTYMc/z+njN6zYKTdJ4Uso8EtqEdek\r\nDdLhDOQS8rYtvdHR5+S7isujwsg7UBHTmY1Ve78yncZM6BByP9SZa7wU4H+o\r\nxrQHjeQTyuV3L6I1nepe9b2lOOVUzhzrvII=\r\n=U6Wo\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.1.17_1649678848940_0.07927732461547099"},"_hasShrinkwrap":false},"0.1.18":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/contracts.git"},"version":"0.1.18","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"Main repository for Midas Capital's contracts and SDK for interacting with those.","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","scripts":{"test":"hardhat test","test:hardhat":"hardhat test --parallel","test:forge":"forge test","test:forge:bsc":"forge test --fork-url ${FORK_URL_BSC} --fork-block-number ${FORK_BLOCK_NUMBER}","test:bsc":"FORK_URL=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat test","export":"hardhat export --export-all ./deployments.json","build":"npm run build:forge && npm run typechain && npm run build:sdk ","build:forge":"forge build","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","clean":"hardhat clean && rm -rf lib","typechain":"typechain --target ethers-v5 --out-dir './typechain' 'out/*/**.json'","deploy:simulate:bsc:mainnet":"FORK_URL_BSC=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat node --tags simulate","deploy:bsc:mainnet":"hardhat --network bsc deploy --tags prod","prettier:sol":"prettier --write 'contracts/**/*.sol' 'contracts_forge/**/*.sol'","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'test/**/*.ts'","prettier":"npm run prettier:ts && npm run prettier:sol"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.3","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/hardhat":"^6.0.0","@types/chai":"^4.3.0","@types/mocha":"^9.1.0","@types/node":"^17.0.23","bufferutil":"^4.0.6","chai":"^4.3.6","dotenv":"^16.0.0","ethereum-waffle":"^3.4.4","ethers":"^5.6.2","hardhat":"^2.9.2","hardhat-abi-exporter":"^2.8.0","hardhat-deploy":"^0.11.4","hardhat-tracer":"^1.0.0-alpha.6","ts-node":"^10.7.0","typechain":"^8.0.0","typescript":"^4.6.3","utf-8-validate":"^5.0.9"},"dependencies":{"@keydonix/uniswap-oracle-sdk":"^1.0.7","@keydonix/uniswap-oracle-sdk-adapter":"^1.0.7","@typechain/ethers-v5":"^10.0.0","@types/bad-words":"^3.0.1","bad-words":"^3.0.4","lint-staged":"12.3.7","prettier":"2.6.1","prettier-plugin-solidity":"1.0.0-beta.19"},"types":"./dist/cjs/src/index.d.ts","readme":"# Contracts\n\nMain repository for Midas Capital's contracts and SDK for interacting with those.\n\n## Structure\n\n```text\n ┌── README.md                        <- The top-level README\n ├── .github/workflows/TestSuite.yaml <- CICD pipeline definition\n ├── .vscode                          <- IDE configs\n │\n ├── out                              <- (forge-generated, git ignored)\n │    ├── *.sol/*.json                <- All the built contracts\n │    └──  ...                        \n │\n ├── typechain                        <- (typechain-generated, git ignored)\n │\n ├── dist                             <- (typechain-generated, git ignored)\n │\n ├── lib                              <- git submodules with forge-based dependencies\n │    ├── flywheel-v2                 <- Tribe flywheel contracts\n │    ├── fuse-flywheel               <- Fuse flywheel contracts\n │    ├── oz-contracts-upgreadable    <- OpenZeppelin deps\n │    └──  ...                        <- other deps\n │\n ├── contracts                        <- All of our contracts\n │    ├── compound                    <- Compound interfaces\n │    ├── external                    <- External contracts we require\n │    ├── oracles                     <- Oracle contracts\n │    ├── utils                       <- Utility contracts\n │    └──  ...                        <- Main Fuse contracts\n │\n ├── deploy                           <- main hardhat deployment scripts\n ├── chainDeploy                      <- hardhat chain-specific deployment scripts \n ├── tasks                            <- hardhat scripts\n ├── src                              <- midas-sdk main folder\n ├── test                             <- chai-based tests (SDK integration tests)\n ├── deployments.json                 <- generated on \"npx hardhat export\"\n └── hardhat.config.ts                <- hardhat confing\n```\n\n## Dev Workflow\n\n0. Install dependencies: npm & [foundry](https://github.com/gakonst/foundry) (forge + cast)\n\nForge dependencies\n\n```text\n>>> curl -L https://foundry.paradigm.xyz | bash \n>>> foundryup\n# ensure forge and cast are available in your $PATH\n# install submodule libraries via forge \n>>> forge install \n```\n\nNPM dependencies\n\n```text\n>>> npm install\n```\n\n### Developing Against the SDK\n\nTo develop against the SDK, artifacts and deployment files must be generated first, as they are used by the SDK.\nThis is taken care by forge\n\n```shell\n>>> npm run build\n```\n\nWill generate all the required artifacts: `typechain` files, built contracts in `out` directory, and the newly built\nSDK in `dist`. Another file that is extremely important for the correct behavior of the SDK is the\n`deployments.json` file, which contains all the deployed contract addresses and ABIs for each of the \nchains we deploy to\n\nNow, make the desired changes to the SDK. To test them, run the \"integration\" tests:\n\n```shell\n>>> npx hardhat test:hardhat\n# with forking, see note below on forking\n>>> npx hardhat test:bsc \n```\n\n### Developing Against the contracts\n\nNow, you make some changes to the contracts. Once statisfied:\n\n```shell\n>>> npm run build:forge\n```\n\nAnd then test the changes with forge-based tests:\n\n```shell\n>>> npm run test:forge\n# tests with forking, see note below on forking\n>>> npm run test:forge:bsc\n```\n\nAt this point, you also want to run integration tests that leverage the SDK. For that, you need to \nregenerate the required artifacts:\n\n```shell\n# create freshly compiled artifacts\n>>> npm run build\n```\n\nRedeploy the contracts locally\n\n```shell\n# deploy new contracts to localhost, and export them to the deployments.json file\n>>> npx hardhat node --tags local\n# in another console\n>>> npm run export\n# rebuild the SDK with the newly created artifacts\n>>> npm run build\n```\n\nOnce this is done, you can run the integration tests:\n\n\n```shell\n# Integration tests against local node\n>>> npm run test:hardhat\n```\n\n```shell\n# Integration tests against bsc fork node\n>>> npm run test:bsc\n```\n\n**NOTE**: to run tests against a BSC forked node, set the correct env variables in `.env`:\n```\nFORK_URL_BSC=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/mainnet/archive\n# this is well before the deployment of our contracts, so you should start with a fresh set of contracts\nFORK_BLOCK_NUMBER=14621736\nFORK_CHAIN_ID=56\n```\n\n(if these env vars are set, the tests will always use them, so make sure to comment them out if you're intending\nto run tests against a non-forked node)\n\n## Running a node for FE development or integration testing\n\nWith the `.env` set up as above:\n\n```shell\n>>> npx hardhat node --tags fork\n```\nor alternatively, using the live currently deployed contracts (change the `FORK_BLOCK_NUMBER` to something recent)\n\n```shell\n# no deploy is needed because contracts at those addresses already exist\n>>> npx hardhat node --tags prod --no-deploy\n```\n\nor alternatively, just run a local node without forking. Comment out all the `FORK_*` variables from the `.env` file\nand:\n\n```shell\n>>> npx hardhat node --tags prod \n```\n\n## Deploying to prod (BSC mainnet)\n\n1. Set the correct mnemonic in the .env file\n\n2. Run\n\n```\nhardhat --network bsc deploy --tags prod\n```\n\n### Current & Desired Workflow\n\nDeployment flow of contracts:\n\n1. Make desired changes, and push to branch, creating a PR against `main` branch\n2. Ensure integration and forge tests pass for the local case (`npm run test:hardhat` and `npm run test:forge`)\n3. Once the local tests pass, redeploy the contracts to all target chains\n4. Export deployments files, and commit new deployment artifacts, and bump SDK version\n6. Merge to main, which triggers new SDK release\n\nThis is OK, but it does not enforce the testing against the pre and post deploy BSC forked node. Our ideal scenario instead\nlooks like the following:\n\n1. Make desired changes, and push to branch, creating a PR against `development` branch\n2. Ensure integration and forge tests pass for the local case & for the pre-deploy forked node case\n3. Once tests pass, redeploy the contracts to all target chains \n4. Export deployments files, and commit new deployment artifacts, and bump SDK version\n5. Merge into `development` branch\n6. Create PR from `development` into `main` \n7. Ensure tests against a **post-deploy** BSC fork works (both forge and hh-based tests). This will ensure that \nthe newly deployed contracts are both integration and unit tested.\n8. Update SDK, merge to `main`, which triggers new SDK release ","readmeFilename":"README.md","gitHead":"4553a02e6f8c03f0a7140d589572b914f5cda6e2","bugs":{"url":"https://github.com/midas-protocol/contracts/issues"},"homepage":"https://github.com/midas-protocol/contracts#readme","_id":"@midas-capital/sdk@0.1.18","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"integrity":"sha512-wDIwQhQI1YCpIeszRe1r3ckbEQBCf9cFhDagKH97fdZphOaQ8jx9n0ElpPmzPEzZk+xRsJR4ygAkGDJyOqaBcw==","shasum":"05e2e2907d67e05e421e6f16d454bf980628192d","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.1.18.tgz","fileCount":521,"unpackedSize":82949515,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB+Tih/J74hOzZAHmulWbRNyxd/XpzZyRsVOqdqrDk8wAiBLWBuY38pl/VvkKqFv00c8Lqqd0oBeaL9YOs3UiVXb2g=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiVuiMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpP1RAAmdO/DQ11v3wQO9J2OgivvDdXQxR7Rp+ixEB3qsAkrG2KyuSy\r\nHTqUAQCGpMrnTghRoxv9Og5Idq8Hn3CuzTddeYftTnqJtrBasRMvw1b5YB8U\r\nK/7PHEk1kF5QHqnWAl5Vz4EqUAqaWaer5lwDfzoiL7nHpv7k+ZzHTrt2Wo45\r\nNU2yAdBxW5a4qHfy7CKqj+218R84PbaTf+Wt01w95/9uMq4PWhoILowC8eNR\r\nyDhxgdrrT7VJW0m4m2uib30GVI+fysaQKqaaFzSU7wUXk4YyGcQCBjJPFTdX\r\nlEeuUE+2S5LG5n6qiZGXby3lOsZxjJ9gHSDBqZDWgQ2+ztPHUh2TaALlhpa8\r\nozz2n92RwThOFXDNCBcJaCPp28ZBIgqH+wn5jFA8L+ZeLB/tBeQ8jZPMHCB5\r\neZG9hh27fJpO4jy30TrDlY3p9EHe9E954BKgT5Az2g5lJ21Tii9EWfVZizmk\r\nlO//+LURJJW9w2m7P2N/B3/O6y5vJGwhJXRyKZgzDTH7UlEjkQjEeEqOEz+V\r\n6TklSPZzDUjkeXij9hIbbjvpDUVhfypr9NhFie50o0AoQAwWRTdqwMXV+MOu\r\nYtlQr6T4ElUu4L9c0/TukZ/cstllAGO1t/nSIMckGPSWuN8H4Ul3Qe1re6Fp\r\nn41j6zOK2cjOhpE1K/lf4Yvna/P8I10AoUw=\r\n=LkXH\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.1.18_1649862796006_0.8429496533060972"},"_hasShrinkwrap":false},"0.1.19":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/contracts.git"},"version":"0.1.19","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"Main repository for Midas Capital's contracts and SDK for interacting with those.","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","scripts":{"test":"hardhat test","test:hardhat":"hardhat test --parallel","test:forge":"forge test","test:forge:bsc":"forge test --fork-url ${FORK_URL_BSC} --fork-block-number ${FORK_BLOCK_NUMBER}","test:bsc":"FORK_URL=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat test","export":"hardhat export --export-all ./deployments.json","build":"npm run build:forge && npm run typechain && npm run build:sdk ","build:forge":"forge build","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","clean":"hardhat clean && rm -rf lib","typechain":"typechain --target ethers-v5 --out-dir './typechain' 'out/*/**.json'","deploy:simulate:bsc:mainnet":"FORK_URL_BSC=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat node --tags simulate","deploy:bsc:mainnet":"hardhat --network bsc deploy --tags prod","prettier:sol":"prettier --write 'contracts/**/*.sol' 'contracts_forge/**/*.sol'","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'test/**/*.ts'","prettier":"npm run prettier:ts && npm run prettier:sol"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.3","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/hardhat":"^6.0.0","@types/chai":"^4.3.0","@types/mocha":"^9.1.0","@types/node":"^17.0.23","bufferutil":"^4.0.6","chai":"^4.3.6","dotenv":"^16.0.0","ethereum-waffle":"^3.4.4","ethers":"^5.6.2","hardhat":"^2.9.2","hardhat-abi-exporter":"^2.8.0","hardhat-deploy":"^0.11.4","hardhat-tracer":"^1.0.0-alpha.6","ts-node":"^10.7.0","typechain":"^8.0.0","typescript":"^4.6.3","utf-8-validate":"^5.0.9"},"dependencies":{"@keydonix/uniswap-oracle-sdk":"^1.0.7","@keydonix/uniswap-oracle-sdk-adapter":"^1.0.7","@typechain/ethers-v5":"^10.0.0","@types/bad-words":"^3.0.1","bad-words":"^3.0.4","lint-staged":"12.3.7","prettier":"2.6.1","prettier-plugin-solidity":"1.0.0-beta.19"},"types":"./dist/cjs/src/index.d.ts","readme":"# Contracts\n\nMain repository for Midas Capital's contracts and SDK for interacting with those.\n\n## Structure\n\n```text\n ┌── README.md                        <- The top-level README\n ├── .github/workflows/TestSuite.yaml <- CICD pipeline definition\n ├── .vscode                          <- IDE configs\n │\n ├── out                              <- (forge-generated, git ignored)\n │    ├── *.sol/*.json                <- All the built contracts\n │    └──  ...                        \n │\n ├── typechain                        <- (typechain-generated, git ignored)\n │\n ├── dist                             <- (typechain-generated, git ignored)\n │\n ├── lib                              <- git submodules with forge-based dependencies\n │    ├── flywheel-v2                 <- Tribe flywheel contracts\n │    ├── fuse-flywheel               <- Fuse flywheel contracts\n │    ├── oz-contracts-upgreadable    <- OpenZeppelin deps\n │    └──  ...                        <- other deps\n │\n ├── contracts                        <- All of our contracts\n │    ├── compound                    <- Compound interfaces\n │    ├── external                    <- External contracts we require\n │    ├── oracles                     <- Oracle contracts\n │    ├── utils                       <- Utility contracts\n │    └──  ...                        <- Main Fuse contracts\n │\n ├── deploy                           <- main hardhat deployment scripts\n ├── chainDeploy                      <- hardhat chain-specific deployment scripts \n ├── tasks                            <- hardhat scripts\n ├── src                              <- midas-sdk main folder\n ├── test                             <- chai-based tests (SDK integration tests)\n ├── deployments.json                 <- generated on \"npx hardhat export\"\n └── hardhat.config.ts                <- hardhat confing\n```\n\n## Dev Workflow\n\n0. Install dependencies: npm & [foundry](https://github.com/gakonst/foundry) (forge + cast)\n\nForge dependencies\n\n```text\n>>> curl -L https://foundry.paradigm.xyz | bash \n>>> foundryup\n# ensure forge and cast are available in your $PATH\n# install submodule libraries via forge \n>>> forge install \n```\n\nNPM dependencies\n\n```text\n>>> npm install\n```\n\n### Developing Against the SDK\n\nTo develop against the SDK, artifacts and deployment files must be generated first, as they are used by the SDK.\nThis is taken care by forge\n\n```shell\n>>> npm run build\n```\n\nWill generate all the required artifacts: `typechain` files, built contracts in `out` directory, and the newly built\nSDK in `dist`. Another file that is extremely important for the correct behavior of the SDK is the\n`deployments.json` file, which contains all the deployed contract addresses and ABIs for each of the \nchains we deploy to\n\nNow, make the desired changes to the SDK. To test them, run the \"integration\" tests:\n\n```shell\n>>> npx hardhat test:hardhat\n# with forking, see note below on forking\n>>> npx hardhat test:bsc \n```\n\n### Developing Against the contracts\n\nNow, you make some changes to the contracts. Once statisfied:\n\n```shell\n>>> npm run build:forge\n```\n\nAnd then test the changes with forge-based tests:\n\n```shell\n>>> npm run test:forge\n# tests with forking, see note below on forking\n>>> npm run test:forge:bsc\n```\n\nAt this point, you also want to run integration tests that leverage the SDK. For that, you need to \nregenerate the required artifacts:\n\n```shell\n# create freshly compiled artifacts\n>>> npm run build\n```\n\nRedeploy the contracts locally\n\n```shell\n# deploy new contracts to localhost, and export them to the deployments.json file\n>>> npx hardhat node --tags local\n# in another console\n>>> npm run export\n# rebuild the SDK with the newly created artifacts\n>>> npm run build\n```\n\nOnce this is done, you can run the integration tests:\n\n\n```shell\n# Integration tests against local node\n>>> npm run test:hardhat\n```\n\n```shell\n# Integration tests against bsc fork node\n>>> npm run test:bsc\n```\n\n**NOTE**: to run tests against a BSC forked node, set the correct env variables in `.env`:\n```\nFORK_URL_BSC=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/mainnet/archive\n# this is well before the deployment of our contracts, so you should start with a fresh set of contracts\nFORK_BLOCK_NUMBER=14621736\nFORK_CHAIN_ID=56\n```\n\n(if these env vars are set, the tests will always use them, so make sure to comment them out if you're intending\nto run tests against a non-forked node)\n\n## Running a node for FE development or integration testing\n\nWith the `.env` set up as above:\n\n```shell\n>>> npx hardhat node --tags fork\n```\nor alternatively, using the live currently deployed contracts (change the `FORK_BLOCK_NUMBER` to something recent)\n\n```shell\n# no deploy is needed because contracts at those addresses already exist\n>>> npx hardhat node --tags prod --no-deploy\n```\n\nor alternatively, just run a local node without forking. Comment out all the `FORK_*` variables from the `.env` file\nand:\n\n```shell\n>>> npx hardhat node --tags prod \n```\n\n## Deploying to prod (BSC mainnet)\n\n1. Set the correct mnemonic in the .env file\n\n2. Run\n\n```\nhardhat --network bsc deploy --tags prod\n```\n\n### Current & Desired Workflow\n\nDeployment flow of contracts:\n\n1. Make desired changes, and push to branch, creating a PR against `main` branch\n2. Ensure integration and forge tests pass for the local case (`npm run test:hardhat` and `npm run test:forge`)\n3. Once the local tests pass, redeploy the contracts to all target chains\n4. Export deployments files, and commit new deployment artifacts, and bump SDK version\n6. Merge to main, which triggers new SDK release\n\nThis is OK, but it does not enforce the testing against the pre and post deploy BSC forked node. Our ideal scenario instead\nlooks like the following:\n\n1. Make desired changes, and push to branch, creating a PR against `development` branch\n2. Ensure integration and forge tests pass for the local case & for the pre-deploy forked node case\n3. Once tests pass, redeploy the contracts to all target chains \n4. Export deployments files, and commit new deployment artifacts, and bump SDK version\n5. Merge into `development` branch\n6. Create PR from `development` into `main` \n7. Ensure tests against a **post-deploy** BSC fork works (both forge and hh-based tests). This will ensure that \nthe newly deployed contracts are both integration and unit tested.\n8. Update SDK, merge to `main`, which triggers new SDK release ","readmeFilename":"README.md","gitHead":"97142656a7d63f8c2cca234905135c461e664e4f","bugs":{"url":"https://github.com/midas-protocol/contracts/issues"},"homepage":"https://github.com/midas-protocol/contracts#readme","_id":"@midas-capital/sdk@0.1.19","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"integrity":"sha512-FA4N0ya7fsVagtL3RTxkNvJxbWYVjE40MstP6krg4z6k02eMIPiG6PnljTVrLbjPU/cdhk3cw4cO3YLVNnaUrg==","shasum":"cf1b679e0fe4a2f04c89a776abb8a5d689162527","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.1.19.tgz","fileCount":233,"unpackedSize":26606514,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDJQdBHZIsW3xOdBslIbI/kJAwVUg3jdqctHK83v4gLLQIhAJvscVI9F3Fk0RhYwbYLNX9P8qu5uInDl4j9K2xgY/Kp"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiVvQIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpPeA/9FrEwsvTGE4V7R5JThU2AKH2Gbv4rpwHX5MA46FvjDxYhcq+z\r\nzwlPxcZcet74ODzJm1Xe5Sgwwk6JDkG+13w3vsJ+vvcZIUW1gyi5IKuIooGu\r\nQexQpHklwyded1j+CeHiG3MWzvcMiRBHhyy++zifh5FXV0Sn2AeiJ3WFOPBU\r\nSU5n+e8RqrR1lWlqdCxMsKlfJXay2ZZ0cRLKtHElFf9C78yzmcfvwp6oW2Rl\r\nJ8CfksLTpziK7ucIP0uSI4p2n7em41WznlNJIhHlcczmnXiACWPmUBEX/wRu\r\nctzxHoI1P8n8degl5asYF7j2nv5o1LVdRUkuc2ffUcjy1boBtFL7eMExu7OR\r\n0MkWCGXNT3944enSru96VXW5jmsoKLk/ZEm7T6n6jBlV+TBBOO/Q1w2AbhC3\r\nEqSUds3l/ZE/ql3Yes2aL5+XHCB1kfHboIBnj+gkx1jzaZmP+wMSIEMtp+mP\r\nBB7wxEnqQ9qxxM9eHaVShjcHRI22qYseFVgJMkTjhagSi6Uz4Qv1AQuZHe2k\r\nCmp780gL4O9O4TZ5+80pb/YWT1BEHu8EGU+O/Bjosvv2fwggrJYFvMRab4p6\r\nPZFWFn7zZZkrC7ie8ZH+T+dUumcjbfi2pENFGTTvm0BuvByvwMnCPzcQGZtW\r\ngPhPpiYGso15OtOQzTool5kq+iJEzr5kAK8=\r\n=DRSk\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.1.19_1649865735822_0.9601008106379301"},"_hasShrinkwrap":false},"0.1.20":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/contracts.git"},"version":"0.1.20","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"Main repository for Midas Capital's contracts and SDK for interacting with those.","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","scripts":{"test":"hardhat test","test:hardhat":"hardhat test --parallel","test:forge":"forge test","test:forge:bsc":"forge test --fork-url ${FORK_URL_BSC} --fork-block-number ${FORK_BLOCK_NUMBER}","test:bsc":"FORK_URL=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat test","export":"hardhat export --export-all ./deployments.json","build":"npm run build:forge && npm run typechain && npm run build:sdk ","build:forge":"forge build","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","clean":"hardhat clean && rm -rf lib","typechain":"typechain --target ethers-v5 --out-dir './typechain' 'out/*/**.json'","deploy:simulate:bsc:mainnet":"FORK_URL_BSC=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat node --tags simulate","deploy:bsc:mainnet":"hardhat --network bsc deploy --tags prod","prettier:sol":"prettier --write 'contracts/**/*.sol' 'contracts_forge/**/*.sol'","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'test/**/*.ts'","prettier":"npm run prettier:ts && npm run prettier:sol"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.3","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/hardhat":"^6.0.0","@types/chai":"^4.3.0","@types/mocha":"^9.1.0","@types/node":"^17.0.23","bufferutil":"^4.0.6","chai":"^4.3.6","dotenv":"^16.0.0","ethereum-waffle":"^3.4.4","ethers":"^5.6.2","hardhat":"^2.9.2","hardhat-abi-exporter":"^2.8.0","hardhat-deploy":"^0.11.4","hardhat-tracer":"^1.0.0-alpha.6","ts-node":"^10.7.0","typechain":"^8.0.0","typescript":"^4.6.3","utf-8-validate":"^5.0.9"},"dependencies":{"@keydonix/uniswap-oracle-sdk":"^1.0.7","@keydonix/uniswap-oracle-sdk-adapter":"^1.0.7","@typechain/ethers-v5":"^10.0.0","@types/bad-words":"^3.0.1","bad-words":"^3.0.4","lint-staged":"12.3.7","prettier":"2.6.1","prettier-plugin-solidity":"1.0.0-beta.19"},"types":"./dist/cjs/src/index.d.ts","readme":"# Contracts\n\nMain repository for Midas Capital's contracts and SDK for interacting with those.\n\n## Structure\n\n```text\n ┌── README.md                        <- The top-level README\n ├── .github/workflows/TestSuite.yaml <- CICD pipeline definition\n ├── .vscode                          <- IDE configs\n │\n ├── out                              <- (forge-generated, git ignored)\n │    ├── *.sol/*.json                <- All the built contracts\n │    └──  ...                        \n │\n ├── typechain                        <- (typechain-generated, git ignored)\n │\n ├── dist                             <- (typechain-generated, git ignored)\n │\n ├── lib                              <- git submodules with forge-based dependencies\n │    ├── flywheel-v2                 <- Tribe flywheel contracts\n │    ├── fuse-flywheel               <- Fuse flywheel contracts\n │    ├── oz-contracts-upgreadable    <- OpenZeppelin deps\n │    └──  ...                        <- other deps\n │\n ├── contracts                        <- All of our contracts\n │    ├── compound                    <- Compound interfaces\n │    ├── external                    <- External contracts we require\n │    ├── oracles                     <- Oracle contracts\n │    ├── utils                       <- Utility contracts\n │    └──  ...                        <- Main Fuse contracts\n │\n ├── deploy                           <- main hardhat deployment scripts\n ├── chainDeploy                      <- hardhat chain-specific deployment scripts \n ├── tasks                            <- hardhat scripts\n ├── src                              <- midas-sdk main folder\n ├── test                             <- chai-based tests (SDK integration tests)\n ├── deployments.json                 <- generated on \"npx hardhat export\"\n └── hardhat.config.ts                <- hardhat confing\n```\n\n## Dev Workflow\n\n0. Install dependencies: npm & [foundry](https://github.com/gakonst/foundry) (forge + cast)\n\nForge dependencies\n\n```text\n>>> curl -L https://foundry.paradigm.xyz | bash \n>>> foundryup\n# ensure forge and cast are available in your $PATH\n# install submodule libraries via forge \n>>> forge install \n```\n\nNPM dependencies\n\n```text\n>>> npm install\n```\n\n### Developing Against the SDK\n\nTo develop against the SDK, artifacts and deployment files must be generated first, as they are used by the SDK.\nThis is taken care by forge\n\n```shell\n>>> npm run build\n```\n\nWill generate all the required artifacts: `typechain` files, built contracts in `out` directory, and the newly built\nSDK in `dist`. Another file that is extremely important for the correct behavior of the SDK is the\n`deployments.json` file, which contains all the deployed contract addresses and ABIs for each of the \nchains we deploy to\n\nNow, make the desired changes to the SDK. To test them, run the \"integration\" tests:\n\n```shell\n>>> npx hardhat test:hardhat\n# with forking, see note below on forking\n>>> npx hardhat test:bsc \n```\n\n### Developing Against the contracts\n\nNow, you make some changes to the contracts. Once statisfied:\n\n```shell\n>>> npm run build:forge\n```\n\nAnd then test the changes with forge-based tests:\n\n```shell\n>>> npm run test:forge\n# tests with forking, see note below on forking\n>>> npm run test:forge:bsc\n```\n\nAt this point, you also want to run integration tests that leverage the SDK. For that, you need to \nregenerate the required artifacts:\n\n```shell\n# create freshly compiled artifacts\n>>> npm run build\n```\n\nRedeploy the contracts locally\n\n```shell\n# deploy new contracts to localhost, and export them to the deployments.json file\n>>> npx hardhat node --tags local\n# in another console\n>>> npm run export\n# rebuild the SDK with the newly created artifacts\n>>> npm run build\n```\n\nOnce this is done, you can run the integration tests:\n\n\n```shell\n# Integration tests against local node\n>>> npm run test:hardhat\n```\n\n```shell\n# Integration tests against bsc fork node\n>>> npm run test:bsc\n```\n\n**NOTE**: to run tests against a BSC forked node, set the correct env variables in `.env`:\n```\nFORK_URL_BSC=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/mainnet/archive\n# this is well before the deployment of our contracts, so you should start with a fresh set of contracts\nFORK_BLOCK_NUMBER=14621736\nFORK_CHAIN_ID=56\n```\n\n(if these env vars are set, the tests will always use them, so make sure to comment them out if you're intending\nto run tests against a non-forked node)\n\n## Running a node for FE development or integration testing\n\nWith the `.env` set up as above:\n\n```shell\n>>> npx hardhat node --tags fork\n```\nor alternatively, using the live currently deployed contracts (change the `FORK_BLOCK_NUMBER` to something recent)\n\n```shell\n# no deploy is needed because contracts at those addresses already exist\n>>> npx hardhat node --tags prod --no-deploy\n```\n\nor alternatively, just run a local node without forking. Comment out all the `FORK_*` variables from the `.env` file\nand:\n\n```shell\n>>> npx hardhat node --tags prod \n```\n\n## Deploying to prod (BSC mainnet)\n\n1. Set the correct mnemonic in the .env file\n\n2. Run\n\n```\nhardhat --network bsc deploy --tags prod\n```\n\n### Current & Desired Workflow\n\nDeployment flow of contracts:\n\n1. Make desired changes, and push to branch, creating a PR against `main` branch\n2. Ensure integration and forge tests pass for the local case (`npm run test:hardhat` and `npm run test:forge`)\n3. Once the local tests pass, redeploy the contracts to all target chains\n4. Export deployments files, and commit new deployment artifacts, and bump SDK version\n6. Merge to main, which triggers new SDK release\n\nThis is OK, but it does not enforce the testing against the pre and post deploy BSC forked node. Our ideal scenario instead\nlooks like the following:\n\n1. Make desired changes, and push to branch, creating a PR against `development` branch\n2. Ensure integration and forge tests pass for the local case & for the pre-deploy forked node case\n3. Once tests pass, redeploy the contracts to all target chains \n4. Export deployments files, and commit new deployment artifacts, and bump SDK version\n5. Merge into `development` branch\n6. Create PR from `development` into `main` \n7. Ensure tests against a **post-deploy** BSC fork works (both forge and hh-based tests). This will ensure that \nthe newly deployed contracts are both integration and unit tested.\n8. Update SDK, merge to `main`, which triggers new SDK release ","readmeFilename":"README.md","gitHead":"4176237d0d440c2357f2d414d83b710e60441b6d","bugs":{"url":"https://github.com/midas-protocol/contracts/issues"},"homepage":"https://github.com/midas-protocol/contracts#readme","_id":"@midas-capital/sdk@0.1.20","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"integrity":"sha512-c3fN80d64cvfFuTyGyZvdtm2WoYkJmlJpg0RAqx0MpebDG3znWxnycgU7iUm9phqHryWpxk2F94zuaO4Y9vjLA==","shasum":"cbea67a4edcb735aa6e842da7882fb7df8e26672","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.1.20.tgz","fileCount":233,"unpackedSize":28468283,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDNlamFAeAf6+0Nnn8R2Af+k8ODBvMsz7E5/uRLj/APCAiEA0u4swjjBnjFRIphPAOq/UTqlsi8lkjSWFsj1TKDR+IU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiWRwnACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq46w//eCnG1Xe5szCEtTTmaPMBq3ORAJDEMTeE0cLJtcgFXLBCPmyN\r\n7F3/mDAPQB0sVtXjT+MtcUrp1ijQqBBKAWITkoyLCBz+z7BaZem8p9ZH2HTM\r\nqieFTMH0Rg8XSUPdrzJVuuLLlgA+jDE+xX/unUVdUg+yHpA4YzKfgaUtOEZ9\r\nbNI61BlFRnalF2SyLWQrPrqgo6oKrVR68SEKLpnnzMEwxyGB5pV7hVB0N8k9\r\nhgzy3yOt/YQOkxijIfj+2/BmqKWvSiUV0l2a/5rmEW5sjHv3oopPd0Ezztds\r\nYTQetxoy4INrOMxSik9VCOE1wmzNV3a864mbSlIWfpYV8Ka1bTW4DCbDzQ1a\r\nOH+JzmN7qfibGn51gV51mW7zxqZbZQlgPgIS5NSNkGi/aDwgo2TaWxhvCrHE\r\n0CIoivoF3urb6zXiYhFZKGkIzImr1uxmzc3RyHGY2gH4SfUG8iw5wSpaS2OV\r\nTu0RhFAciCC+OQ4RWlRdmMkWv5y2Ikc74M1spjgY1IqpP94jv233I8uSVA2N\r\nSnf4ba3PTHm0nWtznPiFbPcDVVUKhmDZWxUsP41wFx4fxDlIKVrHSgowKP20\r\n04NEbXV9JDtWK6HmhDlJRGWu48tKP/L8cxq5cw1JHSLvgFuxhULX+gdsFq2X\r\nIZfx+dLinGKSqoa/pziH6wNvkuQ9lD+FL4Q=\r\n=88tV\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.1.20_1650007078976_0.3586531896035581"},"_hasShrinkwrap":false},"0.1.21":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/contracts.git"},"version":"0.1.21","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"Main repository for Midas Capital's contracts and SDK for interacting with those.","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","scripts":{"test":"hardhat test","test:hardhat":"hardhat test --parallel","test:forge":"forge test","test:forge:bsc":"forge test --fork-url ${FORK_URL_BSC} --fork-block-number ${FORK_BLOCK_NUMBER}","test:bsc":"FORK_URL=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat test","export":"hardhat export --export-all ./deployments.json","build":"npm run build:forge && npm run typechain && npm run build:sdk ","build:forge":"forge build","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","clean":"hardhat clean && rm -rf lib","typechain":"typechain --target ethers-v5 --out-dir './typechain' 'out/*/**.json'","deploy:simulate:bsc:mainnet":"FORK_URL_BSC=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat node --tags simulate","deploy:bsc:mainnet":"hardhat --network bsc deploy --tags prod","prettier:sol":"prettier --write 'contracts/**/*.sol' 'contracts_forge/**/*.sol'","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'test/**/*.ts'","prettier":"npm run prettier:ts && npm run prettier:sol"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.3","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/hardhat":"^6.0.0","@types/chai":"^4.3.0","@types/mocha":"^9.1.0","@types/node":"^17.0.23","bufferutil":"^4.0.6","chai":"^4.3.6","dotenv":"^16.0.0","ethereum-waffle":"^3.4.4","ethers":"^5.6.2","hardhat":"^2.9.2","hardhat-abi-exporter":"^2.8.0","hardhat-deploy":"^0.11.4","hardhat-tracer":"^1.0.0-alpha.6","ts-node":"^10.7.0","typechain":"^8.0.0","typescript":"^4.6.3","utf-8-validate":"^5.0.9"},"dependencies":{"@keydonix/uniswap-oracle-sdk":"^1.0.7","@keydonix/uniswap-oracle-sdk-adapter":"^1.0.7","@typechain/ethers-v5":"^10.0.0","@types/bad-words":"^3.0.1","bad-words":"^3.0.4","lint-staged":"12.3.7","prettier":"2.6.1","prettier-plugin-solidity":"1.0.0-beta.19"},"types":"./dist/cjs/src/index.d.ts","readme":"# Contracts\n\nMain repository for Midas Capital's contracts and SDK for interacting with those.\n\n## Structure\n\n```text\n ┌── README.md                        <- The top-level README\n ├── .github/workflows/TestSuite.yaml <- CICD pipeline definition\n ├── .vscode                          <- IDE configs\n │\n ├── out                              <- (forge-generated, git ignored)\n │    ├── *.sol/*.json                <- All the built contracts\n │    └──  ...                        \n │\n ├── typechain                        <- (typechain-generated, git ignored)\n │\n ├── dist                             <- (typechain-generated, git ignored)\n │\n ├── lib                              <- git submodules with forge-based dependencies\n │    ├── flywheel-v2                 <- Tribe flywheel contracts\n │    ├── fuse-flywheel               <- Fuse flywheel contracts\n │    ├── oz-contracts-upgreadable    <- OpenZeppelin deps\n │    └──  ...                        <- other deps\n │\n ├── contracts                        <- All of our contracts\n │    ├── compound                    <- Compound interfaces\n │    ├── external                    <- External contracts we require\n │    ├── oracles                     <- Oracle contracts\n │    ├── utils                       <- Utility contracts\n │    └──  ...                        <- Main Fuse contracts\n │\n ├── deploy                           <- main hardhat deployment scripts\n ├── chainDeploy                      <- hardhat chain-specific deployment scripts \n ├── tasks                            <- hardhat scripts\n ├── src                              <- midas-sdk main folder\n ├── test                             <- chai-based tests (SDK integration tests)\n ├── deployments.json                 <- generated on \"npx hardhat export\"\n └── hardhat.config.ts                <- hardhat confing\n```\n\n## Dev Workflow\n\n0. Install dependencies: npm & [foundry](https://github.com/gakonst/foundry) (forge + cast)\n\nForge dependencies\n\n```text\n>>> curl -L https://foundry.paradigm.xyz | bash \n>>> foundryup\n# ensure forge and cast are available in your $PATH\n# install submodule libraries via forge \n>>> forge install \n```\n\nNPM dependencies\n\n```text\n>>> npm install\n```\n\n### Developing Against the SDK\n\nTo develop against the SDK, artifacts and deployment files must be generated first, as they are used by the SDK.\nThis is taken care by forge\n\n```shell\n>>> npm run build\n```\n\nWill generate all the required artifacts: `typechain` files, built contracts in `out` directory, and the newly built\nSDK in `dist`. Another file that is extremely important for the correct behavior of the SDK is the\n`deployments.json` file, which contains all the deployed contract addresses and ABIs for each of the \nchains we deploy to\n\nNow, make the desired changes to the SDK. To test them, run the \"integration\" tests:\n\n```shell\n>>> npx hardhat test:hardhat\n# with forking, see note below on forking\n>>> npx hardhat test:bsc \n```\n\n### Developing Against the contracts\n\nNow, you make some changes to the contracts. Once statisfied:\n\n```shell\n>>> npm run build:forge\n```\n\nAnd then test the changes with forge-based tests:\n\n```shell\n>>> npm run test:forge\n# tests with forking, see note below on forking\n>>> npm run test:forge:bsc\n```\n\nAt this point, you also want to run integration tests that leverage the SDK. For that, you need to \nregenerate the required artifacts:\n\n```shell\n# create freshly compiled artifacts\n>>> npm run build\n```\n\nRedeploy the contracts locally\n\n```shell\n# deploy new contracts to localhost, and export them to the deployments.json file\n>>> npx hardhat node --tags local\n# in another console\n>>> npm run export\n# rebuild the SDK with the newly created artifacts\n>>> npm run build\n```\n\nOnce this is done, you can run the integration tests:\n\n\n```shell\n# Integration tests against local node\n>>> npm run test:hardhat\n```\n\n```shell\n# Integration tests against bsc fork node\n>>> npm run test:bsc\n```\n\n**NOTE**: to run tests against a BSC forked node, set the correct env variables in `.env`:\n```\nFORK_URL_BSC=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/mainnet/archive\n# this is well before the deployment of our contracts, so you should start with a fresh set of contracts\nFORK_BLOCK_NUMBER=14621736\nFORK_CHAIN_ID=56\n```\n\n(if these env vars are set, the tests will always use them, so make sure to comment them out if you're intending\nto run tests against a non-forked node)\n\n## Running a node for FE development or integration testing\n\nWith the `.env` set up as above:\n\n```shell\n>>> npx hardhat node --tags fork\n```\nor alternatively, using the live currently deployed contracts (change the `FORK_BLOCK_NUMBER` to something recent)\n\n```shell\n# no deploy is needed because contracts at those addresses already exist\n>>> npx hardhat node --tags prod --no-deploy\n```\n\nor alternatively, just run a local node without forking. Comment out all the `FORK_*` variables from the `.env` file\nand:\n\n```shell\n>>> npx hardhat node --tags prod \n```\n\n## Deploying to prod (BSC mainnet)\n\n1. Set the correct mnemonic in the .env file\n\n2. Run\n\n```\nhardhat --network bsc deploy --tags prod\n```\n\n### Current & Desired Workflow\n\nDeployment flow of contracts:\n\n1. Make desired changes, and push to branch, creating a PR against `main` branch\n2. Ensure integration and forge tests pass for the local case (`npm run test:hardhat` and `npm run test:forge`)\n3. Once the local tests pass, redeploy the contracts to all target chains\n4. Export deployments files, and commit new deployment artifacts, and bump SDK version\n6. Merge to main, which triggers new SDK release\n\nThis is OK, but it does not enforce the testing against the pre and post deploy BSC forked node. Our ideal scenario instead\nlooks like the following:\n\n1. Make desired changes, and push to branch, creating a PR against `development` branch\n2. Ensure integration and forge tests pass for the local case & for the pre-deploy forked node case\n3. Once tests pass, redeploy the contracts to all target chains \n4. Export deployments files, and commit new deployment artifacts, and bump SDK version\n5. Merge into `development` branch\n6. Create PR from `development` into `main` \n7. Ensure tests against a **post-deploy** BSC fork works (both forge and hh-based tests). This will ensure that \nthe newly deployed contracts are both integration and unit tested.\n8. Update SDK, merge to `main`, which triggers new SDK release ","readmeFilename":"README.md","gitHead":"7654dd44711a953ad3151973824950505e8137fb","bugs":{"url":"https://github.com/midas-protocol/contracts/issues"},"homepage":"https://github.com/midas-protocol/contracts#readme","_id":"@midas-capital/sdk@0.1.21","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"integrity":"sha512-SlXGSfCM1se88ysC2X+qZxAqftaJnx686u12xHkWC0dVrb33lzGR63ruYem8Cf6EHpRwsahICscNDu01sT+jzg==","shasum":"c8a969c9e97b95a2f37dbb5b8fde4bcddae277bb","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.1.21.tgz","fileCount":235,"unpackedSize":28868889,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDFoF2Tnw/WXIXEcGbcmxDwQhiIsekk6RwyzYSbudU9nAIgctT4d6PS0ln1bJT5hxfrqjS3rEr0yeF7yWdktzRF1Zo="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiXSvwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp7Iw/5AdO1Gixknw+0M3gNVQHZJeR51O6AigG/XhN2Y6B3KdoWpaa1\r\nc/RFOGrmjVjI4QfeAIMdbByhaaoKi8qq6+RnbWNUYES6APcBofFhMYaUsFdE\r\np6kqSF+7WB0dZo4XqDYsbFZKsc2l2ennfYBHeBif4fzezOwxiWhQ4pI/UF6D\r\nWL0XPMF5FaTkMQwzpy+iK5ISGVvJVvjEJCYoBhxiZAsfxwYqH7mr5MCdcg6O\r\nh9jWGJK1XuicawADqrjIgPlBqiQbgRRTcIqNMPw3BC32cOT13htHsZs6lSzr\r\nSM6VgmoXO5A2f6aKDgftm19OBI4Y4ugXo3hPbD8krVzn7nE6OYHsQi8AGLxp\r\ndB3B1zEQLBMm5+zVZ2EPsltrF5MT50LvpI5P3ufthcToI/FsGvAoaudJgADV\r\nbI4Dfo7PpWOfZURIIl5RtnY4MGhxUErFqc1I9yUxdk3b35IOnmNsNEGS9gt0\r\nJ4LY8PQZVQbyxeNBF2g++otcH46GIC0TZVyWFdR9da0v8CnCIRcreKtUW+DZ\r\n9FeZXUJRjtbDvP6MJ8KwKeypo5QrNewxflEX/HmLMHwtOjcOFpj5yj8KuEAS\r\n5/4Fxjo26IIT29PcHzeZ2jLzAHf7zQynEqxSErrpgSJX6dhjD4FivmuH7J45\r\nfw375Q3TYX2sEhcm5tt6C2ZaYGx2FI3kDqI=\r\n=FBLy\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.1.21_1650273263928_0.020427207605549835"},"_hasShrinkwrap":false},"0.1.22":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/contracts.git"},"version":"0.1.22","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"Main repository for Midas Capital's contracts and SDK for interacting with those.","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","scripts":{"test":"hardhat test","test:hardhat":"hardhat test --parallel","test:forge":"forge test","test:forge:bsc":"forge test --fork-url ${FORK_URL_BSC} --fork-block-number ${FORK_BLOCK_NUMBER}","test:bsc":"FORK_URL=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat test","export":"hardhat export --export-all ./deployments.json","build":"npm run build:forge && npm run typechain && npm run build:sdk ","build:forge":"forge build","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","clean":"hardhat clean && rm -rf lib","typechain":"typechain --target ethers-v5 --out-dir './typechain' 'out/*/**.json'","deploy:simulate:bsc:mainnet":"FORK_URL_BSC=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat node --tags simulate","deploy:bsc:mainnet":"hardhat --network bsc deploy --tags prod","prettier:sol":"prettier --write 'contracts/**/*.sol' 'contracts_forge/**/*.sol'","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'test/**/*.ts'","prettier":"npm run prettier:ts && npm run prettier:sol"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.3","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/hardhat":"^6.0.0","@types/chai":"^4.3.0","@types/mocha":"^9.1.0","@types/node":"^17.0.23","bufferutil":"^4.0.6","chai":"^4.3.6","dotenv":"^16.0.0","ethereum-waffle":"^3.4.4","ethers":"^5.6.2","hardhat":"^2.9.2","hardhat-abi-exporter":"^2.8.0","hardhat-deploy":"^0.11.4","hardhat-tracer":"^1.0.0-alpha.6","ts-node":"^10.7.0","typechain":"^8.0.0","typescript":"^4.6.3","utf-8-validate":"^5.0.9"},"dependencies":{"@keydonix/uniswap-oracle-sdk":"^1.0.7","@keydonix/uniswap-oracle-sdk-adapter":"^1.0.7","@typechain/ethers-v5":"^10.0.0","@types/bad-words":"^3.0.1","bad-words":"^3.0.4","lint-staged":"12.3.7","prettier":"2.6.1","prettier-plugin-solidity":"1.0.0-beta.19"},"types":"./dist/cjs/src/index.d.ts","readme":"# Contracts\n\nMain repository for Midas Capital's contracts and SDK for interacting with those.\n\n## Structure\n\n```text\n ┌── README.md                        <- The top-level README\n ├── .github/workflows/TestSuite.yaml <- CICD pipeline definition\n ├── .vscode                          <- IDE configs\n │\n ├── out                              <- (forge-generated, git ignored)\n │    ├── *.sol/*.json                <- All the built contracts\n │    └──  ...                        \n │\n ├── typechain                        <- (typechain-generated, git ignored)\n │\n ├── dist                             <- (typechain-generated, git ignored)\n │\n ├── lib                              <- git submodules with forge-based dependencies\n │    ├── flywheel-v2                 <- Tribe flywheel contracts\n │    ├── fuse-flywheel               <- Fuse flywheel contracts\n │    ├── oz-contracts-upgreadable    <- OpenZeppelin deps\n │    └──  ...                        <- other deps\n │\n ├── contracts                        <- All of our contracts\n │    ├── compound                    <- Compound interfaces\n │    ├── external                    <- External contracts we require\n │    ├── oracles                     <- Oracle contracts\n │    ├── utils                       <- Utility contracts\n │    └──  ...                        <- Main Fuse contracts\n │\n ├── deploy                           <- main hardhat deployment scripts\n ├── chainDeploy                      <- hardhat chain-specific deployment scripts \n ├── tasks                            <- hardhat scripts\n ├── src                              <- midas-sdk main folder\n ├── test                             <- chai-based tests (SDK integration tests)\n ├── deployments.json                 <- generated on \"npx hardhat export\"\n └── hardhat.config.ts                <- hardhat confing\n```\n\n## Dev Workflow\n\n0. Install dependencies: npm & [foundry](https://github.com/gakonst/foundry) (forge + cast)\n\nForge dependencies\n\n```text\n>>> curl -L https://foundry.paradigm.xyz | bash \n>>> foundryup\n# ensure forge and cast are available in your $PATH\n# install submodule libraries via forge \n>>> forge install \n```\n\nNPM dependencies\n\n```text\n>>> npm install\n```\n\n### Developing Against the SDK\n\nTo develop against the SDK, artifacts and deployment files must be generated first, as they are used by the SDK.\nThis is taken care by forge\n\n```shell\n>>> npm run build\n```\n\nWill generate all the required artifacts: `typechain` files, built contracts in `out` directory, and the newly built\nSDK in `dist`. Another file that is extremely important for the correct behavior of the SDK is the\n`deployments.json` file, which contains all the deployed contract addresses and ABIs for each of the \nchains we deploy to\n\nNow, make the desired changes to the SDK. To test them, run the \"integration\" tests:\n\n```shell\n>>> npx hardhat test:hardhat\n# with forking, see note below on forking\n>>> npx hardhat test:bsc \n```\n\n### Developing Against the contracts\n\nNow, you make some changes to the contracts. Once statisfied:\n\n```shell\n>>> npm run build:forge\n```\n\nAnd then test the changes with forge-based tests:\n\n```shell\n>>> npm run test:forge\n# tests with forking, see note below on forking\n>>> npm run test:forge:bsc\n```\n\nAt this point, you also want to run integration tests that leverage the SDK. For that, you need to \nregenerate the required artifacts:\n\n```shell\n# create freshly compiled artifacts\n>>> npm run build\n```\n\nRedeploy the contracts locally\n\n```shell\n# deploy new contracts to localhost, and export them to the deployments.json file\n>>> npx hardhat node --tags local\n# in another console\n>>> npm run export\n# rebuild the SDK with the newly created artifacts\n>>> npm run build\n```\n\nOnce this is done, you can run the integration tests:\n\n\n```shell\n# Integration tests against local node\n>>> npm run test:hardhat\n```\n\n```shell\n# Integration tests against bsc fork node\n>>> npm run test:bsc\n```\n\n**NOTE**: to run tests against a BSC forked node, set the correct env variables in `.env`:\n```\nFORK_URL_BSC=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/mainnet/archive\n# this is well before the deployment of our contracts, so you should start with a fresh set of contracts\nFORK_BLOCK_NUMBER=14621736\nFORK_CHAIN_ID=56\n```\n\n(if these env vars are set, the tests will always use them, so make sure to comment them out if you're intending\nto run tests against a non-forked node)\n\n## Running a node for FE development or integration testing\n\nWith the `.env` set up as above:\n\n```shell\n>>> npx hardhat node --tags fork\n```\nor alternatively, using the live currently deployed contracts (change the `FORK_BLOCK_NUMBER` to something recent)\n\n```shell\n# no deploy is needed because contracts at those addresses already exist\n>>> npx hardhat node --tags prod --no-deploy\n```\n\nor alternatively, just run a local node without forking. Comment out all the `FORK_*` variables from the `.env` file\nand:\n\n```shell\n>>> npx hardhat node --tags prod \n```\n\n## Deploying to prod (BSC mainnet)\n\n1. Set the correct mnemonic in the .env file\n\n2. Run\n\n```\nhardhat --network bsc deploy --tags prod\n```\n\n### Current & Desired Workflow\n\nDeployment flow of contracts:\n\n1. Make desired changes, and push to branch, creating a PR against `main` branch\n2. Ensure integration and forge tests pass for the local case (`npm run test:hardhat` and `npm run test:forge`)\n3. Once the local tests pass, redeploy the contracts to all target chains\n4. Export deployments files, and commit new deployment artifacts, and bump SDK version\n6. Merge to main, which triggers new SDK release\n\nThis is OK, but it does not enforce the testing against the pre and post deploy BSC forked node. Our ideal scenario instead\nlooks like the following:\n\n1. Make desired changes, and push to branch, creating a PR against `development` branch\n2. Ensure integration and forge tests pass for the local case & for the pre-deploy forked node case\n3. Once tests pass, redeploy the contracts to all target chains \n4. Export deployments files, and commit new deployment artifacts, and bump SDK version\n5. Merge into `development` branch\n6. Create PR from `development` into `main` \n7. Ensure tests against a **post-deploy** BSC fork works (both forge and hh-based tests). This will ensure that \nthe newly deployed contracts are both integration and unit tested.\n8. Update SDK, merge to `main`, which triggers new SDK release ","readmeFilename":"README.md","gitHead":"ec4bfa9e2107aabaa2a0a154a14d035e5b7215ba","bugs":{"url":"https://github.com/midas-protocol/contracts/issues"},"homepage":"https://github.com/midas-protocol/contracts#readme","_id":"@midas-capital/sdk@0.1.22","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"integrity":"sha512-ufOZlyjNz/0uWDwelIY4Qa4xFuVaDVazNa1EtubLay+zElI537mHqUp8LINueGhEEGj9IiVywMxiu9bUHPtIeQ==","shasum":"b9d97ae1e9e89151e1c9df73994c1b85da36f9f2","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.1.22.tgz","fileCount":239,"unpackedSize":28914543,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC7dxMTJipxgJpTJafFsFChOFH3ycTO9AaJkpJNicTqbwIhAMwll53Rm4XLHZDCPnSvlQgQKUfoCgGIbSS4H7sNWrHe"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiXWQcACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpkWw//fZWlo1tjdxNI6Xu3w/MpG82+g/IqzKrF0HXjqqtU5f05jvOz\r\nEFodMaQtC8FMosd8H0gRA5DQXq0vC3pw1khzQvwwB1wHPyjQgaW3QqrIOM39\r\n0GMTQEXw4/euyYB3JssWVC1AfyEcSZ+ahufMfurSLMI5nl7aDwFJ/legZ7s6\r\nExrxPGpT/30w6lu2+7lK7lKQ4J5t0LbM9ku4mF2YmJLWc9RlLQDEkL0R01GJ\r\nq4FkCvqQ/YhK4JGiuCjYDrsgaoApzLbexUi+CNBq2zvRHxFyTV5slGxRClfs\r\nGHy83BMv1C5roT9V6dsCrizn0wtQiKj7BG0kGrWib4IJwfLeWM5dyzNxQc4k\r\n1mtGiNDaOKkxZtq3yiKb57IY5/ptw5lfGRCgphmxnUgYRLGIUjBf74qYeBOo\r\nBMyOtDaToa5tfJ65zPIm6x2zGIL6tT9wYPWKp4VuExs3DAIujAY4kCFj5xhx\r\nyGL3CDC4okQ3wwIUZpAnatVN6msY1g1zH0ZS9RvYdGLkpeNWFhLGDeioS6EK\r\nvL2K5So+Q70hGRXQF991HvGD7vq1vXWY4bv3oSoCnNVFxfV6ZlXtkoHQgK6q\r\nXhhDbxnzMm3Btax7PJE80pcViON22Ld5U3pNZRsG6vts54Yj1ZPCcFc+Lrma\r\nF9h3pbB5znma0ERR5BDVEsPfKkTwMLSWEVo=\r\n=U25v\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.1.22_1650287643786_0.274611344911867"},"_hasShrinkwrap":false},"0.1.23":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/contracts.git"},"version":"0.1.23","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"Main repository for Midas Capital's contracts and SDK for interacting with those.","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","scripts":{"test":"hardhat test","test:hardhat":"hardhat test --parallel","test:forge":"forge test","test:forge:bsc":"forge test --fork-url ${FORK_URL_BSC} --fork-block-number ${FORK_BLOCK_NUMBER}","test:bsc":"FORK_URL=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat test","export":"hardhat export --export-all ./deployments.json","build":"npm run build:forge && npm run typechain && npm run build:sdk ","build:forge":"forge build","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","clean":"hardhat clean && rm -rf lib","typechain":"typechain --target ethers-v5 --out-dir './typechain' 'out/*/**.json'","deploy:simulate:bsc:mainnet":"FORK_URL_BSC=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat node --tags simulate","deploy:bsc:mainnet":"hardhat --network bsc deploy --tags prod","prettier:sol":"prettier --write 'contracts/**/*.sol' 'contracts_forge/**/*.sol'","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'test/**/*.ts'","prettier":"npm run prettier:ts && npm run prettier:sol"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.3","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/hardhat":"^6.0.0","@types/chai":"^4.3.0","@types/mocha":"^9.1.0","@types/node":"^17.0.23","bufferutil":"^4.0.6","chai":"^4.3.6","dotenv":"^16.0.0","ethereum-waffle":"^3.4.4","ethers":"^5.6.2","hardhat":"^2.9.2","hardhat-abi-exporter":"^2.8.0","hardhat-deploy":"^0.11.4","hardhat-tracer":"^1.0.0-alpha.6","ts-node":"^10.7.0","typechain":"^8.0.0","typescript":"^4.6.3","utf-8-validate":"^5.0.9"},"dependencies":{"@keydonix/uniswap-oracle-sdk":"^1.0.7","@keydonix/uniswap-oracle-sdk-adapter":"^1.0.7","@typechain/ethers-v5":"^10.0.0","@types/bad-words":"^3.0.1","bad-words":"^3.0.4","lint-staged":"12.3.7","prettier":"2.6.1","prettier-plugin-solidity":"1.0.0-beta.19"},"types":"./dist/cjs/src/index.d.ts","readme":"# Contracts\n\nMain repository for Midas Capital's contracts and SDK for interacting with those.\n\n## Structure\n\n```text\n ┌── README.md                        <- The top-level README\n ├── .github/workflows/TestSuite.yaml <- CICD pipeline definition\n ├── .vscode                          <- IDE configs\n │\n ├── out                              <- (forge-generated, git ignored)\n │    ├── *.sol/*.json                <- All the built contracts\n │    └──  ...                        \n │\n ├── typechain                        <- (typechain-generated, git ignored)\n │\n ├── dist                             <- (typechain-generated, git ignored)\n │\n ├── lib                              <- git submodules with forge-based dependencies\n │    ├── flywheel-v2                 <- Tribe flywheel contracts\n │    ├── fuse-flywheel               <- Fuse flywheel contracts\n │    ├── oz-contracts-upgreadable    <- OpenZeppelin deps\n │    └──  ...                        <- other deps\n │\n ├── contracts                        <- All of our contracts\n │    ├── compound                    <- Compound interfaces\n │    ├── external                    <- External contracts we require\n │    ├── oracles                     <- Oracle contracts\n │    ├── utils                       <- Utility contracts\n │    └──  ...                        <- Main Fuse contracts\n │\n ├── deploy                           <- main hardhat deployment scripts\n ├── chainDeploy                      <- hardhat chain-specific deployment scripts \n ├── tasks                            <- hardhat scripts\n ├── src                              <- midas-sdk main folder\n ├── test                             <- chai-based tests (SDK integration tests)\n ├── deployments.json                 <- generated on \"npx hardhat export\"\n └── hardhat.config.ts                <- hardhat confing\n```\n\n## Dev Workflow\n\n0. Install dependencies: npm & [foundry](https://github.com/gakonst/foundry) (forge + cast)\n\nForge dependencies\n\n```text\n>>> curl -L https://foundry.paradigm.xyz | bash \n>>> foundryup\n# ensure forge and cast are available in your $PATH\n# install submodule libraries via forge \n>>> forge install \n```\n\nNPM dependencies\n\n```text\n>>> npm install\n```\n\n### Developing Against the SDK\n\nTo develop against the SDK, artifacts and deployment files must be generated first, as they are used by the SDK.\nThis is taken care by forge\n\n```shell\n>>> npm run build\n```\n\nWill generate all the required artifacts: `typechain` files, built contracts in `out` directory, and the newly built\nSDK in `dist`. Another file that is extremely important for the correct behavior of the SDK is the\n`deployments.json` file, which contains all the deployed contract addresses and ABIs for each of the \nchains we deploy to\n\nNow, make the desired changes to the SDK. To test them, run the \"integration\" tests:\n\n```shell\n>>> npx hardhat test:hardhat\n# with forking, see note below on forking\n>>> npx hardhat test:bsc \n```\n\n### Developing Against the contracts\n\nNow, you make some changes to the contracts. Once statisfied:\n\n```shell\n>>> npm run build:forge\n```\n\nAnd then test the changes with forge-based tests:\n\n```shell\n>>> npm run test:forge\n# tests with forking, see note below on forking\n>>> npm run test:forge:bsc\n```\n\nAt this point, you also want to run integration tests that leverage the SDK. For that, you need to \nregenerate the required artifacts:\n\n```shell\n# create freshly compiled artifacts\n>>> npm run build\n```\n\nRedeploy the contracts locally\n\n```shell\n# deploy new contracts to localhost, and export them to the deployments.json file\n>>> npx hardhat node --tags local\n# in another console\n>>> npm run export\n# rebuild the SDK with the newly created artifacts\n>>> npm run build\n```\n\nOnce this is done, you can run the integration tests:\n\n\n```shell\n# Integration tests against local node\n>>> npm run test:hardhat\n```\n\n```shell\n# Integration tests against bsc fork node\n>>> npm run test:bsc\n```\n\n**NOTE**: to run tests against a BSC forked node, set the correct env variables in `.env`:\n```\nFORK_URL_BSC=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/mainnet/archive\n# this is well before the deployment of our contracts, so you should start with a fresh set of contracts\nFORK_BLOCK_NUMBER=14621736\nFORK_CHAIN_ID=56\n```\n\n(if these env vars are set, the tests will always use them, so make sure to comment them out if you're intending\nto run tests against a non-forked node)\n\n## Running a node for FE development or integration testing\n\nWith the `.env` set up as above:\n\n```shell\n>>> npx hardhat node --tags fork\n```\nor alternatively, using the live currently deployed contracts (change the `FORK_BLOCK_NUMBER` to something recent)\n\n```shell\n# no deploy is needed because contracts at those addresses already exist\n>>> npx hardhat node --tags prod --no-deploy\n```\n\nor alternatively, just run a local node without forking. Comment out all the `FORK_*` variables from the `.env` file\nand:\n\n```shell\n>>> npx hardhat node --tags prod \n```\n\n## Deploying to prod (BSC mainnet)\n\n1. Set the correct mnemonic in the .env file\n\n2. Run\n\n```\nhardhat --network bsc deploy --tags prod\n```\n\n### Current & Desired Workflow\n\nDeployment flow of contracts:\n\n1. Make desired changes, and push to branch, creating a PR against `main` branch\n2. Ensure integration and forge tests pass for the local case (`npm run test:hardhat` and `npm run test:forge`)\n3. Once the local tests pass, redeploy the contracts to all target chains\n4. Export deployments files, and commit new deployment artifacts, and bump SDK version\n6. Merge to main, which triggers new SDK release\n\nThis is OK, but it does not enforce the testing against the pre and post deploy BSC forked node. Our ideal scenario instead\nlooks like the following:\n\n1. Make desired changes, and push to branch, creating a PR against `development` branch\n2. Ensure integration and forge tests pass for the local case & for the pre-deploy forked node case\n3. Once tests pass, redeploy the contracts to all target chains \n4. Export deployments files, and commit new deployment artifacts, and bump SDK version\n5. Merge into `development` branch\n6. Create PR from `development` into `main` \n7. Ensure tests against a **post-deploy** BSC fork works (both forge and hh-based tests). This will ensure that \nthe newly deployed contracts are both integration and unit tested.\n8. Update SDK, merge to `main`, which triggers new SDK release ","readmeFilename":"README.md","gitHead":"6cf8d166b598e2b2e4073d7d1c7664d3e8cd3877","bugs":{"url":"https://github.com/midas-protocol/contracts/issues"},"homepage":"https://github.com/midas-protocol/contracts#readme","_id":"@midas-capital/sdk@0.1.23","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"integrity":"sha512-WxZ30exTfA9MNePuRMgPYYEQBFBFPnk/pCt3ECprBzbtdWm7O0IjicNAN0V5aEjCWMJDc3/3a60fQZKqyo245A==","shasum":"88ee78d52b687bd9ed8a146648536112560bba4d","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.1.23.tgz","fileCount":239,"unpackedSize":28916445,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHNIj0vrZ9nmqqAmH/yep59hzVh9R535c0zAESfvkLOLAiAao7nHmBLbugVmBqlJOVdZWf14D+4UKr4gt+K8zhKTLw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiYRTdACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrx3Q/8CZRA1jKLBFmcsLsBJWFqgTydZZiqcTYUNzcqdRKt/0jc+nr1\r\nz8JwhCP1/+ZpbXzuk19ZOHfLXS+LQ4MiiURv3CBN9RiYiIBnhG6sYfHGcuZX\r\nnasjXwW5HxsFJPk02FvkGEnpQIuqk/YunH6iy7JCYje2UYmtBTkf+L1CE4wJ\r\niNgpskU6HxUBbCCzp7PFh534ipGZyWQLYUrI0vXgAPe0JHQAclonyatch5Y8\r\nGH+mo/iFkVRRsN3Vo55AhttCd9ClM+UJQl24sioL32S5SAIRkSB4H6YvDGgZ\r\n6FffZubs6mrTfCCeeb1ivf04b8F9Bls0xnBFZKAJyMqbd6Y4WD/FvlnYfRSm\r\njcesd7SyV/KlASI0TWCP+VahUUs9x+gkd8V0KkkHd1L6G8QZPgsMGECEFwwt\r\nojllFEzR66PNwZsswv/mQfVJckfk60sy9kL3DjkyWkaqZUZttkRbP2xGP1ZE\r\nWp0RGYkYLN1kR5y+nWAMNSuD4XCK2Peme5gje/BphIOvtyjuneKgjt3nh+gJ\r\nCBftBBU45VA9PbkF0DyqiyZ9rJlaz1Py2m2OVKiUSbsvAHgz6A/0I+phhx/t\r\nX/TZWa5P4BmNk3zmmWt4xac4k7IEUwycJy5Jco35xqxgwnvaplhDS6va7Yh6\r\nf3/eQszU7d/dfoUAhDmfWHlzS5JPdmtQDhs=\r\n=BKRT\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.1.23_1650529501098_0.885050290690859"},"_hasShrinkwrap":false},"0.1.24":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/contracts.git"},"version":"0.1.24","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"Main repository for Midas Capital's contracts and SDK for interacting with those.","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","scripts":{"test":"hardhat test","test:hardhat":"hardhat test --parallel","test:forge":"forge test","test:forge:bsc":"forge test --fork-url ${FORK_URL_BSC} --fork-block-number ${FORK_BLOCK_NUMBER}","test:bsc":"FORK_URL=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat test","export":"hardhat export --export-all ./deployments.json","build":"npm run build:forge && npm run typechain && npm run build:sdk ","build:forge":"forge build","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","clean":"hardhat clean && rm -rf lib","typechain":"typechain --target ethers-v5 --out-dir './typechain' 'out/*/**.json'","deploy:simulate:bsc:mainnet":"FORK_URL_BSC=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat node --tags simulate","deploy:bsc:mainnet":"hardhat --network bsc deploy --tags prod","prettier:sol":"prettier --write 'contracts/**/*.sol' 'contracts_forge/**/*.sol'","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'test/**/*.ts'","prettier":"npm run prettier:ts && npm run prettier:sol"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.3","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/hardhat":"^6.0.0","@types/chai":"^4.3.0","@types/mocha":"^9.1.0","@types/node":"^17.0.23","bufferutil":"^4.0.6","chai":"^4.3.6","dotenv":"^16.0.0","ethereum-waffle":"^3.4.4","ethers":"^5.6.2","hardhat":"^2.9.2","hardhat-abi-exporter":"^2.8.0","hardhat-deploy":"^0.11.4","hardhat-tracer":"^1.0.0-alpha.6","ts-node":"^10.7.0","typechain":"^8.0.0","typescript":"^4.6.3","utf-8-validate":"^5.0.9"},"dependencies":{"@keydonix/uniswap-oracle-sdk":"^1.0.7","@keydonix/uniswap-oracle-sdk-adapter":"^1.0.7","@typechain/ethers-v5":"^10.0.0","@types/bad-words":"^3.0.1","bad-words":"^3.0.4","lint-staged":"12.3.7","prettier":"2.6.1","prettier-plugin-solidity":"1.0.0-beta.19"},"types":"./dist/cjs/src/index.d.ts","readme":"# Contracts\n\nMain repository for Midas Capital's contracts and SDK for interacting with those.\n\n## Structure\n\n```text\n ┌── README.md                        <- The top-level README\n ├── .github/workflows/TestSuite.yaml <- CICD pipeline definition\n ├── .vscode                          <- IDE configs\n │\n ├── out                              <- (forge-generated, git ignored)\n │    ├── *.sol/*.json                <- All the built contracts\n │    └──  ...                        \n │\n ├── typechain                        <- (typechain-generated, git ignored)\n │\n ├── dist                             <- (typechain-generated, git ignored)\n │\n ├── lib                              <- git submodules with forge-based dependencies\n │    ├── flywheel-v2                 <- Tribe flywheel contracts\n │    ├── fuse-flywheel               <- Fuse flywheel contracts\n │    ├── oz-contracts-upgreadable    <- OpenZeppelin deps\n │    └──  ...                        <- other deps\n │\n ├── contracts                        <- All of our contracts\n │    ├── compound                    <- Compound interfaces\n │    ├── external                    <- External contracts we require\n │    ├── oracles                     <- Oracle contracts\n │    ├── utils                       <- Utility contracts\n │    └──  ...                        <- Main Fuse contracts\n │\n ├── deploy                           <- main hardhat deployment scripts\n ├── chainDeploy                      <- hardhat chain-specific deployment scripts \n ├── tasks                            <- hardhat scripts\n ├── src                              <- midas-sdk main folder\n ├── test                             <- chai-based tests (SDK integration tests)\n ├── deployments.json                 <- generated on \"npx hardhat export\"\n └── hardhat.config.ts                <- hardhat confing\n```\n\n## Dev Workflow\n\n0. Install dependencies: npm & [foundry](https://github.com/gakonst/foundry) (forge + cast)\n\nForge dependencies\n\n```text\n>>> curl -L https://foundry.paradigm.xyz | bash \n>>> foundryup\n# ensure forge and cast are available in your $PATH\n# install submodule libraries via forge \n>>> forge install \n```\n\nNPM dependencies\n\n```text\n>>> npm install\n```\n\n### Developing Against the SDK\n\nTo develop against the SDK, artifacts and deployment files must be generated first, as they are used by the SDK.\nThis is taken care by forge\n\n```shell\n>>> npm run build\n```\n\nWill generate all the required artifacts: `typechain` files, built contracts in `out` directory, and the newly built\nSDK in `dist`. Another file that is extremely important for the correct behavior of the SDK is the\n`deployments.json` file, which contains all the deployed contract addresses and ABIs for each of the \nchains we deploy to\n\nNow, make the desired changes to the SDK. To test them, run the \"integration\" tests:\n\n```shell\n>>> npx hardhat test:hardhat\n# with forking, see note below on forking\n>>> npx hardhat test:bsc \n```\n\n### Developing Against the contracts\n\nNow, you make some changes to the contracts. Once statisfied:\n\n```shell\n>>> npm run build:forge\n```\n\nAnd then test the changes with forge-based tests:\n\n```shell\n>>> npm run test:forge\n# tests with forking, see note below on forking\n>>> npm run test:forge:bsc\n```\n\nAt this point, you also want to run integration tests that leverage the SDK. For that, you need to \nregenerate the required artifacts:\n\n```shell\n# create freshly compiled artifacts\n>>> npm run build\n```\n\nRedeploy the contracts locally\n\n```shell\n# deploy new contracts to localhost, and export them to the deployments.json file\n>>> npx hardhat node --tags local\n# in another console\n>>> npm run export\n# rebuild the SDK with the newly created artifacts\n>>> npm run build\n```\n\nOnce this is done, you can run the integration tests:\n\n\n```shell\n# Integration tests against local node\n>>> npm run test:hardhat\n```\n\n```shell\n# Integration tests against bsc fork node\n>>> npm run test:bsc\n```\n\n**NOTE**: to run tests against a BSC forked node, set the correct env variables in `.env`:\n```\nFORK_URL_BSC=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/mainnet/archive\n# this is well before the deployment of our contracts, so you should start with a fresh set of contracts\nFORK_BLOCK_NUMBER=14621736\nFORK_CHAIN_ID=56\n```\n\n(if these env vars are set, the tests will always use them, so make sure to comment them out if you're intending\nto run tests against a non-forked node)\n\n## Running a node for FE development or integration testing\n\nWith the `.env` set up as above:\n\n```shell\n>>> npx hardhat node --tags fork\n```\nor alternatively, using the live currently deployed contracts (change the `FORK_BLOCK_NUMBER` to something recent)\n\n```shell\n# no deploy is needed because contracts at those addresses already exist\n>>> npx hardhat node --tags prod --no-deploy\n```\n\nor alternatively, just run a local node without forking. Comment out all the `FORK_*` variables from the `.env` file\nand:\n\n```shell\n>>> npx hardhat node --tags prod \n```\n\n## Deploying to prod (BSC mainnet)\n\n1. Set the correct mnemonic in the .env file\n\n2. Run\n\n```\nhardhat --network bsc deploy --tags prod\n```\n\n### Current & Desired Workflow\n\nDeployment flow of contracts:\n\n1. Make desired changes, and push to branch, creating a PR against `main` branch\n2. Ensure integration and forge tests pass for the local case (`npm run test:hardhat` and `npm run test:forge`)\n3. Once the local tests pass, redeploy the contracts to all target chains\n4. Export deployments files, and commit new deployment artifacts, and bump SDK version\n6. Merge to main, which triggers new SDK release\n\nThis is OK, but it does not enforce the testing against the pre and post deploy BSC forked node. Our ideal scenario instead\nlooks like the following:\n\n1. Make desired changes, and push to branch, creating a PR against `development` branch\n2. Ensure integration and forge tests pass for the local case & for the pre-deploy forked node case\n3. Once tests pass, redeploy the contracts to all target chains \n4. Export deployments files, and commit new deployment artifacts, and bump SDK version\n5. Merge into `development` branch\n6. Create PR from `development` into `main` \n7. Ensure tests against a **post-deploy** BSC fork works (both forge and hh-based tests). This will ensure that \nthe newly deployed contracts are both integration and unit tested.\n8. Update SDK, merge to `main`, which triggers new SDK release ","readmeFilename":"README.md","gitHead":"82f0c6691282e5f54b0eea6babe22e9d766c6e97","bugs":{"url":"https://github.com/midas-protocol/contracts/issues"},"homepage":"https://github.com/midas-protocol/contracts#readme","_id":"@midas-capital/sdk@0.1.24","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"integrity":"sha512-8mRgetvfkLAxvOzX805BovB7PIzhzIp/nnXNDhlbior+FQC1e5PP8bWvL1TxdGYUiDFDMnsoZuAnk1ujtbGdIQ==","shasum":"a4604e689ceba6a502f78724dac695f07c61df5d","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.1.24.tgz","fileCount":239,"unpackedSize":28916443,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD7roeihh8JQ/D7xwKdsamAdd0ZpICnfOKiKguHfzkOngIhAIgHaUq22NYMDSWMCbyS9S6Du9Yyou/gceD6GiM9+wJs"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiYpTxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo0fw/8CpBhzdlekqenCc+tbpesJ51nGKaiO/MzkbA3cbNxIdAVsc5X\r\neCKMaEthKha7Poor1dPiVlhaLOzTYfVSaSwgHRv53aQAHjOzTEhtuwQYWCO/\r\nIT9LarkE31irMBpaZVaiQVqR58X/QMQmF3e98h+rAhOIaoYPwy1JhMD+CGEG\r\nIsRsYWUqElUYksZkN21eRE4JAeDix9Rigk6ltgQpgDBA9B/Ld+8fbyhuywSA\r\nKkhVKxrkStVDTmlX3sZEsP4nnbrl3Zr8Q3qxXLxGhdD5ganVzVuFIuaMLztd\r\nSdtqGho88S/Al7QYkN4ojJvXTooKqHIpKAqSklz/U3zJ+dI5kuyIEWjecNpl\r\nJJVeoavbO4voGz+J/pyjldKSPiBA9d5q4TgTd5oEHP8eR/GXB5PPwtrGqqlA\r\n3hGOCRrH2N9cMMfhFxbvwnx/ozIa7QfSPN6RXitCTindMMDWs3Cx7fWShm7O\r\nAoIMrgGqAbBL1jkVxxaxnl3q5qtCaxoyGT35c1xqG4FF5nWc6pHi+HGmDO4x\r\nF0+4x4zMyoCDSHhRgGo1KisRlt4OEFP/hN/ktEgX+1ps9JnmJ+16rkdBBf7i\r\nYNFRt3TI6JdQNDb+vIme9m+ycC5Ii6n08biuryvM0Z2fJ0glK43mCtECt/2j\r\nXbG6QQu+W5xSV/ZtoCZaeMY5ZrPo9vLj968=\r\n=IuKe\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.1.24_1650627824975_0.9980436726347703"},"_hasShrinkwrap":false},"0.1.25":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/contracts.git"},"version":"0.1.25","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"Main repository for Midas Capital's contracts and SDK for interacting with those.","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","scripts":{"test":"hardhat test","test:hardhat":"hardhat test --parallel","test:forge":"forge test","test:forge:bsc":"forge test --fork-url ${FORK_URL_BSC} --fork-block-number ${FORK_BLOCK_NUMBER}","test:forge:evmostestnet":"forge test --fork-url https://eth.bd.evmos.dev:8545 --fork-block-number ${FORK_BLOCK_NUMBER}","test:bsc":"FORK_URL=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat test","export":"hardhat export --export-all ./deployments.json","build":"npm run build:forge && npm run typechain && npm run build:sdk ","build:forge":"forge build","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","clean":"hardhat clean && rm -rf lib","typechain":"typechain --target ethers-v5 --out-dir './typechain' 'out/*/**.json'","deploy:simulate:bsc:mainnet":"FORK_URL_BSC=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat node --tags simulate","deploy:bsc:mainnet":"hardhat --network bsc deploy --tags prod","prettier:sol":"prettier --write 'contracts/**/*.sol' 'contracts_forge/**/*.sol'","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'test/**/*.ts'","prettier":"npm run prettier:ts && npm run prettier:sol"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.3","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/hardhat":"^6.0.0","@types/chai":"^4.3.0","@types/mocha":"^9.1.0","@types/node":"^17.0.23","bufferutil":"^4.0.6","chai":"^4.3.6","dotenv":"^16.0.0","ethereum-waffle":"^3.4.4","ethers":"^5.6.2","hardhat":"^2.9.2","hardhat-abi-exporter":"^2.8.0","hardhat-deploy":"^0.11.4","hardhat-tracer":"^1.0.0-alpha.6","ts-node":"^10.7.0","typechain":"^8.0.0","typescript":"^4.6.3","utf-8-validate":"^5.0.9"},"dependencies":{"@keydonix/uniswap-oracle-sdk":"^1.0.7","@keydonix/uniswap-oracle-sdk-adapter":"^1.0.7","@typechain/ethers-v5":"^10.0.0","@types/bad-words":"^3.0.1","bad-words":"^3.0.4","lint-staged":"12.3.7","prettier":"2.6.1","prettier-plugin-solidity":"1.0.0-beta.19"},"types":"./dist/cjs/src/index.d.ts","readme":"# Contracts\n\nMain repository for Midas Capital's contracts and SDK for interacting with those.\n\n## Structure\n\n```text\n ┌── README.md                        <- The top-level README\n ├── .github/workflows/TestSuite.yaml <- CICD pipeline definition\n ├── .vscode                          <- IDE configs\n │\n ├── out                              <- (forge-generated, git ignored)\n │    ├── *.sol/*.json                <- All the built contracts\n │    └──  ...                        \n │\n ├── typechain                        <- (typechain-generated, git ignored)\n │\n ├── dist                             <- (typechain-generated, git ignored)\n │\n ├── lib                              <- git submodules with forge-based dependencies\n │    ├── flywheel-v2                 <- Tribe flywheel contracts\n │    ├── fuse-flywheel               <- Fuse flywheel contracts\n │    ├── oz-contracts-upgreadable    <- OpenZeppelin deps\n │    └──  ...                        <- other deps\n │\n ├── contracts                        <- All of our contracts\n │    ├── compound                    <- Compound interfaces\n │    ├── external                    <- External contracts we require\n │    ├── oracles                     <- Oracle contracts\n │    ├── utils                       <- Utility contracts\n │    └──  ...                        <- Main Fuse contracts\n │\n ├── deploy                           <- main hardhat deployment scripts\n ├── chainDeploy                      <- hardhat chain-specific deployment scripts \n ├── tasks                            <- hardhat scripts\n ├── src                              <- midas-sdk main folder\n ├── test                             <- chai-based tests (SDK integration tests)\n ├── deployments.json                 <- generated on \"npx hardhat export\"\n └── hardhat.config.ts                <- hardhat confing\n```\n\n## Dev Workflow\n\n0. Install dependencies: npm & [foundry](https://github.com/gakonst/foundry) (forge + cast)\n\nForge dependencies\n\n```text\n>>> curl -L https://foundry.paradigm.xyz | bash \n>>> foundryup\n# ensure forge and cast are available in your $PATH\n# install submodule libraries via forge \n>>> forge install \n```\n\nNPM dependencies\n\n```text\n>>> npm install\n```\n\n### Developing Against the SDK\n\nTo develop against the SDK, artifacts and deployment files must be generated first, as they are used by the SDK.\nThis is taken care by forge\n\n```shell\n>>> npm run build\n```\n\nWill generate all the required artifacts: `typechain` files, built contracts in `out` directory, and the newly built\nSDK in `dist`. Another file that is extremely important for the correct behavior of the SDK is the\n`deployments.json` file, which contains all the deployed contract addresses and ABIs for each of the \nchains we deploy to\n\nNow, make the desired changes to the SDK. To test them, run the \"integration\" tests:\n\n```shell\n>>> npx hardhat test:hardhat\n# with forking, see note below on forking\n>>> npx hardhat test:bsc \n```\n\n### Developing Against the contracts\n\nNow, you make some changes to the contracts. Once statisfied:\n\n```shell\n>>> npm run build:forge\n```\n\nAnd then test the changes with forge-based tests:\n\n```shell\n>>> npm run test:forge\n# tests with forking, see note below on forking\n>>> npm run test:forge:bsc\n```\n\nAt this point, you also want to run integration tests that leverage the SDK. For that, you need to \nregenerate the required artifacts:\n\n```shell\n# create freshly compiled artifacts\n>>> npm run build\n```\n\nRedeploy the contracts locally\n\n```shell\n# deploy new contracts to localhost, and export them to the deployments.json file\n>>> npx hardhat node --tags local\n# in another console\n>>> npm run export\n# rebuild the SDK with the newly created artifacts\n>>> npm run build\n```\n\nOnce this is done, you can run the integration tests:\n\n\n```shell\n# Integration tests against local node\n>>> npm run test:hardhat\n```\n\n```shell\n# Integration tests against bsc fork node\n>>> npm run test:bsc\n```\n\n**NOTE**: to run tests against a BSC forked node, set the correct env variables in `.env`:\n```\nFORK_URL_BSC=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/mainnet/archive\n# this is well before the deployment of our contracts, so you should start with a fresh set of contracts\nFORK_BLOCK_NUMBER=14621736\nFORK_CHAIN_ID=56\n```\n\n(if these env vars are set, the tests will always use them, so make sure to comment them out if you're intending\nto run tests against a non-forked node)\n\n## Running a node for FE development or integration testing\n\nWith the `.env` set up as above:\n\n```shell\n>>> npx hardhat node --tags fork\n```\nor alternatively, using the live currently deployed contracts (change the `FORK_BLOCK_NUMBER` to something recent)\n\n```shell\n# no deploy is needed because contracts at those addresses already exist\n>>> npx hardhat node --tags prod --no-deploy\n```\n\nor alternatively, just run a local node without forking. Comment out all the `FORK_*` variables from the `.env` file\nand:\n\n```shell\n>>> npx hardhat node --tags prod \n```\n\n## Deploying to prod (BSC mainnet)\n\n1. Set the correct mnemonic in the .env file\n\n2. Run\n\n```\nhardhat --network bsc deploy --tags prod\n```\n\n### Current & Desired Workflow\n\nDeployment flow of contracts:\n\n1. Make desired changes, and push to branch, creating a PR against `main` branch\n2. Ensure integration and forge tests pass for the local case (`npm run test:hardhat` and `npm run test:forge`)\n3. Once the local tests pass, redeploy the contracts to all target chains\n4. Export deployments files, and commit new deployment artifacts, and bump SDK version\n6. Merge to main, which triggers new SDK release\n\nThis is OK, but it does not enforce the testing against the pre and post deploy BSC forked node. Our ideal scenario instead\nlooks like the following:\n\n1. Make desired changes, and push to branch, creating a PR against `development` branch\n2. Ensure integration and forge tests pass for the local case & for the pre-deploy forked node case\n3. Once tests pass, redeploy the contracts to all target chains \n4. Export deployments files, and commit new deployment artifacts, and bump SDK version\n5. Merge into `development` branch\n6. Create PR from `development` into `main` \n7. Ensure tests against a **post-deploy** BSC fork works (both forge and hh-based tests). This will ensure that \nthe newly deployed contracts are both integration and unit tested.\n8. Update SDK, merge to `main`, which triggers new SDK release ","readmeFilename":"README.md","gitHead":"d7e3e8180b632f2078c8d2c56e879e915118795f","bugs":{"url":"https://github.com/midas-protocol/contracts/issues"},"homepage":"https://github.com/midas-protocol/contracts#readme","_id":"@midas-capital/sdk@0.1.25","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"integrity":"sha512-y8GhCdQr1lQ39KQT/GsGe7nAKqOpqfXo6mRILkqjitV0WP87fEuJmEy7Ym+INi3QeiRsexkS/0T7gDyQZbK8yQ==","shasum":"90f491a5a15182b7d8114ea84a5145b4fbe78de9","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.1.25.tgz","fileCount":239,"unpackedSize":28895386,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDMIoZcZSEYpq5xnWlfepQaycNTXhnnLKtZAugSi/+8UAIhAKSTnLP899MmKsffrKGFMHbzceMZdELu//+X8kYi3t+M"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiYwKWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo/HQ/+K7+2LxJzKWxa2EnpLlxh3z2KVJliPyictaZG/mk52p4me9AP\r\nYHctVeTNLmpcrWNljSkpvx8wblQuLjwyndBk8MwhvS3rLUPOR9wjU/fnGNFV\r\nEqVWMlDHTmvWbbWo8ACziAkHBtY42URXxgrASXg4nh46Ks7FW6aeip7moJJx\r\nt3/bYwISFBdZzRQm31O5uZBs3nvATSrdUMsE2u9/8n7NbiGl4S7jSuOFEsFj\r\nLJQqCJpS35cli5+JfXuwkh48q5ZRinSAjKDYg0TYJBwtovZH8qLItTlGh2LA\r\nR0JHehKUZNFZIyTUlgA7WJq7MiQp3Ucc0w5Op+mx/acbUU78BaAN932/hhP5\r\nDA7v8A/2kWNHllK7x4Gnwj1n5mwxA8Xav6Yqgquo9qyNuCNkxKUS5AmJ/iAB\r\naOq3V0gQl3pRhJE3FfoTWRsbbBgj3xt3lsROPDLmgvqmiAIBOOkD5w4ij6A6\r\nYcbSYP9KR3XHx8Mpw0yAXtW+wmy52e8T8JvJyCM6nXbW1AnnkIbQD2N6wZQT\r\nlT0HFpd0HSWFK6xgaPPj5Gfj8L4HNm4yp066P0rdJi3s7jE6/jHW2HS/cOS4\r\ne8813CK/zs1gdM/1oqOlFdZqHfPrguLLscfotkFJWC4hdLn3g1YF4NKMsS7u\r\nqtjsAv/TYk8jW8bBdl8WvfRxAqkFNHN+SuM=\r\n=mdzP\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.1.25_1650655894680_0.16274649454692391"},"_hasShrinkwrap":false},"0.1.26":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/contracts.git"},"version":"0.1.26","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"Main repository for Midas Capital's contracts and SDK for interacting with those.","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","scripts":{"test":"hardhat test","test:hardhat":"hardhat test --parallel","test:forge":"forge test","test:forge:bsc":"forge test --fork-url ${FORK_URL_BSC} --fork-block-number ${FORK_BLOCK_NUMBER}","test:forge:evmostestnet":"forge test --fork-url https://eth.bd.evmos.dev:8545 --fork-block-number ${FORK_BLOCK_NUMBER}","test:bsc":"FORK_URL=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat test","export":"hardhat export --export-all ./deployments.json","build":"npm run build:forge && npm run typechain && npm run build:sdk ","build:forge":"forge build","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","clean":"hardhat clean && rm -rf lib","typechain":"typechain --target ethers-v5 --out-dir './typechain' 'out/*/**.json'","deploy:simulate:bsc:mainnet":"FORK_URL_BSC=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat node --tags simulate","deploy:bsc:mainnet":"hardhat --network bsc deploy --tags prod","prettier:sol":"prettier --write 'contracts/**/*.sol' 'contracts_forge/**/*.sol'","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'test/**/*.ts'","prettier":"npm run prettier:ts && npm run prettier:sol"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.3","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/hardhat":"^6.0.0","@types/chai":"^4.3.0","@types/mocha":"^9.1.0","@types/node":"^17.0.23","bufferutil":"^4.0.6","chai":"^4.3.6","dotenv":"^16.0.0","ethereum-waffle":"^3.4.4","ethers":"^5.6.2","hardhat":"^2.9.2","hardhat-abi-exporter":"^2.8.0","hardhat-deploy":"^0.11.4","hardhat-tracer":"^1.0.0-alpha.6","ts-node":"^10.7.0","typechain":"^8.0.0","typescript":"^4.6.3","utf-8-validate":"^5.0.9"},"dependencies":{"@keydonix/uniswap-oracle-sdk":"^1.0.7","@keydonix/uniswap-oracle-sdk-adapter":"^1.0.7","@typechain/ethers-v5":"^10.0.0","@types/bad-words":"^3.0.1","bad-words":"^3.0.4","lint-staged":"12.3.7","prettier":"2.6.1","prettier-plugin-solidity":"1.0.0-beta.19"},"types":"./dist/cjs/src/index.d.ts","readme":"# Contracts\n\nMain repository for Midas Capital's contracts and SDK for interacting with those.\n\n## Structure\n\n```text\n ┌── README.md                        <- The top-level README\n ├── .github/workflows/TestSuite.yaml <- CICD pipeline definition\n ├── .vscode                          <- IDE configs\n │\n ├── out                              <- (forge-generated, git ignored)\n │    ├── *.sol/*.json                <- All the built contracts\n │    └──  ...                        \n │\n ├── typechain                        <- (typechain-generated, git ignored)\n │\n ├── dist                             <- (typechain-generated, git ignored)\n │\n ├── lib                              <- git submodules with forge-based dependencies\n │    ├── flywheel-v2                 <- Tribe flywheel contracts\n │    ├── fuse-flywheel               <- Fuse flywheel contracts\n │    ├── oz-contracts-upgreadable    <- OpenZeppelin deps\n │    └──  ...                        <- other deps\n │\n ├── contracts                        <- All of our contracts\n │    ├── compound                    <- Compound interfaces\n │    ├── external                    <- External contracts we require\n │    ├── oracles                     <- Oracle contracts\n │    ├── utils                       <- Utility contracts\n │    └──  ...                        <- Main Fuse contracts\n │\n ├── deploy                           <- main hardhat deployment scripts\n ├── chainDeploy                      <- hardhat chain-specific deployment scripts \n ├── tasks                            <- hardhat scripts\n ├── src                              <- midas-sdk main folder\n ├── test                             <- chai-based tests (SDK integration tests)\n ├── deployments.json                 <- generated on \"npx hardhat export\"\n └── hardhat.config.ts                <- hardhat confing\n```\n\n## Dev Workflow\n\n0. Install dependencies: npm & [foundry](https://github.com/gakonst/foundry) (forge + cast)\n\nForge dependencies\n\n```text\n>>> curl -L https://foundry.paradigm.xyz | bash \n>>> foundryup\n# ensure forge and cast are available in your $PATH\n# install submodule libraries via forge \n>>> forge install \n```\n\nNPM dependencies\n\n```text\n>>> npm install\n```\n\n### Developing Against the SDK\n\nTo develop against the SDK, artifacts and deployment files must be generated first, as they are used by the SDK.\nThis is taken care by forge\n\n```shell\n>>> npm run build\n```\n\nWill generate all the required artifacts: `typechain` files, built contracts in `out` directory, and the newly built\nSDK in `dist`. Another file that is extremely important for the correct behavior of the SDK is the\n`deployments.json` file, which contains all the deployed contract addresses and ABIs for each of the \nchains we deploy to\n\nNow, make the desired changes to the SDK. To test them, run the \"integration\" tests:\n\n```shell\n>>> npx hardhat test:hardhat\n# with forking, see note below on forking\n>>> npx hardhat test:bsc \n```\n\n### Developing Against the contracts\n\nNow, you make some changes to the contracts. Once statisfied:\n\n```shell\n>>> npm run build:forge\n```\n\nAnd then test the changes with forge-based tests:\n\n```shell\n>>> npm run test:forge\n# tests with forking, see note below on forking\n>>> npm run test:forge:bsc\n```\n\nAt this point, you also want to run integration tests that leverage the SDK. For that, you need to \nregenerate the required artifacts:\n\n```shell\n# create freshly compiled artifacts\n>>> npm run build\n```\n\nRedeploy the contracts locally\n\n```shell\n# deploy new contracts to localhost, and export them to the deployments.json file\n>>> npx hardhat node --tags local\n# in another console\n>>> npm run export\n# rebuild the SDK with the newly created artifacts\n>>> npm run build\n```\n\nOnce this is done, you can run the integration tests:\n\n\n```shell\n# Integration tests against local node\n>>> npm run test:hardhat\n```\n\n```shell\n# Integration tests against bsc fork node\n>>> npm run test:bsc\n```\n\n**NOTE**: to run tests against a BSC forked node, set the correct env variables in `.env`:\n```\nFORK_URL_BSC=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/mainnet/archive\n# this is well before the deployment of our contracts, so you should start with a fresh set of contracts\nFORK_BLOCK_NUMBER=14621736\nFORK_CHAIN_ID=56\n```\n\n(if these env vars are set, the tests will always use them, so make sure to comment them out if you're intending\nto run tests against a non-forked node)\n\n## Running a node for FE development or integration testing\n\nWith the `.env` set up as above:\n\n```shell\n>>> npx hardhat node --tags fork\n```\nor alternatively, using the live currently deployed contracts (change the `FORK_BLOCK_NUMBER` to something recent)\n\n```shell\n# no deploy is needed because contracts at those addresses already exist\n>>> npx hardhat node --tags prod --no-deploy\n```\n\nor alternatively, just run a local node without forking. Comment out all the `FORK_*` variables from the `.env` file\nand:\n\n```shell\n>>> npx hardhat node --tags prod \n```\n\n## Deploying to prod (BSC mainnet)\n\n1. Set the correct mnemonic in the .env file\n\n2. Run\n\n```\nhardhat --network bsc deploy --tags prod\n```\n\n### Current & Desired Workflow\n\nDeployment flow of contracts:\n\n1. Make desired changes, and push to branch, creating a PR against `main` branch\n2. Ensure integration and forge tests pass for the local case (`npm run test:hardhat` and `npm run test:forge`)\n3. Once the local tests pass, redeploy the contracts to all target chains\n4. Export deployments files, and commit new deployment artifacts, and bump SDK version\n6. Merge to main, which triggers new SDK release\n\nThis is OK, but it does not enforce the testing against the pre and post deploy BSC forked node. Our ideal scenario instead\nlooks like the following:\n\n1. Make desired changes, and push to branch, creating a PR against `development` branch\n2. Ensure integration and forge tests pass for the local case & for the pre-deploy forked node case\n3. Once tests pass, redeploy the contracts to all target chains \n4. Export deployments files, and commit new deployment artifacts, and bump SDK version\n5. Merge into `development` branch\n6. Create PR from `development` into `main` \n7. Ensure tests against a **post-deploy** BSC fork works (both forge and hh-based tests). This will ensure that \nthe newly deployed contracts are both integration and unit tested.\n8. Update SDK, merge to `main`, which triggers new SDK release ","readmeFilename":"README.md","gitHead":"ac9d848c9867f3c3975d61ba698946bb6d7a8bfe","bugs":{"url":"https://github.com/midas-protocol/contracts/issues"},"homepage":"https://github.com/midas-protocol/contracts#readme","_id":"@midas-capital/sdk@0.1.26","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"integrity":"sha512-cVM+yCQDXRQqnRLiCPO7etsKOQr4DlxN/HveVtSBqwHyGAZnR2QpXlar8WBWKgmm4Nn8KNPexh5QqDNtYKvttg==","shasum":"e520667b0ded4747448e2d747fbd8422f1e85ffe","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.1.26.tgz","fileCount":239,"unpackedSize":28890138,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCjGjxh8rYnGJJuhw1n9jzy3BCNfm3By5LIBig614OyTAIgZ6sFxxX/fGdXDOPHeR56G6mFVnnCnmy1dg0RvlXjrAI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiZ+JsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqJuA/+LSuyLwUWMxknDQ13SUswMJiKDg1x6lKBvOzXA2AMZkNCgvaE\r\n7MKRE/jos6USFCCh/s15xNzTfK9Z7iV+6WJcOBgV3kKWC9cCrADYiuUEiOrq\r\nTYuPZGoey7ABC5+RxdwTUQjrrZsjp96/sNqr+QRAQcTyZlfOpl/rjvO4wyTn\r\nj3EC7HiMozfbFfmfIHSjtWDxJggv1Coh1hkblpx6b9LZTpccCLAFNfMPxQPS\r\nTaShw3GX9agUTsNSIELNvlPEVCCFdkpLy8xEKwT/03Sr9S5byLK3G0DGd8t4\r\nIQvTwJdXHoDlOon2GlE95nHDNNqZYVATEb+Rt/P9pnzoCClerlUmFTC8UUQr\r\n/+b88IjjboOzbCXwvszusBKaOzrnBzX5rD9XJceo9XeMkBMSnRVuW/OcARz8\r\n8ndcxl7d/wgZXQsoQkeUuwaMgnII6fPWUEj+JIepqDKVEnawcYdHo4GwaCa/\r\nwciyEIJLfCVOTvgahYRlNdikzPSEBoyYd6FsvJ1isswRKriDhGWHWK+mTNnb\r\nOQAQZ9mxQyRge429Mzya/k6HX9k2vm+OM/4VSLAY0QjDYJio/qmB3VBcc8kY\r\nlNpHnKy+Z/67pVsWew3DJMTwrwwSRUmPkACywgfg6rxO1y/nQ66fLL5ffwBh\r\nX8JNbwsIdxNb/CuBDpBWfQTJBWzJxCloE1g=\r\n=yVoZ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.1.26_1650975340062_0.08587922556622263"},"_hasShrinkwrap":false},"0.1.27":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/contracts.git"},"version":"0.1.27","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"Main repository for Midas Capital's contracts and SDK for interacting with those.","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","scripts":{"test":"hardhat test","test:hardhat":"hardhat test --parallel","test:forge":"forge test","test:forge:bsc":"forge test --fork-url ${FORK_URL_BSC} --fork-block-number ${FORK_BLOCK_NUMBER}","test:forge:moonbeam":"forge test --fork-url https://rpc.api.moonbeam.network --fork-block-number ${FORK_BLOCK_NUMBER}","test:forge:evmostestnet":"forge test --fork-url https://eth.bd.evmos.dev:8545 --fork-block-number ${FORK_BLOCK_NUMBER}","test:bsc":"FORK_URL=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat test","export":"hardhat export --export-all ./deployments.json","build":"npm run build:forge && npm run typechain && npm run build:sdk ","build:forge":"forge build","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","clean":"hardhat clean && rm -rf lib","typechain":"typechain --target ethers-v5 --out-dir './typechain' 'out/*/**.json'","deploy:simulate:bsc:mainnet":"FORK_URL_BSC=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat node --tags simulate","deploy:bsc:mainnet":"hardhat --network bsc deploy --tags prod","prettier:sol":"prettier --write 'contracts/**/*.sol' 'contracts_forge/**/*.sol'","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'test/**/*.ts'","prettier":"npm run prettier:ts && npm run prettier:sol"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.3","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/hardhat":"^6.0.0","@types/chai":"^4.3.0","@types/mocha":"^9.1.0","@types/node":"^17.0.23","bufferutil":"^4.0.6","chai":"^4.3.6","dotenv":"^16.0.0","ethereum-waffle":"^3.4.4","ethers":"^5.6.2","hardhat":"^2.9.2","hardhat-abi-exporter":"^2.8.0","hardhat-deploy":"^0.11.4","hardhat-tracer":"^1.0.0-alpha.6","ts-node":"^10.7.0","typechain":"^8.0.0","typescript":"^4.6.3","utf-8-validate":"^5.0.9"},"dependencies":{"@keydonix/uniswap-oracle-sdk":"^1.0.7","@keydonix/uniswap-oracle-sdk-adapter":"^1.0.7","@typechain/ethers-v5":"^10.0.0","@types/bad-words":"^3.0.1","bad-words":"^3.0.4","lint-staged":"12.3.7","prettier":"2.6.1","prettier-plugin-solidity":"1.0.0-beta.19"},"types":"./dist/cjs/src/index.d.ts","readme":"# Contracts\n\nMain repository for Midas Capital's contracts and SDK for interacting with those.\n\n## Structure\n\n```text\n ┌── README.md                        <- The top-level README\n ├── .github/workflows/TestSuite.yaml <- CICD pipeline definition\n ├── .vscode                          <- IDE configs\n │\n ├── out                              <- (forge-generated, git ignored)\n │    ├── *.sol/*.json                <- All the built contracts\n │    └──  ...                        \n │\n ├── typechain                        <- (typechain-generated, git ignored)\n │\n ├── dist                             <- (typechain-generated, git ignored)\n │\n ├── lib                              <- git submodules with forge-based dependencies\n │    ├── flywheel-v2                 <- Tribe flywheel contracts\n │    ├── fuse-flywheel               <- Fuse flywheel contracts\n │    ├── oz-contracts-upgreadable    <- OpenZeppelin deps\n │    └──  ...                        <- other deps\n │\n ├── contracts                        <- All of our contracts\n │    ├── compound                    <- Compound interfaces\n │    ├── external                    <- External contracts we require\n │    ├── oracles                     <- Oracle contracts\n │    ├── utils                       <- Utility contracts\n │    └──  ...                        <- Main Fuse contracts\n │\n ├── deploy                           <- main hardhat deployment scripts\n ├── chainDeploy                      <- hardhat chain-specific deployment scripts \n ├── tasks                            <- hardhat scripts\n ├── src                              <- midas-sdk main folder\n ├── test                             <- chai-based tests (SDK integration tests)\n ├── deployments.json                 <- generated on \"npx hardhat export\"\n └── hardhat.config.ts                <- hardhat confing\n```\n\n## Dev Workflow\n\n0. Install dependencies: npm & [foundry](https://github.com/gakonst/foundry) (forge + cast)\n\nForge dependencies\n\n```text\n>>> curl -L https://foundry.paradigm.xyz | bash \n>>> foundryup\n# ensure forge and cast are available in your $PATH\n# install submodule libraries via forge \n>>> forge install \n```\n\nNPM dependencies\n\n```text\n>>> npm install\n```\n\n### Developing Against the SDK\n\nTo develop against the SDK, artifacts and deployment files must be generated first, as they are used by the SDK.\nThis is taken care by forge\n\n```shell\n>>> npm run build\n```\n\nWill generate all the required artifacts: `typechain` files, built contracts in `out` directory, and the newly built\nSDK in `dist`. Another file that is extremely important for the correct behavior of the SDK is the\n`deployments.json` file, which contains all the deployed contract addresses and ABIs for each of the \nchains we deploy to\n\nNow, make the desired changes to the SDK. To test them, run the \"integration\" tests:\n\n```shell\n>>> npx hardhat test:hardhat\n# with forking, see note below on forking\n>>> npx hardhat test:bsc \n```\n\n### Developing Against the contracts\n\nNow, you make some changes to the contracts. Once statisfied:\n\n```shell\n>>> npm run build:forge\n```\n\nAnd then test the changes with forge-based tests:\n\n```shell\n>>> npm run test:forge\n# tests with forking, see note below on forking\n>>> npm run test:forge:bsc\n```\n\nAt this point, you also want to run integration tests that leverage the SDK. For that, you need to \nregenerate the required artifacts:\n\n```shell\n# create freshly compiled artifacts\n>>> npm run build\n```\n\nRedeploy the contracts locally\n\n```shell\n# deploy new contracts to localhost, and export them to the deployments.json file\n>>> npx hardhat node --tags local\n# in another console\n>>> npm run export\n# rebuild the SDK with the newly created artifacts\n>>> npm run build\n```\n\nOnce this is done, you can run the integration tests:\n\n\n```shell\n# Integration tests against local node\n>>> npm run test:hardhat\n```\n\n```shell\n# Integration tests against bsc fork node\n>>> npm run test:bsc\n```\n\n**NOTE**: to run tests against a BSC forked node, set the correct env variables in `.env`:\n```\nFORK_URL_BSC=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/mainnet/archive\n# this is well before the deployment of our contracts, so you should start with a fresh set of contracts\nFORK_BLOCK_NUMBER=14621736\nFORK_CHAIN_ID=56\n```\n\n(if these env vars are set, the tests will always use them, so make sure to comment them out if you're intending\nto run tests against a non-forked node)\n\n## Running a node for FE development or integration testing\n\nWith the `.env` set up as above:\n\n```shell\n>>> npx hardhat node --tags fork\n```\nor alternatively, using the live currently deployed contracts (change the `FORK_BLOCK_NUMBER` to something recent)\n\n```shell\n# no deploy is needed because contracts at those addresses already exist\n>>> npx hardhat node --tags prod --no-deploy\n```\n\nor alternatively, just run a local node without forking. Comment out all the `FORK_*` variables from the `.env` file\nand:\n\n```shell\n>>> npx hardhat node --tags prod \n```\n\n## Deploying to prod (BSC mainnet)\n\n1. Set the correct mnemonic in the .env file\n\n2. Run\n\n```\nhardhat --network bsc deploy --tags prod\n```\n\n### Current & Desired Workflow\n\nDeployment flow of contracts:\n\n1. Make desired changes, and push to branch, creating a PR against `main` branch\n2. Ensure integration and forge tests pass for the local case (`npm run test:hardhat` and `npm run test:forge`)\n3. Once the local tests pass, redeploy the contracts to all target chains\n4. Export deployments files, and commit new deployment artifacts, and bump SDK version\n6. Merge to main, which triggers new SDK release\n\nThis is OK, but it does not enforce the testing against the pre and post deploy BSC forked node. Our ideal scenario instead\nlooks like the following:\n\n1. Make desired changes, and push to branch, creating a PR against `development` branch\n2. Ensure integration and forge tests pass for the local case & for the pre-deploy forked node case\n3. Once tests pass, redeploy the contracts to all target chains \n4. Export deployments files, and commit new deployment artifacts, and bump SDK version\n5. Merge into `development` branch\n6. Create PR from `development` into `main` \n7. Ensure tests against a **post-deploy** BSC fork works (both forge and hh-based tests). This will ensure that \nthe newly deployed contracts are both integration and unit tested.\n8. Update SDK, merge to `main`, which triggers new SDK release ","readmeFilename":"README.md","gitHead":"4f494178a8b1ee83c465ed73dad59cd52a16e490","bugs":{"url":"https://github.com/midas-protocol/contracts/issues"},"homepage":"https://github.com/midas-protocol/contracts#readme","_id":"@midas-capital/sdk@0.1.27","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"integrity":"sha512-Rvv3STv04DoHPc/Fw0WXn/oqJiWLGBL2dZmGuMiUVXvEMj1w5veNJ0TH59yeoKCKKBQxfnLRXA6EqMY9qpFcRg==","shasum":"df253b7616fe1b93e6661bab424d80157e986154","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.1.27.tgz","fileCount":239,"unpackedSize":32276362,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDLers2kpmxMPuDOKGAJWLdNXzrRrFUCcrdmG7N4VqCKAiEAihdBYSGHbKdHNtqbzpVE4/YeiJOy3hPkQqYvOucCNFw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiaYS0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqrpA/+NJG8WnbDHiErY+TcUmfKS7g1xKTN8Bf/mqKsXrvIxqqn1CZi\r\njsS6CnIhBhFu9D2qMXGyBe8uyagtw4zWuTo7xcFo5jV8p5Ez3hJNp2hv7mUz\r\nb8qzKhDEudar2cK1KzNCys4OFq2ZoRhanW7yiVz3N+s6gduCO3HZgxC0k0Pe\r\njyZuV/KMJw7xvBklpjH2DyyH2ocMX+kn8iACL7sH8teAXmPYd5MXrjnqbNk5\r\nzrcniSO+/MldQ1x/tRGsnV3oCMzypkQ6FZ4oSTiNuMFA3qJ6brb+egFn+Uuy\r\nQvMojvecyhtPl9qMmYCjPGdGmeE7ZSnDB/e0j/1+r/e3ik8NqApBZdcgklnj\r\ndHaocWk4tqHry1nwJWxvlDlpB5UesYYdK/wMxmLX2VwwfHhbbWS6uGN3OYRF\r\n7hlwmoepewaSLBOXQnAaeWLPvdXS0qM4dGfGrDLcgni94F9jMVQdfMmdgYNg\r\nWCow/AYg8O3+6BgmNTzF/5FPc0kHOO8qR5c46NlE6Bbzf4oC1sv83dcNcvGe\r\nR7RvPKUPHn19u3ttYNRYzL291h2B1AaA7fIk32NhLzMZupKPpnDwSmCVOpgz\r\n03Rzw4Fh+39wiYkO2yQdUpiDn43VuyMjtcZK/QNWEqqPhkOhmnP7vAqp5QsI\r\n/7jxENzCupF3uJrQZVKvKeX1WOIyM4+Fsok=\r\n=bXUw\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.1.27_1651082420410_0.25888514940575047"},"_hasShrinkwrap":false},"0.1.28":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/contracts.git"},"version":"0.1.28","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"Main repository for Midas Capital's contracts and SDK for interacting with those.","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","scripts":{"test":"hardhat test","test:hardhat":"hardhat test --parallel","test:forge":"forge test","test:forge:bsc":"forge test --fork-url ${FORK_URL_BSC} --fork-block-number ${FORK_BLOCK_NUMBER}","test:forge:moonbeam":"forge test --fork-url https://rpc.api.moonbeam.network --fork-block-number ${FORK_BLOCK_NUMBER}","test:forge:evmostestnet":"forge test --fork-url https://eth.bd.evmos.dev:8545 --fork-block-number ${FORK_BLOCK_NUMBER}","test:bsc":"FORK_URL=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat test","export":"hardhat export --export-all ./deployments.json","build":"npm run build:forge && npm run typechain && npm run build:sdk ","build:forge":"forge build","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","clean":"hardhat clean && rm -rf lib","typechain":"typechain --target ethers-v5 --out-dir './typechain' 'out/*/**.json'","deploy:simulate:bsc:mainnet":"FORK_URL_BSC=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat node --tags simulate","deploy:bsc:mainnet":"hardhat --network bsc deploy --tags prod","prettier:sol":"prettier --write 'contracts/**/*.sol' 'contracts_forge/**/*.sol'","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'test/**/*.ts'","prettier":"npm run prettier:ts && npm run prettier:sol"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.3","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/hardhat":"^6.0.0","@types/chai":"^4.3.0","@types/mocha":"^9.1.0","@types/node":"^17.0.23","bufferutil":"^4.0.6","chai":"^4.3.6","dotenv":"^16.0.0","ethereum-waffle":"^3.4.4","ethers":"^5.6.2","hardhat":"^2.9.2","hardhat-abi-exporter":"^2.8.0","hardhat-deploy":"^0.11.4","hardhat-tracer":"^1.0.0-alpha.6","ts-node":"^10.7.0","typechain":"^8.0.0","typescript":"^4.6.3","utf-8-validate":"^5.0.9"},"dependencies":{"@keydonix/uniswap-oracle-sdk":"^1.0.7","@keydonix/uniswap-oracle-sdk-adapter":"^1.0.7","@typechain/ethers-v5":"^10.0.0","@types/bad-words":"^3.0.1","bad-words":"^3.0.4","lint-staged":"12.3.7","prettier":"2.6.1","prettier-plugin-solidity":"1.0.0-beta.19"},"types":"./dist/cjs/src/index.d.ts","readme":"# Contracts\n\nMain repository for Midas Capital's contracts and SDK for interacting with those.\n\n## Structure\n\n```text\n ┌── README.md                        <- The top-level README\n ├── .github/workflows/TestSuite.yaml <- CICD pipeline definition\n ├── .vscode                          <- IDE configs\n │\n ├── out                              <- (forge-generated, git ignored)\n │    ├── *.sol/*.json                <- All the built contracts\n │    └──  ...                        \n │\n ├── typechain                        <- (typechain-generated, git ignored)\n │\n ├── dist                             <- (typechain-generated, git ignored)\n │\n ├── lib                              <- git submodules with forge-based dependencies\n │    ├── flywheel-v2                 <- Tribe flywheel contracts\n │    ├── fuse-flywheel               <- Fuse flywheel contracts\n │    ├── oz-contracts-upgreadable    <- OpenZeppelin deps\n │    └──  ...                        <- other deps\n │\n ├── contracts                        <- All of our contracts\n │    ├── compound                    <- Compound interfaces\n │    ├── external                    <- External contracts we require\n │    ├── oracles                     <- Oracle contracts\n │    ├── utils                       <- Utility contracts\n │    └──  ...                        <- Main Fuse contracts\n │\n ├── deploy                           <- main hardhat deployment scripts\n ├── chainDeploy                      <- hardhat chain-specific deployment scripts \n ├── tasks                            <- hardhat scripts\n ├── src                              <- midas-sdk main folder\n ├── test                             <- chai-based tests (SDK integration tests)\n ├── deployments.json                 <- generated on \"npx hardhat export\"\n └── hardhat.config.ts                <- hardhat confing\n```\n\n## Dev Workflow\n\n0. Install dependencies: npm & [foundry](https://github.com/gakonst/foundry) (forge + cast)\n\nForge dependencies\n\n```text\n>>> curl -L https://foundry.paradigm.xyz | bash \n>>> foundryup\n# ensure forge and cast are available in your $PATH\n# install submodule libraries via forge \n>>> forge install \n```\n\nNPM dependencies\n\n```text\n>>> npm install\n```\n\n### Developing Against the SDK\n\nTo develop against the SDK, artifacts and deployment files must be generated first, as they are used by the SDK.\nThis is taken care by forge\n\n```shell\n>>> npm run build\n```\n\nWill generate all the required artifacts: `typechain` files, built contracts in `out` directory, and the newly built\nSDK in `dist`. Another file that is extremely important for the correct behavior of the SDK is the\n`deployments.json` file, which contains all the deployed contract addresses and ABIs for each of the \nchains we deploy to\n\nNow, make the desired changes to the SDK. To test them, run the \"integration\" tests:\n\n```shell\n>>> npx hardhat test:hardhat\n# with forking, see note below on forking\n>>> npx hardhat test:bsc \n```\n\n### Developing Against the contracts\n\nNow, you make some changes to the contracts. Once statisfied:\n\n```shell\n>>> npm run build:forge\n```\n\nAnd then test the changes with forge-based tests:\n\n```shell\n>>> npm run test:forge\n# tests with forking, see note below on forking\n>>> npm run test:forge:bsc\n```\n\nAt this point, you also want to run integration tests that leverage the SDK. For that, you need to \nregenerate the required artifacts:\n\n```shell\n# create freshly compiled artifacts\n>>> npm run build\n```\n\nRedeploy the contracts locally\n\n```shell\n# deploy new contracts to localhost, and export them to the deployments.json file\n>>> npx hardhat node --tags local\n# in another console\n>>> npm run export\n# rebuild the SDK with the newly created artifacts\n>>> npm run build\n```\n\nOnce this is done, you can run the integration tests:\n\n\n```shell\n# Integration tests against local node\n>>> npm run test:hardhat\n```\n\n```shell\n# Integration tests against bsc fork node\n>>> npm run test:bsc\n```\n\n**NOTE**: to run tests against a BSC forked node, set the correct env variables in `.env`:\n```\nFORK_URL_BSC=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/mainnet/archive\n# this is well before the deployment of our contracts, so you should start with a fresh set of contracts\nFORK_BLOCK_NUMBER=14621736\nFORK_CHAIN_ID=56\n```\n\n(if these env vars are set, the tests will always use them, so make sure to comment them out if you're intending\nto run tests against a non-forked node)\n\n## Running a node for FE development or integration testing\n\nWith the `.env` set up as above:\n\n```shell\n>>> npx hardhat node --tags fork\n```\nor alternatively, using the live currently deployed contracts (change the `FORK_BLOCK_NUMBER` to something recent)\n\n```shell\n# no deploy is needed because contracts at those addresses already exist\n>>> npx hardhat node --tags prod --no-deploy\n```\n\nor alternatively, just run a local node without forking. Comment out all the `FORK_*` variables from the `.env` file\nand:\n\n```shell\n>>> npx hardhat node --tags prod \n```\n\n## Deploying to prod (BSC mainnet)\n\n1. Set the correct mnemonic in the .env file\n\n2. Run\n\n```\nhardhat --network bsc deploy --tags prod\n```\n\n### Current & Desired Workflow\n\nDeployment flow of contracts:\n\n1. Make desired changes, and push to branch, creating a PR against `main` branch\n2. Ensure integration and forge tests pass for the local case (`npm run test:hardhat` and `npm run test:forge`)\n3. Once the local tests pass, redeploy the contracts to all target chains\n4. Export deployments files, and commit new deployment artifacts, and bump SDK version\n6. Merge to main, which triggers new SDK release\n\nThis is OK, but it does not enforce the testing against the pre and post deploy BSC forked node. Our ideal scenario instead\nlooks like the following:\n\n1. Make desired changes, and push to branch, creating a PR against `development` branch\n2. Ensure integration and forge tests pass for the local case & for the pre-deploy forked node case\n3. Once tests pass, redeploy the contracts to all target chains \n4. Export deployments files, and commit new deployment artifacts, and bump SDK version\n5. Merge into `development` branch\n6. Create PR from `development` into `main` \n7. Ensure tests against a **post-deploy** BSC fork works (both forge and hh-based tests). This will ensure that \nthe newly deployed contracts are both integration and unit tested.\n8. Update SDK, merge to `main`, which triggers new SDK release ","readmeFilename":"README.md","gitHead":"69551bb0f70fc40c6c6f5647265c528490036e3c","bugs":{"url":"https://github.com/midas-protocol/contracts/issues"},"homepage":"https://github.com/midas-protocol/contracts#readme","_id":"@midas-capital/sdk@0.1.28","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"integrity":"sha512-U8IXlDfFQC8vHAjuZ9RwQsyIeyP9OmYxq332IKoTJ8FFaLhwoWB0UxgWvR4dXeJQ5MQStfT6Wz8sQS0DTxPiVA==","shasum":"f34e7b7b9d785fa006b81d32cbc734bbbf43b5bd","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.1.28.tgz","fileCount":239,"unpackedSize":32277114,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDqMKMRh4/S1oDlxuZcDiBSZYezRku4f2MRuYz5FXp8DAIgVeAZ77p2YSzlbFHKuBRp4IxiPMo4CxfcFSU+Erd3HDQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiaZpUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmouyw//QNEqWyb8p1dV9QVUWoNavghKjHBp/MOqEmfwzwt1KWUyiqFB\r\nDir67XRZ+yFhhc/AwD3vsZijLvkvxxH2Z/b0bIxnRqQK6KWXZpKUTiP+btpe\r\nLhJOLjW/v3I7lVtSYjv5olSoAbLHs/FFWl4MXZf/P/Q0fDblF2JBQp9R5tRY\r\nWC99ccuaiRmVsjU8j2auqq5t9bscB4SfGC36kamPYKvRapMMtuWBXjeudfPS\r\nM31phztElFMxgqVPJuf0QxTfxJ6ZhzYoObtxEhy96JNLsBmW5OKk75jlqNef\r\ndXtXx9hq1aRip0i1I1bI/uLIM1kOI0UgWLyl0A9laq7yTKrCZnnPg9B6uAAi\r\nkjlbH3Qy8flDvIC00t/aZmP1TMf4drGoFgTwU/zVDgyFHek7lJsLC7D9KGkc\r\nxJ7jw9XMpZr97Hqxp/wkMwQtfmrykgdTCGcX8MOyx4h3mESLNmPqR67dnqTb\r\nJH22Ydl9YClLh+bwLVE5svk+jrxcxGumFBmCEjfT0dPRr7C9s1fhvv5sfYa8\r\nYrTgz5tjCCDiy9hDsQmZxJT/xZBOfllzuoEXkORmdjQjizkuZeazB35oH71y\r\nHlGBJQOMVsK8S4ZY9DiXQPVtCjA1h/qLG7TeKSBzyIvHPic7ygsTL4NSVaDe\r\n4w7Xjpb6OsUtr7ij5xedT/YdB+nj3V1YyX8=\r\n=lrba\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.1.28_1651087956194_0.3027657342599799"},"_hasShrinkwrap":false},"0.1.29":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/contracts.git"},"version":"0.1.29","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"Main repository for Midas Capital's contracts and SDK for interacting with those.","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","scripts":{"test":"hardhat test","test:hardhat":"hardhat test --parallel","test:forge":"forge test","test:forge:bsc":"forge test --fork-url ${FORK_URL_BSC} --fork-block-number ${FORK_BLOCK_NUMBER}","test:forge:moonbeam":"forge test --fork-url https://rpc.api.moonbeam.network --fork-block-number ${FORK_BLOCK_NUMBER}","test:forge:evmostestnet":"forge test --fork-url https://eth.bd.evmos.dev:8545 --fork-block-number ${FORK_BLOCK_NUMBER}","test:bsc":"FORK_URL=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat test","export":"hardhat export --export-all ./deployments.json","build":"npm run build:forge && npm run typechain && npm run build:sdk ","build:forge":"forge build","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","clean":"hardhat clean && rm -rf lib","typechain":"typechain --target ethers-v5 --out-dir './typechain' 'out/*/**.json'","deploy:simulate:bsc:mainnet":"FORK_URL_BSC=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat node --tags simulate","deploy:bsc:mainnet":"hardhat --network bsc deploy --tags prod","prettier:sol":"prettier --write 'contracts/**/*.sol' 'contracts_forge/**/*.sol'","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'test/**/*.ts'","prettier":"npm run prettier:ts && npm run prettier:sol"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.3","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/hardhat":"^6.0.0","@types/chai":"^4.3.0","@types/mocha":"^9.1.0","@types/node":"^17.0.23","bufferutil":"^4.0.6","chai":"^4.3.6","dotenv":"^16.0.0","ethereum-waffle":"^3.4.4","ethers":"^5.6.2","hardhat":"^2.9.2","hardhat-abi-exporter":"^2.8.0","hardhat-deploy":"^0.11.4","hardhat-tracer":"^1.0.0-alpha.6","ts-node":"^10.7.0","typechain":"^8.0.0","typescript":"^4.6.3","utf-8-validate":"^5.0.9"},"dependencies":{"@keydonix/uniswap-oracle-sdk":"^1.0.7","@keydonix/uniswap-oracle-sdk-adapter":"^1.0.7","@typechain/ethers-v5":"^10.0.0","@types/bad-words":"^3.0.1","bad-words":"^3.0.4","lint-staged":"12.3.7","prettier":"2.6.1","prettier-plugin-solidity":"1.0.0-beta.19"},"types":"./dist/cjs/src/index.d.ts","readme":"# Contracts\n\nMain repository for Midas Capital's contracts and SDK for interacting with those.\n\n## Structure\n\n```text\n ┌── README.md                        <- The top-level README\n ├── .github/workflows/TestSuite.yaml <- CICD pipeline definition\n ├── .vscode                          <- IDE configs\n │\n ├── out                              <- (forge-generated, git ignored)\n │    ├── *.sol/*.json                <- All the built contracts\n │    └──  ...                        \n │\n ├── typechain                        <- (typechain-generated, git ignored)\n │\n ├── dist                             <- (typechain-generated, git ignored)\n │\n ├── lib                              <- git submodules with forge-based dependencies\n │    ├── flywheel-v2                 <- Tribe flywheel contracts\n │    ├── fuse-flywheel               <- Fuse flywheel contracts\n │    ├── oz-contracts-upgreadable    <- OpenZeppelin deps\n │    └──  ...                        <- other deps\n │\n ├── contracts                        <- All of our contracts\n │    ├── compound                    <- Compound interfaces\n │    ├── external                    <- External contracts we require\n │    ├── oracles                     <- Oracle contracts\n │    ├── utils                       <- Utility contracts\n │    └──  ...                        <- Main Fuse contracts\n │\n ├── deploy                           <- main hardhat deployment scripts\n ├── chainDeploy                      <- hardhat chain-specific deployment scripts \n ├── tasks                            <- hardhat scripts\n ├── src                              <- midas-sdk main folder\n ├── test                             <- chai-based tests (SDK integration tests)\n ├── deployments.json                 <- generated on \"npx hardhat export\"\n └── hardhat.config.ts                <- hardhat confing\n```\n\n## Dev Workflow\n\n0. Install dependencies: npm & [foundry](https://github.com/gakonst/foundry) (forge + cast)\n\nForge dependencies\n\n```text\n>>> curl -L https://foundry.paradigm.xyz | bash \n>>> foundryup\n# ensure forge and cast are available in your $PATH\n# install submodule libraries via forge \n>>> forge install \n```\n\nNPM dependencies\n\n```text\n>>> npm install\n```\n\n### Developing Against the SDK\n\nTo develop against the SDK, artifacts and deployment files must be generated first, as they are used by the SDK.\nThis is taken care by forge\n\n```shell\n>>> npm run build\n```\n\nWill generate all the required artifacts: `typechain` files, built contracts in `out` directory, and the newly built\nSDK in `dist`. Another file that is extremely important for the correct behavior of the SDK is the\n`deployments.json` file, which contains all the deployed contract addresses and ABIs for each of the \nchains we deploy to\n\nNow, make the desired changes to the SDK. To test them, run the \"integration\" tests:\n\n```shell\n>>> npx hardhat test:hardhat\n# with forking, see note below on forking\n>>> npx hardhat test:bsc \n```\n\n### Developing Against the contracts\n\nNow, you make some changes to the contracts. Once statisfied:\n\n```shell\n>>> npm run build:forge\n```\n\nAnd then test the changes with forge-based tests:\n\n```shell\n>>> npm run test:forge\n# tests with forking, see note below on forking\n>>> npm run test:forge:bsc\n```\n\nAt this point, you also want to run integration tests that leverage the SDK. For that, you need to \nregenerate the required artifacts:\n\n```shell\n# create freshly compiled artifacts\n>>> npm run build\n```\n\nRedeploy the contracts locally\n\n```shell\n# deploy new contracts to localhost, and export them to the deployments.json file\n>>> npx hardhat node --tags local\n# in another console\n>>> npm run export\n# rebuild the SDK with the newly created artifacts\n>>> npm run build\n```\n\nOnce this is done, you can run the integration tests:\n\n\n```shell\n# Integration tests against local node\n>>> npm run test:hardhat\n```\n\n```shell\n# Integration tests against bsc fork node\n>>> npm run test:bsc\n```\n\n**NOTE**: to run tests against a BSC forked node, set the correct env variables in `.env`:\n```\nFORK_URL_BSC=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/mainnet/archive\n# this is well before the deployment of our contracts, so you should start with a fresh set of contracts\nFORK_BLOCK_NUMBER=14621736\nFORK_CHAIN_ID=56\n```\n\n(if these env vars are set, the tests will always use them, so make sure to comment them out if you're intending\nto run tests against a non-forked node)\n\n## Running a node for FE development or integration testing\n\nWith the `.env` set up as above:\n\n```shell\n>>> npx hardhat node --tags fork\n```\nor alternatively, using the live currently deployed contracts (change the `FORK_BLOCK_NUMBER` to something recent)\n\n```shell\n# no deploy is needed because contracts at those addresses already exist\n>>> npx hardhat node --tags prod --no-deploy\n```\n\nor alternatively, just run a local node without forking. Comment out all the `FORK_*` variables from the `.env` file\nand:\n\n```shell\n>>> npx hardhat node --tags prod \n```\n\n## Deploying to prod (BSC mainnet)\n\n1. Set the correct mnemonic in the .env file\n\n2. Run\n\n```\nhardhat --network bsc deploy --tags prod\n```\n\n### Current & Desired Workflow\n\nDeployment flow of contracts:\n\n1. Make desired changes, and push to branch, creating a PR against `main` branch\n2. Ensure integration and forge tests pass for the local case (`npm run test:hardhat` and `npm run test:forge`)\n3. Once the local tests pass, redeploy the contracts to all target chains\n4. Export deployments files, and commit new deployment artifacts, and bump SDK version\n6. Merge to main, which triggers new SDK release\n\nThis is OK, but it does not enforce the testing against the pre and post deploy BSC forked node. Our ideal scenario instead\nlooks like the following:\n\n1. Make desired changes, and push to branch, creating a PR against `development` branch\n2. Ensure integration and forge tests pass for the local case & for the pre-deploy forked node case\n3. Once tests pass, redeploy the contracts to all target chains \n4. Export deployments files, and commit new deployment artifacts, and bump SDK version\n5. Merge into `development` branch\n6. Create PR from `development` into `main` \n7. Ensure tests against a **post-deploy** BSC fork works (both forge and hh-based tests). This will ensure that \nthe newly deployed contracts are both integration and unit tested.\n8. Update SDK, merge to `main`, which triggers new SDK release ","readmeFilename":"README.md","gitHead":"cf080979e3c38189ba10f562e00b0fa15c4c59ad","bugs":{"url":"https://github.com/midas-protocol/contracts/issues"},"homepage":"https://github.com/midas-protocol/contracts#readme","_id":"@midas-capital/sdk@0.1.29","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"integrity":"sha512-+cwqD1p3sztV3dUgWx/6qwY/RD3dKpQjV/Puc5ssDTSPbLBrLIVyiVgOrAyFGQCe1LrbYcOWTWHxWMnWO7fnEg==","shasum":"bbde492463c3cc92c9492d03fa5cf02356663f6a","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.1.29.tgz","fileCount":243,"unpackedSize":34102906,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC0dHl4RnPaYwe0oqnyjJ8Il6q0hLpmKwsr7kjuTatUNAIhALX61kwwQ3EggwLrFOAC2hxK7rgIYtQ4REmj9N91ACOA"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJia95nACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmplpQ/9GdiWL1e444TNOAdr+CTxue9GQHakCB9HhfuDkA/Y3cv818cu\r\nM3FqjACX2gKafIfZ5Gaa9pTRr+tx+iYST3TaHXEyGtayIFAa8EnAgWqbSX0X\r\n7bcM1HqOrzjPB+WaK89AAHBtAbCwsQViZ3YochiBF2+2V3MezX2EpVjC+3ou\r\niVSvmcsVR+g0jboaN1e0ojpk4MmLO5rUAx3gbI8BOdAn5ANjXNcVrg6OcvFu\r\npK6n4bFtp9/WGad44BG5wNacKPCXFg97wEeF+Gv0WvuGXfG7tVjUaRILZk1P\r\n8JB894Ols0yhaJRl/jnD8Ut+KUvz20PotXy0UW4oFYFCJMvQeWK9VKPEfPl/\r\nCNI579BB/Lw7j7IWcFAhd6K/r7e5em09rxTZ9hL0O6C0LQ3kGyO6zSkyYj9B\r\nou9vmsTQ95j6+2F+DHyUkwjGNobWOOEpaSoGbNKN359pyNdcLQWCjzlMhiri\r\nbzN3/WgDlxbzmAmFSq5YXZW0/HcAnGy3y5eenJ15gOknq9Qh5wuChPLiIDTR\r\nBvclhdWTCziGih004yiwgwTPZ34ZYDaMmu0puJWwzfZG4ZLRnqPbcbxUQhDa\r\n9Wyms3I3+6aIdQkN20dTkg4iptYlr3pS8kAfBAYM1hGr7YDtw0HDiaUTNSDl\r\nNFgncbP5uh2zqUO+/x9HS4uIZ2D+LyxFOj0=\r\n=CgiE\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.1.29_1651236454905_0.7507373802995658"},"_hasShrinkwrap":false},"0.1.30":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/contracts.git"},"version":"0.1.30","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"Main repository for Midas Capital's contracts and SDK for interacting with those.","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","scripts":{"test":"hardhat test","test:hardhat":"hardhat test --parallel","test:forge":"forge test","test:forge:bsc":"forge test --fork-url ${FORK_URL_BSC} --fork-block-number ${FORK_BLOCK_NUMBER}","test:forge:moonbeam":"forge test --fork-url https://rpc.api.moonbeam.network --fork-block-number ${FORK_BLOCK_NUMBER}","test:forge:evmostestnet":"forge test --fork-url https://eth.bd.evmos.dev:8545 --fork-block-number ${FORK_BLOCK_NUMBER}","test:bsc":"FORK_URL=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat test","export":"hardhat export --export-all ./deployments.json","build":"npm run build:forge && npm run typechain && npm run build:sdk ","build:forge":"forge build","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","clean":"hardhat clean && rm -rf lib","typechain":"typechain --target ethers-v5 --out-dir './typechain' 'out/*/**.json'","deploy:simulate:bsc:mainnet":"FORK_URL_BSC=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat node --tags simulate","deploy:bsc:mainnet":"hardhat --network bsc deploy --tags prod","prettier:sol":"prettier --write 'contracts/**/*.sol' 'contracts_forge/**/*.sol'","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'test/**/*.ts'","prettier":"npm run prettier:ts && npm run prettier:sol"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.3","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/hardhat":"^6.0.0","@types/chai":"^4.3.0","@types/mocha":"^9.1.0","@types/node":"^17.0.23","bufferutil":"^4.0.6","chai":"^4.3.6","dotenv":"^16.0.0","ethereum-waffle":"^3.4.4","ethers":"^5.6.2","hardhat":"^2.9.2","hardhat-abi-exporter":"^2.8.0","hardhat-deploy":"^0.11.4","hardhat-tracer":"^1.0.0-alpha.6","ts-node":"^10.7.0","typechain":"^8.0.0","typescript":"^4.6.3","utf-8-validate":"^5.0.9"},"dependencies":{"@keydonix/uniswap-oracle-sdk":"^1.0.7","@keydonix/uniswap-oracle-sdk-adapter":"^1.0.7","@typechain/ethers-v5":"^10.0.0","@types/bad-words":"^3.0.1","bad-words":"^3.0.4","lint-staged":"12.3.7","prettier":"2.6.1","prettier-plugin-solidity":"1.0.0-beta.19"},"types":"./dist/cjs/src/index.d.ts","readme":"# Contracts\n\nMain repository for Midas Capital's contracts and SDK for interacting with those.\n\n## Structure\n\n```text\n ┌── README.md                        <- The top-level README\n ├── .github/workflows/TestSuite.yaml <- CICD pipeline definition\n ├── .vscode                          <- IDE configs\n │\n ├── out                              <- (forge-generated, git ignored)\n │    ├── *.sol/*.json                <- All the built contracts\n │    └──  ...                        \n │\n ├── typechain                        <- (typechain-generated, git ignored)\n │\n ├── dist                             <- (typechain-generated, git ignored)\n │\n ├── lib                              <- git submodules with forge-based dependencies\n │    ├── flywheel-v2                 <- Tribe flywheel contracts\n │    ├── fuse-flywheel               <- Fuse flywheel contracts\n │    ├── oz-contracts-upgreadable    <- OpenZeppelin deps\n │    └──  ...                        <- other deps\n │\n ├── contracts                        <- All of our contracts\n │    ├── compound                    <- Compound interfaces\n │    ├── external                    <- External contracts we require\n │    ├── oracles                     <- Oracle contracts\n │    ├── utils                       <- Utility contracts\n │    └──  ...                        <- Main Fuse contracts\n │\n ├── deploy                           <- main hardhat deployment scripts\n ├── chainDeploy                      <- hardhat chain-specific deployment scripts \n ├── tasks                            <- hardhat scripts\n ├── src                              <- midas-sdk main folder\n ├── test                             <- chai-based tests (SDK integration tests)\n ├── deployments.json                 <- generated on \"npx hardhat export\"\n └── hardhat.config.ts                <- hardhat confing\n```\n\n## Dev Workflow\n\n0. Install dependencies: npm & [foundry](https://github.com/gakonst/foundry) (forge + cast)\n\nForge dependencies\n\n```text\n>>> curl -L https://foundry.paradigm.xyz | bash \n>>> foundryup\n# ensure forge and cast are available in your $PATH\n# install submodule libraries via forge \n>>> forge install \n```\n\nNPM dependencies\n\n```text\n>>> npm install\n```\n\n### Developing Against the SDK\n\nTo develop against the SDK, artifacts and deployment files must be generated first, as they are used by the SDK.\nThis is taken care by forge\n\n```shell\n>>> npm run build\n```\n\nWill generate all the required artifacts: `typechain` files, built contracts in `out` directory, and the newly built\nSDK in `dist`. Another file that is extremely important for the correct behavior of the SDK is the\n`deployments.json` file, which contains all the deployed contract addresses and ABIs for each of the \nchains we deploy to\n\nNow, make the desired changes to the SDK. To test them, run the \"integration\" tests:\n\n```shell\n>>> npx hardhat test:hardhat\n# with forking, see note below on forking\n>>> npx hardhat test:bsc \n```\n\n### Developing Against the contracts\n\nNow, you make some changes to the contracts. Once statisfied:\n\n```shell\n>>> npm run build:forge\n```\n\nAnd then test the changes with forge-based tests:\n\n```shell\n>>> npm run test:forge\n# tests with forking, see note below on forking\n>>> npm run test:forge:bsc\n```\n\nAt this point, you also want to run integration tests that leverage the SDK. For that, you need to \nregenerate the required artifacts:\n\n```shell\n# create freshly compiled artifacts\n>>> npm run build\n```\n\nRedeploy the contracts locally\n\n```shell\n# deploy new contracts to localhost, and export them to the deployments.json file\n>>> npx hardhat node --tags local\n# in another console\n>>> npm run export\n# rebuild the SDK with the newly created artifacts\n>>> npm run build\n```\n\nOnce this is done, you can run the integration tests:\n\n\n```shell\n# Integration tests against local node\n>>> npm run test:hardhat\n```\n\n```shell\n# Integration tests against bsc fork node\n>>> npm run test:bsc\n```\n\n**NOTE**: to run tests against a BSC forked node, set the correct env variables in `.env`:\n```\nFORK_URL_BSC=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/mainnet/archive\n# this is well before the deployment of our contracts, so you should start with a fresh set of contracts\nFORK_BLOCK_NUMBER=14621736\nFORK_CHAIN_ID=56\n```\n\n(if these env vars are set, the tests will always use them, so make sure to comment them out if you're intending\nto run tests against a non-forked node)\n\n## Running a node for FE development or integration testing\n\nWith the `.env` set up as above:\n\n```shell\n>>> npx hardhat node --tags fork\n```\nor alternatively, using the live currently deployed contracts (change the `FORK_BLOCK_NUMBER` to something recent)\n\n```shell\n# no deploy is needed because contracts at those addresses already exist\n>>> npx hardhat node --tags prod --no-deploy\n```\n\nor alternatively, just run a local node without forking. Comment out all the `FORK_*` variables from the `.env` file\nand:\n\n```shell\n>>> npx hardhat node --tags prod \n```\n\n## Deploying to prod (BSC mainnet)\n\n1. Set the correct mnemonic in the .env file\n\n2. Run\n\n```\nhardhat --network bsc deploy --tags prod\n```\n\n### Current & Desired Workflow\n\nDeployment flow of contracts:\n\n1. Make desired changes, and push to branch, creating a PR against `main` branch\n2. Ensure integration and forge tests pass for the local case (`npm run test:hardhat` and `npm run test:forge`)\n3. Once the local tests pass, redeploy the contracts to all target chains\n4. Export deployments files, and commit new deployment artifacts, and bump SDK version\n6. Merge to main, which triggers new SDK release\n\nThis is OK, but it does not enforce the testing against the pre and post deploy BSC forked node. Our ideal scenario instead\nlooks like the following:\n\n1. Make desired changes, and push to branch, creating a PR against `development` branch\n2. Ensure integration and forge tests pass for the local case & for the pre-deploy forked node case\n3. Once tests pass, redeploy the contracts to all target chains \n4. Export deployments files, and commit new deployment artifacts, and bump SDK version\n5. Merge into `development` branch\n6. Create PR from `development` into `main` \n7. Ensure tests against a **post-deploy** BSC fork works (both forge and hh-based tests). This will ensure that \nthe newly deployed contracts are both integration and unit tested.\n8. Update SDK, merge to `main`, which triggers new SDK release ","readmeFilename":"README.md","gitHead":"6e8759c2f46b6dc3141ceee316f87f8a89295fae","bugs":{"url":"https://github.com/midas-protocol/contracts/issues"},"homepage":"https://github.com/midas-protocol/contracts#readme","_id":"@midas-capital/sdk@0.1.30","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"integrity":"sha512-mDQyoiRbsg2PsALzhzuF+c5MI4N4gO2+rMiiuSyOW6kuO+UgHBVOm3SPa8ezRYllqJgV+hAjxJjnewGLHUwAnA==","shasum":"fbf8e51a27f1837d9de40ddb1f55120e68519165","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.1.30.tgz","fileCount":243,"unpackedSize":34104582,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFKv2cKgLJtKlb31QqojW/GSfveZLFEBdhI096W1lJJAAiAClq9sLcILmzuj6MoMb9aipgo+xTUQDuKIFt0drx1V0A=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJibPxnACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp+3Q/+Js9Hm07Opod3X6lvYnT2w+4YHP6r11QfiOr3/5zw0vMtp93+\r\nWcnktXcQY26zrkGm9vDKmRu5AqK5U50OXkOdZBLGUqQHT3Y6k6dHEA2eQ32I\r\nOEzrpOKgdW+m6+YSUbfQonQnfV+8oZ91NhApoP5GtVJf4slhRNLZ4jGBQfgR\r\nlTeK7IuR+ImHlVKMDAB8XNHo1GOUSlWkDCaMEcAXgpIXZpV0B0eh6EVWyVCY\r\nnbS+o2UXRb1vgf3BYF/0gU5igDLtuze9miEaS+GipmmI38EA1mtc1TV5hCAM\r\n1nhhONa/qYxBstfGDVn5f6JhmNwaOyi9R7sSOPTd88FeFN/7vMxwKyZ+F+10\r\nlbFcGc2IUL6Mdqb6V8JPZ1sKuz7X7hlyVQHbBqAl6Kd7RbLDTxFV2CR3+0Ob\r\nyV0yT2lA9g5rfPKtNbBDhV//9AmmCbBMz5WljczCoTC07gzoBpATVf4aIftM\r\n/KgTtA5Ed6VpC2dvJzThR4uoCgNpgkH8nKGcv8Y8pR6g+3BkXEyxRdTK4yUD\r\nGftFzzFzmlx/OOaumupwoNqEuducnUCveheu/r+t5Tj7Hd2QSvtjT0jLLhoR\r\n5y50sURJWQHHhjgEzrcui0kb+YjYJAamovixPIY9YHRN0vQ3kcNa3QcVX7d0\r\nIu/oCV5qqk/FcDY9Sp/8/TNKFUwRej3mxRs=\r\n=+SfX\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.1.30_1651309671582_0.15525300094692507"},"_hasShrinkwrap":false},"0.2.0":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/contracts.git"},"version":"0.2.0","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"Main repository for Midas Capital's contracts and SDK for interacting with those.","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","scripts":{"test":"hardhat test","test:hardhat":"hardhat test --parallel","test:forge":"forge test","test:forge:bsc":"forge test --fork-url ${FORK_URL_BSC} --fork-block-number ${FORK_BLOCK_NUMBER}","test:forge:moonbeam":"forge test --fork-url https://rpc.api.moonbeam.network --fork-block-number ${FORK_BLOCK_NUMBER}","test:forge:evmostestnet":"forge test --fork-url https://eth.bd.evmos.dev:8545 --fork-block-number ${FORK_BLOCK_NUMBER}","test:bsc":"FORK_URL=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat test","export":"hardhat export --export-all ./deployments.json","build":"npm run build:forge && npm run typechain && npm run build:sdk ","build:forge":"forge build","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","clean":"hardhat clean && rm -rf lib","typechain":"typechain --target ethers-v5 --out-dir './typechain' 'out/*/**.json'","deploy:simulate:bsc:mainnet":"FORK_URL_BSC=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat node --tags simulate","deploy:bsc:mainnet":"hardhat --network bsc deploy --tags prod","prettier:sol":"prettier --write 'contracts/**/*.sol' 'contracts_forge/**/*.sol'","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'test/**/*.ts'","prettier":"npm run prettier:ts && npm run prettier:sol"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.3","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/hardhat":"^6.0.0","@types/chai":"^4.3.0","@types/mocha":"^9.1.0","@types/node":"^17.0.23","bufferutil":"^4.0.6","chai":"^4.3.6","dotenv":"^16.0.0","ethereum-waffle":"^3.4.4","ethers":"^5.6.2","hardhat":"^2.9.2","hardhat-abi-exporter":"^2.8.0","hardhat-deploy":"^0.11.4","hardhat-tracer":"^1.0.0-alpha.6","ts-node":"^10.7.0","typechain":"^8.0.0","typescript":"^4.6.3","utf-8-validate":"^5.0.9"},"dependencies":{"@keydonix/uniswap-oracle-sdk":"^1.0.7","@keydonix/uniswap-oracle-sdk-adapter":"^1.0.7","@typechain/ethers-v5":"^10.0.0","@types/bad-words":"^3.0.1","bad-words":"^3.0.4","lint-staged":"12.3.7","prettier":"2.6.1","prettier-plugin-solidity":"1.0.0-beta.19"},"types":"./dist/cjs/src/index.d.ts","readme":"# Contracts\n\nMain repository for Midas Capital's contracts and SDK for interacting with those.\n\n## Structure\n\n```text\n ┌── README.md                        <- The top-level README\n ├── .github/workflows/TestSuite.yaml <- CICD pipeline definition\n ├── .vscode                          <- IDE configs\n │\n ├── out                              <- (forge-generated, git ignored)\n │    ├── *.sol/*.json                <- All the built contracts\n │    └──  ...                        \n │\n ├── typechain                        <- (typechain-generated, git ignored)\n │\n ├── dist                             <- (typechain-generated, git ignored)\n │\n ├── lib                              <- git submodules with forge-based dependencies\n │    ├── flywheel-v2                 <- Tribe flywheel contracts\n │    ├── fuse-flywheel               <- Fuse flywheel contracts\n │    ├── oz-contracts-upgreadable    <- OpenZeppelin deps\n │    └──  ...                        <- other deps\n │\n ├── contracts                        <- All of our contracts\n │    ├── compound                    <- Compound interfaces\n │    ├── external                    <- External contracts we require\n │    ├── oracles                     <- Oracle contracts\n │    ├── utils                       <- Utility contracts\n │    └──  ...                        <- Main Fuse contracts\n │\n ├── deploy                           <- main hardhat deployment scripts\n ├── chainDeploy                      <- hardhat chain-specific deployment scripts \n ├── tasks                            <- hardhat scripts\n ├── src                              <- midas-sdk main folder\n ├── test                             <- chai-based tests (SDK integration tests)\n ├── deployments.json                 <- generated on \"npx hardhat export\"\n └── hardhat.config.ts                <- hardhat confing\n```\n\n## Dev Workflow\n\n0. Install dependencies: npm & [foundry](https://github.com/gakonst/foundry) (forge + cast)\n\nForge dependencies\n\n```text\n>>> curl -L https://foundry.paradigm.xyz | bash \n>>> foundryup\n# ensure forge and cast are available in your $PATH\n# install submodule libraries via forge \n>>> forge install \n```\n\nNPM dependencies\n\n```text\n>>> npm install\n```\n\n### Developing Against the SDK\n\nTo develop against the SDK, artifacts and deployment files must be generated first, as they are used by the SDK.\nThis is taken care by forge\n\n```shell\n>>> npm run build\n```\n\nWill generate all the required artifacts: `typechain` files, built contracts in `out` directory, and the newly built\nSDK in `dist`. Another file that is extremely important for the correct behavior of the SDK is the\n`deployments.json` file, which contains all the deployed contract addresses and ABIs for each of the \nchains we deploy to\n\nNow, make the desired changes to the SDK. To test them, run the \"integration\" tests:\n\n```shell\n>>> npx hardhat test:hardhat\n# with forking, see note below on forking\n>>> npx hardhat test:bsc \n```\n\n### Developing Against the contracts\n\nNow, you make some changes to the contracts. Once statisfied:\n\n```shell\n>>> npm run build:forge\n```\n\nAnd then test the changes with forge-based tests:\n\n```shell\n>>> npm run test:forge\n# tests with forking, see note below on forking\n>>> npm run test:forge:bsc\n```\n\nAt this point, you also want to run integration tests that leverage the SDK. For that, you need to \nregenerate the required artifacts:\n\n```shell\n# create freshly compiled artifacts\n>>> npm run build\n```\n\nRedeploy the contracts locally\n\n```shell\n# deploy new contracts to localhost, and export them to the deployments.json file\n>>> npx hardhat node --tags local\n# in another console\n>>> npm run export\n# rebuild the SDK with the newly created artifacts\n>>> npm run build\n```\n\nOnce this is done, you can run the integration tests:\n\n\n```shell\n# Integration tests against local node\n>>> npm run test:hardhat\n```\n\n```shell\n# Integration tests against bsc fork node\n>>> npm run test:bsc\n```\n\n**NOTE**: to run tests against a BSC forked node, set the correct env variables in `.env`:\n```\nFORK_URL_BSC=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/mainnet/archive\n# this is well before the deployment of our contracts, so you should start with a fresh set of contracts\nFORK_BLOCK_NUMBER=14621736\nFORK_CHAIN_ID=56\n```\n\n(if these env vars are set, the tests will always use them, so make sure to comment them out if you're intending\nto run tests against a non-forked node)\n\n## Running a node for FE development or integration testing\n\nWith the `.env` set up as above:\n\n```shell\n>>> npx hardhat node --tags fork\n```\nor alternatively, using the live currently deployed contracts (change the `FORK_BLOCK_NUMBER` to something recent)\n\n```shell\n# no deploy is needed because contracts at those addresses already exist\n>>> npx hardhat node --tags prod --no-deploy\n```\n\nor alternatively, just run a local node without forking. Comment out all the `FORK_*` variables from the `.env` file\nand:\n\n```shell\n>>> npx hardhat node --tags prod \n```\n\n## Deploying to prod (BSC mainnet)\n\n1. Set the correct mnemonic in the .env file\n\n2. Run\n\n```\nhardhat --network bsc deploy --tags prod\n```\n\n### Current & Desired Workflow\n\nDeployment flow of contracts:\n\n1. Make desired changes, and push to branch, creating a PR against `main` branch\n2. Ensure integration and forge tests pass for the local case (`npm run test:hardhat` and `npm run test:forge`)\n3. Once the local tests pass, redeploy the contracts to all target chains\n4. Export deployments files, and commit new deployment artifacts, and bump SDK version\n6. Merge to main, which triggers new SDK release\n\nThis is OK, but it does not enforce the testing against the pre and post deploy BSC forked node. Our ideal scenario instead\nlooks like the following:\n\n1. Make desired changes, and push to branch, creating a PR against `development` branch\n2. Ensure integration and forge tests pass for the local case & for the pre-deploy forked node case\n3. Once tests pass, redeploy the contracts to all target chains \n4. Export deployments files, and commit new deployment artifacts, and bump SDK version\n5. Merge into `development` branch\n6. Create PR from `development` into `main` \n7. Ensure tests against a **post-deploy** BSC fork works (both forge and hh-based tests). This will ensure that \nthe newly deployed contracts are both integration and unit tested.\n8. Update SDK, merge to `main`, which triggers new SDK release ","readmeFilename":"README.md","gitHead":"ca153e5edea12789adb97ff71b3d16eeb18fc310","bugs":{"url":"https://github.com/midas-protocol/contracts/issues"},"homepage":"https://github.com/midas-protocol/contracts#readme","_id":"@midas-capital/sdk@0.2.0","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"integrity":"sha512-LBWGCk7DyfAN54WCogFgm5hXY6QwHoYrntIuJzLl+AEapDtFeT9KbgdJwSTxjiGCYISTzOE1+OAq/fj7zqq3bg==","shasum":"55efe26f438e97068454fc0c660a3bc071ec0dbd","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.2.0.tgz","fileCount":243,"unpackedSize":34046875,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC4G8cT3jEQSu7yeHb6xtK6sD/ySbVHO3fqL9EMsPAD9gIgJG01y2i+Qj/Rs/alob9Wj5GxWx8t7216tbGY0e3Hn7Y="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJicmJZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoylQ/9Fav2cnRe6K2u408ROT+a+Q/WlgVQvovHbFiSawZwJnzBd8gp\r\nQFNvB1Kt9HqpYQ5Pvau8BwgHlRCNK4iJ7w7OMDx/fz1QwN5PXpzK9WMITNR4\r\ntp+E96+1FS4H4Fhu0AH4o2dxILgwwdSvwkOD+6SMVFTd0DTrD/XyETJfaUm9\r\nId2CVya3VJLtOdUBCyQnHtVrfvir3Bj5FBqy3mCqqnp/tt6AXCAFaO/N+CJ9\r\n5TedIfVhEtOLtaCAviKkyMZfxmy09vSdOTY7NY/kJ2goNXNgy+WQ8Dj1/UwF\r\nCP5Itf1RvymAMdx0CDpLb8W1J2bTcW1BIMRKa5iUwUHJUBu6de9b+dE8V5Wz\r\nxfb5q+UNOzirrTzz/4Tu42gHe/wtLR7uHyIhw6Ipe6W3nVEIGpvUPUo0Ldjy\r\nRicuwUikSfDsiPMZ7/xL/wpi6Onm7ge18aqylwuSicv0voSI+HgotYYfbv57\r\nTjvoaPYVN4m08ImbpqaBJbF5UzDihplGmdtgraA4fFApcwAfIVvLpuUqOD4W\r\njMjDnHBiZrUbPX7gB3HAUWcV3ZSTbNEhWL37LdSC1c+rBA2Hxl+uCWD3eOtp\r\ncGifJAQFpiZlVLGfVgriXdzUbg6PiExPhiey6hEi8wTt9GDZ7mEmu9t2dyVK\r\nM6rmCRU5Qp0XHqocWeeVAqPWNEoyruyhrhU=\r\n=W8eH\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.2.0_1651663448947_0.39993429533764546"},"_hasShrinkwrap":false},"0.2.1":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/contracts.git"},"version":"0.2.1","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"Main repository for Midas Capital's contracts and SDK for interacting with those.","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","scripts":{"test":"hardhat test","test:hardhat":"hardhat test --parallel","test:forge":"forge test","test:forge:bsc":"forge test --fork-url ${FORK_URL_BSC} --fork-block-number ${FORK_BLOCK_NUMBER}","test:forge:moonbeam":"forge test --fork-url https://rpc.api.moonbeam.network --fork-block-number ${FORK_BLOCK_NUMBER}","test:forge:evmostestnet":"forge test --fork-url https://eth.bd.evmos.dev:8545 --fork-block-number ${FORK_BLOCK_NUMBER}","test:bsc":"FORK_URL=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat test","export":"hardhat export --export-all ./deployments.json","build":"npm run build:forge && npm run typechain && npm run build:sdk ","build:forge":"forge build","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","clean":"hardhat clean && rm -rf ./lib ./dist ./out ./typechain","typechain":"typechain --target ethers-v5 --out-dir './typechain' 'out/*/**.json'","deploy:simulate:bsc:mainnet":"FORK_URL_BSC=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat deploy --tags simulate","deploy:bsc:mainnet":"hardhat --network bsc deploy --tags prod","prettier:sol":"prettier --write 'contracts/**/*.sol' 'contracts_forge/**/*.sol'","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'test/**/*.ts'","prettier":"npm run prettier:ts && npm run prettier:sol"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.3","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/hardhat":"^6.0.0","@types/chai":"^4.3.0","@types/mocha":"^9.1.0","@types/node":"^17.0.23","bufferutil":"^4.0.6","chai":"^4.3.6","dotenv":"^16.0.0","ethereum-waffle":"^3.4.4","ethers":"^5.6.2","hardhat":"^2.9.2","hardhat-abi-exporter":"^2.8.0","hardhat-deploy":"^0.11.4","hardhat-tracer":"^1.0.0-alpha.6","ts-node":"^10.7.0","typechain":"^8.0.0","typescript":"^4.6.3","utf-8-validate":"^5.0.9"},"dependencies":{"@keydonix/uniswap-oracle-sdk":"^1.0.7","@keydonix/uniswap-oracle-sdk-adapter":"^1.0.7","@typechain/ethers-v5":"^10.0.0","@types/bad-words":"^3.0.1","bad-words":"^3.0.4","lint-staged":"12.3.7","prettier":"2.6.1","prettier-plugin-solidity":"1.0.0-beta.19"},"types":"./dist/cjs/src/index.d.ts","readme":"# Contracts\n\nMain repository for Midas Capital's contracts and SDK for interacting with those.\n\n## Structure\n\n```text\n ┌── README.md                        <- The top-level README\n ├── .github/workflows/TestSuite.yaml <- CICD pipeline definition\n ├── .vscode                          <- IDE configs\n │\n ├── out                              <- (forge-generated, git ignored)\n │    ├── *.sol/*.json                <- All the built contracts\n │    └──  ...\n │\n ├── typechain                        <- (typechain-generated, git ignored)\n │\n ├── dist                             <- (typechain-generated, git ignored)\n │\n ├── lib                              <- git submodules with forge-based dependencies\n │    ├── flywheel-v2                 <- Tribe flywheel contracts\n │    ├── fuse-flywheel               <- Fuse flywheel contracts\n │    ├── oz-contracts-upgradeable    <- OpenZeppelin deps\n │    └──  ...                        <- other deps\n │\n ├── contracts                        <- All of our contracts\n │    ├── compound                    <- Compound interfaces\n │    ├── external                    <- External contracts we require\n │    ├── oracles                     <- Oracle contracts\n │    ├── utils                       <- Utility contracts\n │    └──  ...                        <- Main Fuse contracts\n │\n ├── deploy                           <- main hardhat deployment scripts\n ├── chainDeploy                      <- hardhat chain-specific deployment scripts\n ├── tasks                            <- hardhat scripts\n ├── src                              <- midas-sdk main folder\n ├── test                             <- chai-based tests (SDK integration tests)\n ├── deployments.json                 <- generated on \"npx hardhat export\"\n └── hardhat.config.ts                <- hardhat config\n```\n\n## Dev Workflow\n\n0. Install dependencies: npm & [foundry](https://github.com/gakonst/foundry) (forge + cast)\n\nForge dependencies\n\n```text\n>>> curl -L https://foundry.paradigm.xyz | bash\n>>> foundryup\n# ensure forge and cast are available in your $PATH\n# install submodule libraries via forge\n>>> forge install\n```\n\nNPM dependencies\n\n```text\n>>> npm install\n```\n\n### Developing Against the SDK\n\nTo develop against the SDK, artifacts and deployment files must be generated first, as they are used by the SDK.\nThis is taken care by forge\n\n```shell\n>>> npm run build\n```\n\nWill generate all the required artifacts: `typechain` files, built contracts in `out` directory, and the newly built\nSDK in `dist`. Another file that is extremely important for the correct behavior of the SDK is the\n`deployments.json` file, which contains all the deployed contract addresses and ABIs for each of the\nchains we deploy to\n\nNow, make the desired changes to the SDK. To test them, run the \"integration\" tests:\n\n```shell\n>>> npm run test:hardhat\n# with forking, see note below on forking\n>>> npm run test:bsc\n```\n\n### Developing Against the contracts\n\nNow, you make some changes to the contracts. Once statisfied:\n\n```shell\n>>> npm run build:forge\n```\n\nAnd then test the changes with forge-based tests:\n\n```shell\n>>> npm run test:forge\n# tests with forking, see note below on forking\n>>> npm run test:forge:bsc\n```\n\nAt this point, you also want to run integration tests that leverage the SDK. For that, you need to\nregenerate the required artifacts:\n\n```shell\n# create freshly compiled artifacts\n>>> npm run build\n```\n\nRedeploy the contracts locally\n\n```shell\n# deploy new contracts to localhost, and export them to the deployments.json file\n>>> npx hardhat node --tags local\n# in another console\n>>> npm run export\n# rebuild the SDK with the newly created artifacts\n>>> npm run build\n```\n\nOnce this is done, you can run the integration tests:\n\n```shell\n# Integration tests against local node\n>>> npm run test:hardhat\n```\n\n```shell\n# Integration tests against bsc fork node\n>>> npm run test:bsc\n```\n\n**NOTE**: to run tests against a BSC forked node, set the correct env variables in `.env`:\n\n```\nFORK_URL_BSC=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/mainnet/archive\n# this is well before the deployment of our contracts, so you should start with a fresh set of contracts\nFORK_BLOCK_NUMBER=14621736\nFORK_CHAIN_ID=56\n```\n\n(if these env vars are set, the tests will always use them, so make sure to comment them out if you're intending\nto run tests against a non-forked node)\n\n## Running a node for FE development or integration testing\n\nWith the `.env` set up as above:\n\n```shell\n>>> npx hardhat node --tags fork\n```\n\nor alternatively, using the live currently deployed contracts (change the `FORK_BLOCK_NUMBER` to something recent)\n\n```shell\n# no deploy is needed because contracts at those addresses already exist\n>>> npx hardhat node --tags prod --no-deploy\n```\n\nor alternatively, just run a local node without forking. Comment out all the `FORK_*` variables from the `.env` file\nand:\n\n```shell\n>>> npx hardhat node --tags prod\n```\n\n## Deploying to prod (BSC mainnet)\n\n1. Set the correct mnemonic in the .env file\n\n2. Run\n\n```\nhardhat --network bsc deploy --tags prod\n```\n\n### Current & Desired Workflow\n\nDeployment flow of contracts:\n\n1. Make desired changes, and push to branch, creating a PR against `main` branch\n2. Ensure integration and forge tests pass for the local case (`npm run test:hardhat` and `npm run test:forge`)\n3. Once the local tests pass, redeploy the contracts to all target chains\n4. Export deployments files, and commit new deployment artifacts, and bump SDK version\n5. Merge to main, which triggers new SDK release\n\nThis is OK, but it does not enforce the testing against the pre and post deploy BSC forked node. Our ideal scenario instead\nlooks like the following:\n\n1. Make desired changes, and push to branch, creating a PR against `development` branch\n2. Ensure integration and forge tests pass for the local case & for the pre-deploy forked node case\n3. Once tests pass, redeploy the contracts to all target chains\n4. Export deployments files, and commit new deployment artifacts, and bump SDK version\n5. Merge into `development` branch\n6. Create PR from `development` into `main`\n7. Ensure tests against a **post-deploy** BSC fork works (both forge and hh-based tests). This will ensure that\n   the newly deployed contracts are both integration and unit tested.\n8. Update SDK, merge to `main`, which triggers new SDK release\n","readmeFilename":"README.md","gitHead":"11e96eed26f4b290b6da3e66be77621dcd1d9788","bugs":{"url":"https://github.com/midas-protocol/contracts/issues"},"homepage":"https://github.com/midas-protocol/contracts#readme","_id":"@midas-capital/sdk@0.2.1","_nodeVersion":"16.15.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-xCU83LlVq8qcG5T6SS+rFKaTDsILAuBWdiygiMvaBg2kZGJP9KgJ/ciVlfoXu+27j3VxLbFGpvY7N0eXARGUPg==","shasum":"4f76f71d8059319dcb0e87b5482fc4c812495d5c","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.2.1.tgz","fileCount":243,"unpackedSize":34989832,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQColJabqy8isnnRs8pRcQ2CrYFHVY5A/WwSxGvCzoVFuAIgNXf8sAoyYUQTNag7HCB1fOUvUeuuHTq66tV1IW/7XfU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJid2qgACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpeqw/8DisYP5ppgKxA9X7irPRv8ZIdNkelW1CUOb8Y71Otf+HFjEe+\r\nE0WJ0p0epTGHauNv7RKywZ8PTT43bJcaJBcl739lY4ami7zRkqVyV7u/8yYk\r\nKb16dQQogiQhGrHvn1/PN+1plrV9QlafnXe4WgZjPiEoB9EbD9v3lkHPXGZ5\r\nShBiGk/vITNdqbeewa7EUbl8zmzlfx+AnyBr2r2BwsSdhGthjs8nAi4g6X8V\r\n+CMCPPRULmvFYneniIqU9USbLSXfNYcbX4pCkBjhlEe2qMq0YR5/ocXVYdhJ\r\nf56KETGcbA/Df4yRFYr4D2v4uEtahdAaE/Zc6WAB29QSVElkddQ9uKKG5YL7\r\nejzJieTBsIV7xQkSU7zqQDGqhPy7OwFLuDD8OP4M+sBXtSF53LBOmuFy3und\r\nkliTDXksp0JkNflp/Dt5wwn4vCe20sQzQWe2B76ftcr8RpcMV2hgPOIkTI0y\r\nqlbx34U2eE9ah+ROdHwBCJoLBxWs0UO0LUn6QMXkP9XUIWJU5As5uRTe5q0K\r\n20yMsCd2BZRB7Metsh5J8tjRHXA1gPFE+GRzOU3lYjE6Vw+Kg3Dyxpq9tz1G\r\nPEAnVs9QeiX2SgVRQbt2YbD7YvDV4Uw/2Ji4dlmOtJ49wCXRg1w+8kCRJ/L/\r\n+Ag2Ok4LVjhHkSIeSRZs3RWkvu2gxUqU1u4=\r\n=QPSo\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.2.1_1651993248016_0.6741852259422985"},"_hasShrinkwrap":false},"0.2.2":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/contracts.git"},"version":"0.2.2","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"Main repository for Midas Capital's contracts and SDK for interacting with those.","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","scripts":{"test":"hardhat test","test:hardhat":"hardhat test --parallel","test:forge":"forge test","test:forge:bsc":"forge test --fork-url ${FORK_URL_BSC} --fork-block-number ${FORK_BLOCK_NUMBER}","test:forge:moonbeam":"forge test --fork-url https://rpc.api.moonbeam.network --fork-block-number ${FORK_BLOCK_NUMBER}","test:forge:evmostestnet":"forge test --fork-url https://eth.bd.evmos.dev:8545 --fork-block-number ${FORK_BLOCK_NUMBER}","test:bsc":"FORK_URL=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat test","export":"hardhat export --export-all ./deployments.json","build":"npm run build:forge && npm run typechain && npm run build:sdk ","build:forge":"forge build","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","clean":"hardhat clean && rm -rf ./lib ./dist ./out ./typechain","typechain":"typechain --target ethers-v5 --out-dir './typechain' 'out/*/**.json'","deploy:simulate:bsc:mainnet":"FORK_URL_BSC=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat deploy --tags simulate","deploy:bsc:mainnet":"hardhat --network bsc deploy --tags prod","prettier:sol":"prettier --write 'contracts/**/*.sol' 'contracts_forge/**/*.sol'","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'test/**/*.ts'","prettier":"npm run prettier:ts && npm run prettier:sol"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.3","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/hardhat":"^6.0.0","@types/chai":"^4.3.0","@types/mocha":"^9.1.0","@types/node":"^17.0.23","bufferutil":"^4.0.6","chai":"^4.3.6","dotenv":"^16.0.0","ethereum-waffle":"^3.4.4","ethers":"^5.6.2","hardhat":"^2.9.2","hardhat-abi-exporter":"^2.8.0","hardhat-deploy":"^0.11.4","hardhat-tracer":"^1.0.0-alpha.6","ts-node":"^10.7.0","typechain":"^8.0.0","typescript":"^4.6.3","utf-8-validate":"^5.0.9"},"dependencies":{"@keydonix/uniswap-oracle-sdk":"^1.0.7","@keydonix/uniswap-oracle-sdk-adapter":"^1.0.7","@typechain/ethers-v5":"^10.0.0","@types/bad-words":"^3.0.1","bad-words":"^3.0.4","lint-staged":"12.3.7","prettier":"2.6.1","prettier-plugin-solidity":"1.0.0-beta.19"},"types":"./dist/cjs/src/index.d.ts","readme":"# Contracts\n\nMain repository for Midas Capital's contracts and SDK for interacting with those.\n\n## Structure\n\n```text\n ┌── README.md                        <- The top-level README\n ├── .github/workflows/TestSuite.yaml <- CICD pipeline definition\n ├── .vscode                          <- IDE configs\n │\n ├── out                              <- (forge-generated, git ignored)\n │    ├── *.sol/*.json                <- All the built contracts\n │    └──  ...\n │\n ├── typechain                        <- (typechain-generated, git ignored)\n │\n ├── dist                             <- (typechain-generated, git ignored)\n │\n ├── lib                              <- git submodules with forge-based dependencies\n │    ├── flywheel-v2                 <- Tribe flywheel contracts\n │    ├── fuse-flywheel               <- Fuse flywheel contracts\n │    ├── oz-contracts-upgradeable    <- OpenZeppelin deps\n │    └──  ...                        <- other deps\n │\n ├── contracts                        <- All of our contracts\n │    ├── compound                    <- Compound interfaces\n │    ├── external                    <- External contracts we require\n │    ├── oracles                     <- Oracle contracts\n │    ├── utils                       <- Utility contracts\n │    └──  ...                        <- Main Fuse contracts\n │\n ├── deploy                           <- main hardhat deployment scripts\n ├── chainDeploy                      <- hardhat chain-specific deployment scripts\n ├── tasks                            <- hardhat scripts\n ├── src                              <- midas-sdk main folder\n ├── test                             <- chai-based tests (SDK integration tests)\n ├── deployments.json                 <- generated on \"npx hardhat export\"\n └── hardhat.config.ts                <- hardhat config\n```\n\n## Dev Workflow\n\n0. Install dependencies: npm & [foundry](https://github.com/gakonst/foundry) (forge + cast)\n\nForge dependencies\n\n```text\n>>> curl -L https://foundry.paradigm.xyz | bash\n>>> foundryup\n# ensure forge and cast are available in your $PATH\n# install submodule libraries via forge\n>>> forge install\n```\n\nNPM dependencies\n\n```text\n>>> npm install\n```\n\n### Developing Against the SDK\n\nTo develop against the SDK, artifacts and deployment files must be generated first, as they are used by the SDK.\nThis is taken care by forge\n\n```shell\n>>> npm run build\n```\n\nWill generate all the required artifacts: `typechain` files, built contracts in `out` directory, and the newly built\nSDK in `dist`. Another file that is extremely important for the correct behavior of the SDK is the\n`deployments.json` file, which contains all the deployed contract addresses and ABIs for each of the\nchains we deploy to\n\nNow, make the desired changes to the SDK. To test them, run the \"integration\" tests:\n\n```shell\n>>> npm run test:hardhat\n# with forking, see note below on forking\n>>> npm run test:bsc\n```\n\n### Developing Against the contracts\n\nNow, you make some changes to the contracts. Once statisfied:\n\n```shell\n>>> npm run build:forge\n```\n\nAnd then test the changes with forge-based tests:\n\n```shell\n>>> npm run test:forge\n# tests with forking, see note below on forking\n>>> npm run test:forge:bsc\n```\n\nAt this point, you also want to run integration tests that leverage the SDK. For that, you need to\nregenerate the required artifacts:\n\n```shell\n# create freshly compiled artifacts\n>>> npm run build\n```\n\nRedeploy the contracts locally\n\n```shell\n# deploy new contracts to localhost, and export them to the deployments.json file\n>>> npx hardhat node --tags local\n# in another console\n>>> npm run export\n# rebuild the SDK with the newly created artifacts\n>>> npm run build\n```\n\nOnce this is done, you can run the integration tests:\n\n```shell\n# Integration tests against local node\n>>> npm run test:hardhat\n```\n\n```shell\n# Integration tests against bsc fork node\n>>> npm run test:bsc\n```\n\n**NOTE**: to run tests against a BSC forked node, set the correct env variables in `.env`:\n\n```\nFORK_URL_BSC=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/mainnet/archive\n# this is well before the deployment of our contracts, so you should start with a fresh set of contracts\nFORK_BLOCK_NUMBER=14621736\nFORK_CHAIN_ID=56\n```\n\n(if these env vars are set, the tests will always use them, so make sure to comment them out if you're intending\nto run tests against a non-forked node)\n\n## Running a node for FE development or integration testing\n\nWith the `.env` set up as above:\n\n```shell\n>>> npx hardhat node --tags fork\n```\n\nor alternatively, using the live currently deployed contracts (change the `FORK_BLOCK_NUMBER` to something recent)\n\n```shell\n# no deploy is needed because contracts at those addresses already exist\n>>> npx hardhat node --tags prod --no-deploy\n```\n\nor alternatively, just run a local node without forking. Comment out all the `FORK_*` variables from the `.env` file\nand:\n\n```shell\n>>> npx hardhat node --tags prod\n```\n\n## Deploying to prod (BSC mainnet)\n\n1. Set the correct mnemonic in the .env file\n\n2. Run\n\n```\nhardhat --network bsc deploy --tags prod\n```\n\n### Current & Desired Workflow\n\nDeployment flow of contracts:\n\n1. Make desired changes, and push to branch, creating a PR against `main` branch\n2. Ensure integration and forge tests pass for the local case (`npm run test:hardhat` and `npm run test:forge`)\n3. Once the local tests pass, redeploy the contracts to all target chains\n4. Export deployments files, and commit new deployment artifacts, and bump SDK version\n5. Merge to main, which triggers new SDK release\n\nThis is OK, but it does not enforce the testing against the pre and post deploy BSC forked node. Our ideal scenario instead\nlooks like the following:\n\n1. Make desired changes, and push to branch, creating a PR against `development` branch\n2. Ensure integration and forge tests pass for the local case & for the pre-deploy forked node case\n3. Once tests pass, redeploy the contracts to all target chains\n4. Export deployments files, and commit new deployment artifacts, and bump SDK version\n5. Merge into `development` branch\n6. Create PR from `development` into `main`\n7. Ensure tests against a **post-deploy** BSC fork works (both forge and hh-based tests). This will ensure that\n   the newly deployed contracts are both integration and unit tested.\n8. Update SDK, merge to `main`, which triggers new SDK release\n","readmeFilename":"README.md","gitHead":"dba9da17b73a7b1daeaf428383e86c56b569aeaa","bugs":{"url":"https://github.com/midas-protocol/contracts/issues"},"homepage":"https://github.com/midas-protocol/contracts#readme","_id":"@midas-capital/sdk@0.2.2","_nodeVersion":"16.15.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-RyHXSw9vbi0dN5FI8t2t1UBdQbFDOi/4Hsl9HzbGurGJ8SFaQx/oDIXhrCQHxbMyi0weoEcKOMyAl24X8pIHvw==","shasum":"31aac804bd87e1a8ceb8eba00f51a798568b4b3c","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.2.2.tgz","fileCount":251,"unpackedSize":35259147,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGz+sL+tShQ92PVA8h2fcioPTqVmsCNeZKAwQb6teucdAiAapXaOOKCYewTolL8tfR3pdE/Kdmf++Heg5Ga+1DIZWg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiejM5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrQXRAAhiwMGfnmxSlwlMV3gPl4BeG9g9LMjiXgspHdTxThOxsepGqe\r\nmuVR7qisBkwXfQGlXkqlZHsXLzqQXBSGiB80udlciewwa5J2cFM9JM/1+hYu\r\ne1UgEjv9LnXjgseQ2RBAHPlKt6bmEBNaFItYj0XwfLC2levWgcVf3d7Mo6p0\r\nRFiM2JuQ6puXnqz5q7Zk14g8eyY1lSMhgoPn5wRkJ746RQWB9KH5//1GDQol\r\n+vE67Af7dxfGSImqkxLqbKpIMuamiFUuUG/iIB+v7MPXChvEDZikcvGAi1aI\r\nqyRRdbMr4//gCQLd6JE9pZnkzsH3gwhG1dGpNVKBG4ChretLPiRRQOQaVBcR\r\nnJD6DbBme4Ls73Ag6YhmBLqHlYpd1XZmL6SPJj7PTnUNEIexYLV9OLB/gtYw\r\nbxIGlmdk1wci6i5ZYCpQR9QoYJky0WXXjMuk7HFcs+5Ij0bZKJzUzq1gzVwR\r\nodzM3gkxjc1XXOGBk7YeMTAHia3h3aORrHbdfrXOa3tTGfkUXLggeZbdJQlR\r\nO8Me6L4Uvj/PlYoSpvXyinz/wgP6R4cSnjO2T50Zwtz4phkx4WtFOuBJ2kv0\r\nrS9B9K+NIIcxeCC+cyvLFB88fYrJJdnfBrKdppFVzReEIbvAtrc0UOayMNzy\r\nbKCtI8Rs7INGSAsyOo8pMSv9BcOJIp6nLQw=\r\n=Qfu8\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.2.2_1652175673149_0.9641514234481188"},"_hasShrinkwrap":false},"0.2.3":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/contracts.git"},"version":"0.2.3","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"Main repository for Midas Capital's contracts and SDK for interacting with those.","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","scripts":{"test":"hardhat test","test:hardhat":"hardhat test --parallel","test:forge":"forge test","test:forge:bsc":"forge test --fork-url ${FORK_URL_BSC} --fork-block-number ${FORK_BLOCK_NUMBER}","test:forge:moonbeam":"forge test --fork-url https://rpc.api.moonbeam.network --fork-block-number ${FORK_BLOCK_NUMBER}","test:forge:evmostestnet":"forge test --fork-url https://eth.bd.evmos.dev:8545 --fork-block-number ${FORK_BLOCK_NUMBER}","test:bsc":"FORK_URL=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat test","export":"hardhat export --export-all ./deployments.json","build":"npm run build:forge && npm run typechain && npm run build:sdk ","build:forge":"forge build","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","clean":"hardhat clean && rm -rf ./lib ./dist ./out ./typechain","typechain":"typechain --target ethers-v5 --out-dir './typechain' 'out/*/**.json'","deploy:simulate:bsc:mainnet":"FORK_URL_BSC=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat deploy --tags simulate","deploy:bsc:mainnet":"hardhat --network bsc deploy --tags prod","prettier:sol":"prettier --write 'contracts/**/*.sol' 'contracts_forge/**/*.sol'","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'test/**/*.ts'","prettier":"npm run prettier:ts && npm run prettier:sol"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.3","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/hardhat":"^6.0.0","@types/chai":"^4.3.0","@types/mocha":"^9.1.0","@types/node":"^17.0.23","bufferutil":"^4.0.6","chai":"^4.3.6","dotenv":"^16.0.0","ethereum-waffle":"^3.4.4","ethers":"^5.6.2","hardhat":"^2.9.2","hardhat-abi-exporter":"^2.8.0","hardhat-deploy":"^0.11.4","hardhat-tracer":"^1.0.0-alpha.6","ts-node":"^10.7.0","typechain":"^8.0.0","typescript":"^4.6.3","utf-8-validate":"^5.0.9"},"dependencies":{"@keydonix/uniswap-oracle-sdk":"^1.0.7","@keydonix/uniswap-oracle-sdk-adapter":"^1.0.7","@typechain/ethers-v5":"^10.0.0","@types/bad-words":"^3.0.1","bad-words":"^3.0.4","lint-staged":"12.3.7","prettier":"2.6.1","prettier-plugin-solidity":"1.0.0-beta.19"},"types":"./dist/cjs/src/index.d.ts","readme":"# Contracts\n\nMain repository for Midas Capital's contracts and SDK for interacting with those.\n\n## Structure\n\n```text\n ┌── README.md                        <- The top-level README\n ├── .github/workflows/TestSuite.yaml <- CICD pipeline definition\n ├── .vscode                          <- IDE configs\n │\n ├── out                              <- (forge-generated, git ignored)\n │    ├── *.sol/*.json                <- All the built contracts\n │    └──  ...\n │\n ├── typechain                        <- (typechain-generated, git ignored)\n │\n ├── dist                             <- (typechain-generated, git ignored)\n │\n ├── lib                              <- git submodules with forge-based dependencies\n │    ├── flywheel-v2                 <- Tribe flywheel contracts\n │    ├── fuse-flywheel               <- Fuse flywheel contracts\n │    ├── oz-contracts-upgradeable    <- OpenZeppelin deps\n │    └──  ...                        <- other deps\n │\n ├── contracts                        <- All of our contracts\n │    ├── compound                    <- Compound interfaces\n │    ├── external                    <- External contracts we require\n │    ├── oracles                     <- Oracle contracts\n │    ├── utils                       <- Utility contracts\n │    └──  ...                        <- Main Fuse contracts\n │\n ├── deploy                           <- main hardhat deployment scripts\n ├── chainDeploy                      <- hardhat chain-specific deployment scripts\n ├── tasks                            <- hardhat scripts\n ├── src                              <- midas-sdk main folder\n ├── test                             <- chai-based tests (SDK integration tests)\n ├── deployments.json                 <- generated on \"npx hardhat export\"\n └── hardhat.config.ts                <- hardhat config\n```\n\n## Dev Workflow\n\n0. Install dependencies: npm & [foundry](https://github.com/gakonst/foundry) (forge + cast)\n\nForge dependencies\n\n```text\n>>> curl -L https://foundry.paradigm.xyz | bash\n>>> foundryup\n# ensure forge and cast are available in your $PATH\n# install submodule libraries via forge\n>>> forge install\n```\n\nNPM dependencies\n\n```text\n>>> npm install\n```\n\n### Developing Against the SDK\n\nTo develop against the SDK, artifacts and deployment files must be generated first, as they are used by the SDK.\nThis is taken care by forge\n\n```shell\n>>> npm run build\n```\n\nWill generate all the required artifacts: `typechain` files, built contracts in `out` directory, and the newly built\nSDK in `dist`. Another file that is extremely important for the correct behavior of the SDK is the\n`deployments.json` file, which contains all the deployed contract addresses and ABIs for each of the\nchains we deploy to\n\nNow, make the desired changes to the SDK. To test them, run the \"integration\" tests:\n\n```shell\n>>> npm run test:hardhat\n# with forking, see note below on forking\n>>> npm run test:bsc\n```\n\n### Developing Against the contracts\n\nNow, you make some changes to the contracts. Once statisfied:\n\n```shell\n>>> npm run build:forge\n```\n\nAnd then test the changes with forge-based tests:\n\n```shell\n>>> npm run test:forge\n# tests with forking, see note below on forking\n>>> npm run test:forge:bsc\n```\n\nAt this point, you also want to run integration tests that leverage the SDK. For that, you need to\nregenerate the required artifacts:\n\n```shell\n# create freshly compiled artifacts\n>>> npm run build\n```\n\nRedeploy the contracts locally\n\n```shell\n# deploy new contracts to localhost, and export them to the deployments.json file\n>>> npx hardhat node --tags local\n# in another console\n>>> npm run export\n# rebuild the SDK with the newly created artifacts\n>>> npm run build\n```\n\nOnce this is done, you can run the integration tests:\n\n```shell\n# Integration tests against local node\n>>> npm run test:hardhat\n```\n\n```shell\n# Integration tests against bsc fork node\n>>> npm run test:bsc\n```\n\n**NOTE**: to run tests against a BSC forked node, set the correct env variables in `.env`:\n\n```\nFORK_URL_BSC=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/mainnet/archive\n# this is well before the deployment of our contracts, so you should start with a fresh set of contracts\nFORK_BLOCK_NUMBER=14621736\nFORK_CHAIN_ID=56\n```\n\n(if these env vars are set, the tests will always use them, so make sure to comment them out if you're intending\nto run tests against a non-forked node)\n\n## Running a node for FE development or integration testing\n\nWith the `.env` set up as above:\n\n```shell\n>>> npx hardhat node --tags fork\n```\n\nor alternatively, using the live currently deployed contracts (change the `FORK_BLOCK_NUMBER` to something recent)\n\n```shell\n# no deploy is needed because contracts at those addresses already exist\n>>> npx hardhat node --tags prod --no-deploy\n```\n\nor alternatively, just run a local node without forking. Comment out all the `FORK_*` variables from the `.env` file\nand:\n\n```shell\n>>> npx hardhat node --tags prod\n```\n\n## Deploying to prod (BSC mainnet)\n\n1. Set the correct mnemonic in the .env file\n\n2. Run\n\n```\nhardhat --network bsc deploy --tags prod\n```\n\n### Current & Desired Workflow\n\nDeployment flow of contracts:\n\n1. Make desired changes, and push to branch, creating a PR against `main` branch\n2. Ensure integration and forge tests pass for the local case (`npm run test:hardhat` and `npm run test:forge`)\n3. Once the local tests pass, redeploy the contracts to all target chains\n4. Export deployments files, and commit new deployment artifacts, and bump SDK version\n5. Merge to main, which triggers new SDK release\n\nThis is OK, but it does not enforce the testing against the pre and post deploy BSC forked node. Our ideal scenario instead\nlooks like the following:\n\n1. Make desired changes, and push to branch, creating a PR against `development` branch\n2. Ensure integration and forge tests pass for the local case & for the pre-deploy forked node case\n3. Once tests pass, redeploy the contracts to all target chains\n4. Export deployments files, and commit new deployment artifacts, and bump SDK version\n5. Merge into `development` branch\n6. Create PR from `development` into `main`\n7. Ensure tests against a **post-deploy** BSC fork works (both forge and hh-based tests). This will ensure that\n   the newly deployed contracts are both integration and unit tested.\n8. Update SDK, merge to `main`, which triggers new SDK release\n","readmeFilename":"README.md","gitHead":"ca9147b0555c7f4e4c550adedd6f28a2cef0bfaf","bugs":{"url":"https://github.com/midas-protocol/contracts/issues"},"homepage":"https://github.com/midas-protocol/contracts#readme","_id":"@midas-capital/sdk@0.2.3","_nodeVersion":"16.15.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-kuxsVvgiAOaFAB0Xoh12hSaJVEeKPHaFFrxIx5MTE4dTvkKkMktQjXf9+yadSI7A50NRr0grOg2uj9EzbFJ1dA==","shasum":"49181191cd854d63fe47ce091e3e31f93332e441","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.2.3.tgz","fileCount":255,"unpackedSize":35214971,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCgolAk2LgBreYOZN3b2nN7/x/pWyXADYfQ5PyI38ptuwIgKRFVZTqQemeW7PmdvJMcQD9T5UXx8muX/25AGKhU6Dc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJie9eGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr3ZA/+LKcmDHn2RyJvvxGBwqTU4fXGWNs71iEDi70mFdFBa+DgWmHw\r\nY3Wtc3Whp96NC4pCbeUOsSrhG9dLDJPBzasGPX7x89f5SSQDD33j0LCnVr3J\r\nz0G3qxL+CNZu5Cc3/ppE3QwhmjUR1wUd9Gj+lMnUeJ57j5vo44SPnhAApFzk\r\nAG4jo3dndLNWsCcU9oitZ7her00kNo3crpCSLLVwDyqaUi7VPbB1UaMGJ0Sp\r\nUZtvqeKVoLLGDzuDOfhcr5/x/ZceY1+50mCPiMkYtPhrDk5bmmCMTYfBM8+q\r\nAKQelU9kWVDGs1OaVAVG1JZ422gAevhBy7CqcykwpC4OSpcVEJPDG6USFyNp\r\nr7AI/wRWQY+UsVm+CAGZAvv9PlwQQFmSFtviLq1z2JX8vjD9CKpm5W/vGkoB\r\n2p3wLW+Id2wHHhV8krf8F+uhDkocMPWdUVBWydIgF3HyVrM7IeCzE4v7rQNt\r\nBnep56seUn2ewulhDTYl8BqgzbuyHKRYNCPnrLbPRbm6sOMaPuke7ZCMfEBW\r\ndy1MQZOFNmDM0xejtrfvyFbUtPZgyVf++CdDVSAUFtmCtrY5nDBXl17i/hB/\r\n7IGZGOYrTf/kfsnoNO8OhvSOoq2DglbCwYZMqHUXDVMdUaow9kxrchk0lvLW\r\nMctu0I/KwHJG2HkNGoDlVKaWIA1barzjKE4=\r\n=U7gT\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.2.3_1652283270523_0.2958155948760752"},"_hasShrinkwrap":false},"0.2.4":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/contracts.git"},"version":"0.2.4","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","types":"./dist/cjs/src/index.d.ts","scripts":{"build":"npm run build:forge; npm run typechain && npm run build:sdk","build:forge":"cd lib/contracts && forge build","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","build:esm":"tsc -p tsconfig-sdk.json","build:cjs":"tsc -p tsconfig-cjs.json","compile":"hardhat compile","test":"hardhat test","test:bsc":"FORK_URL=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat test","test:forge:moonbeam":"forge test --fork-url https://rpc.api.moonbeam.network --fork-block-number ${FORK_BLOCK_NUMBER}","test:forge:evmostestnet":"forge test --fork-url https://eth.bd.evmos.dev:8545 --fork-block-number ${FORK_BLOCK_NUMBER}","export":"hardhat export --export-all ./deployments.json","clean":"rm -rf dist","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'tests/**/*.ts'","prettier":"npm run prettier:ts","typechain":"typechain --target ethers-v5 --out-dir './lib/contracts/typechain' './lib/contracts/out/*/**.json'","deploy:simulate:bsc:mainnet":"FORK_URL_BSC=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat deploy --tags simulate","deploy:bsc:mainnet":"hardhat --network bsc deploy --tags prod","forge":"forge","hardhat":"hardhat"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.3","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/ethers-v5":"^10.0.0","@typechain/hardhat":"^6.0.0","@types/bad-words":"^3.0.1","@types/chai":"^4.3.0","@types/mocha":"^9.1.0","@types/node":"^17.0.23","chai":"^4.3.6","dotenv":"^16.0.0","hardhat":"^2.9.2","hardhat-abi-exporter":"^2.8.0","hardhat-deploy":"^0.11.4","hardhat-tracer":"^1.0.0-alpha.6","lint-staged":"12.3.7","prettier":"2.6.2","prettier-plugin-solidity":"1.0.0-beta.19","ts-node":"^10.7.0","typechain":"^8.0.0","typescript":"^4.6.3"},"dependencies":{"@keydonix/uniswap-oracle-sdk":"^1.0.7","@keydonix/uniswap-oracle-sdk-adapter":"^1.0.7","bad-words":"^3.0.4","bufferutil":"^4.0.6","ethereum-waffle":"^3.4.4","ethers":"^5.6.5","utf-8-validate":"^5.0.9"},"gitHead":"76bf6b929ee623ced626a054377321aebd12c27e","bugs":{"url":"https://github.com/midas-protocol/contracts/issues"},"readme":"ERROR: No README data found!","homepage":"https://github.com/midas-protocol/contracts#readme","_id":"@midas-capital/sdk@0.2.4","_nodeVersion":"16.15.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-cHtcYxR5t9xXuSbD8uAX3IfU6OT3DP92PSyXzYHmWlPi9yICPNc+tfWHLanRtOVNAHQH9uuPTNyTKPXJgVE6cg==","shasum":"fb41e27ff094c1a27dbfb3dc74e36964a135c026","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.2.4.tgz","fileCount":338,"unpackedSize":35339941,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFtm8XMCkavwvb9Z9rCRkuYbAenqOIDj/PslzBCihCrmAiEA/dRg1nMz5WaL3tsxXiMmwgqzeAnKCJ+Az++KC7MHPCg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJig7wnACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr3zw//YkWl0K7jyFmzmavjAmKF1vzRmDR732JRiu2WCr8jA26GbkBK\r\nLG/ZszdrEqsrjCNNQ/21hg2ZH9Fj0UfNnD+v1rHA7Tzh9LaixvszEQSGQzVs\r\nRH/QHMH22Nja8dNOFwbRLLC4MKW/fjjqoFQ2pRUHoBAo3ty5Bdwv7TYbnfzr\r\nc8lC7AtzVjhRUoIzfR8weuBW0Dcz5F5usPsApHNMPf95KDyfRlCvskHrKGns\r\nmhEixkLTJJePvidvYGhVBhL61iXk/QFp3f+cXdYPJdKjxwHr0Zcpq8TIsJTg\r\nMi+ejUJ251rs3MJlsZgWmnq8HJtf9Y5dpbpJLSn15T8WmeFmQ6xST53fTo5l\r\nkD6Xtg5jJOs9ZjbseBG7gFOqC4rn3j38JF+S6BgQ94eNz7n7jJP+zwenV4OT\r\n0qZxKohdtwx47v9wDDGAcgtIEz7ixtkItwTSByb7pesSCIlGU9NrEP53FZUF\r\n7qrZPKwmE8MEd8oFGqRifnTTy30Y2WKOjnRDDCdXztvG8yvxS3I4a0t2Wt7O\r\nkSG5yABgdaHmiHSZhEAGnylCL3xn8ItGoKwsM+0o18RWprZ9JDcf7Ffe/3HI\r\ndQVA9/63wjE2up+YjSF2K/u+aGXKyQrC5kc6+mV332xVu2Z8Bo8TGJkR4EzF\r\nwtrlbsUkZV/Ml0BTje5YplIvVYYSc5tA0Zw=\r\n=6gHc\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.2.4_1652800551684_0.04053544963096689"},"_hasShrinkwrap":false},"0.2.5":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/contracts.git"},"version":"0.2.5","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","types":"./dist/cjs/src/index.d.ts","scripts":{"build":"npm run build:forge; npm run typechain && npm run build:sdk","build:forge":"cd lib/contracts && forge build","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","build:esm":"tsc -p tsconfig-sdk.json","build:cjs":"tsc -p tsconfig-cjs.json","compile":"hardhat compile","test":"hardhat test","test:bsc":"FORK_URL=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat test","test:forge:moonbeam":"forge test --fork-url https://rpc.api.moonbeam.network --fork-block-number ${FORK_BLOCK_NUMBER}","test:forge:evmostestnet":"forge test --fork-url https://eth.bd.evmos.dev:8545 --fork-block-number ${FORK_BLOCK_NUMBER}","export":"hardhat export --export-all ./deployments.json","clean":"rm -rf dist","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'tests/**/*.ts'","lint:ts":"prettier --list-different 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'tests/**/*.ts'","prettier":"npm run prettier:ts","typechain":"typechain --target ethers-v5 --out-dir './lib/contracts/typechain' './lib/contracts/out/*/**.json'","deploy:simulate:bsc:mainnet":"FORK_URL_BSC=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat deploy --tags simulate","deploy:bsc:mainnet":"hardhat --network bsc deploy --tags prod","forge":"forge","hardhat":"hardhat"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.3","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/ethers-v5":"^10.0.0","@typechain/hardhat":"^6.0.0","@types/bad-words":"^3.0.1","@types/chai":"^4.3.1","@types/mocha":"^9.1.1","@types/node":"^17.0.23","chai":"^4.3.6","dotenv":"^16.0.1","hardhat":"^2.9.5","hardhat-abi-exporter":"^2.9.0","hardhat-deploy":"^0.11.5","hardhat-tracer":"^1.0.0-alpha.6","lint-staged":"12.4.1","prettier":"2.6.2","prettier-plugin-solidity":"1.0.0-beta.19","ts-node":"^10.7.0","typechain":"^8.0.0","typescript":"^4.6.4"},"dependencies":{"@keydonix/uniswap-oracle-sdk":"^1.0.7","@keydonix/uniswap-oracle-sdk-adapter":"^1.0.7","bad-words":"^3.0.4","bufferutil":"^4.0.6","ethereum-waffle":"^3.4.4","ethers":"^5.6.6","utf-8-validate":"^5.0.9"},"gitHead":"2a6958610313d216ac28fae7e3ebecc9fa13d15c","bugs":{"url":"https://github.com/midas-protocol/contracts/issues"},"readme":"ERROR: No README data found!","homepage":"https://github.com/midas-protocol/contracts#readme","_id":"@midas-capital/sdk@0.2.5","_nodeVersion":"16.15.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-yi7zudqi5lPW0isi00y2qAdsY97es2VudJHo8I9pW6NdMQgvY/gtGl8DiymxBBay+29p8UOh4mvzj1KL3+tTKA==","shasum":"e669ae0cc707fc6f2d44399f5b8026b872c1b04d","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.2.5.tgz","fileCount":338,"unpackedSize":35431754,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCd1+nmFy+Ve4YPEx+9cc17/j8FULkV0g/p/ztxrN9+0gIhAN6Wcn34enfSJ9pfFyvLSv1ilvlcfuIE4E50DGpQ8F0G"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJii5IuACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoo4w//YK9J0I3LWqD5z6cNh+3rdPEWSraHrGrcyRwOuzPkPFMl1EHB\r\n1GtY9DPL+zJc4/G/DW4C/8fA3uK7xFagbtD+1pihW4Jkoboh/HDLcA64T5B1\r\nu37eA5OvqAfGZMj8QJjWKZvahnXVVZVW3NKpPZnxoplG+moIel3u/w+sp2MD\r\n3WeFW8jnzHdTM5VhCj3pZd6JQotizN5ZQL5gwS8lk+pc65TeYWRSM9umDGmy\r\no7yE00aPtAoGOF70YFjvXXxt6mSQgMQMYo/rFYEWEfyeRf1qAM/tiWyOF3l7\r\nkT99sYiT5C7Bis3O/W4LMNAL1Ke3uiATYYUCqj7aziTvbk95yptLCJSGmj4G\r\nUr4B5p96Im4zfJcRKaaMUQZmw+SyzgeXhmCXMiohXNl5zMUglt8Pql4MTniX\r\nLlwWXHHZUYgB0j+7ecc+iPKDGoqhwZS2uvrmaQd1KMTk9xdp/WLIdDJMHK08\r\n+aHTKEPpP2n6CRz+15AJWcapiUn7DMLKVfi3zYXr+PHrv2cK1cedDqFD5VpK\r\ni5gusf2kYOOpKVsSbtdZCycc1UbdWOZCQKHqLaHGW7/NTTQzwM088xgWm5Gu\r\nAxTMYmnsDY6icfSuJH8XMKwW8LS6m9KNhmEdDxc3f9tHVgrAr5M6TK6a6vxy\r\n0smtVz2hn+ov1wynNIjyI1/K+LHYbIq+I1c=\r\n=w+iY\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.2.5_1653314094484_0.6837938716184822"},"_hasShrinkwrap":false},"0.2.6":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/monorepo.git"},"version":"0.2.6","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","types":"./dist/cjs/src/index.d.ts","scripts":{"build":"npm run build:forge; npm run typechain && npm run build:sdk","build:forge":"cd lib/contracts && forge build","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","build:esm":"tsc -p tsconfig-sdk.json","build:cjs":"tsc -p tsconfig-cjs.json","compile":"hardhat compile","test":"hardhat test","test:bsc":"FORK_URL=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat test","test:forge":"cd lib/contracts && forge test","test:forge:moonbeam":"cd lib/contracts && forge test --fork-url https://rpc.api.moonbeam.network --fork-block-number 1058520","test:forge:evmostestnet":"cd lib/contracts && forge test --fork-url https://eth.bd.evmos.dev:8545 --fork-block-number 1217475","export":"hardhat export --export-all ./deployments.json","clean":"rm -rf dist","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'tests/**/*.ts'","lint":"eslint ./src/** -c .eslintrc.json --ext ts,json","lint-fix":"eslint ./src/** -c .eslintrc.json --fix --ext ts,json","typechain":"typechain --target ethers-v5 --out-dir './lib/contracts/typechain' './lib/contracts/out/*/**.json'","deploy:simulate:bsc:testnet":"FORK_URL_BSC=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/testnet/archive FORK_BLOCK_NUMBER= FORK_CHAIN_ID=97 hardhat deploy --tags simulate","deploy:simulate:bsc:mainnet":"FORK_URL_BSC=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat deploy --tags simulate","deploy:bsc:testnet":"hardhat --network chapel deploy --tags prod","deploy:bsc:mainnet":"hardhat --network bsc deploy --tags prod","deploy:evmos:testnet":"hardhat --network evmostestnet deploy --tags prod","deploy:moonbeam:mainnet":"hardhat --network moonbeam deploy --tags prod","forge":"forge","hardhat":"hardhat"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.3","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/ethers-v5":"^10.0.0","@typechain/hardhat":"^6.0.0","@types/bad-words":"^3.0.1","@types/chai":"^4.3.1","@types/eslint":"^8","@types/mocha":"^9.1.1","@types/node":"^17.0.23","chai":"^4.3.6","dotenv":"^16.0.1","eslint":"^8.16.0","eslint-plugin-import":"^2.26.0","eslint-plugin-prettier":"^4.0.0","hardhat":"^2.9.5","hardhat-abi-exporter":"^2.9.0","hardhat-deploy":"^0.11.5","hardhat-tracer":"^1.0.0-alpha.6","prettier":"2.6.2","prettier-plugin-solidity":"1.0.0-beta.19","ts-node":"^10.7.0","typechain":"^8.0.0","typescript":"^4.6.4"},"dependencies":{"@keydonix/uniswap-oracle-sdk":"^1.0.7","@keydonix/uniswap-oracle-sdk-adapter":"^1.0.7","bad-words":"^3.0.4","bufferutil":"^4.0.6","ethereum-waffle":"^3.4.4","ethers":"^5.6.6","utf-8-validate":"^5.0.9"},"gitHead":"1a9603129201873e5538e58ab42b0f7232c506a6","bugs":{"url":"https://github.com/midas-protocol/monorepo/issues"},"readme":"ERROR: No README data found!","homepage":"https://github.com/midas-protocol/monorepo#readme","_id":"@midas-capital/sdk@0.2.6","_nodeVersion":"16.15.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-tVQnIEJm9caMXQ6inSoUcxbo3sGD+GO3HzBn2venckiqL7VhPX3G0htzmz8WLsSgqsGI3eoaIWFPIVKlo715eA==","shasum":"ed2654a05393f075ebf464fa898ba03e612ae029","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.2.6.tgz","fileCount":338,"unpackedSize":38978233,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBx/b/YKmC8DPGYp2GJP8lUbTV4+xcDJU5SfkEy8D/rbAiAlGtFZOUaWd6cVbAHlDEFmhnttfrMGLJp41QrSTJMmKg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJijoOGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrBCw//edkj2lcBdH+QBsEe3bWB/wWd3TDiL5gfApxgfZlW3MbS7L2D\r\nkMjPKZrzQZ7rRQZUiIojeW7ShgKW5ndC51vQf8Itvuba+VxGB1zaL3jdPcs0\r\ni0sVLUYKn9mh6Sov9+uSgGulQrv01I7MZO30BsuDr6yHscKWc9uE5xauZSoI\r\nPmgCp1KbDkQqHAyzz5ycr+6oA9RLRXbzOH2spVCp5Bt+QHnJnmuBXxvfnGcy\r\nNzLv5vczdUUbWj8AGZ/WdsObjtBxwOVMOtwEOO6SAN2jyCp163BeeZYPmIvV\r\nMHtzq5PTwlXYKrVwBeCzl2Do5jSq7qDxEY8rTMDxRgO+StmEJVaJAMN7Wshf\r\nXK+WwiwvbbeOYL4o5RGEVZgFuS8PuQQvi3XFXnhWi5/7sHuGciEWrdGQM5T2\r\nieXOkSLAtcXb808URyjZxJmCwLTbdOaPTM46Cm1n3/y05OrM5u/fURB3LMH7\r\nLgFi966V72qJkuaV1h2rg5ou3CVkOi/HNyZCpwvIJ8TkTCK3RpltX/qhKp6r\r\nEO6e3P+i0/Y30tE9y+0cq16WBzxTh1NYTpTZb9q4TxguzXaMj8Qwd6qRA8ZL\r\nT+Aoq1Gsg/rJ/30+IMdM5rBpP6h9rW6psezLUT0iKph3xkigofliW2NC+HPp\r\ngxCPg8y0Qhd8AfxnBRyg+rCy+cx/lHKVGlE=\r\n=/G8C\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.2.6_1653506949815_0.6534271827227003"},"_hasShrinkwrap":false},"0.2.7":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/monorepo.git"},"version":"0.2.7","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","types":"./dist/cjs/src/index.d.ts","scripts":{"build":"npm run build:forge; npm run typechain && npm run build:sdk","build:forge":"cd lib/contracts && forge build","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","build:esm":"tsc -p tsconfig-sdk.json","build:cjs":"tsc -p tsconfig-cjs.json","compile":"hardhat compile","test":"hardhat test","test:bsc":"FORK_URL=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat test","test:forge":"cd lib/contracts && forge test","test:forge:moonbeam":"cd lib/contracts && forge test --fork-url https://rpc.api.moonbeam.network --fork-block-number 1058520","test:forge:evmostestnet":"cd lib/contracts && forge test --fork-url https://eth.bd.evmos.dev:8545 --fork-block-number 1217475","export":"hardhat export --export-all ./deployments.json","clean":"rm -rf dist","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'tests/**/*.ts'","lint":"eslint . -c .eslintrc.json --ext ts,json","lint-fix":"eslint . -c .eslintrc.json --fix --ext ts,json","typechain":"typechain --target ethers-v5 --out-dir './lib/contracts/typechain' './lib/contracts/out/*/**.json'","deploy:simulate:bsc:testnet":"FORK_URL_BSC=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/testnet/archive FORK_BLOCK_NUMBER= FORK_CHAIN_ID=97 hardhat deploy --tags simulate","deploy:simulate:bsc:mainnet":"FORK_URL_BSC=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat deploy --tags simulate","deploy:bsc:testnet":"hardhat --network chapel deploy --tags prod","deploy:bsc:mainnet":"hardhat --network bsc deploy --tags prod","deploy:evmos:testnet":"hardhat --network evmostestnet deploy --tags prod","deploy:moonbeam:mainnet":"hardhat --network moonbeam deploy --tags prod","forge":"forge","hardhat":"hardhat"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.3","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/ethers-v5":"^10.0.0","@typechain/hardhat":"^6.0.0","@types/bad-words":"^3.0.1","@types/chai":"^4.3.1","@types/eslint":"^8","@types/mocha":"^9.1.1","@types/node":"^17.0.23","chai":"^4.3.6","dotenv":"^16.0.1","eslint":"^8.16.0","eslint-plugin-import":"^2.26.0","eslint-plugin-prettier":"^4.0.0","hardhat":"^2.9.5","hardhat-abi-exporter":"^2.9.0","hardhat-deploy":"^0.11.5","hardhat-tracer":"^1.0.0-alpha.6","prettier":"2.6.2","prettier-plugin-solidity":"1.0.0-beta.19","ts-node":"^10.7.0","typechain":"^8.0.0","typescript":"^4.6.4"},"dependencies":{"@keydonix/uniswap-oracle-sdk":"^1.0.7","@keydonix/uniswap-oracle-sdk-adapter":"^1.0.7","bad-words":"^3.0.4","bufferutil":"^4.0.6","ethereum-waffle":"^3.4.4","ethers":"^5.6.6","utf-8-validate":"^5.0.9"},"gitHead":"2bb64868860406037ae3d70d660d178d94b40b28","bugs":{"url":"https://github.com/midas-protocol/monorepo/issues"},"readme":"ERROR: No README data found!","homepage":"https://github.com/midas-protocol/monorepo#readme","_id":"@midas-capital/sdk@0.2.7","_nodeVersion":"16.15.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-jYb06bduznoW5I0C2ApnxKhTqNo/jmxHYyq9Qlzdwj2hsOmG+HgnYAD87sa5Bon7LBY6+ioELOb+crIEAOPifg==","shasum":"ab8c2d93b4aef411feb8deebc99c5559c89cd5dd","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.2.7.tgz","fileCount":338,"unpackedSize":38979026,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC7Y3l7uuNoBt4ra3GqSCoiak7rWGAZ2MbL9NJXqUSFigIgR9UOr3xO+9RYy3Nw6V1ZdRJX17PmP25HG3j2QUk7OYY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJikJCMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr0+Q/9FCeUeoyzOGeV3emEK9Jlk+eHrTqMv8MyBOBCupVRr2RLDwa6\r\nwHvdYessNXeqci4+Ee2yPNdbpftBcZNfQk23yj5eKKWMw3sH1bfRAS3ajF6q\r\nu0r/5bjNrEv14yZOlZOpxEz33LrtKE3kq1OTdMMvBUGIHcW/SZ/2J5Y5Rq6/\r\nmF9RK45xAzttt4S+8AinU3wixFSZ5KBJ6Uq/aynvvJzvbtr97jWWUqPtKvbh\r\nf6dWA3vyjqU1+dsrrgibhC4weY9vSbJUcVN5vK0a1/5VM+ULpvxG5Nbe/Csh\r\npZC/jDa12xLKw7O+TQ/7IoFmLNbJcb9y2LPCngWt5VWiLzFP739cMqYHvTvX\r\nKSOrFezUjHw/Dzqk3oilSYw9v1IAiJ3P5rXtyRbQfbr2aW0F6hGOdIxzfdue\r\nBK76VQqBy6JJIIIAiSP5ZiHRjTbZG2GtuHhBaeISE1naCc036DkVPc4nDG/A\r\nupUbftNWMmUUaIjHoFiZGtaSU64q5Jq49tXi8m1U6glL0bPePzss6jPwgXKl\r\nNlmvSPLL7v11aw15hFlJZXTYEkojW6p7nSGyW4QY/ymSgRNkxLDGs2Ebc3KC\r\nSVjH3gZYeHk1vQOjB1gCoNPGlKL2qlPlbJx0P+xSxKrOiALWwPomVvUKApJu\r\nL6t74qyOQKWdH54vo7XlL3vL0TL7/7FMGXQ=\r\n=hMNx\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.2.7_1653641356300_0.3084277313638495"},"_hasShrinkwrap":false},"0.2.8":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/monorepo.git"},"version":"0.2.8","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","types":"./dist/cjs/src/index.d.ts","scripts":{"build":"npm run build:forge; npm run typechain && npm run build:sdk","build:forge":"cd lib/contracts && forge build","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","build:esm":"tsc -p tsconfig-sdk.json","build:cjs":"tsc -p tsconfig-cjs.json","compile":"hardhat compile","test":"hardhat test","test:bsc":"FORK_URL=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat test","test:forge":"cd lib/contracts && forge test","test:forge:moonbeam":"cd lib/contracts && forge test --fork-url https://rpc.api.moonbeam.network --fork-block-number 1058520","test:forge:evmostestnet":"cd lib/contracts && forge test --fork-url https://eth.bd.evmos.dev:8545 --fork-block-number 1217475","export":"hardhat export --export-all ./deployments.json","clean":"rm -rf dist","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'tests/**/*.ts'","lint":"eslint . -c .eslintrc.json --ext ts,json","lint-fix":"eslint . -c .eslintrc.json --fix --ext ts,json","typechain":"typechain --target ethers-v5 --out-dir './lib/contracts/typechain' './lib/contracts/out/*/**.json'","deploy:simulate:bsc:testnet":"FORK_URL_BSC=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/testnet/archive FORK_BLOCK_NUMBER= FORK_CHAIN_ID=97 hardhat deploy --tags simulate --network chapel","deploy:simulate:bsc:mainnet":"FORK_URL_BSC=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat deploy --tags simulate --network bsc","deploy:bsc:testnet":"hardhat --network chapel deploy --tags prod","deploy:bsc:mainnet":"hardhat --network bsc deploy --tags prod","deploy:evmos:testnet":"hardhat --network evmostestnet deploy --tags prod","deploy:moonbeam:mainnet":"hardhat --network moonbeam deploy --tags prod","forge":"forge","hardhat":"hardhat"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.3","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/ethers-v5":"^10.0.0","@typechain/hardhat":"^6.0.0","@types/bad-words":"^3.0.1","@types/chai":"^4.3.1","@types/eslint":"^8","@types/mocha":"^9.1.1","@types/node":"^17.0.23","chai":"^4.3.6","dotenv":"^16.0.1","eslint":"^8.16.0","eslint-plugin-import":"^2.26.0","eslint-plugin-prettier":"^4.0.0","hardhat":"^2.9.5","hardhat-abi-exporter":"^2.9.0","hardhat-deploy":"^0.11.5","hardhat-tracer":"^1.0.0-alpha.6","prettier":"2.6.2","prettier-plugin-solidity":"1.0.0-beta.19","ts-node":"^10.7.0","typechain":"^8.0.0","typescript":"^4.6.4"},"dependencies":{"@keydonix/uniswap-oracle-sdk":"^1.0.7","@keydonix/uniswap-oracle-sdk-adapter":"^1.0.7","bad-words":"^3.0.4","bufferutil":"^4.0.6","ethereum-waffle":"^3.4.4","ethers":"^5.6.6","utf-8-validate":"^5.0.9"},"gitHead":"0a538d6df64fd408108aad4fedd0e7251eadde43","bugs":{"url":"https://github.com/midas-protocol/monorepo/issues"},"readme":"ERROR: No README data found!","homepage":"https://github.com/midas-protocol/monorepo#readme","_id":"@midas-capital/sdk@0.2.8","_nodeVersion":"16.15.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-zCsXK95NHFlZfH0zwTWlM/govTSsgs888lNDPXVj5M+Mu6E03gNbhNR279EPCKwLQVu4E5zIPy5G5ou1AKv4gA==","shasum":"765fd8042cee19bb965502c3124011faa91b8194","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.2.8.tgz","fileCount":342,"unpackedSize":40223032,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAr0VMOHZgpZdky65wSf5iilJj5HCCA2vGspqHS66PrzAiB8KiCrgEKPM+zoeZxvE9C8PtVMXzWn3QLLthwHB3DdUw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJimKdBACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpD3w/+MHGqMnIwhEv+m6Bso8spa/gukVN6jjigFgG6c5GVcl8OYtcJ\r\nZYABp/GRBEukaTx3Kr565Las7mci+cDtMcO6gbLHe+tJznFjsYpgJA9FiCoa\r\nYlhX5gcSM+JNxMT1VDwr+R9ACF3HNdnpC6qILNmvLZHEatRy+82dRfg+iR79\r\n2boTEnO0ZmQFb4GERaCmI7ANMetF0sbxjRb8AHsVoULXcaMoVc0eIbErjPBH\r\nTpn//cmChb8q42OPCTpZ2FpOps5m3nm7iSRMMLG7ITpYziYfkMFSGrTY6X1t\r\nnt9iDmWmcCoKW1RYtowY22roALOskuvLb8ihdn/FDIKofe8gCJF0x8NC8s2U\r\noDS8pRCLcnsl2sK4LouZd8CwcNOUGBXy8RUudecUCVxP8/2PuOmmjoTuzLWN\r\n29qum6IXUs0qrPUGTGfpmL8zKfg7YPjZFrEANg5sV7cGbKuyydtbwIxoTc4b\r\nyWNhSwjRm/QC6WUUPCBg/WQDHp/ip69gSWBInWO/1u4PJqfgFUGDTPKQ1U9C\r\nEGCD9IvcTvLu6gZrj4nu8eSZivUBZ+BDiw1FuW7oTbZzHYvDCBZUBqJwhRtF\r\n3N0fKF2aWOYdDFYyi7nH4OHfJE2yWNa+jSTqqSlEiFEsuJQ729V+SrJmdFa1\r\nxddFZeBiZyz0iycjh4+Ke3wR5ircdGSMPc0=\r\n=yVE1\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.2.8_1654171457398_0.2691957368285782"},"_hasShrinkwrap":false},"0.2.9":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/monorepo.git"},"version":"0.2.9","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","types":"./dist/cjs/src/index.d.ts","scripts":{"build":"npm run build:forge; npm run typechain && npm run build:sdk","build:forge":"cd lib/contracts && forge build","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","build:esm":"tsc -p tsconfig-sdk.json","build:cjs":"tsc -p tsconfig-cjs.json","compile":"hardhat compile","test":"hardhat test","test:bsc":"FORK_URL=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat test","test:forge":"cd lib/contracts && forge test","test:forge:moonbeam":"cd lib/contracts && forge test --fork-url https://rpc.api.moonbeam.network --fork-block-number 1058520","test:forge:evmostestnet":"cd lib/contracts && forge test --fork-url https://eth.bd.evmos.dev:8545 --fork-block-number 1217475","export":"hardhat export --export-all ./deployments.json","clean":"rm -rf dist","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'tests/**/*.ts'","lint":"eslint . -c .eslintrc.json --ext ts,json","lint-fix":"eslint . -c .eslintrc.json --fix --ext ts,json","typechain":"typechain --target ethers-v5 --out-dir './lib/contracts/typechain' './lib/contracts/out/*/**.json'","deploy:simulate:bsc:testnet":"FORK_URL_BSC=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/testnet/archive FORK_BLOCK_NUMBER= FORK_CHAIN_ID=97 hardhat deploy --tags simulate --network chapel","deploy:simulate:bsc:mainnet":"FORK_URL_BSC=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat deploy --tags simulate --network bsc","deploy:bsc:testnet":"hardhat --network chapel deploy --tags prod","deploy:bsc:mainnet":"hardhat --network bsc deploy --tags prod","deploy:evmos:testnet":"hardhat --network evmostestnet deploy --tags prod","deploy:moonbeam:mainnet":"hardhat --network moonbeam deploy --tags prod","forge":"forge","hardhat":"hardhat"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.3","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/ethers-v5":"^10.0.0","@typechain/hardhat":"^6.0.0","@types/bad-words":"^3.0.1","@types/chai":"^4.3.1","@types/eslint":"^8","@types/mocha":"^9.1.1","@types/node":"^17.0.23","chai":"^4.3.6","dotenv":"^16.0.1","eslint":"^8.16.0","eslint-plugin-import":"^2.26.0","eslint-plugin-prettier":"^4.0.0","hardhat":"^2.9.5","hardhat-abi-exporter":"^2.9.0","hardhat-deploy":"^0.11.5","hardhat-tracer":"^1.0.0-alpha.6","prettier":"2.6.2","prettier-plugin-solidity":"1.0.0-beta.19","ts-node":"^10.7.0","typechain":"^8.0.0","typescript":"^4.6.4"},"dependencies":{"@keydonix/uniswap-oracle-sdk":"^1.0.7","@keydonix/uniswap-oracle-sdk-adapter":"^1.0.7","bad-words":"^3.0.4","bufferutil":"^4.0.6","ethereum-waffle":"^3.4.4","ethers":"^5.6.6","utf-8-validate":"^5.0.9"},"gitHead":"bc3149f1c05874e9b8e2de5dfb220aa5c5e50c46","bugs":{"url":"https://github.com/midas-protocol/monorepo/issues"},"readme":"ERROR: No README data found!","homepage":"https://github.com/midas-protocol/monorepo#readme","_id":"@midas-capital/sdk@0.2.9","_nodeVersion":"16.15.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-uDztx+t9neNVJv+2dzw738mUhs1wi2ZWDRLpccew1vxH4Nkwzx8cDhQFbRo86lHH7fRIsymlIimGJCWwNsGktg==","shasum":"d2c79162e1d11249c5a5ecb2cddceb5f19dae600","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.2.9.tgz","fileCount":342,"unpackedSize":40219575,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCwOnd53urtyFjTumie1hBJTAIk7wKyL7n8mMFBNvyTywIgdf+0UNMs6+N7rJ0FdYMYWAuA0vc1HOq2UPA3NNtMC9c="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJim43QACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmphoRAAopZwLxtNYtOVdNaseacPpvPwXJ/xTzsj93VhSJ6pV7OYE06u\r\nQpz88GykbofKtfdoJbIEY6/WHtPd5xy1Kevkx0hsdrOfq2QF71rSov1E099m\r\nF1bfD/vIZmjB0x/yfoiT7x5ZsLlfwzu2sg0wbxY5XY6VoqXIWk7f5mN3RYKM\r\ns0D40ji/itr61IUPDmJ040m8zIVXqSvYGF2h8tdJE02XgUZqHZgyLG8XaUDT\r\nqxCIf1olcRD7k0ixFZVMi21kdK86SUEz3OVdbruUFZr/HMNfFxVcTij+VGof\r\nT9QTZTft5I+7V/2+OoTb8qCZwOiaxGBRdY+hX0pXZdv/J7V0h9rOVIoyr6tO\r\nWf2OL6QuSmnTG7UrhuBKuWKNGEmwn2MCiUNMy6XYPgZeYB3mOTi4/igESv5+\r\nF4VoGoOUisqcEh1/yCSd3xRW/S3sLNvo8cNPCgsqCRRw5VUt/vpgXrxT3cSG\r\nwYeIKMh1zm+bsUhZQ+nUf8Jdwj+sFmCeZKuRSe00hyMHNNEsZEwdzRtWiY9h\r\nTHmCtCkqLt/bMzUsVxtIo0jyp4CzF+ZXWeIy0ar2R+xyq2zwU9hm1mWAuOPg\r\n/+W/vKVpjHskPxTsO+pBAk7xV1MBZpNaUkCtlm7lvHEP7q/WNnXCZJK2/kb7\r\ng1VlvhoNmZ+mhA6q8aZu8puxSJ21t23LeHk=\r\n=H/u5\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.2.9_1654361552530_0.815170841110036"},"_hasShrinkwrap":false},"0.2.10":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/monorepo.git"},"version":"0.2.10","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","types":"./dist/cjs/src/index.d.ts","scripts":{"build":"npm run build:forge && npm run typechain && npm run build:sdk","build:forge":"cd lib/contracts && forge install && forge build","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","build:esm":"tsc -p tsconfig-sdk.json","build:cjs":"tsc -p tsconfig-cjs.json","compile":"hardhat compile","setup":"cd lib/contracts && forge build","test:mocha":"nyc ts-mocha --require 'tests/new/globalTestHook.ts' --check-leaks --exit --timeout 60000 'tests/new/**/*.spec.ts'","test":"hardhat test --parallel","test:bsc":"FORK_URL=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat test","test:forge":"cd lib/contracts && forge test","test:forge:moonbeam":"cd lib/contracts && forge test --fork-url https://rpc.api.moonbeam.network --fork-block-number 1058520","test:forge:evmostestnet":"cd lib/contracts && forge test --fork-url https://eth.bd.evmos.dev:8545 --fork-block-number 1217475","export":"hardhat export --export-all ./deployments.json","clean":"rm -rf dist","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'tests/**/*.ts'","lint":"eslint . -c .eslintrc.json --ext ts,json","lint-fix":"eslint . -c .eslintrc.json --fix --ext ts,json","typechain":"typechain --target ethers-v5 --out-dir './lib/contracts/typechain' './lib/contracts/out/*/**.json'","deploy:simulate:bsc:testnet":"FORK_URL_BSC=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/testnet/archive FORK_BLOCK_NUMBER= FORK_CHAIN_ID=97 hardhat deploy --tags simulate --network chapel","deploy:simulate:bsc:mainnet":"FORK_URL_BSC=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat deploy --tags simulate --network bsc","deploy:bsc:testnet":"hardhat --network chapel deploy --tags prod","deploy:bsc:mainnet":"hardhat --network bsc deploy --tags prod","deploy:evmos:testnet":"hardhat --network evmostestnet deploy --tags prod","deploy:moonbeam:mainnet":"hardhat --network moonbeam deploy --tags prod","forge":"forge","hardhat":"hardhat"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.3","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/ethers-v5":"^10.0.0","@typechain/hardhat":"^6.0.0","@types/bad-words":"^3.0.1","@types/chai":"^4.3.1","@types/chai-as-promised":"^7","@types/chai-subset":"^1","@types/eslint":"^8","@types/mocha":"^9.1.1","@types/node":"^17.0.23","@types/sinon-chai":"^3","chai":"^4.3.6","chai-as-promised":"^7.1.1","chai-subset":"^1.6.0","dotenv":"^16.0.1","eslint":"^8.16.0","eslint-plugin-import":"^2.26.0","eslint-plugin-prettier":"^4.0.0","hardhat":"^2.9.5","hardhat-abi-exporter":"^2.9.0","hardhat-deploy":"^0.11.5","hardhat-tracer":"^1.0.0-alpha.6","lint-staged":"12.4.1","mocha":"^10.0.0","nyc":"^15.1.0","prettier":"2.6.2","prettier-plugin-solidity":"1.0.0-beta.19","sinon":"^14.0.0","sinon-chai":"^3.7.0","ts-mocha":"^10.0.0","ts-node":"^10.7.0","typechain":"^8.0.0","typescript":"^4.6.4"},"dependencies":{"@keydonix/uniswap-oracle-sdk":"^1.0.7","@keydonix/uniswap-oracle-sdk-adapter":"^1.0.7","bad-words":"^3.0.4","bufferutil":"^4.0.6","ethereum-waffle":"^3.4.4","ethers":"^5.6.6","utf-8-validate":"^5.0.9"},"gitHead":"8d65da7e33fa4416b66de5e1e9d04d300e55dc66","bugs":{"url":"https://github.com/midas-protocol/monorepo/issues"},"readme":"ERROR: No README data found!","homepage":"https://github.com/midas-protocol/monorepo#readme","_id":"@midas-capital/sdk@0.2.10","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-ZtwZRdemPbJV4naP+Tpo5fcKYhD++6qypqtcPkhZDlAZhq9FBRUNQzeK+9RvyDdSCNTSmC+d+uTTZWy0NS5JvA==","shasum":"fbf2b2c603f7aa9fb62d40e1da0067c6522b75a7","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.2.10.tgz","fileCount":346,"unpackedSize":40360179,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCNiNeZ7sJM01zmUb7qOrLuE/HRFGBT1rBHiybokwWK2wIgaALgI4o0uW3fSu/wX2+/A1zyiXL+VCaDpQ8y7467dG8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiqIq+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo6txAAlixN4bPHrNvXY0hsokMb6G3B/Mkq9Wa0kTydSUyV2s4SQM5E\r\nfGM4DupdePVPYVzZpfh0J58w+uTXUY/x6D3kKZjjwIAX00l4HI9gdBysJ6N4\r\nq+6DD751FVLiIHl3lwmb1rCb37674w963w1wKz1VL1/RERrEs7NKbSRbN7cs\r\nnx93JCdDqBiwB1MK4r3dWPjouYlVkDAQLgj/PJgntIu+rHjfmrDahbPF5e5u\r\n3Bcci51VWEeuLTIKsriPUiDOt2I/ERUXi6F23NWrCSS9bmapEnUCLP/0pNet\r\nnaoLiaSlzlk94EI5VJFTSucBtmBd2kJHJaed7YF7r16EfDSwLCUss5J2lTER\r\nQz2Ub8zvxRBKkgIrVOwUzuBb8FHbs2Dl8DjQfVxmZzXoqYITQSbVx2bczC+W\r\nI3V0ZgKA1XGMtAE8sx9YktM+DbgXroyKuRyXmCmGK1lgzZj9rESjHFq4XZQb\r\nG3Sh0c9Ivx6oqyfruJdBfr15U9twQW999DWmFkUTe6Rp/RCsy8FenAf4zSrm\r\nh0Hr5LB9KrbEKS0mCWBCtD1A4pMkMY8EWf3ADfi55/9JpE//COBbcnT5kkH+\r\nq+i3/2mY/AkNCZg5KTwbQ3/k4pghvT8aDoSPvUBW+TdeQ+vNZeY5R78aiDSN\r\nDzUQTQO+rao92cwmB8F06uh76sJH62I3a0w=\r\n=0yzS\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.2.10_1655212734078_0.291281893169139"},"_hasShrinkwrap":false},"0.2.12":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/monorepo.git"},"version":"0.2.12","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","types":"./dist/cjs/src/index.d.ts","scripts":{"build":"npm run build:forge && npm run typechain && npm run build:sdk","build:forge":"cd lib/contracts && forge install && forge build","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","build:esm":"tsc -p tsconfig-sdk.json","build:cjs":"tsc -p tsconfig-cjs.json","compile":"hardhat compile","setup":"cd lib/contracts && forge build","test:mocha":"nyc ts-mocha --require 'tests/new/globalTestHook.ts' --check-leaks --exit --timeout 60000 'tests/new/**/*.spec.ts'","test":"hardhat test --parallel","test:bsc":"FORK_URL=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat test","test:forge":"cd lib/contracts && forge test","test:forge:moonbeam":"cd lib/contracts && forge test --fork-url https://rpc.api.moonbeam.network --fork-block-number 1058520","test:forge:evmostestnet":"cd lib/contracts && forge test --fork-url https://eth.bd.evmos.dev:8545 --fork-block-number 1217475","export":"hardhat export --export-all ./deployments.json","clean":"rm -rf dist","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'tests/**/*.ts'","lint":"eslint . -c .eslintrc.json --ext ts,json","lint-fix":"eslint . -c .eslintrc.json --fix --ext ts,json","typechain":"typechain --target ethers-v5 --out-dir './lib/contracts/typechain' './lib/contracts/out/*/**.json'","deploy:simulate:bsc:testnet":"FORK_URL_BSC=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/testnet/archive FORK_BLOCK_NUMBER= FORK_CHAIN_ID=97 hardhat node --tags simulate","deploy:simulate:bsc:mainnet":"FORK_URL_BSC=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/mainnet/archive FORK_BLOCK_NUMBER= FORK_CHAIN_ID=56 hardhat node --tags simulate","deploy:bsc:testnet":"hardhat --network chapel deploy --tags prod","deploy:bsc:mainnet":"hardhat --network bsc deploy --tags prod","deploy:evmos:testnet":"hardhat --network evmostestnet deploy --tags prod","deploy:moonbeam:mainnet":"hardhat --network moonbeam deploy --tags prod","forge":"forge","hardhat":"hardhat"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.3","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/ethers-v5":"^10.1.0","@typechain/hardhat":"^6.1.2","@types/bad-words":"^3.0.1","@types/chai":"^4.3.1","@types/chai-as-promised":"^7","@types/chai-subset":"^1","@types/eslint":"^8.4.3","@types/mocha":"^9.1.1","@types/node":"^17.0.23","@types/sinon-chai":"^3","chai":"^4.3.6","chai-as-promised":"^7.1.1","chai-subset":"^1.6.0","dotenv":"^16.0.1","eslint":"^8.18.0","eslint-plugin-import":"^2.26.0","eslint-plugin-prettier":"^4.0.0","hardhat":"^2.9.9","hardhat-abi-exporter":"^2.9.0","hardhat-deploy":"^0.11.5","hardhat-tracer":"^1.0.0-alpha.6","lint-staged":"12.4.1","mocha":"^10.0.0","nyc":"^15.1.0","prettier":"2.7.1","prettier-plugin-solidity":"1.0.0-beta.19","sinon":"^14.0.0","sinon-chai":"^3.7.0","ts-mocha":"^10.0.0","ts-node":"^10.7.0","typechain":"^8.0.0","typescript":"^4.6.4"},"dependencies":{"@keydonix/uniswap-oracle-sdk":"^1.0.7","@keydonix/uniswap-oracle-sdk-adapter":"^1.0.7","bad-words":"^3.0.4","bufferutil":"^4.0.6","ethereum-waffle":"^3.4.4","ethers":"^5.6.9","utf-8-validate":"^5.0.9"},"gitHead":"21599275eed5e73d01824327dbebd818bb9c146c","bugs":{"url":"https://github.com/midas-protocol/monorepo/issues"},"readme":"ERROR: No README data found!","homepage":"https://github.com/midas-protocol/monorepo#readme","_id":"@midas-capital/sdk@0.2.12","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-RY3LShc8M3KXHGjJsEstdILan3wwy/UjRjpGzMq30CvH67/tB5TKpF9pRmyHQjcqHjan0EF7h3QPPNlRZrtOrA==","shasum":"4ef431bada3384c4267fdc928e71438049aa9970","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.2.12.tgz","fileCount":356,"unpackedSize":43291091,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCI7gqVmJYnmXbErJFrKxkMX+6dbiaUSPEYljOCFe9amgIgFtJi6PEhwzyWQDJ/IML4xX+vBvy2ImL2S2Hobu8NrhM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJisJdjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoKpg//XTfPcQU3Q4QsK85m9o9XoiNgFI+JBoHivnao8iCFTPJYqFMR\r\nUj+0nNUnFUkuoCvQuJTWbIR7ovAHWCU0cs5pbMHOWzTuAxg0kO03cnlvx84r\r\nJMIH0ecqcDsF8LrM9HOEpL1GY0ZThyLfNm8BJ0ffoh4gDxRAhPewKsD28Pw0\r\n0R/2fzWa+adVCxUdfDTyJEYZETw81eCz3DFhEfsrpZIjCp8o0DTkAFgeqbuy\r\nWxXe2f6ndOevtBWiMqZO6zlrIClEwO2ymRHQztv+UEYl8yc+ryK7bQOWjC98\r\nxWVkcxhvmWBx40NUpJ8taOOzc2UxTGd40Yk9yiy6+R6I98P2wpWzNw/qf9F1\r\nH7WUjgla1Jqfs7PXr5y2hQrOiAIJYrE0mWndSjo4pnj8pfBVJMFKRs11pO1U\r\nI+7FdHanK2b1o3xbPsA2ZCTinzGRZSTTW1STNe7sIu+VUaTcGbd/aDr/bzT1\r\naifzJugkJCZ6+Am/kXKEfUYF8tWuzlhty6Er2qH4MFMmcYUbRplXGdKKOhmM\r\n6QlvdyVXK890BakJes6i5rlsFiT8SdqVgFlML2K3Z66ZN1ijfdlUF3bXVfUp\r\n5XLyy7SCzvf8c9Td3v3IZvcL0DbJVcEqkjhMvbTajeEq22F2tZasmhc7K5DR\r\nY1vkV5tbl4PdCHf5zoFsvBs8QKZ5p3c3NBM=\r\n=Fe2M\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.2.12_1655740258922_0.8570068343931094"},"_hasShrinkwrap":false},"0.2.11":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/monorepo.git"},"version":"0.2.11","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","types":"./dist/cjs/src/index.d.ts","scripts":{"build":"npm run build:forge && npm run typechain && npm run build:sdk","build:forge":"cd lib/contracts && forge install && forge build","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","build:esm":"tsc -p tsconfig-sdk.json","build:cjs":"tsc -p tsconfig-cjs.json","compile":"hardhat compile","setup":"cd lib/contracts && forge build","test:mocha":"nyc ts-mocha --require 'tests-mocha/globalTestHook.ts' --check-leaks --exit --timeout 60000 'tests-mocha/**/*.spec.ts'","test":"hardhat test --parallel","test:bsc":"FORK_URL=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat test","test:forge":"cd lib/contracts && forge test","test:forge:moonbeam":"cd lib/contracts && forge test --fork-url https://rpc.api.moonbeam.network --fork-block-number 1058520","test:forge:evmostestnet":"cd lib/contracts && forge test --fork-url https://eth.bd.evmos.dev:8545 --fork-block-number 1217475","export":"hardhat export --export-all ./deployments.json","clean":"rm -rf dist","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'tests/**/*.ts'","lint":"eslint . -c .eslintrc.json --ext ts,json","lint-fix":"eslint . -c .eslintrc.json --fix --ext ts,json","typechain":"typechain --target ethers-v5 --out-dir './lib/contracts/typechain' './lib/contracts/out/*/**.json'","deploy:simulate:bsc:testnet":"FORK_URL_BSC=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/testnet/archive FORK_BLOCK_NUMBER= FORK_CHAIN_ID=97 hardhat node --tags simulate","deploy:simulate:bsc:mainnet":"FORK_URL_BSC=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/mainnet/archive FORK_BLOCK_NUMBER= FORK_CHAIN_ID=56 hardhat node --tags simulate","deploy:bsc:testnet":"hardhat --network chapel deploy --tags prod","deploy:bsc:mainnet":"hardhat --network bsc deploy --tags prod","deploy:evmos:testnet":"hardhat --network evmostestnet deploy --tags prod","deploy:moonbeam:mainnet":"hardhat --network moonbeam deploy --tags prod","forge":"forge","hardhat":"hardhat"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.3","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/ethers-v5":"^10.1.0","@typechain/hardhat":"^6.1.2","@types/bad-words":"^3.0.1","@types/chai":"^4.3.1","@types/chai-as-promised":"^7","@types/chai-subset":"^1","@types/eslint":"^8.4.3","@types/mocha":"^9.1.1","@types/node":"^17.0.23","@types/sinon-chai":"^3","chai":"^4.3.6","chai-as-promised":"^7.1.1","chai-subset":"^1.6.0","dotenv":"^16.0.1","eslint":"^8.18.0","eslint-plugin-import":"^2.26.0","eslint-plugin-prettier":"^4.0.0","hardhat":"^2.9.9","hardhat-abi-exporter":"^2.9.0","hardhat-deploy":"^0.11.5","hardhat-tracer":"^1.0.0-alpha.6","lint-staged":"12.4.1","mocha":"^10.0.0","nyc":"^15.1.0","prettier":"2.7.1","prettier-plugin-solidity":"1.0.0-beta.19","sinon":"^14.0.0","sinon-chai":"^3.7.0","ts-mocha":"^10.0.0","ts-node":"^10.7.0","typechain":"^8.0.0","typescript":"^4.6.4"},"dependencies":{"@keydonix/uniswap-oracle-sdk":"^1.0.7","@keydonix/uniswap-oracle-sdk-adapter":"^1.0.7","bad-words":"^3.0.4","bufferutil":"^4.0.6","ethereum-waffle":"^3.4.4","ethers":"^5.6.9","utf-8-validate":"^5.0.9"},"gitHead":"491ff9343e0324643a66d82fa44ce388f24a142f","bugs":{"url":"https://github.com/midas-protocol/monorepo/issues"},"readme":"ERROR: No README data found!","homepage":"https://github.com/midas-protocol/monorepo#readme","_id":"@midas-capital/sdk@0.2.11","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-oOVI8aTZNdKcBxpgBQaR3amA+1aYDNUWdjXJaK1IxU6AdesDsmrsnjYOzLWxSD5QrHoM20j86WSmE2RHFX6S0A==","shasum":"82c9678fefc1d947402944fdf1a753cff012bcfc","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.2.11.tgz","fileCount":360,"unpackedSize":39491395,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDr06QMSZ/5rF2ZpvFPCPQMOevzWtQwLPMxMrOz/0Dt3wIgRbYcnjhDNNt9t4sVE2r+Lx6YYZ4lgKfkudff6nSxsIk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJitAIFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr5DxAAhF7YIye4jYZOa97ONCMoBmcx9yD3WWZfGDk4RO7czd82zlZ0\r\nAHxIZdb5F5ozwwwFBlMW6bhx4SxoOee8QSFEfGCKQ3xRpiLlPv4W556lVqhA\r\nv4S8LT3PwnkD0+t5RsWhIxwNIp/aCAddJv7AkDgE3P9EUvuepypl2b5ajROt\r\nDZXKVCfNkMuM552Fp61MQ91D0YbfZCvEvlqi2X8fIVTbXj4F/FRSuBv7WpGM\r\nVHNZs2utVI0G5VYoBLKKWWukAu4PyiW2xko6d5ePxv85trt4dopJF/dfpV/r\r\nO222J76rcAn/V3RHDkqxbFswT2Dihkee13+GzyFtQFugfyf7tSmNPwfTTIgy\r\nEN+/HHkmwDxlOi24PYv71KnUrUae1eY1cO+hu/8NgHkHRrHW65QtTls2fpqT\r\nQnrQQryZ+IyO6yv4wT+vJ03GvlxCjfsFVnWesvEaL5WyLqt4qsA1pBF88kTd\r\nV6cU670xW5Ue2HWUm2/k6u/KVd42MrY+k42UBQx4LKEDiN4F1VrfOBb/qYCx\r\nSODI/iIlpvofXbuyrc+uZBmZfwHnBUH3bd1K6yHjCEGmNEluJZATW5fsgPYE\r\nmCqanyY7CPJcqRERvSFG3BtMRK4qGR6kKzQwoVJP6y+UmIyV4i+UUYIfUfPv\r\nUjSNWYuwdAodx0GzP4MPSVgfCRHGyRW9ByA=\r\n=6Cib\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.2.11_1655964165352_0.4115875667360396"},"_hasShrinkwrap":false},"0.2.13":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/monorepo.git"},"version":"0.2.13","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","types":"./dist/cjs/src/index.d.ts","scripts":{"build":"npm run build:forge && npm run typechain && npm run build:sdk","build:forge":"cd lib/contracts && forge install && forge build","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","build:esm":"tsc -p tsconfig-sdk.json","build:cjs":"tsc -p tsconfig-cjs.json","compile":"hardhat compile","setup":"cd lib/contracts && forge build","test:mocha":"nyc ts-mocha --require 'tests-mocha/globalTestHook.ts' --check-leaks --exit --timeout 60000 'tests-mocha/**/*.spec.ts'","test":"hardhat test --parallel","test:bsc":"FORK_URL=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat test","test:forge":"cd lib/contracts && forge test","test:forge:moonbeam":"cd lib/contracts && forge test --fork-url https://rpc.api.moonbeam.network --fork-block-number 1058520","test:forge:evmostestnet":"cd lib/contracts && forge test --fork-url https://eth.bd.evmos.dev:8545 --fork-block-number 1217475","export":"hardhat export --export-all ./deployments.json","clean":"rm -rf dist","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'tests/**/*.ts'","lint":"eslint . -c .eslintrc.json --ext ts,json","lint-fix":"eslint . -c .eslintrc.json --fix --ext ts,json","typechain":"typechain --target ethers-v5 --out-dir './lib/contracts/typechain' './lib/contracts/out/*/**.json'","deploy:simulate:bsc:testnet":"FORK_URL_BSC=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/testnet/archive FORK_BLOCK_NUMBER= FORK_CHAIN_ID=97 hardhat node --tags simulate","deploy:simulate:bsc:mainnet":"FORK_URL_BSC=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/mainnet/archive FORK_BLOCK_NUMBER= FORK_CHAIN_ID=56 hardhat node --tags simulate","deploy:bsc:testnet":"hardhat --network chapel deploy --tags prod","deploy:bsc:mainnet":"hardhat --network bsc deploy --tags prod","deploy:evmos:testnet":"hardhat --network evmostestnet deploy --tags prod","deploy:moonbeam:mainnet":"hardhat --network moonbeam deploy --tags prod","forge":"forge","hardhat":"hardhat"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.3","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/ethers-v5":"^10.1.0","@typechain/hardhat":"^6.1.2","@types/bad-words":"^3.0.1","@types/chai":"^4.3.1","@types/chai-as-promised":"^7","@types/chai-subset":"^1","@types/eslint":"^8.4.3","@types/mocha":"^9.1.1","@types/node":"^18.0.0","@types/sinon-chai":"^3","chai":"^4.3.6","chai-as-promised":"^7.1.1","chai-subset":"^1.6.0","dotenv":"^16.0.1","eslint":"^8.18.0","eslint-plugin-import":"^2.26.0","eslint-plugin-prettier":"^4.0.0","hardhat":"^2.9.9","hardhat-abi-exporter":"^2.9.0","hardhat-deploy":"^0.11.5","hardhat-tracer":"^1.0.0-alpha.6","lint-staged":"12.4.1","mocha":"^10.0.0","nyc":"^15.1.0","prettier":"2.7.1","prettier-plugin-solidity":"1.0.0-beta.19","sinon":"^14.0.0","sinon-chai":"^3.7.0","ts-mocha":"^10.0.0","ts-node":"^10.8.1","typechain":"^8.1.0","typescript":"^4.7.4"},"dependencies":{"@keydonix/uniswap-oracle-sdk":"^1.0.7","@keydonix/uniswap-oracle-sdk-adapter":"^1.0.7","bad-words":"^3.0.4","bufferutil":"^4.0.6","ethereum-waffle":"^3.4.4","ethers":"^5.6.9","utf-8-validate":"^5.0.9"},"gitHead":"6f90216dbcbd2ab257b6a409c6afc7957dcc81b4","bugs":{"url":"https://github.com/midas-protocol/monorepo/issues"},"readme":"ERROR: No README data found!","homepage":"https://github.com/midas-protocol/monorepo#readme","_id":"@midas-capital/sdk@0.2.13","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-prBh6+bkICebUyrHqg/1T01W0xyT7JqL1OXfLsZYB97UPIunvSa9DL/xuMEydY3A58oaCwAaHXwk5O68v1/MQg==","shasum":"54513e7208f3847c3d985514327c0397ebc6a87c","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.2.13.tgz","fileCount":356,"unpackedSize":39699068,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCKwFzw3gbLVzdcPG08pSjQCjd9Em7bZZ8ZYTWokXB1xAIgRxdqw4XDVU+a+GmVQ2qK70UBYsf16b5QyVCSJey3NCM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJivtvMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpmwQ//bs1o/m6D9L3ZQM/tOrTdxqV4Wx6vTARWwhxeWUS6qyHV8rwU\r\nI9c5v1v8PX3zK5M7NJ2BMRHyMBSuJr0QU+1XbTSlm3+XekgMr95/PE4rxZIX\r\nZ3RZLysR184Tuj/3RMsMINL6mHDaLLuov4gxtBI13wm9MXXUKsuooxDTpoJ4\r\nHEztYcyB4e946A7mtbEcoKOtEoIWZNom+Xa/uGjDEtFozmSSJ8TnzU6LKTVv\r\nBfl0ROy+St4hllaZyLZ1oTSBO9+Oj1SBmHjQq6V1RehY7Sqp+6teaYBtZob3\r\nImjA3Vz87f9K4RujMytjdid8awi0qPs0nLcHoHbKR24XocG0NmaHBpHvzwFy\r\n+zC1b2gRT6zYnifIinxzgsox1N1sXcmWaZPwYsyiBHtcuejvulqZteQ9Xci3\r\nxIDgoMfOuVnxApoo3BmAwFMXo1GhnvFNZb6IDGz55qylkMxnLM6cqG2+dQpW\r\nElYW9afjFih8KRClDgQDT1HQIBKT1gjpyPXgHQxIWu8kfHhkLrWdmqR4J6pJ\r\nfRxqj5eEZpT2v+A0P7coprNEG69rLetpPkN7jI9EMyjMn/YGB11b8JWuD7Gb\r\nR2pXRljDHSW87swBw7CJidq+g79GYJkSQAk5eA0vOqAMK3U20yxSiIEKTdS+\r\naWu9yQswCV51eP85A6G9k36DRKTp9r4Q7Vw=\r\n=ymBw\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.2.13_1656675276157_0.7833978023938473"},"_hasShrinkwrap":false},"0.2.14":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/monorepo.git"},"version":"0.2.14","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","types":"./dist/cjs/src/index.d.ts","scripts":{"build":"npm run build:forge && npm run typechain && npm run build:sdk","build:forge":"cd lib/contracts && forge install && forge build","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","build:esm":"tsc -p tsconfig-sdk.json","build:cjs":"tsc -p tsconfig-cjs.json","compile":"hardhat compile","setup":"cd lib/contracts && forge build","test:mocha":"nyc ts-mocha --require 'tests-mocha/globalTestHook.ts' --check-leaks --exit --timeout 60000 'tests-mocha/**/*.spec.ts'","test":"hardhat test --parallel","test:bsc":"FORK_URL=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat test","test:forge":"cd lib/contracts && forge test","test:forge:moonbeam":"cd lib/contracts && forge test --fork-url https://rpc.api.moonbeam.network --fork-block-number 1058520","test:forge:evmostestnet":"cd lib/contracts && forge test --fork-url https://eth.bd.evmos.dev:8545 --fork-block-number 1217475","export":"hardhat export --export-all ./deployments.json","clean":"rm -rf dist","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'tests/**/*.ts'","lint":"eslint . -c .eslintrc.json --ext ts,json","lint-fix":"eslint . -c .eslintrc.json --fix --ext ts,json","typechain":"typechain --target ethers-v5 --out-dir './lib/contracts/typechain' './lib/contracts/out/*/**.json'","deploy:simulate:bsc:testnet":"FORK_URL_BSC=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/testnet/archive FORK_BLOCK_NUMBER= FORK_CHAIN_ID=97 hardhat node --tags simulate","deploy:simulate:bsc:mainnet":"FORK_URL_BSC=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/mainnet/archive FORK_BLOCK_NUMBER= FORK_CHAIN_ID=56 hardhat node --tags simulate","deploy:bsc:testnet":"hardhat --network chapel deploy --tags prod","deploy:bsc:mainnet":"hardhat --network bsc deploy --tags prod","deploy:evmos:testnet":"hardhat --network evmostestnet deploy --tags prod","deploy:moonbeam:mainnet":"hardhat --network moonbeam deploy --tags prod","forge":"forge","hardhat":"hardhat"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.3","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/ethers-v5":"^10.1.0","@typechain/hardhat":"^6.1.2","@types/bad-words":"^3.0.1","@types/chai":"^4.3.1","@types/chai-as-promised":"^7","@types/chai-subset":"^1","@types/eslint":"^8.4.3","@types/mocha":"^9.1.1","@types/node":"^18.0.0","@types/sinon-chai":"^3","chai":"^4.3.6","chai-as-promised":"^7.1.1","chai-subset":"^1.6.0","dotenv":"^16.0.1","eslint":"^8.18.0","eslint-plugin-import":"^2.26.0","eslint-plugin-prettier":"^4.0.0","hardhat":"^2.9.9","hardhat-abi-exporter":"^2.9.0","hardhat-deploy":"^0.11.5","hardhat-tracer":"^1.0.0-alpha.6","lint-staged":"12.4.1","mocha":"^10.0.0","nyc":"^15.1.0","prettier":"2.7.1","prettier-plugin-solidity":"1.0.0-beta.19","sinon":"^14.0.0","sinon-chai":"^3.7.0","ts-mocha":"^10.0.0","ts-node":"^10.8.1","typechain":"^8.1.0","typescript":"^4.7.4"},"dependencies":{"@keydonix/uniswap-oracle-sdk":"^1.0.7","@keydonix/uniswap-oracle-sdk-adapter":"^1.0.7","bad-words":"^3.0.4","bufferutil":"^4.0.6","ethereum-waffle":"^3.4.4","ethers":"^5.6.9","utf-8-validate":"^5.0.9"},"gitHead":"e5becac4b2d1477ef497025df8266cbcb44a7d9e","bugs":{"url":"https://github.com/midas-protocol/monorepo/issues"},"readme":"ERROR: No README data found!","homepage":"https://github.com/midas-protocol/monorepo#readme","_id":"@midas-capital/sdk@0.2.14","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-OMLS1J6EkyzbCb0+/6Kl4ynRzQwfSlwWtBYJoiqI4mysDOSguluknp9Ge/EoEQ58qGcxcPCftviqOe/sUDijug==","shasum":"918c64423fa11025b1fc303ce55295a2d6c57a24","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.2.14.tgz","fileCount":356,"unpackedSize":40540196,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGIbQQkiGljBEno71NWmMEykuHU5QPC4aDP37Y8wSKNtAiAHLjCJGABGjXIFYznwKHs8q2v6tPo9EiC0B6MoxEPSGA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJixCG7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpHzw/8DrbKMa3fJQTqZPV6C+qkv49hjmrU8qTKVfwjBswZdz0QCKS1\r\nfBBxGB6RRJ/7boDmp/sihHQjQ0t43E5PtZ/k3CrGtE+P6kthrdOresHlc9Qj\r\nw3jWEl7uyNJ6k+xqz/IHv0l8/5FbUs8QSgUpxkgR9VA2pO0zOliijQGppypj\r\nUyD8fK/WPCkY8qul23dkJa3ogNOxC81e4jntobMdDECA89RT/01OiWz7O1ft\r\n5vURW4ut4CTIn+1EiFklUYU0TVj+iBY+332RT1vwGaMti19yrxbHf+aw3Qgk\r\ntU/B1d2/tntqCXxl9iEAUNjml4aBWeMhG5W54v/X0wuxW3iusd1bqmuBj/+0\r\ngSt/tJhI2COXQ/Wbxi/VYfk83FZmC4Kf6Xd7h6q4MzGSKqaKxsC1UjbilR7W\r\n863KpaXeuAOPyNXuPiBWnIIpcuDb1fK0klrnXhEpj8RWj/44J1KrW3v9Sinw\r\nKn5yGA5+wlctLOhZbe1JO2SnCiXRsMK8ooXYaGUiG6ezpEsUOKhRojtx0nBP\r\nT5GsmjYQj3FuWzmz/X2DNBh+K9ztzTw/HraHdpH/ze7usSZQPlyzP0y/BsGy\r\nh+irgCy5Su0ms7cEjZj0vjldz0ek/ciGC+Xnz2bF5VW0BzGWsewa2dubuSrL\r\nuZNMXzyt6T+KJA+dluHgkQxEZ5+OvrXdfSw=\r\n=T0xb\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.2.14_1657020859038_0.9496723403390606"},"_hasShrinkwrap":false},"0.2.15":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/monorepo.git"},"version":"0.2.15","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","types":"./dist/cjs/src/index.d.ts","scripts":{"build":"npm run build:forge && npm run typechain && npm run build:sdk","build:forge":"cd lib/contracts && forge install && forge build && forge build --contracts contracts/compound/CErc20PluginRewardsDelegate.sol --optimizer-runs 8","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","build:esm":"tsc -p tsconfig-sdk.json","build:cjs":"tsc -p tsconfig-cjs.json","compile":"hardhat compile","setup":"cd lib/contracts && forge build","test:mocha":"nyc ts-mocha --require 'tests-mocha/globalTestHook.ts' --check-leaks --exit --timeout 60000 'tests-mocha/**/*.spec.ts'","test":"hardhat test --parallel","test:bsc":"FORK_URL=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat test","test:forge":"cd lib/contracts && forge test","test:forge:moonbeam":"cd lib/contracts && forge test --fork-url https://rpc.api.moonbeam.network --fork-block-number 1058520","test:forge:evmostestnet":"cd lib/contracts && forge test --fork-url https://eth.bd.evmos.dev:8545 --fork-block-number 1217475","export":"hardhat export --export-all ./deployments.json","clean":"rm -rf dist","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'tests/**/*.ts'","lint":"eslint . -c .eslintrc.json --ext ts,json","lint-fix":"eslint . -c .eslintrc.json --fix --ext ts,json","typechain":"typechain --target ethers-v5 --out-dir './lib/contracts/typechain' './lib/contracts/out/*/**.json'","deploy:simulate:bsc:testnet":"FORK_URL_BSC=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/testnet/archive FORK_BLOCK_NUMBER= FORK_CHAIN_ID=97 hardhat node --tags simulate","deploy:simulate:bsc:mainnet":"FORK_URL_BSC=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/mainnet/archive FORK_BLOCK_NUMBER= FORK_CHAIN_ID=56 hardhat node --tags simulate","deploy:bsc:testnet":"hardhat --network chapel deploy --tags prod","deploy:bsc:mainnet":"hardhat --network bsc deploy --tags prod","deploy:evmos:testnet":"hardhat --network evmostestnet deploy --tags prod","deploy:moonbeam:mainnet":"hardhat --network moonbeam deploy --tags prod","forge":"forge","hardhat":"hardhat"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.3","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/ethers-v5":"^10.1.0","@typechain/hardhat":"^6.1.2","@types/bad-words":"^3.0.1","@types/chai":"^4.3.1","@types/chai-as-promised":"^7","@types/chai-subset":"^1","@types/eslint":"^8.4.3","@types/mocha":"^9.1.1","@types/node":"^18.0.0","@types/sinon-chai":"^3","chai":"^4.3.6","chai-as-promised":"^7.1.1","chai-subset":"^1.6.0","dotenv":"^16.0.1","eslint":"^8.18.0","eslint-plugin-import":"^2.26.0","eslint-plugin-prettier":"^4.0.0","hardhat":"^2.9.9","hardhat-abi-exporter":"^2.9.0","hardhat-deploy":"^0.11.5","hardhat-tracer":"^1.0.0-alpha.6","lint-staged":"12.4.1","mocha":"^10.0.0","nyc":"^15.1.0","prettier":"2.7.1","prettier-plugin-solidity":"1.0.0-beta.19","sinon":"^14.0.0","sinon-chai":"^3.7.0","ts-mocha":"^10.0.0","ts-node":"^10.8.1","typechain":"^8.1.0","typescript":"^4.7.4"},"dependencies":{"@keydonix/uniswap-oracle-sdk":"^1.0.7","@keydonix/uniswap-oracle-sdk-adapter":"^1.0.7","bad-words":"^3.0.4","bufferutil":"^4.0.6","ethereum-waffle":"^3.4.4","ethers":"^5.6.9","utf-8-validate":"^5.0.9"},"gitHead":"3aa2eee1ede09c0fe0bc13167ab323694ace6184","bugs":{"url":"https://github.com/midas-protocol/monorepo/issues"},"readme":"ERROR: No README data found!","homepage":"https://github.com/midas-protocol/monorepo#readme","_id":"@midas-capital/sdk@0.2.15","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-v4QoX/InCteU5MxnrlVT4OD9QqglDPjh5m55v0wMinzw1GhZwWfPsiLywHM294693f3nIa+N94ri65Rnvx5ZNw==","shasum":"73a50386f84797d538f71c38a4bf668b99f65c9b","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.2.15.tgz","fileCount":356,"unpackedSize":44335955,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDWFqu7ezxGsswt6al5wiG/ImT175XxYVe8LqDq+LylsQIhAMw2YMa0Ut8L2PkgRhVjj9tGXBgqHqbx6J6zCieGqw/Q"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJixS7OACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr/QRAAkO+OhpE15wOtLg8UPB2ve7Eg0bxg467tAZVeUJsvmXHw7bvw\r\nq2owp1g/Veyl9dIjQ7T9ZP1DWOMCNanYUu+4zVn+9RtYqDyCANYn2l7ive1w\r\n5hCL4AXJ5VvhxI708FFs1xcuKcIz2ipokquo1AwGA3MsKSJitEWpVSL0S39y\r\nSgv5Or97AlvsdcLmrzfPfN3s72IOEOGDU3ohbEI6D/Eq3r1KNktDXzH8ktfK\r\nSUZwjYTc0ZlXTlEBIFil35RiALVRa+iiiOvGzsitTk7h9qofDE43DjBiVDDV\r\nTzabmcgNcBt/qfk1FhpnyKKRqJ8WAwuBSdT24ibdL+5Hv3voH7LTykAi1JA4\r\nFpwMHTI2/O2WeySPHNMutTdHP0a51Qo4oXl31LFS2wAV95jUANtpbK78fAds\r\nUCmBeqqEPRkFsay+2qOe3GfpH0dimEh26UgA1mOap86H2tKJB7Ps9ZFWZXi0\r\n8TJud5ygFhK6acweX6+miWcLyLg1luZQjryTyd8/8DYLFGjPIlAFcjREFo+q\r\nTEFItcwXqzvWmh0Vi0lfQ+3UVZV3urdZV4Iu9paITHZej1qDUBSEcFRzlDju\r\niZIT2CO6pee2GYwjJbpxNmAvWXUebY/n5ugcHgNbE08Ewklrk4adFZSyZwtH\r\nRkk3Q16j/5uKAh38uOw6hLcHgYTKVepChdw=\r\n=H6ms\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.2.15_1657089742532_0.6122868727881519"},"_hasShrinkwrap":false},"0.2.16":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/monorepo.git"},"version":"0.2.16","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"## Installation","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","types":"./dist/cjs/src/index.d.ts","scripts":{"build":"npm run build:forge && npm run typechain && npm run build:sdk","build:forge":"cd lib/contracts && forge install && forge build && forge build --contracts contracts/compound/CErc20PluginRewardsDelegate.sol --optimizer-runs 8 && forge build --contracts contracts/compound/CErc20PluginDelegate.sol --optimizer-runs 2","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","build:esm":"tsc -p tsconfig-sdk.json","build:cjs":"tsc -p tsconfig-cjs.json","compile":"hardhat compile","setup":"cd lib/contracts && forge build","test:mocha":"nyc ts-mocha --require 'tests-mocha/globalTestHook.ts' --check-leaks --exit --timeout 60000 'tests-mocha/**/*.spec.ts'","test":"hardhat test --parallel","test:bsc":"FORK_URL=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat test","test:forge":"cd lib/contracts && forge test","test:forge:moonbeam":"cd lib/contracts && forge test --fork-url https://rpc.api.moonbeam.network --fork-block-number 1058520","test:forge:evmostestnet":"cd lib/contracts && forge test --fork-url https://eth.bd.evmos.dev:8545 --fork-block-number 1217475","export":"hardhat export --export-all ./deployments.json","clean":"rm -rf dist","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'tests/**/*.ts'","lint":"eslint . -c .eslintrc.json --ext ts,json","lint-fix":"eslint . -c .eslintrc.json --fix --ext ts,json","typechain":"typechain --target ethers-v5 --out-dir './lib/contracts/typechain' './lib/contracts/out/*/**.json'","deploy:simulate:bsc:testnet":"FORK_URL_BSC=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/testnet/archive FORK_BLOCK_NUMBER= FORK_CHAIN_ID=97 hardhat node --tags simulate","deploy:simulate:bsc:mainnet":"FORK_URL_BSC=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/mainnet/archive FORK_BLOCK_NUMBER= FORK_CHAIN_ID=56 hardhat node --tags simulate","deploy:bsc:testnet":"hardhat --network chapel deploy --tags prod","deploy:bsc:mainnet":"hardhat --network bsc deploy --tags prod","deploy:evmos:testnet":"hardhat --network evmostestnet deploy --tags prod","deploy:moonbeam:mainnet":"hardhat --network moonbeam deploy --tags prod","forge":"forge","hardhat":"hardhat"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.3","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/ethers-v5":"^10.1.0","@typechain/hardhat":"^6.1.2","@types/bad-words":"^3.0.1","@types/chai":"^4.3.1","@types/chai-as-promised":"^7","@types/chai-subset":"^1","@types/eslint":"^8.4.3","@types/mocha":"^9.1.1","@types/node":"^18.0.0","@types/sinon-chai":"^3","chai":"^4.3.6","chai-as-promised":"^7.1.1","chai-subset":"^1.6.0","dotenv":"^16.0.1","eslint":"^8.18.0","eslint-plugin-import":"^2.26.0","eslint-plugin-prettier":"^4.0.0","hardhat":"^2.9.9","hardhat-abi-exporter":"^2.9.0","hardhat-deploy":"^0.11.5","hardhat-tracer":"^1.0.0-alpha.6","lint-staged":"12.4.1","mocha":"^10.0.0","nyc":"^15.1.0","prettier":"2.7.1","prettier-plugin-solidity":"1.0.0-beta.19","sinon":"^14.0.0","sinon-chai":"^3.7.0","ts-mocha":"^10.0.0","ts-node":"^10.8.1","typechain":"^8.1.0","typescript":"^4.7.4"},"dependencies":{"@keydonix/uniswap-oracle-sdk":"^1.0.7","@keydonix/uniswap-oracle-sdk-adapter":"^1.0.7","bad-words":"^3.0.4","bufferutil":"^4.0.6","ethereum-waffle":"^3.4.4","ethers":"^5.6.9","utf-8-validate":"^5.0.9"},"readme":"# `@midas-capital/sdk`\n\n## Installation\n\n`npm install @midas-capital/sdk`\n\n```typescript\nimport { Fuse } from '@midas-capital/sdk';\nimport { ethers } from \"ethers\";\n\nconst chainId = 56\nconst provider = new ethers.providers.JsonRpcProvider(\"PROVIDER_URL\"),\n\nconst sdk = new Fuse(provider, chainId);\n\nconst poolOne = await sdk.fetchFusePoolData(\"1\");\n\nconst assetZero = poolOne.assets[0]\n\nconst borrowAPRAssetZero = sdk.ratePerBlockToAPY(assetZero.borrowRatePerBlock, 20)\nconst supplyAPYAssetZero = sdk.ratePerBlockToAPY(assetZero.supplyRatePerBlock, 20)\n```\n\n\n## Functions\n\n\n### fetchFusePoolData\n\n`fetchFusePoolData(poolId: string, signer?: string): Promise<FusePoolData>`\n\nFetch data about an individual pool on midas capital based on the pool id. The pool id can be extracted from the pool urll `https://app.midascapital.xyz/56/pool/POOL_ID`\n\n### ratePerBlockToAPY\n\n`ratePerBlockToAPY(ratePerBlock: BigNumber, blocksPerMin: number): number`\n\nReturn the APY for a given current per-block borrow/supply interest rate. This rate can be included in the\n\n`FusePoolData['assets'][0].borrowRatePerBlock`\nand\n\n`FusePoolData['assets'][0].supplyRatePerBlock`\ncorrespondingly.  (i.e. blocksPerMin for BSC: `20`)\n\n\n","readmeFilename":"README.md","gitHead":"3c725337e64b8aceb9bf595eae6424bf7e91ec5f","bugs":{"url":"https://github.com/midas-protocol/monorepo/issues"},"homepage":"https://github.com/midas-protocol/monorepo#readme","_id":"@midas-capital/sdk@0.2.16","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"integrity":"sha512-M/tT6b4NOmp8d6B1Duul8bT9kXIDvMzB6LQb09h02YPbOCcRT64Zu/qA8xgH2Eu6v/UvN0utRzBuJX3K18gMdw==","shasum":"2211b8f67625b31db3eed14dabd35695ec35e111","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.2.16.tgz","fileCount":359,"unpackedSize":43897021,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAfreM9AyQvxY0jR/AU4R2cHbJNYe+HvjsgJBjcPrEQSAiEA4aVvkdXnxnnUJzA6MeZhbpqytKH9DJFB7Q2yKMcHcZQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi08/GACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqUWRAAjO1qu2BnGMikn/WaYsalxum/+llLv+I5xYU6fDg4hVaknrhn\r\nmR45D+Ky/s2J00881l46ZODviSmqaXeAWjsxxp/p4SLT2Wuyh3ZPDMEKGYda\r\nazAwXOArGkyRz4xUqzqb39bwv2ELkwXpzIxlP63gU9Ai8oOp+mnn21ZwFpkp\r\n8uOrSdmxelmxaUuxuqGEZbJjTpoN3yYu2oqnYsfHh8Dq9hw4b1TrUE7IdTmI\r\nxbKKLF3B5lBo+rlsWqU3UO3tHCq532NQgIwnYDE63Dq4RDVv6SSC+lIPGTDz\r\nGiEYR5YCYCYFE9P6t3r7QdOZnB08VqeD4YVNeOEAZu7Z4LfKtAXkE8c8tvtM\r\nwATj9VZONEYZ/o5PeGWlVdv1J9iwavLEGxUvMsBKnvCkerVAm1hjVeyrf1/D\r\nrJVgwnIldx7MnLFiLW6Hhc/hAKL6sY+5KFRF8+EmEoY8iH/WgQ6cprh7s143\r\nijughoCq47iQuBWZtTKnGHxZlVUghnN/+qh+gW96daDg+Gj54aTWkHDvjtDg\r\nu2cYrF/PzUaqW0hd2dNGqq7ZfSy/f0Mz8MJQOUUuV3qahPP+kXKldD6op1Ru\r\ncGOJaamsYAf3LO2GyRMUERnn0sN4C8SUjKMavWkpmoU7JgX3OiBDfBla0yoB\r\nHy6nLFvcFZQKVmn7rpImOzJXgHPkm2UmcMk=\r\n=QZnq\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.2.16_1658048454507_0.5019286773601854"},"_hasShrinkwrap":false},"0.3.0":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/monorepo.git"},"version":"0.3.0","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"## Installation","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","types":"./dist/cjs/src/index.d.ts","scripts":{"build":"npm run build:forge && npm run typechain && npm run build:sdk","build:forge":"cd lib/contracts && forge install && forge build && forge build --contracts contracts/compound/CErc20PluginRewardsDelegate.sol --optimizer-runs 8 && forge build --contracts contracts/compound/CErc20PluginDelegate.sol --optimizer-runs 2","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","build:esm":"tsc -p tsconfig-sdk.json","build:cjs":"tsc -p tsconfig-cjs.json","compile":"hardhat compile","setup":"cd lib/contracts && forge build","test:mocha":"nyc ts-mocha --require 'tests-mocha/globalTestHook.ts' --check-leaks --exit --timeout 60000 'tests-mocha/**/*.spec.ts'","test":"hardhat test --parallel","test:bsc":"FORK_URL=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat test","test:forge":"cd lib/contracts && forge test","test:forge:moonbeam":"cd lib/contracts && forge test --fork-url https://rpc.api.moonbeam.network --fork-block-number 1058520","test:forge:evmostestnet":"cd lib/contracts && forge test --fork-url https://eth.bd.evmos.dev:8545 --fork-block-number 1217475","export":"hardhat export --export-all ./deployments.json","export:all":"npm run export:bsc && npm run export:polygon && npm run export:moonbeam && npm run export:neondevnet && npm run export:chapel","export:bsc":"hardhat export --network bsc --export ../chains/deployments/bsc.json","export:polygon":"hardhat export --network polygon --export ../chains/deployments/polygon.json","export:moonbeam":"hardhat export --network moonbeam --export ../chains/deployments/moonbeam.json","export:neondevnet":"hardhat export --network neondevnet --export ../chains/deployments/neondevnet.json","export:chapel":"hardhat export --network chapel --export ../chains/deployments/chapel.json","export:evmos":"hardhat export --network evmostestnet --export ../chains/deployments/evmos.json","export:ganache":"hardhat export --network localhost --export ../chains/deployments/ganache.json","clean":"rm -rf dist","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'tests/**/*.ts'","lint":"eslint . -c .eslintrc.json --ext ts,json","lint-fix":"eslint . -c .eslintrc.json --fix --ext ts,json","typechain":"typechain --target ethers-v5 --out-dir './lib/contracts/typechain' './lib/contracts/out/*/**.json'","deploy:simulate:bsc:testnet":"FORK_URL_BSC=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/testnet/archive FORK_BLOCK_NUMBER= FORK_CHAIN_ID=97 hardhat node --tags simulate","deploy:simulate:bsc:mainnet":"FORK_URL_BSC=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/mainnet/archive FORK_BLOCK_NUMBER= FORK_CHAIN_ID=56 hardhat node --tags simulate","deploy:bsc:testnet":"hardhat --network chapel deploy --tags prod","deploy:bsc:mainnet":"hardhat --network bsc deploy --tags prod","deploy:evmos:testnet":"hardhat --network evmostestnet deploy --tags prod","deploy:moonbeam:mainnet":"hardhat --network moonbeam deploy --tags prod","forge":"forge","hardhat":"hardhat"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.3","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/ethers-v5":"^10.1.0","@typechain/hardhat":"^6.1.2","@types/bad-words":"^3.0.1","@types/chai":"^4.3.1","@types/chai-as-promised":"^7","@types/chai-subset":"^1","@types/eslint":"^8.4.3","@types/mocha":"^9.1.1","@types/node":"^18.0.0","@types/sinon-chai":"^3","chai":"^4.3.6","chai-as-promised":"^7.1.1","chai-subset":"^1.6.0","dotenv":"^16.0.1","eslint":"^8.18.0","eslint-plugin-import":"^2.26.0","eslint-plugin-prettier":"^4.0.0","hardhat":"^2.9.9","hardhat-abi-exporter":"^2.9.0","hardhat-deploy":"^0.11.5","hardhat-tracer":"^1.0.0-alpha.6","lint-staged":"12.4.1","mocha":"^10.0.0","nyc":"^15.1.0","prettier":"2.7.1","prettier-plugin-solidity":"1.0.0-beta.19","sinon":"^14.0.0","sinon-chai":"^3.7.0","ts-mocha":"^10.0.0","ts-node":"^10.8.1","typechain":"^8.1.0","typescript":"^4.7.4"},"dependencies":{"@keydonix/uniswap-oracle-sdk":"^1.0.7","@keydonix/uniswap-oracle-sdk-adapter":"^1.0.7","@midas-capital/chains":"workspace:*","@midas-capital/types":"workspace:*","bad-words":"^3.0.4","bufferutil":"^4.0.6","ethereum-waffle":"^3.4.4","ethers":"^5.6.9","utf-8-validate":"^5.0.9"},"readme":"# `@midas-capital/sdk`\n\n## Installation\n\n`npm install @midas-capital/sdk`\n\n```typescript\nimport { MidasSdk } from \"@midas-capital/sdk\";\nimport { ethers } from \"ethers\";\n\nconst chainId = 56;\nconst provider = new ethers.providers.JsonRpcProvider(\"PROVIDER_URL\");\n\nconst sdk = new Fuse(provider, chainId);\n\nconst poolOne = await sdk.fetchFusePoolData(\"1\");\n\nconst assetZero = poolOne.assets[0];\n\nconst borrowAPRAssetZero = sdk.ratePerBlockToAPY(\n  assetZero.borrowRatePerBlock,\n  20\n);\nconst supplyAPYAssetZero = sdk.ratePerBlockToAPY(\n  assetZero.supplyRatePerBlock,\n  20\n);\n```\n\n## Functions\n\n### fetchFusePoolData\n\n`fetchFusePoolData(poolId: string, signer?: string): Promise<FusePoolData>`\n\nFetch data about an individual pool on midas capital based on the pool id. The pool id can be extracted from the pool url `https://app.midascapital.xyz/56/pool/POOL_ID`\n\n### ratePerBlockToAPY\n\n`ratePerBlockToAPY(ratePerBlock: BigNumber, blocksPerMin: number): number`\n\nReturn the APY for a given current per-block borrow/supply interest rate. This rate can be included in the\n\n`FusePoolData['assets'][0].borrowRatePerBlock`\nand\n\n`FusePoolData['assets'][0].supplyRatePerBlock`\ncorrespondingly. (i.e. blocksPerMin for BSC: `20`)\n","readmeFilename":"README.md","gitHead":"6203dcb9f09390ecf0785e2f6ee9f2c83295aebe","bugs":{"url":"https://github.com/midas-protocol/monorepo/issues"},"homepage":"https://github.com/midas-protocol/monorepo#readme","_id":"@midas-capital/sdk@0.3.0","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"integrity":"sha512-JWyz0OvErojxW7pChslbKofYAoit3EqofJwwQW5jN0mcXDdehigvVOZuMZ62C7oy7nwkRAqBfPGj0FhQ3hnAXA==","shasum":"48724521851de0beb6dacf20d3d052baf45c692a","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.3.0.tgz","fileCount":294,"unpackedSize":26912688,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIApPn7J7sRvT2Sd3yXZNSX65SoaNw+1u+ELHkoy/eWdUAiEAjuLp+fPMpm31j7ga9afmygtOdwYcu0TxcukhDmPGdNU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi9kgzACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrnkRAAi9dM8I2nr37rSZEnIp52tp40JeKrAz1jpMNqqfQzbwCW9MS7\r\npEFHGuYZW4D5R13p1Tw844COcWEuVNSehknf3tcxp1hkknCEDqjDYTznaabN\r\nd7sBsHMTiegSHxsXI/LeTYFUZK9oRpokCeQQ1qFHxh04lUj0T1xYC/4Pk30e\r\nbJmpZTDaYZsa65N1mGrn65VhK9b34+KgLSJV7GyN2v4UrcWkNeSkY4KqvHj1\r\ndLOPWc/0JkqEJNEKlgzxXieBrTk/1f9rnBuUxHTPop+wyGRpqY7vbcRWh0VT\r\nR6+TPi/+DbQ9L0zDY6FZ1ebDwQZkXHKxpPmsZ9TxJPT9S8X6BOfW21/AM5uU\r\nZAtNm2V8g52V914QpVszb39UUaEkSxCGFOxAmyftabrpk1MaGBpPlushDfI5\r\noo3CAIsBF+RIfrDBqBMph8W9AV3Ke+mlXBJKmP0QTQQIdZji03oJcbnbXT+o\r\ncOsC8t5/1kRrOBwP9xG3hop86UkY8ItzPjaIccHi1GcL1hs9D0NToAfOK6tM\r\n56Q3JfDBAQKsSyFNpNkqtdWLDaP/3TxZiC5dvQOsN4clk3Wt9ALSRkvtZA5o\r\nD21QIu0nej9SYpAjt5snw8t2lc2uDRhD6frNm4/iw5zVbc/L221uAoWpkYdQ\r\nG9JluMeBDxZt0WTBgXaOFJvxpcSbi9hbVBQ=\r\n=EnJP\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.3.0_1660307506767_0.2630106788956825"},"_hasShrinkwrap":false},"0.3.1":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/monorepo.git"},"version":"0.3.1","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"## Installation","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","types":"./dist/cjs/src/index.d.ts","scripts":{"build":"npm run build:forge && npm run typechain && npm run build:sdk","build:forge":"cd lib/contracts && forge install && forge build && forge build --contracts contracts/compound/CErc20PluginRewardsDelegate.sol --optimizer-runs 8 && forge build --contracts contracts/compound/CErc20PluginDelegate.sol --optimizer-runs 2","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","build:esm":"tsc -p tsconfig-sdk.json","build:cjs":"tsc -p tsconfig-cjs.json","compile":"hardhat compile","setup":"cd lib/contracts && forge build","test:mocha":"nyc ts-mocha --require 'tests-mocha/globalTestHook.ts' --check-leaks --exit --timeout 60000 'tests-mocha/**/*.spec.ts'","test":"hardhat test --parallel","test:bsc":"FORK_URL=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat test","test:forge":"cd lib/contracts && forge test","test:forge:moonbeam":"cd lib/contracts && forge test --fork-url https://rpc.api.moonbeam.network --fork-block-number 1058520","test:forge:evmostestnet":"cd lib/contracts && forge test --fork-url https://eth.bd.evmos.dev:8545 --fork-block-number 1217475","export":"hardhat export --export-all ./deployments.json","export:all":"npm run export:bsc && npm run export:polygon && npm run export:moonbeam && npm run export:neondevnet && npm run export:chapel","export:bsc":"hardhat export --network bsc --export ../chains/deployments/bsc.json","export:polygon":"hardhat export --network polygon --export ../chains/deployments/polygon.json","export:moonbeam":"hardhat export --network moonbeam --export ../chains/deployments/moonbeam.json","export:neondevnet":"hardhat export --network neondevnet --export ../chains/deployments/neondevnet.json","export:chapel":"hardhat export --network chapel --export ../chains/deployments/chapel.json","export:evmos":"hardhat export --network evmostestnet --export ../chains/deployments/evmos.json","export:ganache":"hardhat export --network localhost --export ../chains/deployments/ganache.json","clean":"rm -rf dist","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'tests/**/*.ts'","lint":"eslint . -c .eslintrc.json --ext ts,json","lint-fix":"eslint . -c .eslintrc.json --fix --ext ts,json","typechain":"typechain --target ethers-v5 --out-dir './lib/contracts/typechain' './lib/contracts/out/*/**.json'","deploy:simulate:bsc:testnet":"FORK_URL_BSC=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/testnet/archive FORK_BLOCK_NUMBER= FORK_CHAIN_ID=97 hardhat node --tags simulate","deploy:simulate:bsc:mainnet":"FORK_URL_BSC=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/mainnet/archive FORK_BLOCK_NUMBER= FORK_CHAIN_ID=56 hardhat node --tags simulate","deploy:bsc:testnet":"hardhat --network chapel deploy --tags prod","deploy:bsc:mainnet":"hardhat --network bsc deploy --tags prod","deploy:evmos:testnet":"hardhat --network evmostestnet deploy --tags prod","deploy:moonbeam:mainnet":"hardhat --network moonbeam deploy --tags prod","forge":"forge","hardhat":"hardhat"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.3","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/ethers-v5":"^10.1.0","@typechain/hardhat":"^6.1.2","@types/bad-words":"^3.0.1","@types/chai":"^4.3.1","@types/chai-as-promised":"^7","@types/chai-subset":"^1","@types/eslint":"^8.4.3","@types/mocha":"^9.1.1","@types/node":"^18.0.0","@types/sinon-chai":"^3","chai":"^4.3.6","chai-as-promised":"^7.1.1","chai-subset":"^1.6.0","dotenv":"^16.0.1","eslint":"^8.18.0","eslint-plugin-import":"^2.26.0","eslint-plugin-prettier":"^4.0.0","hardhat":"^2.9.9","hardhat-abi-exporter":"^2.9.0","hardhat-deploy":"^0.11.5","hardhat-tracer":"^1.0.0-alpha.6","lint-staged":"12.4.1","mocha":"^10.0.0","nyc":"^15.1.0","prettier":"2.7.1","prettier-plugin-solidity":"1.0.0-beta.19","sinon":"^14.0.0","sinon-chai":"^3.7.0","ts-mocha":"^10.0.0","ts-node":"^10.8.1","typechain":"^8.1.0","typescript":"^4.7.4"},"dependencies":{"@keydonix/uniswap-oracle-sdk":"^1.0.7","@keydonix/uniswap-oracle-sdk-adapter":"^1.0.7","@midas-capital/chains":"workspace:*","@midas-capital/types":"workspace:*","bad-words":"^3.0.4","bufferutil":"^4.0.6","ethereum-waffle":"^3.4.4","ethers":"^5.6.9","utf-8-validate":"^5.0.9"},"readme":"# `@midas-capital/sdk`\n\n## Installation\n\n`npm install @midas-capital/sdk`\n\n```typescript\nimport { MidasSdk } from \"@midas-capital/sdk\";\nimport { ethers } from \"ethers\";\n\nconst chainId = 56;\nconst provider = new ethers.providers.JsonRpcProvider(\"PROVIDER_URL\");\n\nconst sdk = new Fuse(provider, chainId);\n\nconst poolOne = await sdk.fetchFusePoolData(\"1\");\n\nconst assetZero = poolOne.assets[0];\n\nconst borrowAPRAssetZero = sdk.ratePerBlockToAPY(\n  assetZero.borrowRatePerBlock,\n  20\n);\nconst supplyAPYAssetZero = sdk.ratePerBlockToAPY(\n  assetZero.supplyRatePerBlock,\n  20\n);\n```\n\n## Functions\n\n### fetchFusePoolData\n\n`fetchFusePoolData(poolId: string, signer?: string): Promise<FusePoolData>`\n\nFetch data about an individual pool on midas capital based on the pool id. The pool id can be extracted from the pool url `https://app.midascapital.xyz/56/pool/POOL_ID`\n\n### ratePerBlockToAPY\n\n`ratePerBlockToAPY(ratePerBlock: BigNumber, blocksPerMin: number): number`\n\nReturn the APY for a given current per-block borrow/supply interest rate. This rate can be included in the\n\n`FusePoolData['assets'][0].borrowRatePerBlock`\nand\n\n`FusePoolData['assets'][0].supplyRatePerBlock`\ncorrespondingly. (i.e. blocksPerMin for BSC: `20`)\n","readmeFilename":"README.md","gitHead":"058e0d1b9c8adc31f407686880a4e372b2fb9ecc","bugs":{"url":"https://github.com/midas-protocol/monorepo/issues"},"homepage":"https://github.com/midas-protocol/monorepo#readme","_id":"@midas-capital/sdk@0.3.1","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"integrity":"sha512-IRbswmrKQPDip2AJNqXieUySV9Eo0cEDXSGVsiVhww7UT6wjIRZ2i2NBjoHsbKV/y+N0Jpj9wkVN6D256IRT0A==","shasum":"09f94187a3b07434f53b8b379bcb59c190f8364f","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.3.1.tgz","fileCount":306,"unpackedSize":26961684,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD6hKGztXE/u0sz6XoaV6NO6lEyR6v7k03TgQPhwS/MSQIhAJ7YsIaEYt7sWQfX/o6pNbmuvpDvMIyQqbWGNKr3sxF4"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi+i03ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq8PhAAiw1LyhVNTdX7SUxPQerG12h8L2LNW2oAGqHPZ2CtQ7S3gDAz\r\n+vxLb4b5pQ4L86oYP6olVNWbXTxPApx3PudxLYfpVTdZfNUr/70RpbhZwu52\r\nIbfWOMnUzwc83zyxg5J6x0eYPNgGg/94h+kggAxDvyZ6H8c1khHUrm/VucbU\r\nbl/n9JtSQcJ5LqMZGQcoD5a1kXQvo9nIf2Ae9Aw3gKeXyWhMeUcaHXgsIfp7\r\n1vKP+XgAmor066wj3nyHhnxBnHp31YkdSlMtl/geJYJeRX8DJ/8fAHDN9wCS\r\ncsDGwwpIbpdg/j6KU9sR0/ScV+J2WI/0Y2mGBstOQl4i9ZdyNpzkw5cHVlCg\r\n0gYOmwf/T+PGP60McE1cTFKDkDTJ8v1b/JCH+qN5ZUXDGaKBHC97ky7KVE7B\r\nJzbi0kFI8gBKYVaqCansSjWgtfKJoisVfG539cNRNa6GX/v9dPaDKybCjlMw\r\nJThhe+AQu+8uSnbcblRAIbdxaaSlVIcXUm8kDWpubWbdvDvEhgKyRrTVgYnM\r\ncuiK4HcGWHVlXwJ6+6r+DHcs1F9BhomYIewhyMBy4LzLqsxG5sgAgSBTdxKW\r\ndgHQsGiIVJ10/phOcG5qIF18s6bITMn1NPXOyaxwW1uTRsX8o+Dr4royodJg\r\nxyiMZNq0X04ZnkWpMDnYsHL0DJVRoL8B7Q8=\r\n=Jspa\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.3.1_1660562743328_0.13967366421142713"},"_hasShrinkwrap":false},"0.3.2":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/monorepo.git"},"version":"0.3.2","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"## Installation","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","types":"./dist/cjs/src/index.d.ts","scripts":{"build":"npm run build:forge && npm run typechain && npm run build:sdk","build:forge":"cd lib/contracts && forge install && forge build && forge build --contracts contracts/compound/CErc20PluginRewardsDelegate.sol --optimizer-runs 8 && forge build --contracts contracts/compound/CErc20PluginDelegate.sol --optimizer-runs 2","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","build:esm":"tsc -p tsconfig-sdk.json","build:cjs":"tsc -p tsconfig-cjs.json","compile":"hardhat compile","setup":"cd lib/contracts && forge build","test:mocha":"nyc ts-mocha --require 'tests-mocha/globalTestHook.ts' --check-leaks --exit --timeout 60000 'tests-mocha/**/*.spec.ts'","test":"hardhat test --parallel","test:bsc":"FORK_URL=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat test","test:forge":"cd lib/contracts && forge test","test:forge:moonbeam":"cd lib/contracts && forge test --fork-url https://rpc.api.moonbeam.network --fork-block-number 1058520","test:forge:evmostestnet":"cd lib/contracts && forge test --fork-url https://eth.bd.evmos.dev:8545 --fork-block-number 1217475","export":"hardhat export --export-all ./deployments.json","export:all":"npm run export:bsc && npm run export:polygon && npm run export:moonbeam && npm run export:neondevnet && npm run export:chapel","export:bsc":"hardhat export --network bsc --export ../chains/deployments/bsc.json","export:polygon":"hardhat export --network polygon --export ../chains/deployments/polygon.json","export:moonbeam":"hardhat export --network moonbeam --export ../chains/deployments/moonbeam.json","export:neondevnet":"hardhat export --network neondevnet --export ../chains/deployments/neondevnet.json","export:chapel":"hardhat export --network chapel --export ../chains/deployments/chapel.json","export:evmos":"hardhat export --network evmostestnet --export ../chains/deployments/evmos.json","export:ganache":"hardhat export --network localhost --export ../chains/deployments/ganache.json","clean":"rm -rf dist","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'tests/**/*.ts'","lint":"eslint . -c .eslintrc.json --ext ts,json","lint-fix":"eslint . -c .eslintrc.json --fix --ext ts,json","typechain":"typechain --target ethers-v5 --out-dir './lib/contracts/typechain' './lib/contracts/out/**/!(*.metadata).json' --show-stack-traces","deploy:simulate:bsc:testnet":"FORK_URL_BSC=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/testnet/archive FORK_BLOCK_NUMBER= FORK_CHAIN_ID=97 hardhat node --tags simulate","deploy:simulate:bsc:mainnet":"FORK_URL_BSC=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/mainnet/archive FORK_BLOCK_NUMBER= FORK_CHAIN_ID=56 hardhat node --tags simulate","deploy:bsc:testnet":"hardhat --network chapel deploy --tags prod","deploy:bsc:mainnet":"hardhat --network bsc deploy --tags prod","deploy:evmos:testnet":"hardhat --network evmostestnet deploy --tags prod","deploy:moonbeam:mainnet":"hardhat --network moonbeam deploy --tags prod","forge":"forge","hardhat":"hardhat"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.3","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/ethers-v5":"^10.1.0","@typechain/hardhat":"^6.1.2","@types/bad-words":"^3.0.1","@types/chai":"^4.3.1","@types/chai-as-promised":"^7","@types/chai-subset":"^1","@types/eslint":"^8.4.3","@types/mocha":"^9.1.1","@types/node":"^18.0.0","@types/sinon-chai":"^3","chai":"^4.3.6","chai-as-promised":"^7.1.1","chai-subset":"^1.6.0","dotenv":"^16.0.1","eslint":"^8.18.0","eslint-plugin-import":"^2.26.0","eslint-plugin-prettier":"^4.0.0","hardhat":"^2.9.9","hardhat-abi-exporter":"^2.9.0","hardhat-deploy":"^0.11.5","hardhat-tracer":"^1.0.0-alpha.6","lint-staged":"12.4.1","mocha":"^10.0.0","nyc":"^15.1.0","prettier":"2.7.1","prettier-plugin-solidity":"1.0.0-beta.19","sinon":"^14.0.0","sinon-chai":"^3.7.0","ts-mocha":"^10.0.0","ts-node":"^10.8.1","typechain":"^8.1.0","typescript":"^4.7.4"},"dependencies":{"@keydonix/uniswap-oracle-sdk":"^1.0.7","@keydonix/uniswap-oracle-sdk-adapter":"^1.0.7","@midas-capital/chains":"workspace:*","@midas-capital/types":"workspace:*","bad-words":"^3.0.4","bufferutil":"^4.0.6","ethereum-waffle":"^3.4.4","ethers":"^5.6.9","utf-8-validate":"^5.0.9"},"readme":"# `@midas-capital/sdk`\n\n## Installation\n\n`npm install @midas-capital/sdk`\n\n```typescript\nimport { MidasSdk } from \"@midas-capital/sdk\";\nimport { ethers } from \"ethers\";\n\nconst chainId = 56;\nconst provider = new ethers.providers.JsonRpcProvider(\"PROVIDER_URL\");\n\nconst sdk = new Fuse(provider, chainId);\n\nconst poolOne = await sdk.fetchFusePoolData(\"1\");\n\nconst assetZero = poolOne.assets[0];\n\nconst borrowAPRAssetZero = sdk.ratePerBlockToAPY(\n  assetZero.borrowRatePerBlock,\n  20\n);\nconst supplyAPYAssetZero = sdk.ratePerBlockToAPY(\n  assetZero.supplyRatePerBlock,\n  20\n);\n```\n\n## Functions\n\n### fetchFusePoolData\n\n`fetchFusePoolData(poolId: string, signer?: string): Promise<FusePoolData>`\n\nFetch data about an individual pool on midas capital based on the pool id. The pool id can be extracted from the pool url `https://app.midascapital.xyz/56/pool/POOL_ID`\n\n### ratePerBlockToAPY\n\n`ratePerBlockToAPY(ratePerBlock: BigNumber, blocksPerMin: number): number`\n\nReturn the APY for a given current per-block borrow/supply interest rate. This rate can be included in the\n\n`FusePoolData['assets'][0].borrowRatePerBlock`\nand\n\n`FusePoolData['assets'][0].supplyRatePerBlock`\ncorrespondingly. (i.e. blocksPerMin for BSC: `20`)\n","readmeFilename":"README.md","gitHead":"768c686990fe83ffb9e3382ce647a80d6f4bb99b","bugs":{"url":"https://github.com/midas-protocol/monorepo/issues"},"homepage":"https://github.com/midas-protocol/monorepo#readme","_id":"@midas-capital/sdk@0.3.2","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"integrity":"sha512-17Fn+RmQHdP+y9m/YFQPeJ3nGhx2Or2QSOSA1OrWYFnjpXB6KgD9zFPJJzfl7imiVu1UzclAiJgFH1nzAMzS/A==","shasum":"895fb3b99b04d6a4b65d6f0b2efbc7632e0398e4","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.3.2.tgz","fileCount":306,"unpackedSize":26964678,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCMeiESuIYbUgamoUWd8kAaXooNxMlfdqrtAyj79jE5UwIgBZyejPjPSyKBkSs3yRXCZOoTMZhCYitctN/PchbcY4w="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi/mF9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqnAQ//aubtuhKbjLOaF+tChK+Rt9ak4pcMuGmLkY+OGFFpU7pvDc2D\r\n01cen9rwqIrIIi4i+fazRtLcTcHY3cPkYNuujt8V/cCHl3TN/q3JZjm7NTuK\r\nO81JlWU4p+TfuGvvFULEk4GFkJPHaI4jRJGIZxpk9+bqJDdJxaYML4ZUY75Q\r\nml9A8Ec4C+kW9Myr7V3bTdo8GDRg/k1hXhJ8gDPMKcVrvhDFTraNm9cEp/Sf\r\ncM8M7KCkD/O6n1qZUNcoo8HDm/6MTkAJfy1ZJ1PXuKPDtq5Gd+OCntSob3rh\r\nNA1PajWYXzZU1lam2LyTSB/zAmMLQ5VSrwU8OZ4q+MzFfZlc4s2kNqq2kbi3\r\nZhupmwu0xCZhxRK/2PMfT5Z7Gc8kTJ28jjU4FZB58HmkZOVtYxPWUr9PN5sx\r\nMGoatyeK4Vcd6IEQe14T/j/VLt6YVlyV6U9xQ4Q6BYW9tIalqi4ZA2D4MVBG\r\nHidVwUlkZoEQXbC9QOKu9OiociWWvwwK6t2UuqvdR8emV47s2E78JltzIfNY\r\n0e1rZhxuUN9ismdKvMh39+EPlcxlowNa8sze3XTzoYul0fwE0kB/qp/AxDNu\r\nuAz1AHzoeuiByQ7BVuPOBjz1AHAendsnuyz4vzIOtU9lf4OIp8Mo/cPsMUKC\r\nXJOlkMxFYXrTVMwjG7kC1z5PgrTtxrQbGbk=\r\n=IL2G\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.3.2_1660838269305_0.0005337039366768437"},"_hasShrinkwrap":false},"0.3.3":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/monorepo.git"},"version":"0.3.3","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"## Installation","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","types":"./dist/cjs/src/index.d.ts","scripts":{"build":"npm run build:forge && npm run typechain && npm run build:sdk","build:forge":"cd lib/contracts && forge install && forge build && forge build --contracts contracts/compound/CErc20PluginRewardsDelegate.sol --optimizer-runs 8 && forge build --contracts contracts/compound/CErc20PluginDelegate.sol --optimizer-runs 2","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","build:esm":"tsc -p tsconfig-sdk.json","build:cjs":"tsc -p tsconfig-cjs.json","compile":"hardhat compile","setup":"cd lib/contracts && forge build","test:mocha":"nyc ts-mocha --require 'tests-mocha/globalTestHook.ts' --check-leaks --exit --timeout 60000 'tests-mocha/**/*.spec.ts'","test":"hardhat test --parallel","test:bsc":"FORK_URL=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat test","test:forge":"cd lib/contracts && forge test","test:forge:moonbeam":"cd lib/contracts && forge test --fork-url https://rpc.api.moonbeam.network --fork-block-number 1058520","test:forge:evmostestnet":"cd lib/contracts && forge test --fork-url https://eth.bd.evmos.dev:8545 --fork-block-number 1217475","export":"hardhat export --export-all ./deployments.json","export:all":"npm run export:bsc && npm run export:polygon && npm run export:moonbeam && npm run export:neondevnet && npm run export:chapel","export:bsc":"hardhat export --network bsc --export ../chains/deployments/bsc.json","export:polygon":"hardhat export --network polygon --export ../chains/deployments/polygon.json","export:moonbeam":"hardhat export --network moonbeam --export ../chains/deployments/moonbeam.json","export:neondevnet":"hardhat export --network neondevnet --export ../chains/deployments/neondevnet.json","export:chapel":"hardhat export --network chapel --export ../chains/deployments/chapel.json","export:evmos":"hardhat export --network evmostestnet --export ../chains/deployments/evmos.json","export:ganache":"hardhat export --network localhost --export ../chains/deployments/ganache.json","clean":"rm -rf dist","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'tests/**/*.ts'","lint":"eslint . -c .eslintrc.json --ext ts,json","lint-fix":"eslint . -c .eslintrc.json --fix --ext ts,json","typechain":"typechain --target ethers-v5 --out-dir './lib/contracts/typechain' './lib/contracts/out/**/!(*.metadata).json' --show-stack-traces","deploy:simulate:bsc:testnet":"FORK_URL_BSC=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/testnet/archive FORK_BLOCK_NUMBER= FORK_CHAIN_ID=97 hardhat node --tags simulate","deploy:simulate:bsc:mainnet":"FORK_URL_BSC=https://speedy-nodes-nyc.moralis.io/2d2926c3e761369208fba31f/bsc/mainnet/archive FORK_BLOCK_NUMBER= FORK_CHAIN_ID=56 hardhat node --tags simulate","deploy:bsc:testnet":"hardhat --network chapel deploy --tags prod","deploy:bsc:mainnet":"hardhat --network bsc deploy --tags prod","deploy:evmos:testnet":"hardhat --network evmostestnet deploy --tags prod","deploy:moonbeam:mainnet":"hardhat --network moonbeam deploy --tags prod","forge":"forge","hardhat":"hardhat"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.3","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/ethers-v5":"^10.1.0","@typechain/hardhat":"^6.1.2","@types/bad-words":"^3.0.1","@types/chai":"^4.3.1","@types/chai-as-promised":"^7","@types/chai-subset":"^1","@types/eslint":"^8.4.3","@types/mocha":"^9.1.1","@types/node":"^18.0.0","@types/sinon-chai":"^3","chai":"^4.3.6","chai-as-promised":"^7.1.1","chai-subset":"^1.6.0","dotenv":"^16.0.1","eslint":"^8.18.0","eslint-plugin-import":"^2.26.0","eslint-plugin-prettier":"^4.0.0","hardhat":"^2.9.9","hardhat-abi-exporter":"^2.9.0","hardhat-deploy":"^0.11.5","hardhat-tracer":"^1.0.0-alpha.6","lint-staged":"12.4.1","mocha":"^10.0.0","nyc":"^15.1.0","prettier":"2.7.1","prettier-plugin-solidity":"1.0.0-beta.19","sinon":"^14.0.0","sinon-chai":"^3.7.0","ts-mocha":"^10.0.0","ts-node":"^10.8.1","typechain":"^8.1.0","typescript":"^4.7.4"},"dependencies":{"@keydonix/uniswap-oracle-sdk":"^1.0.7","@keydonix/uniswap-oracle-sdk-adapter":"^1.0.7","@midas-capital/chains":"workspace:*","@midas-capital/types":"workspace:*","bad-words":"^3.0.4","bufferutil":"^4.0.6","ethereum-waffle":"^3.4.4","ethers":"^5.6.9","utf-8-validate":"^5.0.9"},"readme":"# `@midas-capital/sdk`\n\n## Installation\n\n`npm install @midas-capital/sdk`\n\n```typescript\nimport { MidasSdk } from \"@midas-capital/sdk\";\nimport { ethers } from \"ethers\";\n\nconst chainId = 56;\nconst provider = new ethers.providers.JsonRpcProvider(\"PROVIDER_URL\");\n\nconst sdk = new Fuse(provider, chainId);\n\nconst poolOne = await sdk.fetchFusePoolData(\"1\");\n\nconst assetZero = poolOne.assets[0];\n\nconst borrowAPRAssetZero = sdk.ratePerBlockToAPY(\n  assetZero.borrowRatePerBlock,\n  20\n);\nconst supplyAPYAssetZero = sdk.ratePerBlockToAPY(\n  assetZero.supplyRatePerBlock,\n  20\n);\n```\n\n## Functions\n\n### fetchFusePoolData\n\n`fetchFusePoolData(poolId: string, signer?: string): Promise<FusePoolData>`\n\nFetch data about an individual pool on midas capital based on the pool id. The pool id can be extracted from the pool url `https://app.midascapital.xyz/56/pool/POOL_ID`\n\n### ratePerBlockToAPY\n\n`ratePerBlockToAPY(ratePerBlock: BigNumber, blocksPerMin: number): number`\n\nReturn the APY for a given current per-block borrow/supply interest rate. This rate can be included in the\n\n`FusePoolData['assets'][0].borrowRatePerBlock`\nand\n\n`FusePoolData['assets'][0].supplyRatePerBlock`\ncorrespondingly. (i.e. blocksPerMin for BSC: `20`)\n","readmeFilename":"README.md","gitHead":"647673e137ecf77761a447a589bbbc081da93c24","bugs":{"url":"https://github.com/midas-protocol/monorepo/issues"},"homepage":"https://github.com/midas-protocol/monorepo#readme","_id":"@midas-capital/sdk@0.3.3","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"integrity":"sha512-pC9UuT6awrOi5WnSMCguO388QkRK95EVeaSA2lyNSlXIu9aDL4sxAvLNUXhf3glJqZmwN+ALe8KNpvAhsDg49A==","shasum":"cd0a4fcd78d3e015b81cd1e4ec493c5e2fa9c5c6","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.3.3.tgz","fileCount":306,"unpackedSize":26729830,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHQTXYWklKqo08LQ66CR1DXlpOEkDqISciZyRrZSaLfWAiEA8JGwZRvqGqHov2wpB5wZZSUx0BE6m3HDa2L95IgaHOg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjBhdSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpwlhAAlvXAbkpUYArIT9rfjQ98h99rLGZGC1UL9Fowx2zI359BlqXL\r\n2a8M5Q2uWOrFoAz18oSAdMNO4GoJIQLS3SuEp1dSLDbxg3fsZX+O65fZd3/0\r\n90qAAvOWKIv+XMQtZs4tIUFC8kesAY2L9lQ9Zxnmy72DfUjSFdU69heDuW5q\r\nMdZ85BNw0GzkpzxTeUD2V9ugwq6xtVsxmvrelIO/pso/BSWsaf8UCaH3mDkO\r\nJM0Bf6WxNQz8LxjV9Ezx0Za6HfuLY6jbhlhNBUtavrRIFPRcQDzWT3S6TLAK\r\nMNDW03zNqd5yH0SKjXZYZD0wiAvn1S18xMpjObJdx+9O4JuquF3AUEiSixTt\r\n/Is+iDJtfG2+nrV3CvxtwADdr3+Klvh+3iEez/6R/hgeP47nhmzfLSRN+yJt\r\n+OCdHHHIsXbC/TjP0kNAY+FuebCwyKGNi5cWFVne5e3gTk0+y50Sj/UAkUX1\r\n9q+hdwUGSlCoxfkM82IgJzUbCCD0Xh7mLbVMQgAQzLzxyT8gfbi/Pnd9c7ru\r\n2ZRBX4uPwILW4PmramhQLnC43XpomyTQEZ0/6UdORpjXRSr0ObP6oN3cBKbQ\r\noyZ+/75AT690vPpgutlIxVqSfMCU9ozGkSHpwaAG/4x2j8IjLBbG5+CFrhv5\r\nwaWfBI03qiiA4ywTjrCJTJ5H/CX1nGpTsqE=\r\n=z+uN\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.3.3_1661343570568_0.025450345388475792"},"_hasShrinkwrap":false},"0.4.0":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/monorepo.git"},"version":"0.4.0","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"## Installation","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","types":"./dist/cjs/src/index.d.ts","scripts":{"build":"npm run build:forge && npm run typechain && npm run build:sdk","build:forge":"cd lib/contracts && forge install && forge build && forge build --contracts contracts/compound/CErc20PluginRewardsDelegate.sol --optimizer-runs 8 && forge build --contracts contracts/compound/CErc20PluginDelegate.sol --optimizer-runs 2","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","build:esm":"tsc -p tsconfig-sdk.json","build:cjs":"tsc -p tsconfig-cjs.json","compile":"hardhat compile","setup":"cd lib/contracts && forge build","test:mocha":"nyc ts-mocha --require 'tests-mocha/globalTestHook.ts' --check-leaks --exit --timeout 60000 'tests-mocha/**/*.spec.ts'","test":"hardhat test --parallel","test:bsc":"FORK_URL=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat test","test:forge":"cd lib/contracts && forge test","test:forge:moonbeam":"cd lib/contracts && forge test --fork-url https://rpc.api.moonbeam.network --fork-block-number 1058520","test:forge:evmostestnet":"cd lib/contracts && forge test --fork-url https://eth.bd.evmos.dev:8545 --fork-block-number 1217475","export":"hardhat export --export-all ./deployments.json","export:all":"npm run export:bsc && npm run export:polygon && npm run export:moonbeam && npm run export:neondevnet && npm run export:chapel","export:bsc":"hardhat export --network bsc --export ../chains/deployments/bsc.json","export:polygon":"hardhat export --network polygon --export ../chains/deployments/polygon.json","export:moonbeam":"hardhat export --network moonbeam --export ../chains/deployments/moonbeam.json","export:neondevnet":"hardhat export --network neondevnet --export ../chains/deployments/neondevnet.json","export:chapel":"hardhat export --network chapel --export ../chains/deployments/chapel.json","export:evmos":"hardhat export --network evmostestnet --export ../chains/deployments/evmos.json","export:ganache":"hardhat export --network localhost --export ../chains/deployments/ganache.json","clean":"rm -rf dist","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'tests/**/*.ts'","lint":"eslint . -c .eslintrc.json --ext ts,json","lint-fix":"eslint . -c .eslintrc.json --fix --ext ts,json","typechain":"typechain --target ethers-v5 --out-dir './lib/contracts/typechain' './lib/contracts/out/**/!(*.metadata).json' --show-stack-traces","deploy:bsc:testnet":"hardhat --network chapel deploy --tags prod","deploy:bsc:mainnet":"hardhat --network bsc deploy --tags prod","deploy:evmos:testnet":"hardhat --network evmostestnet deploy --tags prod","deploy:moonbeam:mainnet":"hardhat --network moonbeam deploy --tags prod","forge":"forge","hardhat":"hardhat"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.3","@tenderly/hardhat-tenderly":"^1.0.13","@typechain/ethers-v5":"^10.1.0","@typechain/hardhat":"^6.1.2","@types/bad-words":"^3.0.1","@types/chai":"^4.3.1","@types/chai-as-promised":"^7","@types/chai-subset":"^1","@types/eslint":"^8.4.3","@types/mocha":"^9.1.1","@types/node":"^18.0.0","@types/sinon-chai":"^3","chai":"^4.3.6","chai-as-promised":"^7.1.1","chai-subset":"^1.6.0","dotenv":"^16.0.1","eslint":"^8.18.0","eslint-plugin-import":"^2.26.0","eslint-plugin-prettier":"^4.0.0","hardhat":"^2.9.9","hardhat-abi-exporter":"^2.9.0","hardhat-deploy":"^0.11.5","hardhat-tracer":"^1.0.0-alpha.6","lint-staged":"12.4.1","mocha":"^10.0.0","nyc":"^15.1.0","prettier":"2.7.1","prettier-plugin-solidity":"1.0.0-beta.19","sinon":"^14.0.0","sinon-chai":"^3.7.0","ts-mocha":"^10.0.0","ts-node":"^10.8.1","typechain":"^8.1.0","typescript":"^4.7.4"},"dependencies":{"@keydonix/uniswap-oracle-sdk":"^1.0.7","@keydonix/uniswap-oracle-sdk-adapter":"^1.0.7","@midas-capital/chains":"workspace:*","@midas-capital/types":"workspace:*","bad-words":"^3.0.4","bufferutil":"^4.0.6","ethereum-waffle":"^3.4.4","ethers":"^5.6.9","utf-8-validate":"^5.0.9"},"readme":"# `@midas-capital/sdk`\n\n## Installation\n\n`npm install @midas-capital/sdk`\n\n```typescript\nimport { MidasSdk } from \"@midas-capital/sdk\";\nimport { ethers } from \"ethers\";\n\nconst chainId = 56;\nconst provider = new ethers.providers.JsonRpcProvider(\"PROVIDER_URL\");\n\nconst sdk = new Fuse(provider, chainId);\n\nconst poolOne = await sdk.fetchFusePoolData(\"1\");\n\nconst assetZero = poolOne.assets[0];\n\nconst borrowAPRAssetZero = sdk.ratePerBlockToAPY(\n  assetZero.borrowRatePerBlock,\n  20\n);\nconst supplyAPYAssetZero = sdk.ratePerBlockToAPY(\n  assetZero.supplyRatePerBlock,\n  20\n);\n```\n\n## Functions\n\n### fetchFusePoolData\n\n`fetchFusePoolData(poolId: string, signer?: string): Promise<FusePoolData>`\n\nFetch data about an individual pool on midas capital based on the pool id. The pool id can be extracted from the pool url `https://app.midascapital.xyz/56/pool/POOL_ID`\n\n### ratePerBlockToAPY\n\n`ratePerBlockToAPY(ratePerBlock: BigNumber, blocksPerMin: number): number`\n\nReturn the APY for a given current per-block borrow/supply interest rate. This rate can be included in the\n\n`FusePoolData['assets'][0].borrowRatePerBlock`\nand\n\n`FusePoolData['assets'][0].supplyRatePerBlock`\ncorrespondingly. (i.e. blocksPerMin for BSC: `20`)\n","readmeFilename":"README.md","gitHead":"f25c37b4fe0de2e7dd646d92b68e5e006767b373","bugs":{"url":"https://github.com/midas-protocol/monorepo/issues"},"homepage":"https://github.com/midas-protocol/monorepo#readme","_id":"@midas-capital/sdk@0.4.0","_nodeVersion":"16.17.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-8L8LXXCd79zX4pb2BOktkb/qWfOKU7HAM2xhaleGHqaNvr7EFJT8MBE7iaJZeRhKuCsUs2T0SExLSiwgCR2++g==","shasum":"9b229cabc6f02ea91f6a5191de2339a4a98c9c48","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.4.0.tgz","fileCount":304,"unpackedSize":29505068,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCTPddGg3z03/0UkipLKS1mv4HgsxPgQISQREPhlpZBBAIgJlXyx9S7jAyJK2mPCvTkcQtY9MS+Mls0SZcqryhZAkI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjEgdrACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpnvg/+O/yMMr/1VSWQqIW8HfY5V1yx1z5Lxarm+R3sFfSBvDqiOs10\r\nuWpsjL3Q/fazvfu2NipRNDsY+PyjzyhvlCzCcM51/UWW3Tfnn6mTdFn61r7R\r\nCBU/yCQcfowaWz5QublnRskrW91/oRVY5dEmQrkPXAlrPZAju1KJZBC3byOP\r\nuQIaOUSBl1w0c21w4/ebuCqRzCImP5S1otZ490Q60xadGD5m99/YAjrawYo7\r\nbB5od4a8S2FG0gsDheLsTcUS4oZs+TDXvDC0Nij+GAd0Q7Kd3OrLtTtrsW+V\r\nFO8MXkiP2OGcOzhJROWC4NDkehrknUtD9cnB0zbcCHRyy0BsPV3Pa+R7olSi\r\npv+QBLOM5T5CzoVw2XVT5kWMJj1AQlwOE34UwNpnq/I1zb3u26vBW+ToHJdS\r\nZ9Djgkc8zZM50HbOoCGRdd0/jPrm9pT5ry+ca5AvuTdgTW6W3N361B6H8RC4\r\ndgsO4k+8bg/Fy+YInyKEICSM1WlLThD9YsAV4TmfEXbghAGYRdiZUF6lbUPl\r\nQ3Wj78veYK3r6Tf4TV0EWuy/AwHp/kfG8vRl5pxHzCswnB7p0XLPylRxF7XU\r\nLxg7u883vj5pQhTMYsHP7tL40kWTWbD7Cmp1JIVvtvyABF7cmirRwP9AGpNM\r\nRCruD4tCRJQqsxxSA+Q2m+hsGOfUHWByqDE=\r\n=I7Uz\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.4.0_1662125931444_0.23801969785370702"},"_hasShrinkwrap":false},"0.4.1":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/monorepo.git"},"version":"0.4.1","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"## Installation","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","types":"./dist/cjs/src/index.d.ts","scripts":{"build":"npm run build:forge && npm run typechain && npm run build:sdk","build:forge":"cd lib/contracts && forge install && forge build && forge build --contracts contracts/compound/CErc20PluginRewardsDelegate.sol --optimizer-runs 8 && forge build --contracts contracts/compound/CErc20PluginDelegate.sol --optimizer-runs 2","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","build:esm":"tsc -p tsconfig-sdk.json","build:cjs":"tsc -p tsconfig-cjs.json","setup":"cd lib/contracts && forge build","test:mocha":"nyc ts-mocha --require 'tests-mocha/globalTestHook.ts' --check-leaks --exit --timeout 60000 'tests-mocha/**/*.spec.ts'","test":"hardhat test --parallel --no-compile","test:bsc":"FORK_URL=${FORK_URL_BSC} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat test --no-compile","test:forge":"cd lib/contracts && forge test","export":"hardhat export --export-all ./deployments.json","export:all":"npm run export:bsc && npm run export:polygon && npm run export:moonbeam && npm run export:neondevnet && npm run export:chapel","export:bsc":"hardhat export --network bsc --export ../chains/deployments/bsc.json","export:polygon":"hardhat export --network polygon --export ../chains/deployments/polygon.json","export:moonbeam":"hardhat export --network moonbeam --export ../chains/deployments/moonbeam.json","export:arbitrum":"hardhat export --network arbitrum --export ../chains/deployments/arbitrum.json","export:neondevnet":"hardhat export --network neondevnet --export ../chains/deployments/neondevnet.json","export:chapel":"hardhat export --network chapel --export ../chains/deployments/chapel.json","export:evmos":"hardhat export --network evmostestnet --export ../chains/deployments/evmos.json","export:ganache":"hardhat export --network localhost --export ../chains/deployments/ganache.json","clean":"rm -rf dist","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'tests/**/*.ts'","lint":"eslint . -c .eslintrc.json --ext ts,json","lint-fix":"eslint . -c .eslintrc.json --fix --ext ts,json","typechain":"typechain --target ethers-v5 --out-dir './lib/contracts/typechain' './lib/contracts/out/**/!(*.metadata).json' --show-stack-traces","deploy:chapel":"hardhat --network chapel deploy --tags prod --no-compile","deploy:bsc":"hardhat --network bsc deploy --tags prod --no-compile","deploy:polygon":"hardhat --network polygon deploy --tags prod --no-compile","deploy:evmos":"hardhat --network evmostestnet deploy --tags prod --no-compile","deploy:moonbeam":"hardhat --network moonbeam deploy --tags prod --no-compile","deploy:arbitrum":"hardhat --network arbitrum deploy --tags prod --no-compile","deploy:neondevnet":"hardhat --network neondevnet deploy --tags prod --no-compile","deploy:localhost":"hardhat --network localhost deploy --tags prod --no-compile","forge":"forge","hardhat":"hardhat"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.3","@tenderly/hardhat-tenderly":"^1.1.6","@typechain/ethers-v5":"^10.1.0","@typechain/hardhat":"^6.1.2","@types/bad-words":"^3.0.1","@types/chai":"^4.3.3","@types/chai-as-promised":"^7","@types/chai-subset":"^1","@types/eslint":"^8.4.6","@types/mocha":"^9.1.1","@types/node":"^18.7.16","@types/sinon-chai":"^3","chai":"^4.3.6","chai-as-promised":"^7.1.1","chai-subset":"^1.6.0","dotenv":"^16.0.2","eslint":"^8.23.0","eslint-plugin-import":"^2.26.0","eslint-plugin-prettier":"^4.2.1","hardhat":"^2.11.1","hardhat-abi-exporter":"^2.10.0","hardhat-deploy":"^0.11.14","hardhat-tracer":"^1.1.0-rc.9","lint-staged":"13.0.3","mocha":"^10.0.0","nyc":"^15.1.0","prettier":"2.7.1","prettier-plugin-solidity":"1.0.0-beta.24","sinon":"^14.0.0","sinon-chai":"^3.7.0","ts-mocha":"^10.0.0","ts-node":"^10.9.1","typechain":"^8.1.0","typescript":"^4.8.2"},"dependencies":{"@keydonix/uniswap-oracle-sdk":"^1.0.7","@keydonix/uniswap-oracle-sdk-adapter":"^1.0.7","@midas-capital/chains":"workspace:*","@midas-capital/types":"workspace:*","bad-words":"^3.0.4","bufferutil":"^4.0.6","ethereum-waffle":"^3.4.4","ethers":"^5.7.0","utf-8-validate":"^5.0.9"},"readme":"# `@midas-capital/sdk`\n\n## Installation\n\n`npm install @midas-capital/sdk`\n\n```typescript\nimport { MidasSdk } from \"@midas-capital/sdk\";\nimport { ethers } from \"ethers\";\n\nconst chainId = 56;\nconst provider = new ethers.providers.JsonRpcProvider(\"PROVIDER_URL\");\n\nconst sdk = new Fuse(provider, chainId);\n\nconst poolOne = await sdk.fetchFusePoolData(\"1\");\n\nconst assetZero = poolOne.assets[0];\n\nconst borrowAPRAssetZero = sdk.ratePerBlockToAPY(\n  assetZero.borrowRatePerBlock,\n  20\n);\nconst supplyAPYAssetZero = sdk.ratePerBlockToAPY(\n  assetZero.supplyRatePerBlock,\n  20\n);\n```\n\n## Functions\n\n### fetchFusePoolData\n\n`fetchFusePoolData(poolId: string, signer?: string): Promise<FusePoolData>`\n\nFetch data about an individual pool on midas capital based on the pool id. The pool id can be extracted from the pool url `https://app.midascapital.xyz/56/pool/POOL_ID`\n\n### ratePerBlockToAPY\n\n`ratePerBlockToAPY(ratePerBlock: BigNumber, blocksPerMin: number): number`\n\nReturn the APY for a given current per-block borrow/supply interest rate. This rate can be included in the\n\n`FusePoolData['assets'][0].borrowRatePerBlock`\nand\n\n`FusePoolData['assets'][0].supplyRatePerBlock`\ncorrespondingly. (i.e. blocksPerMin for BSC: `20`)\n","readmeFilename":"README.md","gitHead":"3136f7eb25942cd0c9ab0f6866c9af9b631bfb92","bugs":{"url":"https://github.com/midas-protocol/monorepo/issues"},"homepage":"https://github.com/midas-protocol/monorepo#readme","_id":"@midas-capital/sdk@0.4.1","_nodeVersion":"16.17.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-FzfFT2RfQrNuZYWXmGiManTe+OFd5Apf+0Z0QVVybrXTBVwpfbf6D+XTsaxdfYW9dHuLJZs/44j1Urt/1PbjAw==","shasum":"6a98c6040b3152612dd8497b7fe3bbfba71ad165","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.4.1.tgz","fileCount":300,"unpackedSize":29912493,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD7N6gxbhDfz6PsmJYNat9nFC29IroX1a1ryck3L2QsiwIhANJOYF465hn6zyRMFESmwUYFowvxefNBEAyRKdS0IBhG"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjLBtFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo3QA/8DP7SKEcogKMMPKUVwuyxfx/bE3ueAdHxJQHYDhofvcLitBH4\r\nqgEmskPQZSfIFBrl3KEFDWvM8MXeYVVLkXMwpw7z7r+jfaXzDxGByw5WBpj6\r\nDThw64CK5Y/K/MnMP77tBS+SD2nPS7xaQ62nDe4Fdm7/rSNLP2dLVGBCAbd+\r\neHOZQEW3wLe6GD+LcID3drkWh/AlTb1yQqSaeNden/r4L8wnqVTh2xNQFH0n\r\nAS3UzsYSIYIpBt+/UKcEOtHvmJU7t2lkKkCycEsguMslPSh4S2wylE7moROj\r\nVUaLAmGMP3SaD1DW8xJdp/GhXgvsNEsbjC6gSOdMo0ZhszQyBAorkeu8R4Z/\r\nJZmhL7cgFX1mgUdJBWn8jCz3NIBLj9N9hqqcripTlbxHeJHO2XTMV7T/T6iQ\r\nwx3JUqXHItL5fHNqtZJGVYJJNh/DOFN8E5Ov3vpTsTydFoWW1CizHc99UQ++\r\n9TIstyma524Jj4IrYHcZebI+ZrMWBNLWRzXqGF/7VMgaD/mmOX4RBX/s4J80\r\nHxYpbxvOQTcrsy47Z7Tgt9ki9Lnr+wzVSNzwI7zYLedIRIsLPTH4OuDtFszo\r\nT8KMifmbNOkZ3G/Tsn24RDiGMc9CVGI0YvOarIqhrzwiP3Lqewu9oOH5MhM/\r\nOrr8RcZQI9ZXRAum71uJ/pvSFhiGNeMAbZE=\r\n=7lvm\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.4.1_1663834949478_0.9288118944860133"},"_hasShrinkwrap":false},"0.4.2":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/monorepo.git"},"version":"0.4.2","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"## Installation","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","types":"./dist/cjs/src/index.d.ts","scripts":{"build":"npm run build:forge && npm run typechain && npm run build:sdk","build:forge":"cd lib/contracts && forge install && forge build && forge build --contracts contracts/compound/CErc20PluginRewardsDelegate.sol --optimizer-runs 8 && forge build --contracts contracts/compound/CErc20PluginDelegate.sol --optimizer-runs 2","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","build:esm":"tsc -p tsconfig-sdk.json","build:cjs":"tsc -p tsconfig-cjs.json","setup":"cd lib/contracts && forge build","test:mocha":"nyc ts-mocha --require 'tests-mocha/globalTestHook.ts' --check-leaks --exit --timeout 60000 'tests-mocha/**/*.spec.ts'","test":"hardhat test --parallel --no-compile","test:bsc":"FORK_RPC_URL=${FORK_RPC_URL} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat test --no-compile","test:forge":"cd lib/contracts && forge test","export":"hardhat export --export-all ./deployments.json","export:all":"npm run export:bsc && npm run export:polygon && npm run export:moonbeam && npm run export:neondevnet && npm run export:chapel","export:bsc":"hardhat export --network bsc --export ../chains/deployments/bsc.json","export:polygon":"hardhat export --network polygon --export ../chains/deployments/polygon.json","export:moonbeam":"hardhat export --network moonbeam --export ../chains/deployments/moonbeam.json","export:arbitrum":"hardhat export --network arbitrum --export ../chains/deployments/arbitrum.json","export:neondevnet":"hardhat export --network neondevnet --export ../chains/deployments/neondevnet.json","export:chapel":"hardhat export --network chapel --export ../chains/deployments/chapel.json","export:evmos":"hardhat export --network evmostestnet --export ../chains/deployments/evmos.json","export:ganache":"hardhat export --network localhost --export ../chains/deployments/ganache.json","clean":"rm -rf dist","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'tests/**/*.ts'","lint":"eslint . -c .eslintrc.json --ext ts,json","lint-fix":"eslint . -c .eslintrc.json --fix --ext ts,json","typechain":"typechain --target ethers-v5 --out-dir './lib/contracts/typechain' './lib/contracts/out/**/!(*.metadata).json' --show-stack-traces","deploy:chapel":"hardhat --network chapel deploy --tags prod --no-compile","deploy:bsc":"hardhat --network bsc deploy --tags prod --no-compile","deploy:polygon":"hardhat --network polygon deploy --tags prod --no-compile","deploy:evmos":"hardhat --network evmostestnet deploy --tags prod --no-compile","deploy:moonbeam":"hardhat --network moonbeam deploy --tags prod --no-compile","deploy:arbitrum":"hardhat --network arbitrum deploy --tags prod --no-compile","deploy:neondevnet":"hardhat --network neondevnet deploy --tags prod --no-compile","deploy:localhost":"hardhat --network localhost deploy --tags prod --no-compile","forge":"forge","hardhat":"hardhat"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.3","@tenderly/hardhat-tenderly":"^1.1.6","@typechain/ethers-v5":"^10.1.0","@typechain/hardhat":"^6.1.2","@types/bad-words":"^3.0.1","@types/chai":"^4.3.3","@types/chai-as-promised":"^7","@types/chai-subset":"^1","@types/eslint":"^8.4.6","@types/mocha":"^9.1.1","@types/node":"^18.7.16","@types/sinon-chai":"^3","chai":"^4.3.6","chai-as-promised":"^7.1.1","chai-subset":"^1.6.0","dotenv":"^16.0.2","eslint":"^8.23.0","eslint-plugin-import":"^2.26.0","eslint-plugin-prettier":"^4.2.1","hardhat":"^2.11.1","hardhat-abi-exporter":"^2.10.0","hardhat-deploy":"^0.11.14","hardhat-tracer":"^1.1.0-rc.9","lint-staged":"13.0.3","mocha":"^10.0.0","nyc":"^15.1.0","prettier":"2.7.1","prettier-plugin-solidity":"1.0.0-beta.24","sinon":"^14.0.0","sinon-chai":"^3.7.0","ts-mocha":"^10.0.0","ts-node":"^10.9.1","typechain":"^8.1.0","typescript":"^4.8.2"},"dependencies":{"@keydonix/uniswap-oracle-sdk":"^1.0.7","@keydonix/uniswap-oracle-sdk-adapter":"^1.0.7","@midas-capital/chains":"workspace:*","@midas-capital/types":"workspace:*","bad-words":"^3.0.4","bufferutil":"^4.0.6","ethereum-waffle":"^3.4.4","ethers":"^5.7.0","utf-8-validate":"^5.0.9"},"readme":"# `@midas-capital/sdk`\n\n## Installation\n\n`npm install @midas-capital/sdk`\n\n```typescript\nimport { MidasSdk } from \"@midas-capital/sdk\";\nimport { ethers } from \"ethers\";\n\nconst chainId = 56;\nconst provider = new ethers.providers.JsonRpcProvider(\"PROVIDER_URL\");\n\nconst sdk = new Fuse(provider, chainId);\n\nconst poolOne = await sdk.fetchFusePoolData(\"1\");\n\nconst assetZero = poolOne.assets[0];\n\nconst borrowAPRAssetZero = sdk.ratePerBlockToAPY(\n  assetZero.borrowRatePerBlock,\n  20\n);\nconst supplyAPYAssetZero = sdk.ratePerBlockToAPY(\n  assetZero.supplyRatePerBlock,\n  20\n);\n```\n\n## Functions\n\n### fetchFusePoolData\n\n`fetchFusePoolData(poolId: string, signer?: string): Promise<FusePoolData>`\n\nFetch data about an individual pool on midas capital based on the pool id. The pool id can be extracted from the pool url `https://app.midascapital.xyz/56/pool/POOL_ID`\n\n### ratePerBlockToAPY\n\n`ratePerBlockToAPY(ratePerBlock: BigNumber, blocksPerMin: number): number`\n\nReturn the APY for a given current per-block borrow/supply interest rate. This rate can be included in the\n\n`FusePoolData['assets'][0].borrowRatePerBlock`\nand\n\n`FusePoolData['assets'][0].supplyRatePerBlock`\ncorrespondingly. (i.e. blocksPerMin for BSC: `20`)\n","readmeFilename":"README.md","gitHead":"cd6ee051fab2127fbdb727435789329dd416e49b","bugs":{"url":"https://github.com/midas-protocol/monorepo/issues"},"homepage":"https://github.com/midas-protocol/monorepo#readme","_id":"@midas-capital/sdk@0.4.2","_nodeVersion":"16.17.1","_npmVersion":"8.15.0","dist":{"integrity":"sha512-Znsq6/1JFFl4ZcCZt9SfRst6ghHMZTiXphspg9TgzffyIZC29Y9V9shALcorr8KH2PcV0olUQwdpRV2Q8VYACA==","shasum":"3192d9ffdb900e23df6b9e14c64e7700fc206a9e","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.4.2.tgz","fileCount":312,"unpackedSize":32063526,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAjOJnAjeC4tbAmEdfG4OjZ3Kbov2Se4F2XV9B3sdSvYAiEAqLEX5gs5GwyMgUy7zUq5zCQTbCIxoXeynLBm745N2C0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjUU9mACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmojNw/+LRhMGpI2QGHFFodSdfWN1Re/5UrR0TGHcPjMHzvK202B/7Je\r\n/Rd1VI4dOiOf08u1TjFKxITZoAmoiBRP6WQkvP1+UBrRqWpCkISwlah96sXW\r\nBeluZf8snlkrSI5xArx/ZNMcRqiFZ0r3wbZRDlQlIMYHmzFZDEAfuy6rA05c\r\negggy1ZwADuaOt2Ta0Qbxb4AtZPQ4/vEFvAOFl82NNCbJW6u3QyaxcLKkaT4\r\nEV2gr8wDYxAhc7b+JJGn/e9efrq3PTQRgr/M4kJArNzZeLLZ7hJf7By2dQK5\r\n0IFSCIUTV8uGN3ztXbqqJ4IZw1trsxzVMp/ZMQ4yIY4/0p1N70pFXTe5vniP\r\nmoYwmk0oyb/iVPvw4/8F4zeKhtN7JexWbjbp7m4NPyjGi5uQz3k2/lT72Owk\r\n0ti2Z1xlgY5rgBdJ3A23E9wvCtllTybOY6O40osHdtESurWtnHz+cDYiy09+\r\nJmobHTHRS4WMbJJRN32lH94VHR3oVINOXQtiBAaAgevV++oK1OILonpffNOB\r\nerx3m00BpfpgcfvrdZGvUtpoJD4pXnIYkTNF3ljW1rNcGHubGuBV1TGM2YTt\r\nvI/jaJgewXsq1IEk638L9eui0fCGMoq1hPMIp3xT/OnvGUKiywibcaa7vVNq\r\nVwsKc+KkCUZDI+i9b7GwUbLlCjVN+phHeyk=\r\n=xaIi\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.4.2_1666273126420_0.6994485860638346"},"_hasShrinkwrap":false},"0.4.3":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/monorepo.git"},"version":"0.4.3","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"## Installation","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","types":"./dist/cjs/src/index.d.ts","scripts":{"build":"npm run build:forge && npm run typechain && npm run build:sdk","build:forge":"cd lib/contracts && forge install && forge build && forge build --contracts contracts/compound/CErc20PluginRewardsDelegate.sol --optimizer-runs 8 && forge build --contracts contracts/compound/CErc20PluginDelegate.sol --optimizer-runs 2","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","build:esm":"tsc -p tsconfig-sdk.json","build:cjs":"tsc -p tsconfig-cjs.json","setup":"cd lib/contracts && forge build","test:mocha":"nyc ts-mocha --require 'tests-mocha/globalTestHook.ts' --check-leaks --exit --timeout 60000 'tests-mocha/**/*.spec.ts'","test":"hardhat test --parallel --no-compile","test:bsc":"FORK_RPC_URL=${FORK_RPC_URL} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat test --no-compile","test:forge":"cd lib/contracts && forge test","export":"hardhat export --export-all ./deployments.json","export:all":"npm run export:bsc && npm run export:polygon && npm run export:moonbeam && npm run export:neondevnet && npm run export:chapel","export:bsc":"hardhat export --network bsc --export ../chains/deployments/bsc.json","export:polygon":"hardhat export --network polygon --export ../chains/deployments/polygon.json","export:moonbeam":"hardhat export --network moonbeam --export ../chains/deployments/moonbeam.json","export:arbitrum":"hardhat export --network arbitrum --export ../chains/deployments/arbitrum.json","export:neondevnet":"hardhat export --network neondevnet --export ../chains/deployments/neondevnet.json","export:chapel":"hardhat export --network chapel --export ../chains/deployments/chapel.json","export:evmos":"hardhat export --network evmostestnet --export ../chains/deployments/evmos.json","export:ganache":"hardhat export --network localhost --export ../chains/deployments/ganache.json","clean":"rm -rf dist","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'tests/**/*.ts'","lint":"eslint . -c .eslintrc.json --ext ts,json","lint-fix":"eslint . -c .eslintrc.json --fix --ext ts,json","typechain":"typechain --target ethers-v5 --out-dir './lib/contracts/typechain' './lib/contracts/out/**/!(*.metadata).json' --show-stack-traces","deploy:chapel":"hardhat --network chapel deploy --tags prod --no-compile","deploy:bsc":"hardhat --network bsc deploy --tags prod --no-compile","deploy:polygon":"hardhat --network polygon deploy --tags prod --no-compile","deploy:evmos":"hardhat --network evmostestnet deploy --tags prod --no-compile","deploy:moonbeam":"hardhat --network moonbeam deploy --tags prod --no-compile","deploy:arbitrum":"hardhat --network arbitrum deploy --tags prod --no-compile","deploy:neondevnet":"hardhat --network neondevnet deploy --tags prod --no-compile","deploy:localhost":"hardhat --network localhost deploy --tags prod --no-compile","forge":"forge","hardhat":"hardhat"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.3","@tenderly/hardhat-tenderly":"^1.1.6","@typechain/ethers-v5":"^10.1.0","@typechain/hardhat":"^6.1.2","@types/bad-words":"^3.0.1","@types/chai":"^4.3.3","@types/chai-as-promised":"^7","@types/chai-subset":"^1","@types/eslint":"^8.4.6","@types/mocha":"^9.1.1","@types/node":"^18.7.16","@types/sinon-chai":"^3","chai":"^4.3.6","chai-as-promised":"^7.1.1","chai-subset":"^1.6.0","dotenv":"^16.0.2","eslint":"^8.23.0","eslint-plugin-import":"^2.26.0","eslint-plugin-prettier":"^4.2.1","hardhat":"^2.11.1","hardhat-abi-exporter":"^2.10.0","hardhat-deploy":"^0.11.14","hardhat-tracer":"^1.1.0-rc.9","lint-staged":"13.0.3","mocha":"^10.0.0","nyc":"^15.1.0","prettier":"2.7.1","prettier-plugin-solidity":"1.0.0-beta.24","sinon":"^14.0.0","sinon-chai":"^3.7.0","ts-mocha":"^10.0.0","ts-node":"^10.9.1","typechain":"^8.1.0","typescript":"^4.8.2"},"dependencies":{"@keydonix/uniswap-oracle-sdk":"^1.0.7","@keydonix/uniswap-oracle-sdk-adapter":"^1.0.7","@midas-capital/chains":"workspace:*","@midas-capital/types":"workspace:*","bad-words":"^3.0.4","bufferutil":"^4.0.6","ethereum-waffle":"^3.4.4","ethers":"^5.7.0","utf-8-validate":"^5.0.9"},"readme":"# `@midas-capital/sdk`\n\n## Installation\n\n`npm install @midas-capital/sdk`\n\n```typescript\nimport { MidasSdk } from \"@midas-capital/sdk\";\nimport { ethers } from \"ethers\";\n\nconst chainId = 56;\nconst provider = new ethers.providers.JsonRpcProvider(\"PROVIDER_URL\");\n\nconst sdk = new Fuse(provider, chainId);\n\nconst poolOne = await sdk.fetchFusePoolData(\"1\");\n\nconst assetZero = poolOne.assets[0];\n\nconst borrowAPRAssetZero = sdk.ratePerBlockToAPY(\n  assetZero.borrowRatePerBlock,\n  20\n);\nconst supplyAPYAssetZero = sdk.ratePerBlockToAPY(\n  assetZero.supplyRatePerBlock,\n  20\n);\n```\n\n## Functions\n\n### fetchFusePoolData\n\n`fetchFusePoolData(poolId: string, signer?: string): Promise<FusePoolData>`\n\nFetch data about an individual pool on midas capital based on the pool id. The pool id can be extracted from the pool url `https://app.midascapital.xyz/56/pool/POOL_ID`\n\n### ratePerBlockToAPY\n\n`ratePerBlockToAPY(ratePerBlock: BigNumber, blocksPerMin: number): number`\n\nReturn the APY for a given current per-block borrow/supply interest rate. This rate can be included in the\n\n`FusePoolData['assets'][0].borrowRatePerBlock`\nand\n\n`FusePoolData['assets'][0].supplyRatePerBlock`\ncorrespondingly. (i.e. blocksPerMin for BSC: `20`)\n","readmeFilename":"README.md","gitHead":"08012091d63508a6a21fa774bcd9c8c40f002d80","bugs":{"url":"https://github.com/midas-protocol/monorepo/issues"},"homepage":"https://github.com/midas-protocol/monorepo#readme","_id":"@midas-capital/sdk@0.4.3","_nodeVersion":"16.17.1","_npmVersion":"8.15.0","dist":{"integrity":"sha512-BafEPlqH1OVOVX6N5DBQPE/SjI8fLWwnMxLi16b2A9airdJ3FJjXjsoruwdoAbieYRC1vorVZ1N0cqqIbaxmOw==","shasum":"5fa939b1917e1ce24ca9ac539afed0419b9fa924","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.4.3.tgz","fileCount":314,"unpackedSize":32323757,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCyTEIN01ay0fPK7XHRm2WYnQRsa0rR1ajPPctlDf1xnwIgGRWSHXdPl9uTPKMNNV2P69L8LpeTfdIphd1K6vergK4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjWmsZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp6kA/5AbRf+z+IPP+wW6c7sYCtSbZVLV1d2Em7x1zPKaykvzEgLPMB\r\n5CzEQgmPfxdzztUsfA+8gpEXd5o7z8huvNbxlcTQcwF0Xdou5q80wP8QsvQ8\r\nQt/prFZ1mMa2YIaEBheKUYkIP9z1r/Q5YgK7Ji1ugfcC/GsUzoePLD8xe24Y\r\nxXLzP6lZHvfvbI8vH/CU9aLvzQtVOopqw++tb3yCW3dpShY7ZHRaUeytm6+L\r\nAJkcgz+G0Xm3FpmjY9/9Qqii1UezZFMHSmQ+PQDqVzfsJS43dcIqI+3P70QX\r\n42xIigej1vCFgg382nLdUgcIJEnD1WvjkdPuNPDW+cJkDTZGRMFvbGaQ9qPh\r\nQAiXKG/eyZjAE22E6qDPrVuBfTyzMA8QaAs5MFrig5tIpwy1N2BNwKGcOl/k\r\n8RfAKgW1jqERb6sKu32wOda52HuWeQVIJTJQ21GYXhUwl9TkBcvN2msI/RGd\r\n9xqV2Gk2vIEMWY6Qg/EOzK60B+p6/ulXJW3gZ9Z4c9CJTHQdHSDUE5cyTXwH\r\njSaCniBTIKZps1q23NVpT3SwM2RtLosExYRzZZFO/LpmX4qJK3Z2pkstP+De\r\nvEawMqzZ1s+3cwHBzemBOdDsC9WhtabIUCicBTWW6xNP8vPLFJhivR796PbB\r\nrOoispFlIylwJkqSCC3yVtPQVCNN+nLQq1c=\r\n=02b0\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.4.3_1666870041152_0.7769387850808629"},"_hasShrinkwrap":false},"0.4.4":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/monorepo.git"},"version":"0.4.4","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"## Installation","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","types":"./dist/cjs/src/index.d.ts","scripts":{"build":"npm run build:forge && npm run typechain && npm run build:sdk","build:forge":"cd lib/contracts && forge install && forge build && forge build --contracts contracts/compound/CErc20PluginRewardsDelegate.sol --optimizer-runs 8 && forge build --contracts contracts/compound/CErc20PluginDelegate.sol --optimizer-runs 2","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","build:esm":"tsc -p tsconfig-sdk.json","build:cjs":"tsc -p tsconfig-cjs.json","setup":"cd lib/contracts && forge build","test:mocha":"nyc ts-mocha --require 'tests-mocha/globalTestHook.ts' --check-leaks --exit --timeout 60000 'tests-mocha/**/*.spec.ts'","test":"hardhat test --parallel --no-compile","test:bsc":"FORK_RPC_URL=${FORK_RPC_URL} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat test --no-compile","test:forge":"cd lib/contracts && forge test","export":"hardhat export --export-all ./deployments.json","export:all":"npm run export:bsc && npm run export:polygon && npm run export:moonbeam && npm run export:neondevnet && npm run export:chapel","export:bsc":"hardhat export --network bsc --export ../chains/deployments/bsc.json","export:polygon":"hardhat export --network polygon --export ../chains/deployments/polygon.json","export:moonbeam":"hardhat export --network moonbeam --export ../chains/deployments/moonbeam.json","export:arbitrum":"hardhat export --network arbitrum --export ../chains/deployments/arbitrum.json","export:neondevnet":"hardhat export --network neondevnet --export ../chains/deployments/neondevnet.json","export:chapel":"hardhat export --network chapel --export ../chains/deployments/chapel.json","export:evmos":"hardhat export --network evmostestnet --export ../chains/deployments/evmos.json","export:ganache":"hardhat export --network localhost --export ../chains/deployments/ganache.json","clean":"rm -rf dist","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'tests/**/*.ts'","lint":"eslint . -c .eslintrc.json --ext ts,json","lint-fix":"eslint . -c .eslintrc.json --fix --ext ts,json","typechain":"typechain --target ethers-v5 --out-dir './lib/contracts/typechain' './lib/contracts/out/**/!(*.metadata).json' --show-stack-traces","deploy:chapel":"hardhat --network chapel deploy --tags prod --no-compile","deploy:bsc":"hardhat --network bsc deploy --tags prod --no-compile","deploy:polygon":"hardhat --network polygon deploy --tags prod --no-compile","deploy:evmos":"hardhat --network evmostestnet deploy --tags prod --no-compile","deploy:moonbeam":"hardhat --network moonbeam deploy --tags prod --no-compile","deploy:arbitrum":"hardhat --network arbitrum deploy --tags prod --no-compile","deploy:neondevnet":"hardhat --network neondevnet deploy --tags prod --no-compile","deploy:localhost":"hardhat --network localhost deploy --tags prod --no-compile","forge":"forge","hardhat":"hardhat"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.3","@tenderly/hardhat-tenderly":"^1.1.6","@typechain/ethers-v5":"^10.1.0","@typechain/hardhat":"^6.1.2","@types/bad-words":"^3.0.1","@types/chai":"^4.3.3","@types/chai-as-promised":"^7","@types/chai-subset":"^1","@types/eslint":"^8.4.6","@types/mocha":"^9.1.1","@types/node":"^18.7.16","@types/sinon-chai":"^3","chai":"^4.3.6","chai-as-promised":"^7.1.1","chai-subset":"^1.6.0","dotenv":"^16.0.2","eslint":"^8.23.0","eslint-plugin-import":"^2.26.0","eslint-plugin-prettier":"^4.2.1","hardhat":"^2.11.1","hardhat-abi-exporter":"^2.10.0","hardhat-deploy":"^0.11.14","hardhat-tracer":"^1.1.0-rc.9","lint-staged":"13.0.3","mocha":"^10.0.0","nyc":"^15.1.0","prettier":"2.7.1","prettier-plugin-solidity":"1.0.0-beta.24","sinon":"^14.0.0","sinon-chai":"^3.7.0","ts-mocha":"^10.0.0","ts-node":"^10.9.1","typechain":"^8.1.0","typescript":"^4.8.2"},"dependencies":{"@keydonix/uniswap-oracle-sdk":"^1.0.7","@keydonix/uniswap-oracle-sdk-adapter":"^1.0.7","@midas-capital/chains":"workspace:*","@midas-capital/types":"workspace:*","bad-words":"^3.0.4","bufferutil":"^4.0.6","ethereum-waffle":"^3.4.4","ethers":"^5.7.0","utf-8-validate":"^5.0.9"},"readme":"# `@midas-capital/sdk`\n\n## Installation\n\n`npm install @midas-capital/sdk`\n\n```typescript\nimport { MidasSdk } from \"@midas-capital/sdk\";\nimport { ethers } from \"ethers\";\n\nconst chainId = 56;\nconst provider = new ethers.providers.JsonRpcProvider(\"PROVIDER_URL\");\n\nconst sdk = new Fuse(provider, chainId);\n\nconst poolOne = await sdk.fetchFusePoolData(\"1\");\n\nconst assetZero = poolOne.assets[0];\n\nconst borrowAPRAssetZero = sdk.ratePerBlockToAPY(\n  assetZero.borrowRatePerBlock,\n  20\n);\nconst supplyAPYAssetZero = sdk.ratePerBlockToAPY(\n  assetZero.supplyRatePerBlock,\n  20\n);\n```\n\n## Functions\n\n### fetchFusePoolData\n\n`fetchFusePoolData(poolId: string, signer?: string): Promise<FusePoolData>`\n\nFetch data about an individual pool on midas capital based on the pool id. The pool id can be extracted from the pool url `https://app.midascapital.xyz/56/pool/POOL_ID`\n\n### ratePerBlockToAPY\n\n`ratePerBlockToAPY(ratePerBlock: BigNumber, blocksPerMin: number): number`\n\nReturn the APY for a given current per-block borrow/supply interest rate. This rate can be included in the\n\n`FusePoolData['assets'][0].borrowRatePerBlock`\nand\n\n`FusePoolData['assets'][0].supplyRatePerBlock`\ncorrespondingly. (i.e. blocksPerMin for BSC: `20`)\n","readmeFilename":"README.md","gitHead":"184c5a1e820d534e200b56b742c26f5e7d49218a","bugs":{"url":"https://github.com/midas-protocol/monorepo/issues"},"homepage":"https://github.com/midas-protocol/monorepo#readme","_id":"@midas-capital/sdk@0.4.4","_nodeVersion":"16.17.1","_npmVersion":"8.15.0","dist":{"integrity":"sha512-CVwjhl4x0Ibx5zuJQ5F9H1HK0sE6PioklVkE+9aIGHbMtTJsYh2IxdQWByzi8KEIdSyaD8qHcDE3q66P2A8iUg==","shasum":"12e2c13f69a9995789e5f602d457920128fdb038","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.4.4.tgz","fileCount":322,"unpackedSize":32373426,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCQnSvXels4psTAQ2hc9nl7GnsJ/WGTl4oGIuuIL2oP9AIhAMIunH4gJ53Pno9BowiT5SGfhd6JOCpbpLR6z1AwbGkf"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjYA6QACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrObg//Q1NzTmnVLK+F1g7nir6X4m9KKCy6E710lzyesafflaQ+Gmp4\r\njtQZwF6/brDnvvkjjvYb84skdGwYOuWYakYayReg0ETecHXLhQ8ixVg5TZ/q\r\nbhJZUA7UbukhStCZV6WoF91LDAvK+eR4xEABSE69jXrjCPxXlPtf9uOEYAn8\r\n04zUoyNmju8lZfSMM8IDu1463bEbTBz7IzzAXQ/+pOZTuimrSOMH3waVuReX\r\nHu5pw961BQOjvkg+daAIIL6bK6AfqBOCACBM5wVR7jKcDgBomKa2Cib38brC\r\ndog3kI2FeAivmdvv6fqdgxKZUo3gz890ixKn+4jwSYvzoaWwkeBlAqmM0Uk5\r\n7NLjlcnq0GMtF9wtig3f8tzoEKUYkpjCZxq0xxUUA734jZuALNSHz3lBTHUY\r\nUStH8Wv0snm3of4qftq9M62isMW5gN5yr3vWUpxU+lqJ/fyWcX5mBYMt6SoL\r\n3dALNPQKNA0XPWE6m4CcXTzUTqIcNQ9NbBGL17g9mtq/MG9CICVnmwpuBCgs\r\nCo7cShreug6VJ2XhbuqgkdzNK70vtoGhym3jj97EnEnzJIbfxocuNmMEtQ4A\r\nJ2Wi0a7lMeJRnskESlajVrBpGD8dhavj9zwXsRlE/7sB56xPVSNg8lr52PPL\r\nSkN+QSFyr257o64e5eMicdC8eonnuxkD0T8=\r\n=dw4G\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.4.4_1667239568103_0.44524272559035727"},"_hasShrinkwrap":false},"0.4.5":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/monorepo.git"},"version":"0.4.5","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"## Installation","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","types":"./dist/cjs/src/index.d.ts","scripts":{"build":"npm run build:forge && npm run typechain && npm run build:sdk","build:forge":"cd lib/contracts && forge install && forge build && forge build --contracts contracts/compound/CErc20PluginRewardsDelegate.sol --optimizer-runs 8 && forge build --contracts contracts/compound/CErc20PluginDelegate.sol --optimizer-runs 2","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","build:esm":"tsc -p tsconfig-sdk.json","build:cjs":"tsc -p tsconfig-cjs.json","setup":"cd lib/contracts && forge build","test:mocha":"nyc ts-mocha --require 'tests-mocha/globalTestHook.ts' --check-leaks --exit --timeout 60000 'tests-mocha/**/*.spec.ts'","test":"hardhat test --parallel --no-compile","test:bsc":"FORK_RPC_URL=${FORK_RPC_URL} FORK_BLOCK_NUMBER=${FORK_BLOCK_NUMBER} FORK_CHAIN_ID=56 hardhat test --no-compile","test:forge":"cd lib/contracts && forge test","export":"hardhat export --export-all ./deployments.json","export:all":"npm run export:bsc && npm run export:polygon && npm run export:moonbeam && npm run export:neondevnet && npm run export:chapel","export:bsc":"hardhat export --network bsc --export ../chains/deployments/bsc.json","export:polygon":"hardhat export --network polygon --export ../chains/deployments/polygon.json","export:moonbeam":"hardhat export --network moonbeam --export ../chains/deployments/moonbeam.json","export:arbitrum":"hardhat export --network arbitrum --export ../chains/deployments/arbitrum.json","export:neondevnet":"hardhat export --network neondevnet --export ../chains/deployments/neondevnet.json","export:chapel":"hardhat export --network chapel --export ../chains/deployments/chapel.json","export:evmos":"hardhat export --network evmostestnet --export ../chains/deployments/evmos.json","export:ganache":"hardhat export --network localhost --export ../chains/deployments/ganache.json","clean":"rm -rf dist","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'tests/**/*.ts'","lint":"eslint . -c .eslintrc.json --ext ts,json","lint-fix":"eslint . -c .eslintrc.json --fix --ext ts,json","typechain":"typechain --target ethers-v5 --out-dir './lib/contracts/typechain' './lib/contracts/out/**/!(*.metadata).json' --show-stack-traces","deploy:chapel":"hardhat --network chapel deploy --tags prod --no-compile","deploy:bsc":"hardhat --network bsc deploy --tags prod --no-compile","deploy:polygon":"hardhat --network polygon deploy --tags prod --no-compile","deploy:evmos":"hardhat --network evmostestnet deploy --tags prod --no-compile","deploy:moonbeam":"hardhat --network moonbeam deploy --tags prod --no-compile","deploy:arbitrum":"hardhat --network arbitrum deploy --tags prod --no-compile","deploy:neondevnet":"hardhat --network neondevnet deploy --tags prod --no-compile","deploy:localhost":"hardhat --network localhost deploy --tags prod --no-compile","forge":"forge","hardhat":"hardhat"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.3","@tenderly/hardhat-tenderly":"^1.1.6","@typechain/ethers-v5":"^10.1.0","@typechain/hardhat":"^6.1.2","@types/bad-words":"^3.0.1","@types/chai":"^4.3.3","@types/chai-as-promised":"^7","@types/chai-subset":"^1","@types/eslint":"^8.4.6","@types/mocha":"^9.1.1","@types/node":"^18.7.16","@types/sinon-chai":"^3","chai":"^4.3.6","chai-as-promised":"^7.1.1","chai-subset":"^1.6.0","dotenv":"^16.0.2","eslint":"^8.23.0","eslint-plugin-import":"^2.26.0","eslint-plugin-prettier":"^4.2.1","hardhat":"^2.11.1","hardhat-abi-exporter":"^2.10.0","hardhat-deploy":"^0.11.14","hardhat-tracer":"^1.1.0-rc.9","lint-staged":"13.0.3","mocha":"^10.0.0","nyc":"^15.1.0","prettier":"2.7.1","prettier-plugin-solidity":"1.0.0-beta.24","sinon":"^14.0.0","sinon-chai":"^3.7.0","ts-mocha":"^10.0.0","ts-node":"^10.9.1","typechain":"^8.1.0","typescript":"^4.8.2"},"dependencies":{"@keydonix/uniswap-oracle-sdk":"^1.0.7","@keydonix/uniswap-oracle-sdk-adapter":"^1.0.7","@midas-capital/chains":"workspace:*","@midas-capital/types":"workspace:*","bad-words":"^3.0.4","bufferutil":"^4.0.6","ethereum-waffle":"^3.4.4","ethers":"^5.7.0","utf-8-validate":"^5.0.9"},"readme":"# `@midas-capital/sdk`\n\n## Installation\n\n`npm install @midas-capital/sdk`\n\n```typescript\nimport { MidasSdk } from \"@midas-capital/sdk\";\nimport { ethers } from \"ethers\";\n\nconst chainId = 56;\nconst provider = new ethers.providers.JsonRpcProvider(\"PROVIDER_URL\");\n\nconst sdk = new Fuse(provider, chainId);\n\nconst poolOne = await sdk.fetchFusePoolData(\"1\");\n\nconst assetZero = poolOne.assets[0];\n\nconst borrowAPRAssetZero = sdk.ratePerBlockToAPY(\n  assetZero.borrowRatePerBlock,\n  20\n);\nconst supplyAPYAssetZero = sdk.ratePerBlockToAPY(\n  assetZero.supplyRatePerBlock,\n  20\n);\n```\n\n## Functions\n\n### fetchFusePoolData\n\n`fetchFusePoolData(poolId: string, signer?: string): Promise<FusePoolData>`\n\nFetch data about an individual pool on midas capital based on the pool id. The pool id can be extracted from the pool url `https://app.midascapital.xyz/56/pool/POOL_ID`\n\n### ratePerBlockToAPY\n\n`ratePerBlockToAPY(ratePerBlock: BigNumber, blocksPerMin: number): number`\n\nReturn the APY for a given current per-block borrow/supply interest rate. This rate can be included in the\n\n`FusePoolData['assets'][0].borrowRatePerBlock`\nand\n\n`FusePoolData['assets'][0].supplyRatePerBlock`\ncorrespondingly. (i.e. blocksPerMin for BSC: `20`)\n","readmeFilename":"README.md","gitHead":"4627764ac40ecc846707f8e3984a34bb7ad7ae6f","bugs":{"url":"https://github.com/midas-protocol/monorepo/issues"},"homepage":"https://github.com/midas-protocol/monorepo#readme","_id":"@midas-capital/sdk@0.4.5","_nodeVersion":"16.18.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-EBZdUmhgJP1VNGzIK/luILe4AbBE0L0mgIkZMbC3gCmmYH6NnFR4DVf0YurBuNru88T4nm92Vg5ozOvfh1F9NQ==","shasum":"1ca479e6dbb8acd2facc713162685e04f637180b","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.4.5.tgz","fileCount":322,"unpackedSize":32442750,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFlbnA84pkQSHhx8yKsuawsBibKyEiyThJYFxeGKlD/mAiBpyQyEz5dAlfAFoAo0+lMiIlAQLPeB+fUAkzgl8nPbEw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjZ4ifACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqDhQ/+L7mnFdHkHQtnn3333d7rwEmCnRRZV90qz0wKYsYBoN/81InR\r\nZIHQXZQTe+GjZgpt+vSxi29N1XJvbfay130G8mIdAUYCIB/kIayCngQFSBrc\r\nVUA6LorihQG/ARhsHzypV44884li6+UB0NWbp7Um/UF4PH0hPhgrzSQGpYUg\r\n5gSBw5qbosRplpVQyrTziQuEUPIYIIohMXnCCo3+6GYdkj137sKN10GVc/wB\r\nGF07clBZh83RmcDUCTX9oF96bZNER7Vyf9XYnUsQMuhY8/X4dx/pfx4OY6kO\r\nz4E8kGdGfvXyr2FIRaWHiYXhfvHaS8LejmS/ONZt8D6CdISM6F+d2eGmH0Tg\r\nixaOWK5C1rx6kvtrfarG6rSgfDaNC4T4XlyaWiBI8d9E8JeDvF14YOQ5UCMO\r\n6wiU5T18q0VFt2kdVP6k4VOqDSW+YFNIAJEEsKE/aprhHx257/6MjWVLJhC/\r\nTJgA5w72C5QvvnBxTgLv7QRfMSqIp37sfwZKCmT2JBmh4efCR9v3smRT2g3m\r\no/JUJCQbmhqr19PtkEJsU3AMcXokAZj6qLSzECKEFzd6iYPsPwtZ2Wz1uduR\r\nPteRgYkYro8yYEAq9boKZkydUH10KeBrQ/0lDvBMmSWPcuyZFjoU+F+++ZvJ\r\n5/WqS1QBRPUKLKf43rd7qRZ1nlYEnmRngLU=\r\n=DH2O\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.4.5_1667729567548_0.06879040494547684"},"_hasShrinkwrap":false},"0.4.6":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/monorepo.git"},"version":"0.4.6","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"## Installation","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","types":"./dist/cjs/src/index.d.ts","scripts":{"build":"npm run build:forge && npm run typechain && npm run build:sdk","build:forge":"cd lib/contracts && forge install && forge build && forge build --contracts contracts/compound/CErc20PluginRewardsDelegate.sol --optimizer-runs 8 && forge build --contracts contracts/compound/CErc20PluginDelegate.sol --optimizer-runs 2","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","build:esm":"tsc -p tsconfig-sdk.json","build:cjs":"tsc -p tsconfig-cjs.json","setup":"cd lib/contracts && forge build","test:mocha":"nyc ts-mocha --require 'tests-mocha/globalTestHook.ts' --check-leaks --exit --timeout 60000 'tests-mocha/**/*.spec.ts'","test":"hardhat test --parallel --no-compile","test:bsc":"SIMULATION=true FORK_RPC_URL=${FORK_RPC_URL} FORK_CHAIN_ID=56 hardhat test --no-compile","test:forge":"cd lib/contracts && forge test","export":"hardhat export --export-all ./deployments.json","export:all":"npm run export:bsc && npm run export:polygon && npm run export:moonbeam && npm run export:neondevnet && npm run export:chapel","export:bsc":"hardhat export --network bsc --export ../chains/deployments/bsc.json","export:polygon":"hardhat export --network polygon --export ../chains/deployments/polygon.json","export:moonbeam":"hardhat export --network moonbeam --export ../chains/deployments/moonbeam.json","export:arbitrum":"hardhat export --network arbitrum --export ../chains/deployments/arbitrum.json","export:neondevnet":"hardhat export --network neondevnet --export ../chains/deployments/neondevnet.json","export:chapel":"hardhat export --network chapel --export ../chains/deployments/chapel.json","export:evmos":"hardhat export --network evmostestnet --export ../chains/deployments/evmos.json","export:fantom":"hardhat export --network fantom --export ../chains/deployments/fantom.json","export:ganache":"hardhat export --network localhost --export ../chains/deployments/ganache.json","clean":"rm -rf dist","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'tests/**/*.ts'","lint":"eslint . -c .eslintrc.json --ext ts,json","lint-fix":"eslint . -c .eslintrc.json --fix --ext ts,json","typechain":"typechain --target ethers-v5 --out-dir './lib/contracts/typechain' './lib/contracts/out/**/!(*.metadata).json' --show-stack-traces","deploy:chapel":"hardhat --network chapel deploy --tags prod --no-compile","deploy:bsc":"hardhat --network bsc deploy --tags prod --no-compile","deploy:polygon":"hardhat --network polygon deploy --tags prod --no-compile","deploy:evmos":"hardhat --network evmostestnet deploy --tags prod --no-compile","deploy:moonbeam":"hardhat --network moonbeam deploy --tags prod --no-compile","deploy:arbitrum":"hardhat --network arbitrum deploy --tags prod --no-compile","deploy:fantom":"hardhat --network fantom deploy --tags prod --no-compile","deploy:neondevnet":"hardhat --network neondevnet deploy --tags prod --no-compile","deploy:localhost":"hardhat --network localhost deploy --tags prod --no-compile","forge":"forge","hardhat":"hardhat"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.3","@tenderly/hardhat-tenderly":"^1.1.6","@typechain/ethers-v5":"^10.1.0","@typechain/hardhat":"^6.1.2","@types/bad-words":"^3.0.1","@types/chai":"^4.3.3","@types/chai-as-promised":"^7","@types/chai-subset":"^1","@types/eslint":"^8.4.6","@types/mocha":"^9.1.1","@types/node":"^18.7.16","@types/sinon-chai":"^3","chai":"^4.3.6","chai-as-promised":"^7.1.1","chai-subset":"^1.6.0","dotenv":"^16.0.2","eslint":"^8.23.0","eslint-plugin-import":"^2.26.0","eslint-plugin-prettier":"^4.2.1","hardhat":"^2.11.1","hardhat-abi-exporter":"^2.10.0","hardhat-deploy":"^0.11.14","hardhat-tracer":"^1.1.0-rc.9","lint-staged":"13.0.3","mocha":"^10.0.0","nyc":"^15.1.0","prettier":"2.7.1","prettier-plugin-solidity":"1.0.0-beta.24","sinon":"^14.0.0","sinon-chai":"^3.7.0","ts-mocha":"^10.0.0","ts-node":"^10.9.1","typechain":"^8.1.0","typescript":"^4.8.2"},"dependencies":{"@keydonix/uniswap-oracle-sdk":"^1.0.7","@keydonix/uniswap-oracle-sdk-adapter":"^1.0.7","@midas-capital/chains":"workspace:*","@midas-capital/types":"workspace:*","bad-words":"^3.0.4","bufferutil":"^4.0.6","ethereum-waffle":"^3.4.4","ethers":"^5.7.0","utf-8-validate":"^5.0.9"},"readme":"# `@midas-capital/sdk`\n\n## Installation\n\n`npm install @midas-capital/sdk`\n\n```typescript\nimport { MidasSdk } from \"@midas-capital/sdk\";\nimport { ethers } from \"ethers\";\n\nconst chainId = 56;\nconst provider = new ethers.providers.JsonRpcProvider(\"PROVIDER_URL\");\n\nconst sdk = new Fuse(provider, chainId);\n\nconst poolOne = await sdk.fetchFusePoolData(\"1\");\n\nconst assetZero = poolOne.assets[0];\n\nconst borrowAPRAssetZero = sdk.ratePerBlockToAPY(\n  assetZero.borrowRatePerBlock,\n  20\n);\nconst supplyAPYAssetZero = sdk.ratePerBlockToAPY(\n  assetZero.supplyRatePerBlock,\n  20\n);\n```\n\n## Functions\n\n### fetchFusePoolData\n\n`fetchFusePoolData(poolId: string, signer?: string): Promise<FusePoolData>`\n\nFetch data about an individual pool on midas capital based on the pool id. The pool id can be extracted from the pool url `https://app.midascapital.xyz/56/pool/POOL_ID`\n\n### ratePerBlockToAPY\n\n`ratePerBlockToAPY(ratePerBlock: BigNumber, blocksPerMin: number): number`\n\nReturn the APY for a given current per-block borrow/supply interest rate. This rate can be included in the\n\n`FusePoolData['assets'][0].borrowRatePerBlock`\nand\n\n`FusePoolData['assets'][0].supplyRatePerBlock`\ncorrespondingly. (i.e. blocksPerMin for BSC: `20`)\n","readmeFilename":"README.md","gitHead":"ce781027c3bfe5a75ca70226d32a759620db3a21","bugs":{"url":"https://github.com/midas-protocol/monorepo/issues"},"homepage":"https://github.com/midas-protocol/monorepo#readme","_id":"@midas-capital/sdk@0.4.6","_nodeVersion":"16.18.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-c9vDSmt3cdKAq2r5Qn6jSQJkEv/RSGO65iRb+ngQmLhzhbs98aKJ3T1pLOYvqZ2iNsJAWbyI7tEjTgbhu27ieg==","shasum":"b4438985a7878afa9346c82e971678cac19d64e3","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.4.6.tgz","fileCount":328,"unpackedSize":32279897,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCDyEH/Ny+RzNuP+Sie5FLSu92i57XBqebm0y7wshL39gIgVnsS/NoJTrOQ/oUoJ0VopJR17MZITsEVSZAXUYjwN+E="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjfhOoACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp4bA//ZKsJUdyQF1LKAVpvGcMDR6PtK0NMkDEYFK7GfQqtcTSlq138\r\nRXXeWBMtUJvifYWslnutsZLAWA5jxj72pNii3tleMO6pd21dkIIPz63Yw27d\r\n1GFux+FKS/u4V5XPeZ4VDp52RJkEdKHXrcI7k6UDz/H3fq6GClcewwRhl45w\r\netAzM6sFHLFH4Z5gLyWBljXrX/oxeNoou5AUT8WYCmgp2flMXqucupnZ02Qd\r\n0iLp6A9UT121dkd5COMMhZJkPWrTw84dC/qNWpPlOQQBegRBdpcKPLMotsiv\r\nI8K2kai9hL8Pou8vVh3hNTabMeZ+ooZb/PM0haY60kk72jkBEsOehBFxRIk3\r\nJnhpUUARqd6DzSmWHZtOR0T1ehBrag/Q0lJn8W0XiPOzBxd9RYpbqKSyd8J1\r\nUB+qaOGDVzLRgU3gK0af09Bh1excLkmBxuDLIsAFnpSWe758RJn2Lf2hpGN8\r\ncFV0gaTRBiE6mp0yKe+tE8q+BkA2D+ww4b+kYUfykakkqaplsa8e3mJTUC35\r\nohMDyTRyrJLG4W9KG9zs134M0Iz8B32GiuQdgSoHr5t6DStUAdx2eUE2h8Go\r\n5aSQ7utCfQPunrT4g5b82YA6JC1kHrGOu/RnPlPSRT1od7iSsmk/hXfOp4MZ\r\nyBbKWfUnSPFjocP1AV2/GAsfpVD4PXZ8Pc8=\r\n=31ND\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.4.6_1669206952036_0.09821854778987227"},"_hasShrinkwrap":false},"0.4.7":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/monorepo.git"},"version":"0.4.7","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"## Installation","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","types":"./dist/cjs/src/index.d.ts","scripts":{"build":"npm run build:forge && npm run typechain && npm run build:sdk","build:forge":"cd lib/contracts && forge install && forge build && forge build --contracts contracts/compound/CErc20PluginRewardsDelegate.sol --optimizer-runs 8 && forge build --contracts contracts/compound/CErc20PluginDelegate.sol --optimizer-runs 2","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","build:esm":"tsc -p tsconfig-sdk.json","build:cjs":"tsc -p tsconfig-cjs.json","setup":"cd lib/contracts && forge build","test:mocha":"nyc ts-mocha --require 'tests-mocha/globalTestHook.ts' --check-leaks --exit --timeout 60000 'tests-mocha/**/*.spec.ts'","test":"hardhat test --parallel --no-compile","test:bsc":"SIMULATION=true FORK_RPC_URL=${FORK_RPC_URL} FORK_CHAIN_ID=56 hardhat test --no-compile","test:forge":"cd lib/contracts && forge test","export":"hardhat export --export-all ./deployments.json","export:all":"npm run export:bsc && npm run export:polygon && npm run export:moonbeam && npm run export:neondevnet && npm run export:chapel","export:bsc":"hardhat export --network bsc --export ../chains/deployments/bsc.json","export:polygon":"hardhat export --network polygon --export ../chains/deployments/polygon.json","export:moonbeam":"hardhat export --network moonbeam --export ../chains/deployments/moonbeam.json","export:arbitrum":"hardhat export --network arbitrum --export ../chains/deployments/arbitrum.json","export:neondevnet":"hardhat export --network neondevnet --export ../chains/deployments/neondevnet.json","export:chapel":"hardhat export --network chapel --export ../chains/deployments/chapel.json","export:evmos":"hardhat export --network evmos --export ../chains/deployments/evmos.json","export:fantom":"hardhat export --network fantom --export ../chains/deployments/fantom.json","export:ganache":"hardhat export --network localhost --export ../chains/deployments/ganache.json","clean":"rm -rf dist","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'tests/**/*.ts'","lint":"eslint . -c .eslintrc.json --ext ts,json","lint-fix":"eslint . -c .eslintrc.json --fix --ext ts,json","typechain":"typechain --target ethers-v5 --out-dir './lib/contracts/typechain' './lib/contracts/out/**/!(*.metadata).json' --show-stack-traces","deploy:chapel":"hardhat --network chapel deploy --tags prod --no-compile","deploy:bsc":"hardhat --network bsc deploy --tags prod --no-compile","deploy:polygon":"hardhat --network polygon deploy --tags prod --no-compile","deploy:evmos":"hardhat --network evmos deploy --tags prod --no-compile","deploy:moonbeam":"hardhat --network moonbeam deploy --tags prod --no-compile","deploy:arbitrum":"hardhat --network arbitrum deploy --tags prod --no-compile","deploy:fantom":"hardhat --network fantom deploy --tags prod --no-compile","deploy:neondevnet":"hardhat --network neondevnet deploy --tags prod --no-compile","deploy:localhost":"hardhat --network localhost deploy --tags prod --no-compile","forge":"forge","hardhat":"hardhat"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.3","@tenderly/hardhat-tenderly":"^1.1.6","@typechain/ethers-v5":"^10.1.0","@typechain/hardhat":"^6.1.2","@types/bad-words":"^3.0.1","@types/chai":"^4.3.3","@types/chai-as-promised":"^7","@types/chai-subset":"^1","@types/eslint":"^8.4.6","@types/mocha":"^9.1.1","@types/node":"^18.7.16","@types/sinon-chai":"^3","chai":"^4.3.6","chai-as-promised":"^7.1.1","chai-subset":"^1.6.0","dotenv":"^16.0.2","eslint":"^8.23.0","eslint-plugin-import":"^2.26.0","eslint-plugin-prettier":"^4.2.1","hardhat":"^2.11.1","hardhat-abi-exporter":"^2.10.0","hardhat-deploy":"^0.11.14","hardhat-tracer":"^1.1.0-rc.9","lint-staged":"13.0.3","mocha":"^10.0.0","nyc":"^15.1.0","prettier":"2.7.1","prettier-plugin-solidity":"1.0.0-beta.24","sinon":"^14.0.0","sinon-chai":"^3.7.0","ts-mocha":"^10.0.0","ts-node":"^10.9.1","typechain":"^8.1.0","typescript":"^4.8.2"},"dependencies":{"@keydonix/uniswap-oracle-sdk":"^1.0.7","@keydonix/uniswap-oracle-sdk-adapter":"^1.0.7","@midas-capital/chains":"workspace:*","@midas-capital/types":"workspace:*","bad-words":"^3.0.4","bufferutil":"^4.0.6","ethereum-waffle":"^3.4.4","ethers":"^5.7.0","utf-8-validate":"^5.0.9"},"readme":"# `@midas-capital/sdk`\n\n## Installation\n\n`npm install @midas-capital/sdk`\n\n```typescript\nimport { MidasSdk } from \"@midas-capital/sdk\";\nimport { ethers } from \"ethers\";\n\nconst chainId = 56;\nconst provider = new ethers.providers.JsonRpcProvider(\"PROVIDER_URL\");\n\nconst sdk = new Fuse(provider, chainId);\n\nconst poolOne = await sdk.fetchFusePoolData(\"1\");\n\nconst assetZero = poolOne.assets[0];\n\nconst borrowAPRAssetZero = sdk.ratePerBlockToAPY(\n  assetZero.borrowRatePerBlock,\n  20\n);\nconst supplyAPYAssetZero = sdk.ratePerBlockToAPY(\n  assetZero.supplyRatePerBlock,\n  20\n);\n```\n\n## Functions\n\n### fetchFusePoolData\n\n`fetchFusePoolData(poolId: string, signer?: string): Promise<FusePoolData>`\n\nFetch data about an individual pool on midas capital based on the pool id. The pool id can be extracted from the pool url `https://app.midascapital.xyz/56/pool/POOL_ID`\n\n### ratePerBlockToAPY\n\n`ratePerBlockToAPY(ratePerBlock: BigNumber, blocksPerMin: number): number`\n\nReturn the APY for a given current per-block borrow/supply interest rate. This rate can be included in the\n\n`FusePoolData['assets'][0].borrowRatePerBlock`\nand\n\n`FusePoolData['assets'][0].supplyRatePerBlock`\ncorrespondingly. (i.e. blocksPerMin for BSC: `20`)\n","readmeFilename":"README.md","gitHead":"27df5b85745df00cf6c3dae177e2946da2e977fd","bugs":{"url":"https://github.com/midas-protocol/monorepo/issues"},"homepage":"https://github.com/midas-protocol/monorepo#readme","_id":"@midas-capital/sdk@0.4.7","_nodeVersion":"16.18.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-tAMcEpL04BQ6ubCr3b1pmC8AH7SzS41FXYbZUwGH3spCIvJnUxuzMvIQRuciULcJRM+am/gjtdmFYdvSlBxK6A==","shasum":"2e6b21702ae078b3e1613bb2c7961a43eaaf57ee","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.4.7.tgz","fileCount":336,"unpackedSize":33588749,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICgkMlKWuHj0ZjpyHIxqMOnZmOwBfQqWm+BWywmfJaBZAiEAibcNtg4PGdVWAu5db7MAevhj+N8tmqZ7ZS+c9LxVAOg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjkeOmACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpUVRAAmLbOgRW7BpCfSKmvgwLJ1fzpcqnpYJckZxzsrVRKXEZjB/63\r\nKHzbLE3kacgzoMKUnmFx+IMKTPRojoplfB30BLXnmiTIEBBEYCTEfvgkpMkD\r\n9Z5/84+Ofilm85LttRFK5aB1tr3Vsn8hCUMi9UiUG0LCL4V/tqvOC9/H9u10\r\nC5KbhD+GZDlZnDm0itYoQistuEYhyImAm2DphbcUC1XJ6prDQ8uyl4eQg9Zf\r\nVzUkVDmO3GvkJGz65G9ytF+guKSp2exM9N75wHwZ56+SPLFf1ifG+1nzw4eo\r\ndsIPzoSBx1HIe8OHV8bS2yf3F6aySYqvcMyo5bRZ4IOfLb1eNec+L4UBngf2\r\nf3hj7gUU0hxdcVYJLpK3mrJRbrLkNuuuc3bzSRwhM5IuwCoVpQ0zhjupIw4a\r\nXTzNy59evKnH7y82RnyhrFb+qjmvlXHwsvMdE0gkcfK7cpJf6Sub/gRlfy9w\r\n9HVDvOiryB8IVXIBIOvjqXAXFIQBrTexCoR4TCUB3S8U5V1jnZFPoA+N7Um4\r\n4Bzvv4zEpV0TyXXgOv/r72Wxa9qAVQLVU2GMPWeMsxgrg3kVmrzf131uB97w\r\nE2fh2UXuKMAlzGMSE+Txu9w8l+2hKFFQMHMSHKqld6LvC6+QNgppTgziVUjG\r\nY4wscRErB30ADorN+/E21KEaXyy3oHgZOF0=\r\n=JxLy\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.4.7_1670505382465_0.4549810292679357"},"_hasShrinkwrap":false},"0.4.8":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/monorepo.git"},"version":"0.4.8","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"## Installation","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","types":"./dist/cjs/src/index.d.ts","scripts":{"build":"npm run build:forge && npm run typechain && npm run build:sdk","build:forge":"cd lib/contracts && forge install && forge build && forge build --contracts contracts/compound/CErc20PluginRewardsDelegate.sol --optimizer-runs 8 && forge build --contracts contracts/compound/CErc20PluginDelegate.sol --optimizer-runs 2","build:sdk":"tsc -p tsconfig-sdk.json && tsc -p tsconfig-cjs.json","build:esm":"tsc -p tsconfig-sdk.json","build:cjs":"tsc -p tsconfig-cjs.json","setup":"cd lib/contracts && forge build","test:mocha":"nyc ts-mocha --require 'tests-mocha/globalTestHook.ts' --check-leaks --exit --timeout 60000 'tests-mocha/**/*.spec.ts'","test":"hardhat test --parallel --no-compile","test:bsc":"SIMULATION=true FORK_RPC_URL=${FORK_RPC_URL} FORK_CHAIN_ID=56 hardhat test --no-compile","test:forge":"cd lib/contracts && forge test","export":"hardhat export --export-all ./deployments.json","export:all":"npm run export:bsc && npm run export:polygon && npm run export:moonbeam && npm run export:neondevnet && npm run export:chapel","export:bsc":"hardhat export --network bsc --export ../chains/deployments/bsc.json","export:polygon":"hardhat export --network polygon --export ../chains/deployments/polygon.json","export:moonbeam":"hardhat export --network moonbeam --export ../chains/deployments/moonbeam.json","export:arbitrum":"hardhat export --network arbitrum --export ../chains/deployments/arbitrum.json","export:neondevnet":"hardhat export --network neondevnet --export ../chains/deployments/neondevnet.json","export:chapel":"hardhat export --network chapel --export ../chains/deployments/chapel.json","export:evmos":"hardhat export --network evmos --export ../chains/deployments/evmos.json","export:fantom":"hardhat export --network fantom --export ../chains/deployments/fantom.json","export:ganache":"hardhat export --network localhost --export ../chains/deployments/ganache.json","clean":"rm -rf dist","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'tests/**/*.ts'","lint":"eslint . -c .eslintrc.json --ext ts,json","lint-fix":"eslint . -c .eslintrc.json --fix --ext ts,json","typechain":"typechain --target ethers-v5 --out-dir './lib/contracts/typechain' './lib/contracts/out/**/!(*.metadata).json' --show-stack-traces","deploy:chapel":"hardhat --network chapel deploy --tags prod --no-compile","deploy:bsc":"hardhat --network bsc deploy --tags prod --no-compile","deploy:polygon":"hardhat --network polygon deploy --tags prod --no-compile","deploy:evmos":"hardhat --network evmos deploy --tags prod --no-compile","deploy:moonbeam":"hardhat --network moonbeam deploy --tags prod --no-compile","deploy:arbitrum":"hardhat --network arbitrum deploy --tags prod --no-compile","deploy:fantom":"hardhat --network fantom deploy --tags prod --no-compile","deploy:neondevnet":"hardhat --network neondevnet deploy --tags prod --no-compile","deploy:localhost":"hardhat --network localhost deploy --tags prod --no-compile","forge":"forge","hardhat":"hardhat"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.3","@tenderly/hardhat-tenderly":"^1.1.6","@typechain/ethers-v5":"^10.1.0","@typechain/hardhat":"^6.1.2","@types/bad-words":"^3.0.1","@types/chai":"^4.3.3","@types/chai-as-promised":"^7","@types/chai-subset":"^1","@types/eslint":"^8.4.6","@types/mocha":"^9.1.1","@types/node":"^18.7.16","@types/sinon-chai":"^3","chai":"^4.3.6","chai-as-promised":"^7.1.1","chai-subset":"^1.6.0","dotenv":"^16.0.2","eslint":"^8.23.0","eslint-plugin-import":"^2.26.0","eslint-plugin-prettier":"^4.2.1","hardhat":"^2.11.1","hardhat-abi-exporter":"^2.10.0","hardhat-deploy":"^0.11.14","hardhat-tracer":"^1.1.0-rc.9","lint-staged":"13.0.3","mocha":"^10.0.0","nyc":"^15.1.0","prettier":"2.7.1","prettier-plugin-solidity":"1.0.0-beta.24","sinon":"^14.0.0","sinon-chai":"^3.7.0","ts-mocha":"^10.0.0","ts-node":"^10.9.1","typechain":"^8.1.0","typescript":"^4.8.2"},"dependencies":{"@keydonix/uniswap-oracle-sdk":"^1.0.7","@keydonix/uniswap-oracle-sdk-adapter":"^1.0.7","@midas-capital/chains":"workspace:*","@midas-capital/types":"workspace:*","bad-words":"^3.0.4","bufferutil":"^4.0.6","ethereum-waffle":"^3.4.4","ethers":"^5.7.0","utf-8-validate":"^5.0.9"},"readme":"# `@midas-capital/sdk`\n\n## Installation\n\n`npm install @midas-capital/sdk`\n\n```typescript\nimport { MidasSdk } from \"@midas-capital/sdk\";\nimport { ethers } from \"ethers\";\n\nconst chainId = 56;\nconst provider = new ethers.providers.JsonRpcProvider(\"PROVIDER_URL\");\n\nconst sdk = new Fuse(provider, chainId);\n\nconst poolOne = await sdk.fetchFusePoolData(\"1\");\n\nconst assetZero = poolOne.assets[0];\n\nconst borrowAPRAssetZero = sdk.ratePerBlockToAPY(\n  assetZero.borrowRatePerBlock,\n  20\n);\nconst supplyAPYAssetZero = sdk.ratePerBlockToAPY(\n  assetZero.supplyRatePerBlock,\n  20\n);\n```\n\n## Functions\n\n### fetchFusePoolData\n\n`fetchFusePoolData(poolId: string, signer?: string): Promise<FusePoolData>`\n\nFetch data about an individual pool on midas capital based on the pool id. The pool id can be extracted from the pool url `https://app.midascapital.xyz/56/pool/POOL_ID`\n\n### ratePerBlockToAPY\n\n`ratePerBlockToAPY(ratePerBlock: BigNumber, blocksPerMin: number): number`\n\nReturn the APY for a given current per-block borrow/supply interest rate. This rate can be included in the\n\n`FusePoolData['assets'][0].borrowRatePerBlock`\nand\n\n`FusePoolData['assets'][0].supplyRatePerBlock`\ncorrespondingly. (i.e. blocksPerMin for BSC: `20`)\n","readmeFilename":"README.md","gitHead":"99c97b44aa47e0d42b0649983a8f70e53aa7c153","bugs":{"url":"https://github.com/midas-protocol/monorepo/issues"},"homepage":"https://github.com/midas-protocol/monorepo#readme","_id":"@midas-capital/sdk@0.4.8","_nodeVersion":"16.18.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-4utXoU06yIHByPaFoNjMsiLqXFIWE2M4YVrqsvFg+zMgiTFrwPYx1oPj1eCZk3HHOxG1RJ6LvDz39/ua5EJcMQ==","shasum":"1790324cc1a3c65626ee54714811b351a4e79075","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.4.8.tgz","fileCount":336,"unpackedSize":33837407,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF7z+S2wqKp797x/vsG7AGs8v1Ho2eK7hczb0WfLIsmgAiByT1EHMZ/r2VuGo8qkozzp2PwHZ2DfCn9tPcjbcWru6w=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjnLU9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoGQw//QQ1+N2Qz4bMd7/MmEt5Mp/Bog00AsaxaeZNKIOLSo769DwWo\r\nLHXelS5WzX1kpt4M6YAhVqaw//ewwsIXcHzEKfqoZ8eQbzQEp/WOFd3/YrHO\r\nL9VVvh3288iS5kUwLbh0QnYjk59+IBUqQZDDu+RdLSOhRISfwvJ3WCb8NtF6\r\ncCc6iE9sWRKuXGjeZ3K1epYFgkAq7/ye4yew3QchvRvOWGdjZC61njne5YPs\r\nG2YFSKYPO0gbq7zIMWShl71ZJ9Fp2FXPAwEaGHqEPhIpGuaZR+etxGLFsKEv\r\n7eJdw1uoHHEqbf7Uidob1tXLftBa94+E0ff8xDVB9WhBtWQHDqImQGKMy2D4\r\n99N5QFDlYLxaf4F/IWeGVmHJASvgreu40CRkAxbHALCvyFwodOqVMU6qj6NM\r\nnYSjH9v83HbtznAP4Q8G1LZlaKRmMfNKjxkM72JLIMt3hC552I8ewc1B4/F7\r\nP3CynfHmeqxNUYgub6/GOkqjVIa88jjBVLSZNK9ptYSFxUI3js7gazQjcHvt\r\nUD9SONXp/OK9Ym/Xqfld03XlxN0+jtcNMz1kTBGxuCxA2JR01885nf9FOq7+\r\nHiMsUuQGBZ7TDdX9LWGk5MsUdfN9W1Xu1fEvWTPG+u3Ahwk6N1YYXI5g5Ye/\r\nmknVVBqmhVVYLLOX/m2Zz++w698RqS818pg=\r\n=oUbc\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.4.8_1671214396826_0.31403619645402125"},"_hasShrinkwrap":false},"0.5.1":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/monorepo.git"},"version":"0.5.1","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"## Installation","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","types":"./dist/cjs/src/index.d.ts","scripts":{"prebuild":"rm -rf dist","build":"yarn run build:forge; yarn run artifacts; yarn run typechain; yarn run abimate; yarn run build:sdk","postbuild":"du -sk dist/cjs; du -sk dist/esm","clean":"rm -rf dist; rm -rf ./typechain; rm -rf ./artifacts; rm -rf ./abis","artifacts":"echo '> Gathering artifacts...'; ./scripts/move-artifacts.sh","typechain":"echo '> Creating typechain types...'; [ ! -d ./typechain ] && typechain --target ethers-v5 --out-dir './typechain' './artifacts/*.json' --show-stack-traces","abimate":"echo '> Extracting ABIs from artifacts...'; abimate ./abis ./artifacts/*.json","build:forge":"echo '> Building contracts...'; cd lib/contracts && forge install && forge build --sizes","build:sdk":"echo '> Compiling SDK...'; yarn run build:esm && yarn run build:cjs","build:esm":"echo '> Compiling ESM SDK Module...'; tsc -p tsconfig-sdk.json","build:cjs":"echo '> Compiling CJS SDK Module...'; tsc -p tsconfig-cjs.json","setup":"cd lib/contracts && forge build","test:mocha":"nyc ts-mocha --require 'tests-mocha/globalTestHook.ts' --check-leaks --exit --timeout 60000 'tests-mocha/**/*.spec.ts'","test":"hardhat test --parallel --no-compile","test:bsc":"SIMULATION=true FORK_RPC_URL=${FORK_RPC_URL} FORK_CHAIN_ID=56 hardhat test --no-compile","test:forge":"cd lib/contracts && forge test","export":"hardhat export --export-all ./deployments.json","export:all":"npm run export:bsc && npm run export:polygon && npm run export:moonbeam && npm run export:neondevnet && npm run export:chapel","export:bsc":"hardhat export --network bsc --export ../chains/deployments/bsc.json","export:polygon":"hardhat export --network polygon --export ../chains/deployments/polygon.json","export:moonbeam":"hardhat export --network moonbeam --export ../chains/deployments/moonbeam.json","export:arbitrum":"hardhat export --network arbitrum --export ../chains/deployments/arbitrum.json","export:neondevnet":"hardhat export --network neondevnet --export ../chains/deployments/neondevnet.json","export:chapel":"hardhat export --network chapel --export ../chains/deployments/chapel.json","export:evmos":"hardhat export --network evmos --export ../chains/deployments/evmos.json","export:fantom":"hardhat export --network fantom --export ../chains/deployments/fantom.json","export:ganache":"hardhat export --network localhost --export ../chains/deployments/ganache.json","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'tests/**/*.ts'","lint":"eslint . -c .eslintrc.json --ext ts,json","lint-fix":"eslint . -c .eslintrc.json --fix --ext ts,json","deploy:chapel":"hardhat --network chapel deploy --tags prod --no-compile","deploy:bsc":"hardhat --network bsc deploy --tags prod --no-compile","deploy:polygon":"hardhat --network polygon deploy --tags prod --no-compile","deploy:moonbeam":"hardhat --network moonbeam deploy --tags prod --no-compile","deploy:arbitrum":"hardhat --network arbitrum deploy --tags prod --no-compile","deploy:evmos":"hardhat --network evmos deploy --tags prod --no-compile","deploy:fantom":"hardhat --network fantom deploy --tags prod --no-compile","deploy:neondevnet":"hardhat --network neondevnet deploy --tags prod --no-compile","deploy:localhost":"hardhat --network localhost deploy --tags prod --no-compile","forge":"forge","hardhat":"hardhat"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@abimate/core":"^0.2.1","@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.3","@tenderly/hardhat-tenderly":"^1.1.6","@typechain/ethers-v5":"^10.1.0","@typechain/hardhat":"^6.1.2","@types/bad-words":"^3.0.1","@types/chai":"^4.3.3","@types/chai-as-promised":"^7","@types/chai-subset":"^1","@types/eslint":"^8.4.6","@types/mocha":"^9.1.1","@types/node":"^18.7.16","@types/sinon-chai":"^3","chai":"^4.3.6","chai-as-promised":"^7.1.1","chai-subset":"^1.6.0","dotenv":"^16.0.2","eslint":"^8.23.0","eslint-plugin-import":"^2.26.0","eslint-plugin-prettier":"^4.2.1","hardhat":"^2.11.1","hardhat-abi-exporter":"^2.10.0","hardhat-deploy":"^0.11.14","hardhat-tracer":"^1.1.0-rc.9","lint-staged":"13.0.3","mocha":"^10.0.0","nyc":"^15.1.0","prettier":"2.7.1","prettier-plugin-solidity":"1.0.0-beta.24","sinon":"^14.0.0","sinon-chai":"^3.7.0","ts-mocha":"^10.0.0","ts-node":"^10.9.1","typechain":"^8.1.0","typescript":"^4.8.2"},"dependencies":{"@keydonix/uniswap-oracle-sdk":"^1.0.7","@keydonix/uniswap-oracle-sdk-adapter":"^1.0.7","@midas-capital/chains":"workspace:*","@midas-capital/types":"workspace:*","bad-words":"^3.0.4","bufferutil":"^4.0.6","ethereum-waffle":"^3.4.4","ethers":"^5.7.0","utf-8-validate":"^5.0.9"},"readme":"# `@midas-capital/sdk`\n\n## Installation\n\n`npm install @midas-capital/sdk`\n\n```typescript\nimport { MidasSdk } from \"@midas-capital/sdk\";\nimport { ethers } from \"ethers\";\n\nconst chainId = 56;\nconst provider = new ethers.providers.JsonRpcProvider(\"PROVIDER_URL\");\n\nconst sdk = new Fuse(provider, chainId);\n\nconst poolOne = await sdk.fetchFusePoolData(\"1\");\n\nconst assetZero = poolOne.assets[0];\n\nconst borrowAPRAssetZero = sdk.ratePerBlockToAPY(\n  assetZero.borrowRatePerBlock,\n  20\n);\nconst supplyAPYAssetZero = sdk.ratePerBlockToAPY(\n  assetZero.supplyRatePerBlock,\n  20\n);\n```\n\n## Functions\n\n### fetchFusePoolData\n\n`fetchFusePoolData(poolId: string, signer?: string): Promise<FusePoolData>`\n\nFetch data about an individual pool on midas capital based on the pool id. The pool id can be extracted from the pool url `https://app.midascapital.xyz/56/pool/POOL_ID`\n\n### ratePerBlockToAPY\n\n`ratePerBlockToAPY(ratePerBlock: BigNumber, blocksPerMin: number): number`\n\nReturn the APY for a given current per-block borrow/supply interest rate. This rate can be included in the\n\n`FusePoolData['assets'][0].borrowRatePerBlock`\nand\n\n`FusePoolData['assets'][0].supplyRatePerBlock`\ncorrespondingly. (i.e. blocksPerMin for BSC: `20`)\n","readmeFilename":"README.md","gitHead":"4085c2959ee8a12c77a14217f525965a43205050","bugs":{"url":"https://github.com/midas-protocol/monorepo/issues"},"homepage":"https://github.com/midas-protocol/monorepo#readme","_id":"@midas-capital/sdk@0.5.1","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-SaHvl1byF4WBwvEPbWXIrfZQ9g7lHaxaE4S0WEPocm7tZx2iFAmFyMAguwKsgxU5TT5aGwjh4EFOJxVPJwoxvw==","shasum":"7a60c96ac07308eeea2acf88fa5c87fd8a3b8391","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.5.1.tgz","fileCount":725,"unpackedSize":92080678,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICJrltArXI6Qq8DvmvPFP3L2IuKAzwiERkoEQcfbJiOkAiAmgbEAyHH6DeFePnoDi4V+e8OZd3zRz3R+60hOve4jog=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj/1nsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrFlg//WDk9Zc/zOLVafljoymQZ4MOOmTseagy1ALNVWu06xE5AXQ2q\r\nn8KeMeeUI1W8knu/dMjjfoX7bdYzDWh1GsaJDPu22YI4x9+v9Zp8mfPgGCCx\r\niA1lQx3OX1V/8hKUMHj6Uyih61oAaSLF+7aDzNywPFIluTQ+jtXXwLvXCSnW\r\n4S0TeK61VxCV6G7Pron3lcris33WTDXwI/UMhZH0l3xC9UFpYXN1hZki+xo+\r\ngmTuvPpinbxAar5FMyXd/drYOWZYTk+Gy+ytmFzzLcjJOA7vesCCuJps4INN\r\nnvezjUGyIaQCeenrui3eYERgtZVnHs3uo+2XVJ50RPZSLYBTCj3din0AGwVs\r\ndxXtyrqDegF56v9IljDpt4UOkiWQuH/qo92Vvgn4Qtoi4jy2Bg6GdEhM3bEM\r\nnQV1oXtSGxph/Kyo3k9wJQuN1AvR5B4EmgvsUfkkuihuBfUWUKw5WvnFxA3+\r\nRKHISAWHHiJGDtEER3NKqSI3fSmlbDmfPwVg1cMaQ2q5JXhgYArfAHnxk3XP\r\norQs4c2hrvupsay5V2hmrIczaEHdIozFbzK8X7i8MiDTP6Pt9HEdgvms295o\r\nUcg4LtW1n6VsGAm7mWTLajTFP/vLAk3x1kyeeDU0iTrWuSAsylncWDMPOX1c\r\nJL9siXCsO5t7JrZ7KdXbAQrqeRASg18KND4=\r\n=97Vc\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.5.1_1677679084494_0.3339807487445796"},"_hasShrinkwrap":false},"0.5.2":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/monorepo.git"},"version":"0.5.2","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"## Installation","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","types":"./dist/cjs/src/index.d.ts","scripts":{"prebuild":"rm -rf dist","build":"yarn run build:forge; yarn run artifacts; yarn run typechain; yarn run abimate; yarn run build:sdk","postbuild":"du -sk dist/cjs; du -sk dist/esm","clean":"rm -rf dist; rm -rf ./typechain; rm -rf ./artifacts; rm -rf ./abis","artifacts":"echo '> Gathering artifacts...'; ./scripts/move-artifacts.sh","typechain":"echo '> Creating typechain types...'; [ ! -d ./typechain ] && typechain --target ethers-v5 --out-dir './typechain' './artifacts/*.json' --show-stack-traces","abimate":"echo '> Extracting ABIs from artifacts...'; abimate ./abis ./artifacts/*.json","build:forge":"echo '> Building contracts...'; cd lib/contracts && forge install && forge build --sizes","build:sdk":"echo '> Compiling SDK...'; yarn run build:esm && yarn run build:cjs","build:esm":"echo '> Compiling ESM SDK Module...'; tsc -p tsconfig-sdk.json","build:cjs":"echo '> Compiling CJS SDK Module...'; tsc -p tsconfig-cjs.json","setup":"cd lib/contracts && forge build","test:mocha":"nyc ts-mocha --require 'tests-mocha/globalTestHook.ts' --check-leaks --exit --timeout 60000 'tests-mocha/**/*.spec.ts'","test":"hardhat test --parallel --no-compile","test:bsc":"SIMULATION=true FORK_RPC_URL=${FORK_RPC_URL} FORK_CHAIN_ID=56 hardhat test --no-compile","test:forge":"cd lib/contracts && forge test","export":"hardhat export --export-all ./deployments.json","export:all":"npm run export:bsc && npm run export:polygon && npm run export:moonbeam && npm run export:neondevnet && npm run export:chapel","export:bsc":"hardhat export --network bsc --export ../chains/deployments/bsc.json","export:polygon":"hardhat export --network polygon --export ../chains/deployments/polygon.json","export:ethereum":"hardhat export --network ethereum --export ../chains/deployments/ethereum.json","export:moonbeam":"hardhat export --network moonbeam --export ../chains/deployments/moonbeam.json","export:arbitrum":"hardhat export --network arbitrum --export ../chains/deployments/arbitrum.json","export:neondevnet":"hardhat export --network neondevnet --export ../chains/deployments/neondevnet.json","export:basegoerli":"hardhat export --network basegoerli --export ../chains/deployments/basegoerli.json","export:chapel":"hardhat export --network chapel --export ../chains/deployments/chapel.json","export:evmos":"hardhat export --network evmos --export ../chains/deployments/evmos.json","export:fantom":"hardhat export --network fantom --export ../chains/deployments/fantom.json","export:ganache":"hardhat export --network localhost --export ../chains/deployments/ganache.json","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'tests/**/*.ts'","lint":"eslint . -c .eslintrc.json --ext ts,json","lint-fix":"eslint . -c .eslintrc.json --fix --ext ts,json","deploy:chapel":"hardhat --network chapel deploy --tags prod --no-compile","deploy:bsc":"hardhat --network bsc deploy --tags prod --no-compile","deploy:polygon":"hardhat --network polygon deploy --tags prod --no-compile","deploy:ethereum":"hardhat --network ethereum deploy --tags prod --no-compile","deploy:moonbeam":"hardhat --network moonbeam deploy --tags prod --no-compile","deploy:arbitrum":"hardhat --network arbitrum deploy --tags prod --no-compile","deploy:evmos":"hardhat --network evmos deploy --tags prod --no-compile","deploy:fantom":"hardhat --network fantom deploy --tags prod --no-compile","deploy:neondevnet":"hardhat --network neondevnet deploy --tags prod --no-compile","deploy:basegoerli":"hardhat --network basegoerli deploy --tags prod --no-compile","deploy:localhost":"hardhat --network localhost deploy --tags prod --no-compile","forge":"forge","hardhat":"hardhat"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@abimate/core":"^0.2.1","@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.5","@tenderly/hardhat-tenderly":"^1.7.2","@typechain/ethers-v5":"^10.2.0","@typechain/hardhat":"^6.1.5","@types/bad-words":"^3.0.1","@types/chai":"^4.3.4","@types/chai-as-promised":"^7","@types/chai-subset":"^1","@types/eslint":"^8.37.0","@types/mocha":"^10.0.1","@types/node":"^18.15.11","@types/sinon-chai":"^3","chai":"^4.3.7","chai-as-promised":"^7.1.1","chai-subset":"^1.6.0","dotenv":"^16.0.3","eslint":"^8.38.0","eslint-plugin-import":"^2.27.5","eslint-plugin-prettier":"^4.2.1","hardhat":"^2.14.0","hardhat-abi-exporter":"^2.10.1","hardhat-deploy":"^0.11.26","lint-staged":"13.2.1","mocha":"^10.2.0","nyc":"^15.1.0","prettier":"2.8.7","prettier-plugin-solidity":"1.1.3","sinon":"^15.0.3","sinon-chai":"^3.7.0","ts-mocha":"^10.0.0","ts-node":"^10.9.1","typechain":"^8.1.1","typescript":"^5.0.4"},"dependencies":{"@midas-capital/chains":"workspace:*","@midas-capital/types":"workspace:*","bad-words":"^3.0.4","bufferutil":"^4.0.7","ethereum-waffle":"^4.0.10","ethers":"^5.7.2","utf-8-validate":"^6.0.3"},"readme":"# `@midas-capital/sdk`\n\n## Installation\n\n`npm install @midas-capital/sdk`\n\n```typescript\nimport { MidasSdk } from \"@midas-capital/sdk\";\nimport { ethers } from \"ethers\";\n\nconst chainId = 56;\nconst provider = new ethers.providers.JsonRpcProvider(\"PROVIDER_URL\");\n\nconst sdk = new Fuse(provider, chainId);\n\nconst poolOne = await sdk.fetchFusePoolData(\"1\");\n\nconst assetZero = poolOne.assets[0];\n\nconst borrowAPRAssetZero = sdk.ratePerBlockToAPY(\n  assetZero.borrowRatePerBlock,\n  20\n);\nconst supplyAPYAssetZero = sdk.ratePerBlockToAPY(\n  assetZero.supplyRatePerBlock,\n  20\n);\n```\n\n## Functions\n\n### fetchFusePoolData\n\n`fetchFusePoolData(poolId: string, signer?: string): Promise<FusePoolData>`\n\nFetch data about an individual pool on midas capital based on the pool id. The pool id can be extracted from the pool url `https://app.midascapital.xyz/56/pool/POOL_ID`\n\n### ratePerBlockToAPY\n\n`ratePerBlockToAPY(ratePerBlock: BigNumber, blocksPerMin: number): number`\n\nReturn the APY for a given current per-block borrow/supply interest rate. This rate can be included in the\n\n`FusePoolData['assets'][0].borrowRatePerBlock`\nand\n\n`FusePoolData['assets'][0].supplyRatePerBlock`\ncorrespondingly. (i.e. blocksPerMin for BSC: `20`)\n","readmeFilename":"README.md","gitHead":"ff91289732d4feee1b697f98db4626ccf1706f48","bugs":{"url":"https://github.com/midas-protocol/monorepo/issues"},"homepage":"https://github.com/midas-protocol/monorepo#readme","_id":"@midas-capital/sdk@0.5.2","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-os880jxtyTV9HjRfqwqjIVcBT8pmr53cr7NIcesWYZmQnr8aQqo2OxcfC3bIP7Lc4Vs8D18Rp45I2fvEEflltQ==","shasum":"3efa44f4994d862797817988d9344597ee1d40c5","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.5.2.tgz","fileCount":834,"unpackedSize":110460399,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG0gvo5gQpjsDjkx1rGDSE4X8X9NP//6BsKhF/3l9qRJAiBMGB1mbiG04ds35L9tP5Y5mC6clC0hhce2I7gx7xKxYA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkTVziACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmowCQ//X05Urh5Xk/09VKT/gnLeVFTBxLGxwHsmeimsV/k5MKLjW9Vd\r\nh5xTXuhW8qH4KqsxJcUbfQT/g1sd8Dgi6yu5uMV556uKzZjZdu0WJvga9QTk\r\nlTn4CE59wMVjT0HmTBVFdlcKR8rm3mGBcUH5ReQbcaonLGtr8hP5U89HPUie\r\nB5aSmQRSIiTSFYrjtOFZiW8nZSduTee9jbaZn/KQCSzdb5D3T2r38A8hJFD8\r\n0tMC8+5w5zgDemCF0iMU33DY99+EfbaX2lJEnmUT01WRT5MO8QpdQLn2GGqm\r\neZaOvj2E0ozxt11PzTcPB3ltH/HoLvFmNCkQwc0Vn6aopPsqgF32/6ntNtKQ\r\nzxzWvUEduRQDY84hZrMXiYt59GnTX7jpoo/jxN5Bwj5nIpUUi9991SzQZuq8\r\niCqbbp7y9YqpzsXi0+XGJ7xQ2sl/u88buHeEHnPw4Sjhl1HUVwsxB03brkt6\r\nnvmDr3zhz4R9lUMh4plxUKkImDIVKlCMLTkhKkWw8PQ3c42s8ZfaaUMdiFl+\r\nK7BxTHZ/Zqn43NFyXvDdpcLLsM4iTuG8Q0VHeIKqPHjcnHYf8lAmvY022/r8\r\nq+gMBtGTvxrLzZ4oXR69yiB4xlGQHHWutJ/Q4C8FGtUGxtT6cJNmkLwYI1yZ\r\n1zaZTUJekBcHL5H/V/9SbXpduJyY7O/5y9A=\r\n=R4An\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.5.2_1682791649918_0.07901923671255817"},"_hasShrinkwrap":false},"0.5.3":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/monorepo.git"},"version":"0.5.3","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"## Installation","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","types":"./dist/cjs/src/index.d.ts","scripts":{"prebuild":"rm -rf dist","build":"yarn run build:forge; yarn run artifacts; yarn run typechain; yarn run abimate; yarn run build:sdk","postbuild":"du -sk dist/cjs; du -sk dist/esm","clean":"rm -rf dist; rm -rf ./typechain; rm -rf ./artifacts; rm -rf ./abis","artifacts":"echo '> Gathering artifacts...'; ./scripts/move-artifacts.sh","typechain":"echo '> Creating typechain types...'; [ ! -d ./typechain ] && typechain --target ethers-v5 --out-dir './typechain' './artifacts/*.json' --show-stack-traces","abimate":"echo '> Extracting ABIs from artifacts...'; abimate ./abis ./artifacts/*.json","build:forge":"echo '> Building contracts...'; cd lib/contracts && forge install && forge build --sizes","build:sdk":"echo '> Compiling SDK...'; yarn run build:esm && yarn run build:cjs","build:esm":"echo '> Compiling ESM SDK Module...'; tsc -p tsconfig-sdk.json","build:cjs":"echo '> Compiling CJS SDK Module...'; tsc -p tsconfig-cjs.json","setup":"cd lib/contracts && forge build","test:mocha":"nyc ts-mocha --require 'tests-mocha/globalTestHook.ts' --check-leaks --exit --timeout 60000 'tests-mocha/**/*.spec.ts'","test":"hardhat test --parallel --no-compile","test:bsc":"SIMULATION=true FORK_RPC_URL=${FORK_RPC_URL} FORK_CHAIN_ID=56 hardhat test --no-compile","test:forge":"cd lib/contracts && forge test","export":"hardhat export --export-all ./deployments.json","export:all":"npm run export:bsc && npm run export:polygon && npm run export:moonbeam && npm run export:neondevnet && npm run export:chapel","export:bsc":"hardhat export --network bsc --export ../chains/deployments/bsc.json","export:polygon":"hardhat export --network polygon --export ../chains/deployments/polygon.json","export:ethereum":"hardhat export --network ethereum --export ../chains/deployments/ethereum.json","export:moonbeam":"hardhat export --network moonbeam --export ../chains/deployments/moonbeam.json","export:arbitrum":"hardhat export --network arbitrum --export ../chains/deployments/arbitrum.json","export:neondevnet":"hardhat export --network neondevnet --export ../chains/deployments/neondevnet.json","export:basegoerli":"hardhat export --network basegoerli --export ../chains/deployments/basegoerli.json","export:chapel":"hardhat export --network chapel --export ../chains/deployments/chapel.json","export:evmos":"hardhat export --network evmos --export ../chains/deployments/evmos.json","export:fantom":"hardhat export --network fantom --export ../chains/deployments/fantom.json","export:ganache":"hardhat export --network localhost --export ../chains/deployments/ganache.json","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'tests/**/*.ts'","lint":"eslint . -c .eslintrc.json --ext ts,json","lint-fix":"eslint . -c .eslintrc.json --fix --ext ts,json","deploy:chapel":"hardhat --network chapel deploy --tags prod --no-compile","deploy:bsc":"hardhat --network bsc deploy --tags prod --no-compile","deploy:polygon":"hardhat --network polygon deploy --tags prod --no-compile","deploy:ethereum":"hardhat --network ethereum deploy --tags prod --no-compile","deploy:moonbeam":"hardhat --network moonbeam deploy --tags prod --no-compile","deploy:arbitrum":"hardhat --network arbitrum deploy --tags prod --no-compile","deploy:evmos":"hardhat --network evmos deploy --tags prod --no-compile","deploy:fantom":"hardhat --network fantom deploy --tags prod --no-compile","deploy:neondevnet":"hardhat --network neondevnet deploy --tags prod --no-compile","deploy:basegoerli":"hardhat --network basegoerli deploy --tags prod --no-compile","deploy:localhost":"hardhat --network localhost deploy --tags prod --no-compile","forge":"forge","hardhat":"hardhat"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@abimate/core":"^0.2.1","@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.5","@tenderly/hardhat-tenderly":"^1.7.2","@typechain/ethers-v5":"^10.2.0","@typechain/hardhat":"^6.1.5","@types/bad-words":"^3.0.1","@types/chai":"^4.3.4","@types/chai-as-promised":"^7","@types/chai-subset":"^1","@types/eslint":"^8.37.0","@types/mocha":"^10.0.1","@types/node":"^18.15.11","@types/sinon-chai":"^3","chai":"^4.3.7","chai-as-promised":"^7.1.1","chai-subset":"^1.6.0","dotenv":"^16.0.3","eslint":"^8.38.0","eslint-plugin-import":"^2.27.5","eslint-plugin-prettier":"^4.2.1","hardhat":"^2.14.0","hardhat-abi-exporter":"^2.10.1","hardhat-deploy":"^0.11.26","lint-staged":"13.2.1","mocha":"^10.2.0","nyc":"^15.1.0","prettier":"2.8.7","prettier-plugin-solidity":"1.1.3","sinon":"^15.0.3","sinon-chai":"^3.7.0","ts-mocha":"^10.0.0","ts-node":"^10.9.1","typechain":"^8.1.1","typescript":"^5.0.4"},"dependencies":{"@midas-capital/chains":"workspace:*","@midas-capital/types":"workspace:*","bad-words":"^3.0.4","bufferutil":"^4.0.7","ethereum-waffle":"^4.0.10","ethers":"^5.7.2","utf-8-validate":"^6.0.3"},"readme":"# `@midas-capital/sdk`\n\n## Installation\n\n`npm install @midas-capital/sdk`\n\n```typescript\nimport { MidasSdk } from \"@midas-capital/sdk\";\nimport { ethers } from \"ethers\";\n\nconst chainId = 56;\nconst provider = new ethers.providers.JsonRpcProvider(\"PROVIDER_URL\");\n\nconst sdk = new Fuse(provider, chainId);\n\nconst poolOne = await sdk.fetchFusePoolData(\"1\");\n\nconst assetZero = poolOne.assets[0];\n\nconst borrowAPRAssetZero = sdk.ratePerBlockToAPY(\n  assetZero.borrowRatePerBlock,\n  20\n);\nconst supplyAPYAssetZero = sdk.ratePerBlockToAPY(\n  assetZero.supplyRatePerBlock,\n  20\n);\n```\n\n## Functions\n\n### fetchFusePoolData\n\n`fetchFusePoolData(poolId: string, signer?: string): Promise<FusePoolData>`\n\nFetch data about an individual pool on midas capital based on the pool id. The pool id can be extracted from the pool url `https://app.midascapital.xyz/56/pool/POOL_ID`\n\n### ratePerBlockToAPY\n\n`ratePerBlockToAPY(ratePerBlock: BigNumber, blocksPerMin: number): number`\n\nReturn the APY for a given current per-block borrow/supply interest rate. This rate can be included in the\n\n`FusePoolData['assets'][0].borrowRatePerBlock`\nand\n\n`FusePoolData['assets'][0].supplyRatePerBlock`\ncorrespondingly. (i.e. blocksPerMin for BSC: `20`)\n","readmeFilename":"README.md","gitHead":"876de79e163306260ad216a292a26f21a74167f7","bugs":{"url":"https://github.com/midas-protocol/monorepo/issues"},"homepage":"https://github.com/midas-protocol/monorepo#readme","_id":"@midas-capital/sdk@0.5.3","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-REPwymWgbvHHU3fl0NY/AGmYQxmlQc9fZ56c3mqcxYGl7C1k7tfhSoVfftCMRQdrIQvIiQL0/86WhSy97UjZDQ==","shasum":"1db6d8a64258a230356fc98f7b01b45a5c75592e","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.5.3.tgz","fileCount":835,"unpackedSize":111349512,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDO9H5whi4NYa1enaugLvisZcNoaqbVx6lTgBHx9buhxAiBKDqRquzg/OJ7zLh5zYSFN/mqguMG0LMKUTirnmS4HpA=="}]},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.5.3_1683532222831_0.35606109871959846"},"_hasShrinkwrap":false},"0.5.4":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/monorepo.git"},"version":"0.5.4","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"## Installation","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","types":"./dist/cjs/src/index.d.ts","scripts":{"prebuild":"rm -rf dist","build":"yarn run build:forge; yarn run artifacts; yarn run typechain; yarn run abimate; yarn run build:sdk","postbuild":"du -sk dist/cjs; du -sk dist/esm","clean":"rm -rf dist; rm -rf ./typechain; rm -rf ./artifacts; rm -rf ./abis","artifacts":"echo '> Gathering artifacts...'; ./scripts/move-artifacts.sh","typechain":"echo '> Creating typechain types...'; [ ! -d ./typechain ] && typechain --target ethers-v5 --out-dir './typechain' './artifacts/*.json' --show-stack-traces","abimate":"echo '> Extracting ABIs from artifacts...'; abimate ./abis ./artifacts/*.json","build:forge":"echo '> Building contracts...'; cd lib/contracts && forge install && forge build --sizes","build:sdk":"echo '> Compiling SDK...'; yarn run build:esm && yarn run build:cjs","build:esm":"echo '> Compiling ESM SDK Module...'; tsc -p tsconfig-sdk.json","build:cjs":"echo '> Compiling CJS SDK Module...'; tsc -p tsconfig-cjs.json","setup":"cd lib/contracts && forge build","test:mocha":"nyc ts-mocha --require 'tests-mocha/globalTestHook.ts' --check-leaks --exit --timeout 60000 'tests-mocha/**/*.spec.ts'","test":"hardhat test --parallel --no-compile","test:bsc":"SIMULATION=true FORK_RPC_URL=${FORK_RPC_URL} FORK_CHAIN_ID=56 hardhat test --no-compile","test:forge":"cd lib/contracts && forge test","export":"hardhat export --export-all ./deployments.json","export:all":"npm run export:bsc && npm run export:polygon && npm run export:moonbeam && npm run export:neondevnet && npm run export:chapel","export:bsc":"hardhat export --network bsc --export ../chains/deployments/bsc.json","export:polygon":"hardhat export --network polygon --export ../chains/deployments/polygon.json","export:ethereum":"hardhat export --network ethereum --export ../chains/deployments/ethereum.json","export:moonbeam":"hardhat export --network moonbeam --export ../chains/deployments/moonbeam.json","export:arbitrum":"hardhat export --network arbitrum --export ../chains/deployments/arbitrum.json","export:neondevnet":"hardhat export --network neondevnet --export ../chains/deployments/neondevnet.json","export:basegoerli":"hardhat export --network basegoerli --export ../chains/deployments/basegoerli.json","export:chapel":"hardhat export --network chapel --export ../chains/deployments/chapel.json","export:evmos":"hardhat export --network evmos --export ../chains/deployments/evmos.json","export:fantom":"hardhat export --network fantom --export ../chains/deployments/fantom.json","export:ganache":"hardhat export --network localhost --export ../chains/deployments/ganache.json","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'tests/**/*.ts'","lint":"eslint . -c .eslintrc.json --ext ts,json","lint-fix":"eslint . -c .eslintrc.json --fix --ext ts,json","deploy:chapel":"hardhat --network chapel deploy --tags prod --no-compile","deploy:bsc":"hardhat --network bsc deploy --tags prod --no-compile","deploy:polygon":"hardhat --network polygon deploy --tags prod --no-compile","deploy:ethereum":"hardhat --network ethereum deploy --tags prod --no-compile","deploy:moonbeam":"hardhat --network moonbeam deploy --tags prod --no-compile","deploy:arbitrum":"hardhat --network arbitrum deploy --tags prod --no-compile","deploy:evmos":"hardhat --network evmos deploy --tags prod --no-compile","deploy:fantom":"hardhat --network fantom deploy --tags prod --no-compile","deploy:neondevnet":"hardhat --network neondevnet deploy --tags prod --no-compile","deploy:basegoerli":"hardhat --network basegoerli deploy --tags prod --no-compile","deploy:localhost":"hardhat --network localhost deploy --tags prod --no-compile","forge":"forge","hardhat":"hardhat"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@abimate/core":"^0.2.1","@nomiclabs/hardhat-ethers":"^2.2.3","@nomiclabs/hardhat-waffle":"^2.0.5","@tenderly/hardhat-tenderly":"^1.7.2","@typechain/ethers-v5":"^10.2.0","@typechain/hardhat":"^6.1.5","@types/bad-words":"^3.0.1","@types/chai":"^4.3.4","@types/chai-as-promised":"^7","@types/chai-subset":"^1","@types/eslint":"^8.37.0","@types/mocha":"^10.0.1","@types/node":"^18.15.11","@types/sinon-chai":"^3","chai":"^4.3.7","chai-as-promised":"^7.1.1","chai-subset":"^1.6.0","dotenv":"^16.0.3","eslint":"^8.38.0","eslint-plugin-import":"^2.27.5","eslint-plugin-prettier":"^4.2.1","hardhat":"^2.14.0","hardhat-abi-exporter":"^2.10.1","hardhat-deploy":"^0.11.26","lint-staged":"13.2.1","mocha":"^10.2.0","nyc":"^15.1.0","prettier":"2.8.7","prettier-plugin-solidity":"1.1.3","sinon":"^15.0.3","sinon-chai":"^3.7.0","ts-mocha":"^10.0.0","ts-node":"^10.9.1","typechain":"^8.1.1","typescript":"^5.0.4"},"dependencies":{"@midas-capital/chains":"workspace:*","@midas-capital/types":"workspace:*","bad-words":"^3.0.4","bufferutil":"^4.0.7","ethereum-waffle":"^4.0.10","ethers":"^5.7.2","utf-8-validate":"^6.0.3"},"readme":"# `@midas-capital/sdk`\n\n## Installation\n\n`npm install @midas-capital/sdk`\n\n```typescript\nimport { MidasSdk } from \"@midas-capital/sdk\";\nimport { ethers } from \"ethers\";\n\nconst chainId = 56;\nconst provider = new ethers.providers.JsonRpcProvider(\"PROVIDER_URL\");\n\nconst sdk = new Fuse(provider, chainId);\n\nconst poolOne = await sdk.fetchFusePoolData(\"1\");\n\nconst assetZero = poolOne.assets[0];\n\nconst borrowAPRAssetZero = sdk.ratePerBlockToAPY(\n  assetZero.borrowRatePerBlock,\n  20\n);\nconst supplyAPYAssetZero = sdk.ratePerBlockToAPY(\n  assetZero.supplyRatePerBlock,\n  20\n);\n```\n\n## Functions\n\n### fetchFusePoolData\n\n`fetchFusePoolData(poolId: string, signer?: string): Promise<FusePoolData>`\n\nFetch data about an individual pool on midas capital based on the pool id. The pool id can be extracted from the pool url `https://app.midascapital.xyz/56/pool/POOL_ID`\n\n### ratePerBlockToAPY\n\n`ratePerBlockToAPY(ratePerBlock: BigNumber, blocksPerMin: number): number`\n\nReturn the APY for a given current per-block borrow/supply interest rate. This rate can be included in the\n\n`FusePoolData['assets'][0].borrowRatePerBlock`\nand\n\n`FusePoolData['assets'][0].supplyRatePerBlock`\ncorrespondingly. (i.e. blocksPerMin for BSC: `20`)\n","readmeFilename":"README.md","gitHead":"ac37fa161ced175b06eb340f8b22fa17748ae1e3","bugs":{"url":"https://github.com/midas-protocol/monorepo/issues"},"homepage":"https://github.com/midas-protocol/monorepo#readme","_id":"@midas-capital/sdk@0.5.4","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-4eB/VJtbDbKiwYS4y5xmVc/LFlgcTfVp40O3Eva9G5NbqLzpUO7gGY1G2DTdHUrRfXNsDeFaUcXGMo7bKoVGag==","shasum":"ddf0f2d9c3b3db1ed4c87e49321e2adcf44a4161","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.5.4.tgz","fileCount":835,"unpackedSize":111350048,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDAO13r8jWWY/122TJsp25V7Xhba1ojoZl48XWvktfzZAIhAPhw4Bx7M1eS2NYhLUdbMjtXJGwXSScE/Ud7RjjTFoLC"}]},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.5.4_1683625363691_0.08638562727949628"},"_hasShrinkwrap":false},"0.5.5":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/monorepo.git"},"version":"0.5.5","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"## Installation","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","types":"./dist/cjs/src/index.d.ts","scripts":{"prebuild":"rm -rf dist","build":"yarn run build:forge; yarn run artifacts; yarn run typechain; yarn run abimate; yarn run build:sdk","postbuild":"du -sk dist/cjs; du -sk dist/esm","clean":"rm -rf dist; rm -rf ./typechain; rm -rf ./artifacts; rm -rf ./abis","artifacts":"echo '> Gathering artifacts...'; ./scripts/move-artifacts.sh","typechain":"echo '> Creating typechain types...'; [ ! -d ./typechain ] && typechain --target ethers-v5 --out-dir './typechain' './artifacts/*.json' --show-stack-traces","abimate":"echo '> Extracting ABIs from artifacts...'; abimate ./abis ./artifacts/*.json","build:forge":"echo '> Building contracts...'; cd lib/contracts && forge install && forge build --sizes","build:sdk":"echo '> Compiling SDK...'; yarn run build:esm && yarn run build:cjs","build:esm":"echo '> Compiling ESM SDK Module...'; tsc -p tsconfig-sdk.json","build:cjs":"echo '> Compiling CJS SDK Module...'; tsc -p tsconfig-cjs.json","setup":"cd lib/contracts && forge build","test:mocha":"nyc ts-mocha --require 'tests-mocha/globalTestHook.ts' --check-leaks --exit --timeout 60000 'tests-mocha/**/*.spec.ts'","test":"hardhat test --parallel --no-compile","test:bsc":"SIMULATION=true FORK_RPC_URL=${FORK_RPC_URL} FORK_CHAIN_ID=56 hardhat test --no-compile","test:forge":"cd lib/contracts && forge test","export":"hardhat export --export-all ./deployments.json","export:all":"npm run export:bsc && npm run export:polygon && npm run export:moonbeam && npm run export:neondevnet && npm run export:chapel","export:bsc":"hardhat export --network bsc --export ../chains/deployments/bsc.json","export:polygon":"hardhat export --network polygon --export ../chains/deployments/polygon.json","export:ethereum":"hardhat export --network ethereum --export ../chains/deployments/ethereum.json","export:moonbeam":"hardhat export --network moonbeam --export ../chains/deployments/moonbeam.json","export:arbitrum":"hardhat export --network arbitrum --export ../chains/deployments/arbitrum.json","export:neondevnet":"hardhat export --network neondevnet --export ../chains/deployments/neondevnet.json","export:basegoerli":"hardhat export --network basegoerli --export ../chains/deployments/basegoerli.json","export:chapel":"hardhat export --network chapel --export ../chains/deployments/chapel.json","export:evmos":"hardhat export --network evmos --export ../chains/deployments/evmos.json","export:fantom":"hardhat export --network fantom --export ../chains/deployments/fantom.json","export:ganache":"hardhat export --network localhost --export ../chains/deployments/ganache.json","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'tests/**/*.ts'","lint":"eslint . -c .eslintrc.json --ext ts,json","lint-fix":"eslint . -c .eslintrc.json --fix --ext ts,json","deploy:chapel":"hardhat --network chapel deploy --tags prod --no-compile","deploy:bsc":"hardhat --network bsc deploy --tags prod --no-compile","deploy:polygon":"hardhat --network polygon deploy --tags prod --no-compile","deploy:ethereum":"hardhat --network ethereum deploy --tags prod --no-compile","deploy:moonbeam":"hardhat --network moonbeam deploy --tags prod --no-compile","deploy:arbitrum":"hardhat --network arbitrum deploy --tags prod --no-compile","deploy:evmos":"hardhat --network evmos deploy --tags prod --no-compile","deploy:fantom":"hardhat --network fantom deploy --tags prod --no-compile","deploy:neondevnet":"hardhat --network neondevnet deploy --tags prod --no-compile","deploy:basegoerli":"hardhat --network basegoerli deploy --tags prod --no-compile","deploy:localhost":"hardhat --network localhost deploy --tags prod --no-compile","forge":"forge","hardhat":"hardhat"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@abimate/core":"^0.2.1","@nomiclabs/hardhat-ethers":"^2.2.3","@nomiclabs/hardhat-waffle":"^2.0.5","@tenderly/hardhat-tenderly":"^1.7.2","@typechain/ethers-v5":"^10.2.0","@typechain/hardhat":"^6.1.5","@types/bad-words":"^3.0.1","@types/chai":"^4.3.4","@types/chai-as-promised":"^7","@types/chai-subset":"^1","@types/eslint":"^8.37.0","@types/mocha":"^10.0.1","@types/node":"^18.15.11","@types/sinon-chai":"^3","chai":"^4.3.7","chai-as-promised":"^7.1.1","chai-subset":"^1.6.0","dotenv":"^16.0.3","eslint":"^8.38.0","eslint-plugin-import":"^2.27.5","eslint-plugin-prettier":"^4.2.1","hardhat":"^2.14.0","hardhat-abi-exporter":"^2.10.1","hardhat-deploy":"^0.11.26","lint-staged":"13.2.1","mocha":"^10.2.0","nyc":"^15.1.0","prettier":"2.8.7","prettier-plugin-solidity":"1.1.3","sinon":"^15.0.3","sinon-chai":"^3.7.0","ts-mocha":"^10.0.0","ts-node":"^10.9.1","typechain":"^8.1.1","typescript":"^5.0.4"},"dependencies":{"@midas-capital/chains":"workspace:*","@midas-capital/types":"workspace:*","bad-words":"^3.0.4","bufferutil":"^4.0.7","ethereum-waffle":"^4.0.10","ethers":"^5.7.2","utf-8-validate":"^6.0.3"},"readme":"# `@midas-capital/sdk`\n\n## Installation\n\n`npm install @midas-capital/sdk`\n\n```typescript\nimport { MidasSdk } from \"@midas-capital/sdk\";\nimport { ethers } from \"ethers\";\n\nconst chainId = 56;\nconst provider = new ethers.providers.JsonRpcProvider(\"PROVIDER_URL\");\n\nconst sdk = new Fuse(provider, chainId);\n\nconst poolOne = await sdk.fetchFusePoolData(\"1\");\n\nconst assetZero = poolOne.assets[0];\n\nconst borrowAPRAssetZero = sdk.ratePerBlockToAPY(\n  assetZero.borrowRatePerBlock,\n  20\n);\nconst supplyAPYAssetZero = sdk.ratePerBlockToAPY(\n  assetZero.supplyRatePerBlock,\n  20\n);\n```\n\n## Functions\n\n### fetchFusePoolData\n\n`fetchFusePoolData(poolId: string, signer?: string): Promise<FusePoolData>`\n\nFetch data about an individual pool on midas capital based on the pool id. The pool id can be extracted from the pool url `https://app.midascapital.xyz/56/pool/POOL_ID`\n\n### ratePerBlockToAPY\n\n`ratePerBlockToAPY(ratePerBlock: BigNumber, blocksPerMin: number): number`\n\nReturn the APY for a given current per-block borrow/supply interest rate. This rate can be included in the\n\n`FusePoolData['assets'][0].borrowRatePerBlock`\nand\n\n`FusePoolData['assets'][0].supplyRatePerBlock`\ncorrespondingly. (i.e. blocksPerMin for BSC: `20`)\n","readmeFilename":"README.md","gitHead":"e11fd1508b59cf557f7cdffd9e87b66b638b6831","bugs":{"url":"https://github.com/midas-protocol/monorepo/issues"},"homepage":"https://github.com/midas-protocol/monorepo#readme","_id":"@midas-capital/sdk@0.5.5","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-iR0tJyuV8XNSbJ4ZwDACSZRO3zZOZRAkz4iNHLhaSdWiHQTDrXHsJHz+jyhRA9Fti7qtpvZzlpAkBNDY0OCjGw==","shasum":"435754762b35c12260afcda9619b2daa93499c26","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.5.5.tgz","fileCount":835,"unpackedSize":111350180,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGjC1MMvEw1uyw3gJfjl2W2dLO9oPCmSe/m1499tV9kJAiBZpOlGy7JpYtZefCsgKmhXyewOjrK0PSyEZWM2V6KxZg=="}]},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.5.5_1683638945075_0.3641519452843023"},"_hasShrinkwrap":false},"0.5.6":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/monorepo.git"},"version":"0.5.6","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"## Installation","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","types":"./dist/cjs/src/index.d.ts","scripts":{"prebuild":"rm -rf dist","build":"yarn run build:forge; yarn run artifacts; yarn run typechain; yarn run abimate; yarn run build:sdk","postbuild":"du -sk dist/cjs; du -sk dist/esm","clean":"rm -rf dist; rm -rf ./typechain; rm -rf ./artifacts; rm -rf ./abis","artifacts":"echo '> Gathering artifacts...'; ./scripts/move-artifacts.sh","typechain":"echo '> Creating typechain types...'; [ ! -d ./typechain ] && typechain --target ethers-v5 --out-dir './typechain' './artifacts/*.json' --show-stack-traces","abimate":"echo '> Extracting ABIs from artifacts...'; abimate ./abis ./artifacts/*.json","build:forge":"echo '> Building contracts...'; cd lib/contracts && forge install && forge build --sizes","build:sdk":"echo '> Compiling SDK...'; yarn run build:esm && yarn run build:cjs","build:esm":"echo '> Compiling ESM SDK Module...'; tsc -p tsconfig-sdk.json","build:cjs":"echo '> Compiling CJS SDK Module...'; tsc -p tsconfig-cjs.json","setup":"cd lib/contracts && forge build","test:mocha":"nyc ts-mocha --require 'tests-mocha/globalTestHook.ts' --check-leaks --exit --timeout 60000 'tests-mocha/**/*.spec.ts'","test":"hardhat test --parallel --no-compile","test:bsc":"SIMULATION=true FORK_RPC_URL=${FORK_RPC_URL} FORK_CHAIN_ID=56 hardhat test --no-compile","test:forge":"cd lib/contracts && forge test","export":"hardhat export --export-all ./deployments.json","export:all":"npm run export:bsc && npm run export:polygon && npm run export:moonbeam && npm run export:neondevnet && npm run export:chapel","export:bsc":"hardhat export --network bsc --export ../chains/deployments/bsc.json","export:polygon":"hardhat export --network polygon --export ../chains/deployments/polygon.json","export:ethereum":"hardhat export --network ethereum --export ../chains/deployments/ethereum.json","export:moonbeam":"hardhat export --network moonbeam --export ../chains/deployments/moonbeam.json","export:arbitrum":"hardhat export --network arbitrum --export ../chains/deployments/arbitrum.json","export:neondevnet":"hardhat export --network neondevnet --export ../chains/deployments/neondevnet.json","export:basegoerli":"hardhat export --network basegoerli --export ../chains/deployments/basegoerli.json","export:chapel":"hardhat export --network chapel --export ../chains/deployments/chapel.json","export:evmos":"hardhat export --network evmos --export ../chains/deployments/evmos.json","export:fantom":"hardhat export --network fantom --export ../chains/deployments/fantom.json","export:ganache":"hardhat export --network localhost --export ../chains/deployments/ganache.json","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'tests/**/*.ts'","lint":"eslint . -c .eslintrc.json --ext ts,json","lint-fix":"eslint . -c .eslintrc.json --fix --ext ts,json","deploy:chapel":"hardhat --network chapel deploy --tags prod --no-compile","deploy:bsc":"hardhat --network bsc deploy --tags prod --no-compile","deploy:polygon":"hardhat --network polygon deploy --tags prod --no-compile","deploy:ethereum":"hardhat --network ethereum deploy --tags prod --no-compile","deploy:moonbeam":"hardhat --network moonbeam deploy --tags prod --no-compile","deploy:arbitrum":"hardhat --network arbitrum deploy --tags prod --no-compile","deploy:evmos":"hardhat --network evmos deploy --tags prod --no-compile","deploy:fantom":"hardhat --network fantom deploy --tags prod --no-compile","deploy:neondevnet":"hardhat --network neondevnet deploy --tags prod --no-compile","deploy:basegoerli":"hardhat --network basegoerli deploy --tags prod --no-compile","deploy:localhost":"hardhat --network localhost deploy --tags prod --no-compile","forge":"forge","hardhat":"hardhat"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@abimate/core":"^0.2.1","@nomiclabs/hardhat-ethers":"^2.2.3","@nomiclabs/hardhat-waffle":"^2.0.5","@tenderly/hardhat-tenderly":"^1.7.2","@typechain/ethers-v5":"^10.2.0","@typechain/hardhat":"^6.1.5","@types/bad-words":"^3.0.1","@types/chai":"^4.3.4","@types/chai-as-promised":"^7","@types/chai-subset":"^1","@types/eslint":"^8.37.0","@types/mocha":"^10.0.1","@types/node":"^18.15.11","@types/sinon-chai":"^3","chai":"^4.3.7","chai-as-promised":"^7.1.1","chai-subset":"^1.6.0","dotenv":"^16.0.3","eslint":"^8.38.0","eslint-plugin-import":"^2.27.5","eslint-plugin-prettier":"^4.2.1","hardhat":"^2.14.0","hardhat-abi-exporter":"^2.10.1","hardhat-deploy":"^0.11.26","hardhat-deploy-ethers":"next","lint-staged":"13.2.1","mocha":"^10.2.0","nyc":"^15.1.0","prettier":"2.8.7","prettier-plugin-solidity":"1.1.3","sinon":"^15.0.3","sinon-chai":"^3.7.0","ts-mocha":"^10.0.0","ts-node":"^10.9.1","typechain":"^8.1.1","typescript":"^5.0.4"},"dependencies":{"@midas-capital/chains":"workspace:*","@midas-capital/types":"workspace:*","bad-words":"^3.0.4","bufferutil":"^4.0.7","ethereum-waffle":"^4.0.10","ethers":"^5.7.2","utf-8-validate":"^6.0.3"},"gitHead":"cead07aa7a85f6cb6972d956b919339c51cb80a2","bugs":{"url":"https://github.com/midas-protocol/monorepo/issues"},"homepage":"https://github.com/midas-protocol/monorepo#readme","_id":"@midas-capital/sdk@0.5.6","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-v6p//DfEPVXNeKT9POQl1sY91umwDZwWzz25YNIyPLlBTNxk7Ul0KytNlQPif7QCUEYG9EJDZsDg8qnQkFh73w==","shasum":"7eb4f56e2d5a38f7d527f7f33249afb9da0be124","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.5.6.tgz","fileCount":2,"unpackedSize":7086,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHqld42wNINT1ZzorWV+JaIPqHdawsfZldOatXwdY45jAiBFO3zGCmObd/5PHiAoMGXDYTazg/8/oyge2IsVlNBCdQ=="}]},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.5.6_1683699818587_0.1984866012507971"},"_hasShrinkwrap":false},"0.5.7":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/monorepo.git"},"version":"0.5.7","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"## Installation","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","types":"./dist/cjs/src/index.d.ts","scripts":{"prebuild":"rm -rf dist","build":"yarn run build:forge; yarn run artifacts; yarn run typechain; yarn run abimate; yarn run build:sdk","postbuild":"du -sk dist/cjs; du -sk dist/esm","clean":"rm -rf dist; rm -rf ./typechain; rm -rf ./artifacts; rm -rf ./abis","artifacts":"echo '> Gathering artifacts...'; ./scripts/move-artifacts.sh","typechain":"echo '> Creating typechain types...'; [ ! -d ./typechain ] && typechain --target ethers-v5 --out-dir './typechain' './artifacts/*.json' --show-stack-traces","abimate":"echo '> Extracting ABIs from artifacts...'; abimate ./abis ./artifacts/*.json","build:forge":"echo '> Building contracts...'; cd lib/contracts && forge install && forge build --sizes","build:sdk":"echo '> Compiling SDK...'; yarn run build:esm && yarn run build:cjs","build:esm":"echo '> Compiling ESM SDK Module...'; tsc -p tsconfig-sdk.json","build:cjs":"echo '> Compiling CJS SDK Module...'; tsc -p tsconfig-cjs.json","setup":"cd lib/contracts && forge build","test:mocha":"nyc ts-mocha --require 'tests-mocha/globalTestHook.ts' --check-leaks --exit --timeout 60000 'tests-mocha/**/*.spec.ts'","test":"hardhat test --parallel --no-compile","test:bsc":"SIMULATION=true FORK_RPC_URL=${FORK_RPC_URL} FORK_CHAIN_ID=56 hardhat test --no-compile","test:forge":"cd lib/contracts && forge test","export":"hardhat export --export-all ./deployments.json","export:all":"npm run export:bsc && npm run export:polygon && npm run export:moonbeam && npm run export:neondevnet && npm run export:chapel","export:bsc":"hardhat export --network bsc --export ../chains/deployments/bsc.json","export:polygon":"hardhat export --network polygon --export ../chains/deployments/polygon.json","export:ethereum":"hardhat export --network ethereum --export ../chains/deployments/ethereum.json","export:moonbeam":"hardhat export --network moonbeam --export ../chains/deployments/moonbeam.json","export:arbitrum":"hardhat export --network arbitrum --export ../chains/deployments/arbitrum.json","export:neondevnet":"hardhat export --network neondevnet --export ../chains/deployments/neondevnet.json","export:basegoerli":"hardhat export --network basegoerli --export ../chains/deployments/basegoerli.json","export:chapel":"hardhat export --network chapel --export ../chains/deployments/chapel.json","export:evmos":"hardhat export --network evmos --export ../chains/deployments/evmos.json","export:fantom":"hardhat export --network fantom --export ../chains/deployments/fantom.json","export:ganache":"hardhat export --network localhost --export ../chains/deployments/ganache.json","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'tests/**/*.ts'","lint":"eslint . -c .eslintrc.json --ext ts,json","lint-fix":"eslint . -c .eslintrc.json --fix --ext ts,json","deploy:chapel":"hardhat --network chapel deploy --tags prod --no-compile","deploy:bsc":"hardhat --network bsc deploy --tags prod --no-compile","deploy:polygon":"hardhat --network polygon deploy --tags prod --no-compile","deploy:ethereum":"hardhat --network ethereum deploy --tags prod --no-compile","deploy:moonbeam":"hardhat --network moonbeam deploy --tags prod --no-compile","deploy:arbitrum":"hardhat --network arbitrum deploy --tags prod --no-compile","deploy:evmos":"hardhat --network evmos deploy --tags prod --no-compile","deploy:fantom":"hardhat --network fantom deploy --tags prod --no-compile","deploy:neondevnet":"hardhat --network neondevnet deploy --tags prod --no-compile","deploy:basegoerli":"hardhat --network basegoerli deploy --tags prod --no-compile","deploy:localhost":"hardhat --network localhost deploy --tags prod --no-compile","forge":"forge","hardhat":"hardhat"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@abimate/core":"^0.2.1","@nomiclabs/hardhat-ethers":"^2.2.3","@nomiclabs/hardhat-waffle":"^2.0.5","@tenderly/hardhat-tenderly":"^1.7.2","@typechain/ethers-v5":"^10.2.0","@typechain/hardhat":"^6.1.5","@types/bad-words":"^3.0.1","@types/chai":"^4.3.4","@types/chai-as-promised":"^7","@types/chai-subset":"^1","@types/eslint":"^8.37.0","@types/mocha":"^10.0.1","@types/node":"^18.15.11","@types/sinon-chai":"^3","chai":"^4.3.7","chai-as-promised":"^7.1.1","chai-subset":"^1.6.0","dotenv":"^16.0.3","eslint":"^8.38.0","eslint-plugin-import":"^2.27.5","eslint-plugin-prettier":"^4.2.1","hardhat":"^2.14.0","hardhat-abi-exporter":"^2.10.1","hardhat-deploy":"^0.11.26","hardhat-deploy-ethers":"next","lint-staged":"13.2.1","mocha":"^10.2.0","nyc":"^15.1.0","prettier":"2.8.7","prettier-plugin-solidity":"1.1.3","sinon":"^15.0.3","sinon-chai":"^3.7.0","ts-mocha":"^10.0.0","ts-node":"^10.9.1","typechain":"^8.1.1","typescript":"^5.0.4"},"dependencies":{"@midas-capital/chains":"workspace:*","@midas-capital/types":"workspace:*","bad-words":"^3.0.4","bufferutil":"^4.0.7","ethereum-waffle":"^4.0.10","ethers":"^5.7.2","utf-8-validate":"^6.0.3"},"gitHead":"cead07aa7a85f6cb6972d956b919339c51cb80a2","bugs":{"url":"https://github.com/midas-protocol/monorepo/issues"},"homepage":"https://github.com/midas-protocol/monorepo#readme","_id":"@midas-capital/sdk@0.5.7","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-zV0s5GlyBPzMAKYpg0o7Y+Ka7VF3UPPJNeySCHEcq8i8jLpVGoplrtWZu6rwImc4pXraUmXkMOgkE5mZ+LGNUg==","shasum":"221bff1c3d2edbc6cbdd2fe35436a9e46aca74d4","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.5.7.tgz","fileCount":837,"unpackedSize":115479091,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB5RQmc5T4Bqj9k7nPjLqoFNDdFBg8cDGukoz3TbwJ5VAiEAk7iPAVQ3OO094HNqdktWTLWNEeIMTyLspKPaODH6zME="}]},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.5.7_1683700879859_0.7979161174852012"},"_hasShrinkwrap":false},"0.5.8":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/monorepo.git"},"version":"0.5.8","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"## Installation","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","types":"./dist/cjs/src/index.d.ts","scripts":{"prebuild":"rm -rf dist","build":"yarn run build:forge; yarn run artifacts; yarn run typechain; yarn run abimate; yarn run build:sdk","postbuild":"du -sk dist/cjs; du -sk dist/esm","clean":"rm -rf dist; rm -rf ./typechain; rm -rf ./artifacts; rm -rf ./abis","artifacts":"echo '> Gathering artifacts...'; ./scripts/move-artifacts.sh","typechain":"echo '> Creating typechain types...'; [ ! -d ./typechain ] && typechain --target ethers-v5 --out-dir './typechain' './artifacts/*.json' --show-stack-traces","abimate":"echo '> Extracting ABIs from artifacts...'; abimate ./abis ./artifacts/*.json","build:forge":"echo '> Building contracts...'; cd lib/contracts && forge install && forge build --sizes","build:sdk":"echo '> Compiling SDK...'; yarn run build:esm && yarn run build:cjs","build:esm":"echo '> Compiling ESM SDK Module...'; tsc -p tsconfig-sdk.json","build:cjs":"echo '> Compiling CJS SDK Module...'; tsc -p tsconfig-cjs.json","setup":"cd lib/contracts && forge build","test:mocha":"nyc ts-mocha --require 'tests-mocha/globalTestHook.ts' --check-leaks --exit --timeout 60000 'tests-mocha/**/*.spec.ts'","test":"hardhat test --parallel --no-compile","test:bsc":"SIMULATION=true FORK_RPC_URL=${FORK_RPC_URL} FORK_CHAIN_ID=56 hardhat test --no-compile","test:forge":"cd lib/contracts && forge test","export":"hardhat export --export-all ./deployments.json","export:all":"npm run export:bsc && npm run export:polygon && npm run export:moonbeam && npm run export:neondevnet && npm run export:chapel","export:bsc":"hardhat export --network bsc --export ../chains/deployments/bsc.json","export:polygon":"hardhat export --network polygon --export ../chains/deployments/polygon.json","export:ethereum":"hardhat export --network ethereum --export ../chains/deployments/ethereum.json","export:moonbeam":"hardhat export --network moonbeam --export ../chains/deployments/moonbeam.json","export:arbitrum":"hardhat export --network arbitrum --export ../chains/deployments/arbitrum.json","export:neondevnet":"hardhat export --network neondevnet --export ../chains/deployments/neondevnet.json","export:basegoerli":"hardhat export --network basegoerli --export ../chains/deployments/basegoerli.json","export:chapel":"hardhat export --network chapel --export ../chains/deployments/chapel.json","export:evmos":"hardhat export --network evmos --export ../chains/deployments/evmos.json","export:fantom":"hardhat export --network fantom --export ../chains/deployments/fantom.json","export:ganache":"hardhat export --network localhost --export ../chains/deployments/ganache.json","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'tests/**/*.ts'","lint":"eslint . -c .eslintrc.json --ext ts,json","lint-fix":"eslint . -c .eslintrc.json --fix --ext ts,json","deploy:chapel":"hardhat --network chapel deploy --tags prod --no-compile","deploy:bsc":"hardhat --network bsc deploy --tags prod --no-compile","deploy:polygon":"hardhat --network polygon deploy --tags prod --no-compile","deploy:ethereum":"hardhat --network ethereum deploy --tags prod --no-compile","deploy:moonbeam":"hardhat --network moonbeam deploy --tags prod --no-compile","deploy:arbitrum":"hardhat --network arbitrum deploy --tags prod --no-compile","deploy:evmos":"hardhat --network evmos deploy --tags prod --no-compile","deploy:fantom":"hardhat --network fantom deploy --tags prod --no-compile","deploy:neondevnet":"hardhat --network neondevnet deploy --tags prod --no-compile","deploy:basegoerli":"hardhat --network basegoerli deploy --tags prod --no-compile","deploy:localhost":"hardhat --network localhost deploy --tags prod --no-compile","forge":"forge","hardhat":"hardhat"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@abimate/core":"^0.2.1","@nomiclabs/hardhat-ethers":"^2.2.3","@nomiclabs/hardhat-waffle":"^2.0.5","@tenderly/hardhat-tenderly":"^1.7.2","@typechain/ethers-v5":"^10.2.0","@typechain/hardhat":"^6.1.5","@types/bad-words":"^3.0.1","@types/chai":"^4.3.4","@types/chai-as-promised":"^7","@types/chai-subset":"^1","@types/eslint":"^8.37.0","@types/mocha":"^10.0.1","@types/node":"^18.15.11","@types/sinon-chai":"^3","chai":"^4.3.7","chai-as-promised":"^7.1.1","chai-subset":"^1.6.0","dotenv":"^16.0.3","eslint":"^8.38.0","eslint-plugin-import":"^2.27.5","eslint-plugin-prettier":"^4.2.1","hardhat":"^2.14.0","hardhat-abi-exporter":"^2.10.1","hardhat-deploy":"^0.11.26","hardhat-deploy-ethers":"next","lint-staged":"13.2.1","mocha":"^10.2.0","nyc":"^15.1.0","prettier":"2.8.7","prettier-plugin-solidity":"1.1.3","sinon":"^15.0.3","sinon-chai":"^3.7.0","ts-mocha":"^10.0.0","ts-node":"^10.9.1","typechain":"^8.1.1","typescript":"^5.0.4"},"dependencies":{"@midas-capital/chains":"workspace:*","@midas-capital/types":"workspace:*","bad-words":"^3.0.4","bufferutil":"^4.0.7","ethereum-waffle":"^4.0.10","ethers":"^5.7.2","utf-8-validate":"^6.0.3"},"gitHead":"cead07aa7a85f6cb6972d956b919339c51cb80a2","bugs":{"url":"https://github.com/midas-protocol/monorepo/issues"},"homepage":"https://github.com/midas-protocol/monorepo#readme","_id":"@midas-capital/sdk@0.5.8","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-2wu3O92Tr+2dmb0ITByDdNykpbmjBHcy/Sj5jc5IlXWyk+svUGq7m/gPse6kMK6mC4QUIN8MXwHVNYMH1Qzp9g==","shasum":"fde19e923165116317c3ecc0367dcf27b45b5f99","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.5.8.tgz","fileCount":837,"unpackedSize":115478959,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCigi8PFXcS8sUjiyYbG3WJFhVOGONLRBPjuNtJyMSlrQIgD3lwFtJI3fkKPen4weUW6WSXv/bVgMjS+nMImHth3R0="}]},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.5.8_1683701407334_0.6407984792891515"},"_hasShrinkwrap":false},"0.5.9":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/monorepo.git"},"version":"0.5.9","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"## Installation","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","types":"./dist/cjs/src/index.d.ts","scripts":{"prebuild":"rm -rf dist","build":"yarn run build:forge; yarn run artifacts; yarn run typechain; yarn run abimate; yarn run build:sdk","postbuild":"du -sk dist/cjs; du -sk dist/esm","clean":"rm -rf dist; rm -rf ./typechain; rm -rf ./artifacts; rm -rf ./abis","artifacts":"echo '> Gathering artifacts...'; ./scripts/move-artifacts.sh","typechain":"echo '> Creating typechain types...'; [ ! -d ./typechain ] && typechain --target ethers-v5 --out-dir './typechain' './artifacts/*.json' --show-stack-traces","abimate":"echo '> Extracting ABIs from artifacts...'; abimate ./abis ./artifacts/*.json","build:forge":"echo '> Building contracts...'; cd lib/contracts && forge install && forge build --sizes","build:sdk":"echo '> Compiling SDK...'; yarn run build:esm && yarn run build:cjs","build:esm":"echo '> Compiling ESM SDK Module...'; tsc -p tsconfig-sdk.json","build:cjs":"echo '> Compiling CJS SDK Module...'; tsc -p tsconfig-cjs.json","setup":"cd lib/contracts && forge build","test:mocha":"nyc ts-mocha --require 'tests-mocha/globalTestHook.ts' --check-leaks --exit --timeout 60000 'tests-mocha/**/*.spec.ts'","test":"hardhat test --parallel --no-compile","test:bsc":"SIMULATION=true FORK_RPC_URL=${FORK_RPC_URL} FORK_CHAIN_ID=56 hardhat test --no-compile","test:forge":"cd lib/contracts && forge test","export":"hardhat export --export-all ./deployments.json","export:all":"npm run export:bsc && npm run export:polygon && npm run export:moonbeam && npm run export:neondevnet && npm run export:chapel","export:bsc":"hardhat export --network bsc --export ../chains/deployments/bsc.json","export:polygon":"hardhat export --network polygon --export ../chains/deployments/polygon.json","export:ethereum":"hardhat export --network ethereum --export ../chains/deployments/ethereum.json","export:moonbeam":"hardhat export --network moonbeam --export ../chains/deployments/moonbeam.json","export:arbitrum":"hardhat export --network arbitrum --export ../chains/deployments/arbitrum.json","export:neondevnet":"hardhat export --network neondevnet --export ../chains/deployments/neondevnet.json","export:basegoerli":"hardhat export --network basegoerli --export ../chains/deployments/basegoerli.json","export:chapel":"hardhat export --network chapel --export ../chains/deployments/chapel.json","export:evmos":"hardhat export --network evmos --export ../chains/deployments/evmos.json","export:fantom":"hardhat export --network fantom --export ../chains/deployments/fantom.json","export:ganache":"hardhat export --network localhost --export ../chains/deployments/ganache.json","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'tests/**/*.ts'","lint":"eslint . -c .eslintrc.json --ext ts,json","lint-fix":"eslint . -c .eslintrc.json --fix --ext ts,json","deploy:chapel":"hardhat --network chapel deploy --tags prod --no-compile","deploy:bsc":"hardhat --network bsc deploy --tags prod --no-compile","deploy:polygon":"hardhat --network polygon deploy --tags prod --no-compile","deploy:ethereum":"hardhat --network ethereum deploy --tags prod --no-compile","deploy:moonbeam":"hardhat --network moonbeam deploy --tags prod --no-compile","deploy:arbitrum":"hardhat --network arbitrum deploy --tags prod --no-compile","deploy:evmos":"hardhat --network evmos deploy --tags prod --no-compile","deploy:fantom":"hardhat --network fantom deploy --tags prod --no-compile","deploy:neondevnet":"hardhat --network neondevnet deploy --tags prod --no-compile","deploy:basegoerli":"hardhat --network basegoerli deploy --tags prod --no-compile","deploy:localhost":"hardhat --network localhost deploy --tags prod --no-compile","forge":"forge","hardhat":"hardhat"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@abimate/core":"^0.2.1","@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.5","@tenderly/hardhat-tenderly":"^1.7.2","@typechain/ethers-v5":"^10.2.0","@typechain/hardhat":"^6.1.5","@types/bad-words":"^3.0.1","@types/chai":"^4.3.4","@types/chai-as-promised":"^7","@types/chai-subset":"^1","@types/eslint":"^8.37.0","@types/mocha":"^10.0.1","@types/node":"^18.15.11","@types/sinon-chai":"^3","chai":"^4.3.7","chai-as-promised":"^7.1.1","chai-subset":"^1.6.0","dotenv":"^16.0.3","eslint":"^8.38.0","eslint-plugin-import":"^2.27.5","eslint-plugin-prettier":"^4.2.1","hardhat":"^2.14.0","hardhat-abi-exporter":"^2.10.1","hardhat-deploy":"^0.11.26","lint-staged":"13.2.1","mocha":"^10.2.0","nyc":"^15.1.0","prettier":"2.8.7","prettier-plugin-solidity":"1.1.3","sinon":"^15.0.3","sinon-chai":"^3.7.0","ts-mocha":"^10.0.0","ts-node":"^10.9.1","typechain":"^8.1.1","typescript":"^5.0.4"},"dependencies":{"@midas-capital/chains":"workspace:*","@midas-capital/types":"workspace:*","bad-words":"^3.0.4","bufferutil":"^4.0.7","ethereum-waffle":"^4.0.10","ethers":"^5.7.2","utf-8-validate":"^6.0.3"},"gitHead":"cead07aa7a85f6cb6972d956b919339c51cb80a2","bugs":{"url":"https://github.com/midas-protocol/monorepo/issues"},"homepage":"https://github.com/midas-protocol/monorepo#readme","_id":"@midas-capital/sdk@0.5.9","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-hFQGdSvPA7uhaN9PbPkRTTbqHC/A7ximr3MOJ1WMDavNzwh+E2U9/p8yBUT/DzWUMm0KPRLVRWN10Z7GU7QSNw==","shasum":"ef49eb20d27394ec5a8b21668362840382f447db","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.5.9.tgz","fileCount":837,"unpackedSize":115478956,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFJIbwaP28z1tUHonyXKxuo8sxlrEYilpoDXBi44P8nfAiEA/Zob0NaEPDYtDwUddfgfGzDrGY7KDJswQCpBOQVTmho="}]},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.5.9_1683702922764_0.8109877143115709"},"_hasShrinkwrap":false},"0.6.0":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/monorepo.git"},"version":"0.6.0","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"## Installation","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","types":"./dist/cjs/src/index.d.ts","scripts":{"prebuild":"rm -rf dist","build":"yarn run build:forge; yarn run artifacts; yarn run typechain; yarn run abimate; yarn run build:sdk","postbuild":"du -sk dist/cjs; du -sk dist/esm","clean":"rm -rf dist; rm -rf ./typechain; rm -rf ./artifacts; rm -rf ./abis","artifacts":"echo '> Gathering artifacts...'; ./scripts/move-artifacts.sh","typechain":"echo '> Creating typechain types...'; [ ! -d ./typechain ] && typechain --target ethers-v5 --out-dir './typechain' './artifacts/*.json' --show-stack-traces","abimate":"echo '> Extracting ABIs from artifacts...'; abimate ./abis ./artifacts/*.json","build:forge":"echo '> Building contracts...'; cd lib/contracts && forge install && forge build --sizes","build:sdk":"echo '> Compiling SDK...'; yarn run build:esm && yarn run build:cjs","build:esm":"echo '> Compiling ESM SDK Module...'; tsc -p tsconfig-sdk.json","build:cjs":"echo '> Compiling CJS SDK Module...'; tsc -p tsconfig-cjs.json","setup":"cd lib/contracts && forge build","test:mocha":"nyc ts-mocha --require 'tests-mocha/globalTestHook.ts' --check-leaks --exit --timeout 60000 'tests-mocha/**/*.spec.ts'","test":"hardhat test --parallel --no-compile","test:bsc":"SIMULATION=true FORK_RPC_URL=${FORK_RPC_URL} FORK_CHAIN_ID=56 hardhat test --no-compile","test:forge":"cd lib/contracts && forge test","export":"hardhat export --export-all ./deployments.json","export:all":"npm run export:bsc && npm run export:polygon && npm run export:moonbeam && npm run export:neondevnet && npm run export:chapel","export:bsc":"hardhat export --network bsc --export ../chains/deployments/bsc.json","export:polygon":"hardhat export --network polygon --export ../chains/deployments/polygon.json","export:ethereum":"hardhat export --network ethereum --export ../chains/deployments/ethereum.json","export:moonbeam":"hardhat export --network moonbeam --export ../chains/deployments/moonbeam.json","export:arbitrum":"hardhat export --network arbitrum --export ../chains/deployments/arbitrum.json","export:neondevnet":"hardhat export --network neondevnet --export ../chains/deployments/neondevnet.json","export:basegoerli":"hardhat export --network basegoerli --export ../chains/deployments/basegoerli.json","export:chapel":"hardhat export --network chapel --export ../chains/deployments/chapel.json","export:evmos":"hardhat export --network evmos --export ../chains/deployments/evmos.json","export:fantom":"hardhat export --network fantom --export ../chains/deployments/fantom.json","export:ganache":"hardhat export --network localhost --export ../chains/deployments/ganache.json","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'tests/**/*.ts'","lint":"eslint . -c .eslintrc.json --ext ts,json","lint-fix":"eslint . -c .eslintrc.json --fix --ext ts,json","deploy:chapel":"hardhat --network chapel deploy --tags prod --no-compile","deploy:bsc":"hardhat --network bsc deploy --tags prod --no-compile","deploy:polygon":"hardhat --network polygon deploy --tags prod --no-compile","deploy:ethereum":"hardhat --network ethereum deploy --tags prod --no-compile","deploy:moonbeam":"hardhat --network moonbeam deploy --tags prod --no-compile","deploy:arbitrum":"hardhat --network arbitrum deploy --tags prod --no-compile","deploy:evmos":"hardhat --network evmos deploy --tags prod --no-compile","deploy:fantom":"hardhat --network fantom deploy --tags prod --no-compile","deploy:neondevnet":"hardhat --network neondevnet deploy --tags prod --no-compile","deploy:basegoerli":"hardhat --network basegoerli deploy --tags prod --no-compile","deploy:localhost":"hardhat --network localhost deploy --tags prod --no-compile","forge":"forge","hardhat":"hardhat"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@abimate/core":"^0.2.1","@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.5","@tenderly/hardhat-tenderly":"^1.7.2","@typechain/ethers-v5":"^10.2.0","@typechain/hardhat":"^6.1.5","@types/bad-words":"^3.0.1","@types/chai":"^4.3.4","@types/chai-as-promised":"^7","@types/chai-subset":"^1","@types/eslint":"^8.37.0","@types/mocha":"^10.0.1","@types/node":"^18.15.11","@types/sinon-chai":"^3","chai":"^4.3.7","chai-as-promised":"^7.1.1","chai-subset":"^1.6.0","dotenv":"^16.0.3","eslint":"^8.38.0","eslint-plugin-import":"^2.27.5","eslint-plugin-prettier":"^4.2.1","hardhat":"^2.14.0","hardhat-abi-exporter":"^2.10.1","hardhat-deploy":"^0.11.26","lint-staged":"13.2.1","mocha":"^10.2.0","nyc":"^15.1.0","prettier":"2.8.7","prettier-plugin-solidity":"1.1.3","sinon":"^15.0.3","sinon-chai":"^3.7.0","ts-mocha":"^10.0.0","ts-node":"^10.9.1","typechain":"^8.1.1","typescript":"^5.0.4"},"dependencies":{"@midas-capital/chains":"workspace:*","@midas-capital/types":"workspace:*","bad-words":"^3.0.4","bufferutil":"^4.0.7","ethereum-waffle":"^4.0.10","ethers":"^5.7.2","utf-8-validate":"^6.0.3"},"gitHead":"cead07aa7a85f6cb6972d956b919339c51cb80a2","bugs":{"url":"https://github.com/midas-protocol/monorepo/issues"},"homepage":"https://github.com/midas-protocol/monorepo#readme","_id":"@midas-capital/sdk@0.6.0","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-pTY4hYg7PHDILrTejDA04vTbu5LHU9rreyonSKxH5lKXa65gpKhdoyVRlBC8d+OP0lNopUdfHEIaGPS/NrT0bQ==","shasum":"a3d1d02ba06dccef3654983bde61c77525f5e200","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.6.0.tgz","fileCount":837,"unpackedSize":115478956,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEWaJgpitTGc08/rV5lVdYg/3fpKWZA5uaflz+u8pBvBAiA5FPy2O9rffY436SJEEfWj7lTr6WiEXMYK77mCpxeFkw=="}]},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.6.0_1683706274762_0.49029069002935644"},"_hasShrinkwrap":false},"0.6.1":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/monorepo.git"},"version":"0.6.1","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"## Installation","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","types":"./dist/cjs/src/index.d.ts","scripts":{"prebuild":"rm -rf dist","build":"yarn run build:forge; yarn run artifacts; yarn run typechain; yarn run abimate; yarn run build:sdk","postbuild":"du -sk dist/cjs; du -sk dist/esm","clean":"rm -rf dist; rm -rf ./typechain; rm -rf ./artifacts; rm -rf ./abis","artifacts":"echo '> Gathering artifacts...'; ./scripts/move-artifacts.sh","typechain":"echo '> Creating typechain types...'; [ ! -d ./typechain ] && typechain --target ethers-v5 --out-dir './typechain' './artifacts/*.json' --show-stack-traces","abimate":"echo '> Extracting ABIs from artifacts...'; abimate ./abis ./artifacts/*.json","build:forge":"echo '> Building contracts...'; cd lib/contracts && forge install && forge build --sizes","build:sdk":"echo '> Compiling SDK...'; yarn run build:esm && yarn run build:cjs","build:esm":"echo '> Compiling ESM SDK Module...'; tsc -p tsconfig-sdk.json","build:cjs":"echo '> Compiling CJS SDK Module...'; tsc -p tsconfig-cjs.json","setup":"cd lib/contracts && forge build","test:mocha":"nyc ts-mocha --require 'tests-mocha/globalTestHook.ts' --check-leaks --exit --timeout 60000 'tests-mocha/**/*.spec.ts'","test":"hardhat test --parallel --no-compile","test:bsc":"SIMULATION=true FORK_RPC_URL=${FORK_RPC_URL} FORK_CHAIN_ID=56 hardhat test --no-compile","test:forge":"cd lib/contracts && forge test","export":"hardhat export --export-all ./deployments.json","export:all":"npm run export:bsc && npm run export:polygon && npm run export:moonbeam && npm run export:neondevnet && npm run export:chapel","export:bsc":"hardhat export --network bsc --export ../chains/deployments/bsc.json","export:polygon":"hardhat export --network polygon --export ../chains/deployments/polygon.json","export:ethereum":"hardhat export --network ethereum --export ../chains/deployments/ethereum.json","export:moonbeam":"hardhat export --network moonbeam --export ../chains/deployments/moonbeam.json","export:arbitrum":"hardhat export --network arbitrum --export ../chains/deployments/arbitrum.json","export:neondevnet":"hardhat export --network neondevnet --export ../chains/deployments/neondevnet.json","export:basegoerli":"hardhat export --network basegoerli --export ../chains/deployments/basegoerli.json","export:chapel":"hardhat export --network chapel --export ../chains/deployments/chapel.json","export:evmos":"hardhat export --network evmos --export ../chains/deployments/evmos.json","export:fantom":"hardhat export --network fantom --export ../chains/deployments/fantom.json","export:ganache":"hardhat export --network localhost --export ../chains/deployments/ganache.json","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'tests/**/*.ts'","lint":"eslint . -c .eslintrc.json --ext ts,json","lint-fix":"eslint . -c .eslintrc.json --fix --ext ts,json","deploy:chapel":"hardhat --network chapel deploy --tags prod --no-compile","deploy:bsc":"hardhat --network bsc deploy --tags prod --no-compile","deploy:polygon":"hardhat --network polygon deploy --tags prod --no-compile","deploy:ethereum":"hardhat --network ethereum deploy --tags prod --no-compile","deploy:moonbeam":"hardhat --network moonbeam deploy --tags prod --no-compile","deploy:arbitrum":"hardhat --network arbitrum deploy --tags prod --no-compile","deploy:evmos":"hardhat --network evmos deploy --tags prod --no-compile","deploy:fantom":"hardhat --network fantom deploy --tags prod --no-compile","deploy:neondevnet":"hardhat --network neondevnet deploy --tags prod --no-compile","deploy:basegoerli":"hardhat --network basegoerli deploy --tags prod --no-compile","deploy:localhost":"hardhat --network localhost deploy --tags prod --no-compile","forge":"forge","hardhat":"hardhat"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@abimate/core":"^0.2.1","@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","@nomiclabs/hardhat-waffle":"^2.0.5","@tenderly/hardhat-tenderly":"^1.7.2","@typechain/ethers-v5":"^10.2.0","@typechain/hardhat":"^6.1.5","@types/bad-words":"^3.0.1","@types/chai":"^4.3.4","@types/chai-as-promised":"^7","@types/chai-subset":"^1","@types/eslint":"^8.37.0","@types/mocha":"^10.0.1","@types/node":"^18.15.11","@types/sinon-chai":"^3","chai":"^4.3.7","chai-as-promised":"^7.1.1","chai-subset":"^1.6.0","dotenv":"^16.0.3","eslint":"^8.38.0","eslint-plugin-import":"^2.27.5","eslint-plugin-prettier":"^4.2.1","hardhat":"^2.14.0","hardhat-abi-exporter":"^2.10.1","hardhat-deploy":"^0.11.26","lint-staged":"13.2.1","mocha":"^10.2.0","nyc":"^15.1.0","prettier":"2.8.7","prettier-plugin-solidity":"1.1.3","sinon":"^15.0.3","sinon-chai":"^3.7.0","ts-mocha":"^10.0.0","ts-node":"^10.9.1","typechain":"^8.1.1","typescript":"^5.0.4"},"dependencies":{"@midas-capital/chains":"workspace:*","@midas-capital/types":"workspace:*","bad-words":"^3.0.4","bufferutil":"^4.0.7","ethereum-waffle":"^4.0.10","ethers":"^5.7.2","utf-8-validate":"^6.0.3"},"gitHead":"e1247a8d4f8c8d4e03ed75a6449c6f0754d621aa","bugs":{"url":"https://github.com/midas-protocol/monorepo/issues"},"homepage":"https://github.com/midas-protocol/monorepo#readme","_id":"@midas-capital/sdk@0.6.1","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-wpKOQ7r8I008sT+lOR7N2HmtkCVgoN5S/XvWQ+KXNJ5cQfbrYlfMJFOHfbQ3EC0SjENhOF0Q+OX50L2T/1MqJA==","shasum":"389258648534fa6149732e165fabe2da44e6d9c7","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.6.1.tgz","fileCount":837,"unpackedSize":115478956,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCA/S0U5ZFH2D4NLp9rBk00pIUNlHeOnKHRATJofLktKQIhALAwhfkU2la0bO4dfIbxyn4e00tiOlaLlBzo7vBzrPH+"}]},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.6.1_1683708983685_0.02015966937485536"},"_hasShrinkwrap":false},"0.6.2":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/monorepo.git"},"version":"0.6.2","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"## Installation","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","types":"./dist/cjs/src/index.d.ts","scripts":{"prebuild":"rm -rf dist","build":"yarn run build:forge; yarn run artifacts; yarn run typechain; yarn run abimate; yarn run build:sdk","postbuild":"du -sk dist/cjs; du -sk dist/esm","clean":"rm -rf dist; rm -rf ./typechain; rm -rf ./artifacts; rm -rf ./abis","artifacts":"echo '> Gathering artifacts...'; ./scripts/move-artifacts.sh","typechain":"echo '> Creating typechain types...'; [ ! -d ./typechain ] && typechain --target ethers-v5 --out-dir './typechain' './artifacts/*.json' --show-stack-traces","abimate":"echo '> Extracting ABIs from artifacts...'; abimate ./abis ./artifacts/*.json","build:forge":"echo '> Building contracts...'; cd lib/contracts && forge install && forge build --sizes","build:sdk":"echo '> Compiling SDK...'; yarn run build:esm && yarn run build:cjs","build:esm":"echo '> Compiling ESM SDK Module...'; tsc -p tsconfig-sdk.json","build:cjs":"echo '> Compiling CJS SDK Module...'; tsc -p tsconfig-cjs.json","setup":"cd lib/contracts && forge build","test:mocha":"nyc ts-mocha --require 'tests-mocha/globalTestHook.ts' --check-leaks --exit --timeout 60000 'tests-mocha/**/*.spec.ts'","test":"hardhat test --parallel --no-compile","test:bsc":"SIMULATION=true FORK_RPC_URL=${FORK_RPC_URL} FORK_CHAIN_ID=56 hardhat test --no-compile","test:forge":"cd lib/contracts && forge test","export":"hardhat export --export-all ./deployments.json","export:all":"npm run export:bsc && npm run export:polygon && npm run export:moonbeam && npm run export:neondevnet && npm run export:chapel","export:bsc":"hardhat export --network bsc --export ../chains/deployments/bsc.json","export:polygon":"hardhat export --network polygon --export ../chains/deployments/polygon.json","export:ethereum":"hardhat export --network ethereum --export ../chains/deployments/ethereum.json","export:moonbeam":"hardhat export --network moonbeam --export ../chains/deployments/moonbeam.json","export:arbitrum":"hardhat export --network arbitrum --export ../chains/deployments/arbitrum.json","export:neondevnet":"hardhat export --network neondevnet --export ../chains/deployments/neondevnet.json","export:basegoerli":"hardhat export --network basegoerli --export ../chains/deployments/basegoerli.json","export:chapel":"hardhat export --network chapel --export ../chains/deployments/chapel.json","export:evmos":"hardhat export --network evmos --export ../chains/deployments/evmos.json","export:fantom":"hardhat export --network fantom --export ../chains/deployments/fantom.json","export:ganache":"hardhat export --network localhost --export ../chains/deployments/ganache.json","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'tests/**/*.ts'","lint":"eslint . -c .eslintrc.json --ext ts,json","lint-fix":"eslint . -c .eslintrc.json --fix --ext ts,json","deploy:chapel":"hardhat --network chapel deploy --tags prod --no-compile","deploy:bsc":"hardhat --network bsc deploy --tags prod --no-compile","deploy:polygon":"hardhat --network polygon deploy --tags prod --no-compile","deploy:ethereum":"hardhat --network ethereum deploy --tags prod --no-compile","deploy:moonbeam":"hardhat --network moonbeam deploy --tags prod --no-compile","deploy:arbitrum":"hardhat --network arbitrum deploy --tags prod --no-compile","deploy:evmos":"hardhat --network evmos deploy --tags prod --no-compile","deploy:fantom":"hardhat --network fantom deploy --tags prod --no-compile","deploy:neondevnet":"hardhat --network neondevnet deploy --tags prod --no-compile","deploy:basegoerli":"hardhat --network basegoerli deploy --tags prod --no-compile","deploy:localhost":"hardhat --network localhost deploy --tags prod --no-compile","forge":"forge","hardhat":"hardhat"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@abimate/core":"^0.2.1","@nomiclabs/hardhat-waffle":"^2.0.5","@tenderly/hardhat-tenderly":"^1.7.2","@typechain/ethers-v5":"^10.2.0","@typechain/hardhat":"^6.1.5","@types/bad-words":"^3.0.1","@types/chai":"^4.3.4","@types/chai-as-promised":"^7","@types/chai-subset":"^1","@types/eslint":"^8.37.0","@types/mocha":"^10.0.1","@types/node":"^18.15.11","@types/sinon-chai":"^3","chai":"^4.3.7","chai-as-promised":"^7.1.1","chai-subset":"^1.6.0","dotenv":"^16.0.3","eslint":"^8.38.0","eslint-plugin-import":"^2.27.5","eslint-plugin-prettier":"^4.2.1","hardhat":"^2.14.0","hardhat-abi-exporter":"^2.10.1","hardhat-deploy":"^0.11.26","lint-staged":"13.2.1","mocha":"^10.2.0","nyc":"^15.1.0","prettier":"2.8.7","prettier-plugin-solidity":"1.1.3","sinon":"^15.0.3","sinon-chai":"^3.7.0","ts-mocha":"^10.0.0","ts-node":"^10.9.1","typechain":"^8.1.1","typescript":"^5.0.4"},"dependencies":{"@midas-capital/chains":"workspace:*","@midas-capital/types":"workspace:*","@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","bad-words":"^3.0.4","bufferutil":"^4.0.7","ethereum-waffle":"^4.0.10","ethers":"^5.7.2","utf-8-validate":"^6.0.3"},"gitHead":"8410faab31910492ec4b1b0b4ce5a307c3e46056","bugs":{"url":"https://github.com/midas-protocol/monorepo/issues"},"homepage":"https://github.com/midas-protocol/monorepo#readme","_id":"@midas-capital/sdk@0.6.2","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-jAQa+qsd+YK07t7ZU/C63Z4uL634Ijd6p7F1DiqxTUV7M8oZhrdZlINLkc4lfd1gKp95S/CikNgTvmbcNiGNgQ==","shasum":"e106e13e4bae67e889133b835a26b2886bc230b0","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.6.2.tgz","fileCount":837,"unpackedSize":115478956,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCHVqwj1XQ57bsQjxAUDfkuHry2vo1ai6RuDB04TEmnuwIgJ751Pq5thfMcvbdn2qoaAFuooCtOa29qlDAPhkMdxCA="}]},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.6.2_1683711408214_0.4988977005784374"},"_hasShrinkwrap":false},"0.6.3":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/monorepo.git"},"version":"0.6.3","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"## Installation","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","types":"./dist/cjs/src/index.d.ts","scripts":{"prebuild":"rm -rf dist","build":"yarn run build:forge; yarn run artifacts; yarn run typechain; yarn run abimate; yarn run build:sdk","postbuild":"du -sk dist/cjs; du -sk dist/esm","clean":"rm -rf dist; rm -rf ./typechain; rm -rf ./artifacts; rm -rf ./abis","artifacts":"echo '> Gathering artifacts...'; ./scripts/move-artifacts.sh","typechain":"echo '> Creating typechain types...'; [ ! -d ./typechain ] && typechain --target ethers-v5 --out-dir './typechain' './artifacts/*.json' --show-stack-traces","abimate":"echo '> Extracting ABIs from artifacts...'; abimate ./abis ./artifacts/*.json","build:forge":"echo '> Building contracts...'; cd lib/contracts && forge install && forge build --sizes","build:sdk":"echo '> Compiling SDK...'; yarn run build:esm && yarn run build:cjs","build:esm":"echo '> Compiling ESM SDK Module...'; tsc -p tsconfig-sdk.json","build:cjs":"echo '> Compiling CJS SDK Module...'; tsc -p tsconfig-cjs.json","setup":"cd lib/contracts && forge build","test:mocha":"nyc ts-mocha --require 'tests-mocha/globalTestHook.ts' --check-leaks --exit --timeout 60000 'tests-mocha/**/*.spec.ts'","test":"hardhat test --parallel --no-compile","test:bsc":"SIMULATION=true FORK_RPC_URL=${FORK_RPC_URL} FORK_CHAIN_ID=56 hardhat test --no-compile","test:forge":"cd lib/contracts && forge test","export":"hardhat export --export-all ./deployments.json","export:all":"npm run export:bsc && npm run export:polygon && npm run export:moonbeam && npm run export:neondevnet && npm run export:chapel","export:bsc":"hardhat export --network bsc --export ../chains/deployments/bsc.json","export:polygon":"hardhat export --network polygon --export ../chains/deployments/polygon.json","export:ethereum":"hardhat export --network ethereum --export ../chains/deployments/ethereum.json","export:moonbeam":"hardhat export --network moonbeam --export ../chains/deployments/moonbeam.json","export:arbitrum":"hardhat export --network arbitrum --export ../chains/deployments/arbitrum.json","export:neondevnet":"hardhat export --network neondevnet --export ../chains/deployments/neondevnet.json","export:basegoerli":"hardhat export --network basegoerli --export ../chains/deployments/basegoerli.json","export:chapel":"hardhat export --network chapel --export ../chains/deployments/chapel.json","export:evmos":"hardhat export --network evmos --export ../chains/deployments/evmos.json","export:fantom":"hardhat export --network fantom --export ../chains/deployments/fantom.json","export:ganache":"hardhat export --network localhost --export ../chains/deployments/ganache.json","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'tests/**/*.ts'","lint":"eslint . -c .eslintrc.json --ext ts,json","lint-fix":"eslint . -c .eslintrc.json --fix --ext ts,json","deploy:chapel":"hardhat --network chapel deploy --tags prod --no-compile","deploy:bsc":"hardhat --network bsc deploy --tags prod --no-compile","deploy:polygon":"hardhat --network polygon deploy --tags prod --no-compile","deploy:ethereum":"hardhat --network ethereum deploy --tags prod --no-compile","deploy:moonbeam":"hardhat --network moonbeam deploy --tags prod --no-compile","deploy:arbitrum":"hardhat --network arbitrum deploy --tags prod --no-compile","deploy:evmos":"hardhat --network evmos deploy --tags prod --no-compile","deploy:fantom":"hardhat --network fantom deploy --tags prod --no-compile","deploy:neondevnet":"hardhat --network neondevnet deploy --tags prod --no-compile","deploy:basegoerli":"hardhat --network basegoerli deploy --tags prod --no-compile","deploy:localhost":"hardhat --network localhost deploy --tags prod --no-compile","forge":"forge","hardhat":"hardhat"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@abimate/core":"^0.2.1","@nomiclabs/hardhat-waffle":"^2.0.5","@tenderly/hardhat-tenderly":"^1.7.2","@typechain/ethers-v5":"^10.2.0","@typechain/hardhat":"^6.1.5","@types/bad-words":"^3.0.1","@types/chai":"^4.3.4","@types/chai-as-promised":"^7","@types/chai-subset":"^1","@types/eslint":"^8.37.0","@types/mocha":"^10.0.1","@types/node":"^18.15.11","@types/sinon-chai":"^3","chai":"^4.3.7","chai-as-promised":"^7.1.1","chai-subset":"^1.6.0","dotenv":"^16.0.3","eslint":"^8.38.0","eslint-plugin-import":"^2.27.5","eslint-plugin-prettier":"^4.2.1","hardhat":"^2.14.0","hardhat-abi-exporter":"^2.10.1","hardhat-deploy":"^0.11.26","lint-staged":"13.2.1","mocha":"^10.2.0","nyc":"^15.1.0","prettier":"2.8.7","prettier-plugin-solidity":"1.1.3","sinon":"^15.0.3","sinon-chai":"^3.7.0","ts-mocha":"^10.0.0","ts-node":"^10.9.1","typechain":"^8.1.1","typescript":"^5.0.4"},"dependencies":{"@midas-capital/chains":"workspace:*","@midas-capital/types":"workspace:*","@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","bad-words":"^3.0.4","bufferutil":"^4.0.7","ethereum-waffle":"^4.0.10","ethers":"^5.7.2","utf-8-validate":"^6.0.3"},"readme":"# `@midas-capital/sdk`\n\n## Installation\n\n`npm install @midas-capital/sdk`\n\n```typescript\nimport { MidasSdk } from \"@midas-capital/sdk\";\nimport { ethers } from \"ethers\";\n\nconst chainId = 56;\nconst provider = new ethers.providers.JsonRpcProvider(\"PROVIDER_URL\");\n\nconst sdk = new Fuse(provider, chainId);\n\nconst poolOne = await sdk.fetchFusePoolData(\"1\");\n\nconst assetZero = poolOne.assets[0];\n\nconst borrowAPRAssetZero = sdk.ratePerBlockToAPY(\n  assetZero.borrowRatePerBlock,\n  20\n);\nconst supplyAPYAssetZero = sdk.ratePerBlockToAPY(\n  assetZero.supplyRatePerBlock,\n  20\n);\n```\n\n## Functions\n\n### fetchFusePoolData\n\n`fetchFusePoolData(poolId: string, signer?: string): Promise<FusePoolData>`\n\nFetch data about an individual pool on midas capital based on the pool id. The pool id can be extracted from the pool url `https://app.midascapital.xyz/56/pool/POOL_ID`\n\n### ratePerBlockToAPY\n\n`ratePerBlockToAPY(ratePerBlock: BigNumber, blocksPerMin: number): number`\n\nReturn the APY for a given current per-block borrow/supply interest rate. This rate can be included in the\n\n`FusePoolData['assets'][0].borrowRatePerBlock`\nand\n\n`FusePoolData['assets'][0].supplyRatePerBlock`\ncorrespondingly. (i.e. blocksPerMin for BSC: `20`)\n","readmeFilename":"README.md","gitHead":"1ba47aa1505e114be846b6e328c1520163873c63","bugs":{"url":"https://github.com/midas-protocol/monorepo/issues"},"homepage":"https://github.com/midas-protocol/monorepo#readme","_id":"@midas-capital/sdk@0.6.3","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-DDolUOuW8zMvppGFn7peMZAfhQ61u/To/m5L8puscsnvdXjIOKgBBTDqLxzHXiNrQWDeqHZJ6Vht/1JmhdXKYA==","shasum":"3e5a17bd4d35e64a3228250a818f2f60afbb1d2a","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.6.3.tgz","fileCount":835,"unpackedSize":111661555,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID0VBrv9fM20hqajmcHbWs8P6mPap/BVuBfHcYvxvuNfAiEA3zZNsBxPG2qH9HgoxKz/RRyQNJekGA3UHaO4zqkiDX8="}]},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"papalo","email":"philip@palo-altona.com"},{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.6.3_1684264137498_0.33658343209624264"},"_hasShrinkwrap":false},"0.6.4":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/monorepo.git"},"version":"0.6.4","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"## Installation","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","types":"./dist/cjs/src/index.d.ts","scripts":{"prebuild":"rm -rf dist","build":"yarn run build:forge; yarn run artifacts; yarn run typechain; yarn run abimate; yarn run build:sdk","postbuild":"du -sk dist/cjs; du -sk dist/esm","clean":"rm -rf dist; rm -rf ./typechain; rm -rf ./artifacts; rm -rf ./abis","artifacts":"echo '> Gathering artifacts...'; ./scripts/move-artifacts.sh","typechain":"echo '> Creating typechain types...'; [ ! -d ./typechain ] && typechain --target ethers-v5 --out-dir './typechain' './artifacts/*.json' --show-stack-traces","abimate":"echo '> Extracting ABIs from artifacts...'; abimate ./abis ./artifacts/*.json","build:forge":"echo '> Building contracts...'; cd lib/contracts && forge install && forge build --sizes","build:sdk":"echo '> Compiling SDK...'; yarn run build:esm && yarn run build:cjs","build:esm":"echo '> Compiling ESM SDK Module...'; tsc -p tsconfig-sdk.json","build:cjs":"echo '> Compiling CJS SDK Module...'; tsc -p tsconfig-cjs.json","setup":"cd lib/contracts && forge build","test:mocha":"nyc ts-mocha --require 'tests-mocha/globalTestHook.ts' --check-leaks --exit --timeout 60000 'tests-mocha/**/*.spec.ts'","test":"hardhat test --parallel --no-compile","test:bsc":"SIMULATION=true FORK_RPC_URL=${FORK_RPC_URL} FORK_CHAIN_ID=56 hardhat test --no-compile","test:forge":"cd lib/contracts && forge test","export":"hardhat export --export-all ./deployments.json","export:all":"npm run export:bsc && npm run export:polygon && npm run export:moonbeam && npm run export:neondevnet && npm run export:chapel","export:bsc":"hardhat export --network bsc --export ../chains/deployments/bsc.json","export:polygon":"hardhat export --network polygon --export ../chains/deployments/polygon.json","export:ethereum":"hardhat export --network ethereum --export ../chains/deployments/ethereum.json","export:moonbeam":"hardhat export --network moonbeam --export ../chains/deployments/moonbeam.json","export:arbitrum":"hardhat export --network arbitrum --export ../chains/deployments/arbitrum.json","export:neondevnet":"hardhat export --network neondevnet --export ../chains/deployments/neondevnet.json","export:basegoerli":"hardhat export --network basegoerli --export ../chains/deployments/basegoerli.json","export:chapel":"hardhat export --network chapel --export ../chains/deployments/chapel.json","export:evmos":"hardhat export --network evmos --export ../chains/deployments/evmos.json","export:fantom":"hardhat export --network fantom --export ../chains/deployments/fantom.json","export:ganache":"hardhat export --network localhost --export ../chains/deployments/ganache.json","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'tests/**/*.ts'","lint":"eslint . -c .eslintrc.json --ext ts,json","lint-fix":"eslint . -c .eslintrc.json --fix --ext ts,json","deploy:chapel":"hardhat --network chapel deploy --tags prod --no-compile","deploy:bsc":"hardhat --network bsc deploy --tags prod --no-compile","deploy:polygon":"hardhat --network polygon deploy --tags prod --no-compile","deploy:ethereum":"hardhat --network ethereum deploy --tags prod --no-compile","deploy:moonbeam":"hardhat --network moonbeam deploy --tags prod --no-compile","deploy:arbitrum":"hardhat --network arbitrum deploy --tags prod --no-compile","deploy:evmos":"hardhat --network evmos deploy --tags prod --no-compile","deploy:fantom":"hardhat --network fantom deploy --tags prod --no-compile","deploy:neondevnet":"hardhat --network neondevnet deploy --tags prod --no-compile","deploy:basegoerli":"hardhat --network basegoerli deploy --tags prod --no-compile","deploy:localhost":"hardhat --network localhost deploy --tags prod --no-compile","deploy:localeth":"hardhat --network localeth deploy --tags prod --no-compile","forge":"forge","hardhat":"hardhat"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@abimate/core":"^0.2.1","@nomiclabs/hardhat-waffle":"^2.0.5","@tenderly/hardhat-tenderly":"^1.7.2","@typechain/ethers-v5":"^10.2.0","@typechain/hardhat":"^6.1.5","@types/bad-words":"^3.0.1","@types/chai":"^4.3.4","@types/chai-as-promised":"^7","@types/chai-subset":"^1","@types/eslint":"^8.37.0","@types/mocha":"^10.0.1","@types/node":"^18.15.11","@types/sinon-chai":"^3","chai":"^4.3.7","chai-as-promised":"^7.1.1","chai-subset":"^1.6.0","dotenv":"^16.0.3","eslint":"^8.38.0","eslint-plugin-import":"^2.27.5","eslint-plugin-prettier":"^4.2.1","hardhat":"^2.14.0","hardhat-abi-exporter":"^2.10.1","hardhat-deploy":"^0.11.26","lint-staged":"13.2.1","mocha":"^10.2.0","nyc":"^15.1.0","prettier":"2.8.7","prettier-plugin-solidity":"1.1.3","sinon":"^15.0.3","sinon-chai":"^3.7.0","ts-mocha":"^10.0.0","ts-node":"^10.9.1","typechain":"^8.1.1","typescript":"^5.0.4"},"dependencies":{"@midas-capital/chains":"workspace:*","@midas-capital/types":"workspace:*","@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","bad-words":"^3.0.4","bufferutil":"^4.0.7","ethereum-waffle":"^4.0.10","ethers":"^5.7.2","utf-8-validate":"^6.0.3"},"gitHead":"b781605afd561eafeb5d99745fe863189cd3dbff","bugs":{"url":"https://github.com/midas-protocol/monorepo/issues"},"homepage":"https://github.com/midas-protocol/monorepo#readme","_id":"@midas-capital/sdk@0.6.4","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-mbZLfI6zDSatZTbv0bR355Xf5UtvXKPabD36dL8Y2B02XTIU0DqoBGHxzJg/+QTQvtBNihfW7XF0haW3WlYs8Q==","shasum":"5ca12c6038f676f991d431e57b10b9892a9af8d7","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.6.4.tgz","fileCount":914,"unpackedSize":129517412,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA8AnvcJ4p5xN5MU4zRfiV77Ju31JNKFGXllRkHkl90cAiBrxy6gsNPmi27l6ECl0vG2J3PQSQRrPAGa5kgz67B/Nw=="}]},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.6.4_1686744569396_0.5801484831184012"},"_hasShrinkwrap":false},"0.6.5":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/monorepo.git"},"version":"0.6.5","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"## Installation","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","types":"./dist/cjs/src/index.d.ts","scripts":{"prebuild":"rm -rf dist","build":"yarn run build:forge; yarn run artifacts; yarn run typechain; yarn run abimate; yarn run build:sdk","postbuild":"du -sk dist/cjs; du -sk dist/esm","clean":"rm -rf dist; rm -rf ./typechain; rm -rf ./artifacts; rm -rf ./abis","artifacts":"echo '> Gathering artifacts...'; ./scripts/move-artifacts.sh","typechain":"echo '> Creating typechain types...'; [ ! -d ./typechain ] && typechain --target ethers-v5 --out-dir './typechain' './artifacts/*.json' --show-stack-traces","abimate":"echo '> Extracting ABIs from artifacts...'; abimate ./abis ./artifacts/*.json","build:forge":"echo '> Building contracts...'; cd lib/contracts && forge install && forge build --sizes","build:sdk":"echo '> Compiling SDK...'; yarn run build:esm && yarn run build:cjs","build:esm":"echo '> Compiling ESM SDK Module...'; tsc -p tsconfig-sdk.json","build:cjs":"echo '> Compiling CJS SDK Module...'; tsc -p tsconfig-cjs.json","setup":"cd lib/contracts && forge build","test:mocha":"nyc ts-mocha --require 'tests-mocha/globalTestHook.ts' --check-leaks --exit --timeout 60000 'tests-mocha/**/*.spec.ts'","test":"hardhat test --parallel --no-compile","test:bsc":"SIMULATION=true FORK_RPC_URL=${FORK_RPC_URL} FORK_CHAIN_ID=56 hardhat test --no-compile","test:forge":"cd lib/contracts && forge test","export":"hardhat export --export-all ./deployments.json","export:all":"npm run export:bsc && npm run export:polygon && npm run export:moonbeam && npm run export:neondevnet && npm run export:chapel","export:bsc":"hardhat export --network bsc --export ../chains/deployments/bsc.json","export:polygon":"hardhat export --network polygon --export ../chains/deployments/polygon.json","export:ethereum":"hardhat export --network ethereum --export ../chains/deployments/ethereum.json","export:moonbeam":"hardhat export --network moonbeam --export ../chains/deployments/moonbeam.json","export:arbitrum":"hardhat export --network arbitrum --export ../chains/deployments/arbitrum.json","export:neondevnet":"hardhat export --network neondevnet --export ../chains/deployments/neondevnet.json","export:basegoerli":"hardhat export --network basegoerli --export ../chains/deployments/basegoerli.json","export:chapel":"hardhat export --network chapel --export ../chains/deployments/chapel.json","export:evmos":"hardhat export --network evmos --export ../chains/deployments/evmos.json","export:fantom":"hardhat export --network fantom --export ../chains/deployments/fantom.json","export:ganache":"hardhat export --network localhost --export ../chains/deployments/ganache.json","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'tests/**/*.ts'","lint":"eslint . -c .eslintrc.json --ext ts,json","lint-fix":"eslint . -c .eslintrc.json --fix --ext ts,json","deploy:chapel":"hardhat --network chapel deploy --tags prod --no-compile","deploy:bsc":"hardhat --network bsc deploy --tags prod --no-compile","deploy:polygon":"hardhat --network polygon deploy --tags prod --no-compile","deploy:ethereum":"hardhat --network ethereum deploy --tags prod --no-compile","deploy:moonbeam":"hardhat --network moonbeam deploy --tags prod --no-compile","deploy:arbitrum":"hardhat --network arbitrum deploy --tags prod --no-compile","deploy:evmos":"hardhat --network evmos deploy --tags prod --no-compile","deploy:fantom":"hardhat --network fantom deploy --tags prod --no-compile","deploy:neondevnet":"hardhat --network neondevnet deploy --tags prod --no-compile","deploy:basegoerli":"hardhat --network basegoerli deploy --tags prod --no-compile","deploy:localhost":"hardhat --network localhost deploy --tags prod --no-compile","deploy:localeth":"hardhat --network localeth deploy --tags prod --no-compile","forge":"forge","hardhat":"hardhat"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@abimate/core":"^0.2.1","@nomiclabs/hardhat-waffle":"^2.0.5","@tenderly/hardhat-tenderly":"^1.7.2","@typechain/ethers-v5":"^10.2.0","@typechain/hardhat":"^6.1.5","@types/bad-words":"^3.0.1","@types/chai":"^4.3.4","@types/chai-as-promised":"^7","@types/chai-subset":"^1","@types/eslint":"^8.37.0","@types/mocha":"^10.0.1","@types/node":"^18.15.11","@types/sinon-chai":"^3","chai":"^4.3.7","chai-as-promised":"^7.1.1","chai-subset":"^1.6.0","dotenv":"^16.0.3","eslint":"^8.38.0","eslint-plugin-import":"^2.27.5","eslint-plugin-prettier":"^4.2.1","hardhat":"^2.14.0","hardhat-abi-exporter":"^2.10.1","hardhat-deploy":"^0.11.26","lint-staged":"13.2.1","mocha":"^10.2.0","nyc":"^15.1.0","prettier":"2.8.7","prettier-plugin-solidity":"1.1.3","sinon":"^15.0.3","sinon-chai":"^3.7.0","ts-mocha":"^10.0.0","ts-node":"^10.9.1","typechain":"^8.1.1","typescript":"^5.0.4"},"dependencies":{"@midas-capital/chains":"workspace:*","@midas-capital/types":"workspace:*","@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","bad-words":"^3.0.4","bufferutil":"^4.0.7","ethereum-waffle":"^4.0.10","ethers":"^5.7.2","utf-8-validate":"^6.0.3"},"readme":"# `@midas-capital/sdk`\n\n## Installation\n\n`npm install @midas-capital/sdk`\n\n```typescript\nimport { MidasSdk } from \"@midas-capital/sdk\";\nimport { ethers } from \"ethers\";\n\nconst chainId = 56;\nconst provider = new ethers.providers.JsonRpcProvider(\"PROVIDER_URL\");\n\nconst sdk = new Fuse(provider, chainId);\n\nconst poolOne = await sdk.fetchFusePoolData(\"1\");\n\nconst assetZero = poolOne.assets[0];\n\nconst borrowAPRAssetZero = sdk.ratePerBlockToAPY(\n  assetZero.borrowRatePerBlock,\n  20\n);\nconst supplyAPYAssetZero = sdk.ratePerBlockToAPY(\n  assetZero.supplyRatePerBlock,\n  20\n);\n```\n\n## Functions\n\n### fetchFusePoolData\n\n`fetchFusePoolData(poolId: string, signer?: string): Promise<FusePoolData>`\n\nFetch data about an individual pool on midas capital based on the pool id. The pool id can be extracted from the pool url `https://app.midascapital.xyz/56/pool/POOL_ID`\n\n### ratePerBlockToAPY\n\n`ratePerBlockToAPY(ratePerBlock: BigNumber, blocksPerMin: number): number`\n\nReturn the APY for a given current per-block borrow/supply interest rate. This rate can be included in the\n\n`FusePoolData['assets'][0].borrowRatePerBlock`\nand\n\n`FusePoolData['assets'][0].supplyRatePerBlock`\ncorrespondingly. (i.e. blocksPerMin for BSC: `20`)\n","readmeFilename":"README.md","gitHead":"fcf187a437d4733d02f439bec9da1b067e94507b","bugs":{"url":"https://github.com/midas-protocol/monorepo/issues"},"homepage":"https://github.com/midas-protocol/monorepo#readme","_id":"@midas-capital/sdk@0.6.5","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-Wl28YejqM2A9gbJaCVtf395KYBKNRQplKbg/nZ72Xp32B8730B84wZWXz8hg4AhYkQFKI8dzf2NjdwZ0EzMdQQ==","shasum":"2aaaeb998566c4010b6ee27b8bbe51860c7c7e62","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.6.5.tgz","fileCount":891,"unpackedSize":123340388,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICaKYQ/JCTlT2mkc1q0cbVoySX3yNcWWZHBUhWRBK+ZWAiATyHfX6FcjOksh9qTnodOTgzD83WjEAT95upk3cxse1g=="}]},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.6.5_1686810402595_0.9738876214638874"},"_hasShrinkwrap":false},"0.6.7":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/monorepo.git"},"version":"0.6.7","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"## Installation","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","types":"./dist/cjs/src/index.d.ts","scripts":{"prebuild":"rm -rf dist","build":"yarn run build:forge; yarn run artifacts; yarn run typechain; yarn run abimate; yarn run build:sdk","postbuild":"du -sk dist/cjs; du -sk dist/esm","clean":"rm -rf dist; rm -rf ./typechain; rm -rf ./artifacts; rm -rf ./abis","artifacts":"echo '> Gathering artifacts...'; ./scripts/move-artifacts.sh","typechain":"echo '> Creating typechain types...'; [ ! -d ./typechain ] && typechain --target ethers-v5 --out-dir './typechain' './artifacts/*.json' --show-stack-traces","abimate":"echo '> Extracting ABIs from artifacts...'; abimate ./abis ./artifacts/*.json","build:forge":"echo '> Building contracts...'; cd lib/contracts && forge install && forge build --sizes","build:sdk":"echo '> Compiling SDK...'; yarn run build:esm && yarn run build:cjs","build:esm":"echo '> Compiling ESM SDK Module...'; tsc -p tsconfig-sdk.json","build:cjs":"echo '> Compiling CJS SDK Module...'; tsc -p tsconfig-cjs.json","setup":"cd lib/contracts && forge build","test:mocha":"nyc ts-mocha --require 'tests-mocha/globalTestHook.ts' --check-leaks --exit --timeout 60000 'tests-mocha/**/*.spec.ts'","test":"hardhat test --parallel --no-compile","test:bsc":"SIMULATION=true FORK_RPC_URL=${FORK_RPC_URL} FORK_CHAIN_ID=56 hardhat test --no-compile","test:forge":"cd lib/contracts && forge test","export":"hardhat export --export-all ./deployments.json","export:all":"npm run export:bsc && npm run export:polygon && npm run export:moonbeam && npm run export:neondevnet && npm run export:chapel","export:bsc":"hardhat export --network bsc --export ../chains/deployments/bsc.json","export:polygon":"hardhat export --network polygon --export ../chains/deployments/polygon.json","export:ethereum":"hardhat export --network ethereum --export ../chains/deployments/ethereum.json","export:moonbeam":"hardhat export --network moonbeam --export ../chains/deployments/moonbeam.json","export:arbitrum":"hardhat export --network arbitrum --export ../chains/deployments/arbitrum.json","export:neondevnet":"hardhat export --network neondevnet --export ../chains/deployments/neondevnet.json","export:basegoerli":"hardhat export --network basegoerli --export ../chains/deployments/basegoerli.json","export:chapel":"hardhat export --network chapel --export ../chains/deployments/chapel.json","export:evmos":"hardhat export --network evmos --export ../chains/deployments/evmos.json","export:fantom":"hardhat export --network fantom --export ../chains/deployments/fantom.json","export:ganache":"hardhat export --network localhost --export ../chains/deployments/ganache.json","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'tests/**/*.ts'","lint":"eslint . -c .eslintrc.json --ext ts,json","lint-fix":"eslint . -c .eslintrc.json --fix --ext ts,json","deploy:chapel":"hardhat --network chapel deploy --tags prod --no-compile","deploy:bsc":"hardhat --network bsc deploy --tags prod --no-compile","deploy:polygon":"hardhat --network polygon deploy --tags prod --no-compile","deploy:ethereum":"hardhat --network ethereum deploy --tags prod --no-compile","deploy:moonbeam":"hardhat --network moonbeam deploy --tags prod --no-compile","deploy:arbitrum":"hardhat --network arbitrum deploy --tags prod --no-compile","deploy:evmos":"hardhat --network evmos deploy --tags prod --no-compile","deploy:fantom":"hardhat --network fantom deploy --tags prod --no-compile","deploy:neondevnet":"hardhat --network neondevnet deploy --tags prod --no-compile","deploy:basegoerli":"hardhat --network basegoerli deploy --tags prod --no-compile","deploy:localhost":"hardhat --network localhost deploy --tags prod --no-compile","deploy:localeth":"hardhat --network localeth deploy --tags prod --no-compile","forge":"forge","hardhat":"hardhat"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@abimate/core":"^0.2.1","@nomiclabs/hardhat-waffle":"^2.0.5","@tenderly/hardhat-tenderly":"^1.7.2","@typechain/ethers-v5":"^10.2.0","@typechain/hardhat":"^6.1.5","@types/bad-words":"^3.0.1","@types/chai":"^4.3.4","@types/chai-as-promised":"^7","@types/chai-subset":"^1","@types/eslint":"^8.37.0","@types/mocha":"^10.0.1","@types/node":"^18.15.11","@types/sinon-chai":"^3","chai":"^4.3.7","chai-as-promised":"^7.1.1","chai-subset":"^1.6.0","dotenv":"^16.0.3","eslint":"^8.38.0","eslint-plugin-import":"^2.27.5","eslint-plugin-prettier":"^4.2.1","hardhat":"^2.14.0","hardhat-abi-exporter":"^2.10.1","hardhat-deploy":"^0.11.26","lint-staged":"13.2.1","mocha":"^10.2.0","nyc":"^15.1.0","prettier":"2.8.7","prettier-plugin-solidity":"1.1.3","sinon":"^15.0.3","sinon-chai":"^3.7.0","ts-mocha":"^10.0.0","ts-node":"^10.9.1","typechain":"^8.1.1","typescript":"^5.0.4"},"dependencies":{"@midas-capital/chains":"workspace:*","@midas-capital/types":"workspace:*","@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","bad-words":"^3.0.4","bufferutil":"^4.0.7","ethereum-waffle":"^4.0.10","ethers":"^5.7.2","utf-8-validate":"^6.0.3"},"readme":"# `@midas-capital/sdk`\n\n## Installation\n\n`npm install @midas-capital/sdk`\n\n```typescript\nimport { MidasSdk } from \"@midas-capital/sdk\";\nimport { ethers } from \"ethers\";\n\nconst chainId = 56;\nconst provider = new ethers.providers.JsonRpcProvider(\"PROVIDER_URL\");\n\nconst sdk = new Fuse(provider, chainId);\n\nconst poolOne = await sdk.fetchFusePoolData(\"1\");\n\nconst assetZero = poolOne.assets[0];\n\nconst borrowAPRAssetZero = sdk.ratePerBlockToAPY(\n  assetZero.borrowRatePerBlock,\n  20\n);\nconst supplyAPYAssetZero = sdk.ratePerBlockToAPY(\n  assetZero.supplyRatePerBlock,\n  20\n);\n```\n\n## Functions\n\n### fetchFusePoolData\n\n`fetchFusePoolData(poolId: string, signer?: string): Promise<FusePoolData>`\n\nFetch data about an individual pool on midas capital based on the pool id. The pool id can be extracted from the pool url `https://app.midascapital.xyz/56/pool/POOL_ID`\n\n### ratePerBlockToAPY\n\n`ratePerBlockToAPY(ratePerBlock: BigNumber, blocksPerMin: number): number`\n\nReturn the APY for a given current per-block borrow/supply interest rate. This rate can be included in the\n\n`FusePoolData['assets'][0].borrowRatePerBlock`\nand\n\n`FusePoolData['assets'][0].supplyRatePerBlock`\ncorrespondingly. (i.e. blocksPerMin for BSC: `20`)\n","readmeFilename":"README.md","gitHead":"888a98201ae4f7ce2a3564bb2ed358206f40d564","bugs":{"url":"https://github.com/midas-protocol/monorepo/issues"},"homepage":"https://github.com/midas-protocol/monorepo#readme","_id":"@midas-capital/sdk@0.6.7","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-W9tPxT75saQGsxiIICSQd5Uq6yxKYyR1snq1iKguHJetCDDPb8dxJDwECum8hwZu8N+pI8+SwkRWsrHJoi/9cg==","shasum":"874746ba6b0ec9c02c45f637013fc2ced4a632c0","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.6.7.tgz","fileCount":892,"unpackedSize":124566171,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAUKMavUurD2ZOoNVLwJFFBTn7mOkVvhA9tx8yM8LMBfAiEA682HUhvi/dkXWCwKSyZLKvdAhzyCZz5tASpt10X1IMQ="}]},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.6.7_1687259241019_0.6387846818215612"},"_hasShrinkwrap":false},"0.6.8":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/monorepo.git"},"version":"0.6.8","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"## Installation","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","types":"./dist/cjs/src/index.d.ts","scripts":{"prebuild":"rm -rf dist","build":"yarn run build:forge; yarn run artifacts; yarn run typechain; yarn run abimate; yarn run build:sdk","postbuild":"du -sk dist/cjs; du -sk dist/esm","clean":"rm -rf dist; rm -rf ./typechain; rm -rf ./artifacts; rm -rf ./abis","artifacts":"echo '> Gathering artifacts...'; ./scripts/move-artifacts.sh","typechain":"echo '> Creating typechain types...'; [ ! -d ./typechain ] && typechain --target ethers-v5 --out-dir './typechain' './artifacts/*.json' --show-stack-traces","abimate":"echo '> Extracting ABIs from artifacts...'; abimate ./abis ./artifacts/*.json","build:forge":"echo '> Building contracts...'; cd lib/contracts && forge install && forge build --sizes","build:sdk":"echo '> Compiling SDK...'; yarn run build:esm && yarn run build:cjs","build:esm":"echo '> Compiling ESM SDK Module...'; tsc -p tsconfig-sdk.json","build:cjs":"echo '> Compiling CJS SDK Module...'; tsc -p tsconfig-cjs.json","setup":"cd lib/contracts && forge build","test:mocha":"nyc ts-mocha --require 'tests-mocha/globalTestHook.ts' --check-leaks --exit --timeout 60000 'tests-mocha/**/*.spec.ts'","test":"hardhat test --parallel --no-compile","test:bsc":"SIMULATION=true FORK_RPC_URL=${FORK_RPC_URL} FORK_CHAIN_ID=56 hardhat test --no-compile","test:forge":"cd lib/contracts && forge test","export":"hardhat export --export-all ./deployments.json","export:all":"npm run export:bsc && npm run export:polygon && npm run export:moonbeam && npm run export:neondevnet && npm run export:chapel","export:bsc":"hardhat export --network bsc --export ../chains/deployments/bsc.json","export:polygon":"hardhat export --network polygon --export ../chains/deployments/polygon.json","export:ethereum":"hardhat export --network ethereum --export ../chains/deployments/ethereum.json","export:moonbeam":"hardhat export --network moonbeam --export ../chains/deployments/moonbeam.json","export:arbitrum":"hardhat export --network arbitrum --export ../chains/deployments/arbitrum.json","export:neondevnet":"hardhat export --network neondevnet --export ../chains/deployments/neondevnet.json","export:basegoerli":"hardhat export --network basegoerli --export ../chains/deployments/basegoerli.json","export:chapel":"hardhat export --network chapel --export ../chains/deployments/chapel.json","export:evmos":"hardhat export --network evmos --export ../chains/deployments/evmos.json","export:fantom":"hardhat export --network fantom --export ../chains/deployments/fantom.json","export:ganache":"hardhat export --network localhost --export ../chains/deployments/ganache.json","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'tests/**/*.ts'","lint":"eslint . -c .eslintrc.json --ext ts,json","lint-fix":"eslint . -c .eslintrc.json --fix --ext ts,json","deploy:chapel":"hardhat --network chapel deploy --tags prod --no-compile","deploy:bsc":"hardhat --network bsc deploy --tags prod --no-compile","deploy:polygon":"hardhat --network polygon deploy --tags prod --no-compile","deploy:ethereum":"hardhat --network ethereum deploy --tags prod --no-compile","deploy:moonbeam":"hardhat --network moonbeam deploy --tags prod --no-compile","deploy:arbitrum":"hardhat --network arbitrum deploy --tags prod --no-compile","deploy:evmos":"hardhat --network evmos deploy --tags prod --no-compile","deploy:fantom":"hardhat --network fantom deploy --tags prod --no-compile","deploy:neondevnet":"hardhat --network neondevnet deploy --tags prod --no-compile","deploy:basegoerli":"hardhat --network basegoerli deploy --tags prod --no-compile","deploy:localhost":"hardhat --network localhost deploy --tags prod --no-compile","deploy:localeth":"hardhat --network localeth deploy --tags prod --no-compile","forge":"forge","hardhat":"hardhat"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@abimate/core":"^0.2.1","@nomiclabs/hardhat-waffle":"^2.0.5","@tenderly/hardhat-tenderly":"^1.7.2","@typechain/ethers-v5":"^10.2.0","@typechain/hardhat":"^6.1.5","@types/bad-words":"^3.0.1","@types/chai":"^4.3.4","@types/chai-as-promised":"^7","@types/chai-subset":"^1","@types/eslint":"^8.37.0","@types/mocha":"^10.0.1","@types/node":"^18.15.11","@types/sinon-chai":"^3","chai":"^4.3.7","chai-as-promised":"^7.1.1","chai-subset":"^1.6.0","dotenv":"^16.0.3","eslint":"^8.38.0","eslint-plugin-import":"^2.27.5","eslint-plugin-prettier":"^4.2.1","hardhat":"^2.14.0","hardhat-abi-exporter":"^2.10.1","hardhat-deploy":"^0.11.26","lint-staged":"13.2.1","mocha":"^10.2.0","nyc":"^15.1.0","prettier":"2.8.7","prettier-plugin-solidity":"1.1.3","sinon":"^15.0.3","sinon-chai":"^3.7.0","ts-mocha":"^10.0.0","ts-node":"^10.9.1","typechain":"^8.1.1","typescript":"^5.0.4"},"dependencies":{"@midas-capital/chains":"workspace:*","@midas-capital/types":"workspace:*","@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","bad-words":"^3.0.4","bufferutil":"^4.0.7","ethereum-waffle":"^4.0.10","ethers":"^5.7.2","utf-8-validate":"^6.0.3"},"readme":"# `@midas-capital/sdk`\n\n## Installation\n\n`npm install @midas-capital/sdk`\n\n```typescript\nimport { MidasSdk } from \"@midas-capital/sdk\";\nimport { ethers } from \"ethers\";\n\nconst chainId = 56;\nconst provider = new ethers.providers.JsonRpcProvider(\"PROVIDER_URL\");\n\nconst sdk = new Fuse(provider, chainId);\n\nconst poolOne = await sdk.fetchFusePoolData(\"1\");\n\nconst assetZero = poolOne.assets[0];\n\nconst borrowAPRAssetZero = sdk.ratePerBlockToAPY(\n  assetZero.borrowRatePerBlock,\n  20\n);\nconst supplyAPYAssetZero = sdk.ratePerBlockToAPY(\n  assetZero.supplyRatePerBlock,\n  20\n);\n```\n\n## Functions\n\n### fetchFusePoolData\n\n`fetchFusePoolData(poolId: string, signer?: string): Promise<FusePoolData>`\n\nFetch data about an individual pool on midas capital based on the pool id. The pool id can be extracted from the pool url `https://app.midascapital.xyz/56/pool/POOL_ID`\n\n### ratePerBlockToAPY\n\n`ratePerBlockToAPY(ratePerBlock: BigNumber, blocksPerMin: number): number`\n\nReturn the APY for a given current per-block borrow/supply interest rate. This rate can be included in the\n\n`FusePoolData['assets'][0].borrowRatePerBlock`\nand\n\n`FusePoolData['assets'][0].supplyRatePerBlock`\ncorrespondingly. (i.e. blocksPerMin for BSC: `20`)\n","readmeFilename":"README.md","gitHead":"0eb1528451a818249d24f5d25a5c9f28c680f904","bugs":{"url":"https://github.com/midas-protocol/monorepo/issues"},"homepage":"https://github.com/midas-protocol/monorepo#readme","_id":"@midas-capital/sdk@0.6.8","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-F0ClFV8Pg4Krvyc3e4BsEbC9IYqeUXDnfk4BIrd8JUyPpaAinvej4r1DcXfmSgG/k1/WtBaasw0Lv8l6xNjz7A==","shasum":"22d690f75f0172d9b44b807e6a7125744c556084","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.6.8.tgz","fileCount":892,"unpackedSize":124423806,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHIGlweju5wq6066wm147XYg0W1S0LxhCw1z8V0Kd+10AiBxGINTXgjQwfWXfj5hwRi2L0TuHhe3jkh1+ECxxfIZfQ=="}]},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.6.8_1687621842423_0.670895655391992"},"_hasShrinkwrap":false},"0.6.9":{"name":"@midas-capital/sdk","repository":{"type":"git","url":"git://github.com/midas-protocol/monorepo.git"},"version":"0.6.9","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"description":"## Installation","main":"./dist/cjs/src/index.js","module":"./dist/esm/src/index.js","types":"./dist/cjs/src/index.d.ts","scripts":{"prebuild":"rm -rf dist","build":"yarn run build:forge; yarn run artifacts; yarn run typechain; yarn run abimate; yarn run build:sdk","postbuild":"du -sk dist/cjs; du -sk dist/esm","clean":"rm -rf dist; rm -rf ./typechain; rm -rf ./artifacts; rm -rf ./abis","artifacts":"echo '> Gathering artifacts...'; ./scripts/move-artifacts.sh","typechain":"echo '> Creating typechain types...'; [ ! -d ./typechain ] && typechain --target ethers-v5 --out-dir './typechain' './artifacts/*.json' --show-stack-traces","abimate":"echo '> Extracting ABIs from artifacts...'; abimate ./abis ./artifacts/*.json","build:forge":"echo '> Building contracts...'; cd lib/contracts && forge install && forge build --sizes","build:sdk":"echo '> Compiling SDK...'; yarn run build:esm && yarn run build:cjs","build:esm":"echo '> Compiling ESM SDK Module...'; tsc -p tsconfig-sdk.json","build:cjs":"echo '> Compiling CJS SDK Module...'; tsc -p tsconfig-cjs.json","setup":"cd lib/contracts && forge build","test:mocha":"nyc ts-mocha --require 'tests-mocha/globalTestHook.ts' --check-leaks --exit --timeout 60000 'tests-mocha/**/*.spec.ts'","test":"hardhat test --parallel --no-compile","test:bsc":"SIMULATION=true FORK_RPC_URL=${FORK_RPC_URL} FORK_CHAIN_ID=56 hardhat test --no-compile","test:forge":"cd lib/contracts && forge test","export":"hardhat export --export-all ./deployments.json","export:all":"npm run export:bsc && npm run export:polygon && npm run export:moonbeam && npm run export:neondevnet && npm run export:chapel","export:bsc":"hardhat export --network bsc --export ../chains/deployments/bsc.json","export:polygon":"hardhat export --network polygon --export ../chains/deployments/polygon.json","export:ethereum":"hardhat export --network ethereum --export ../chains/deployments/ethereum.json","export:moonbeam":"hardhat export --network moonbeam --export ../chains/deployments/moonbeam.json","export:arbitrum":"hardhat export --network arbitrum --export ../chains/deployments/arbitrum.json","export:neondevnet":"hardhat export --network neondevnet --export ../chains/deployments/neondevnet.json","export:lineagoerli":"hardhat export --network lineagoerli --export ../chains/deployments/lineagoerli.json","export:chapel":"hardhat export --network chapel --export ../chains/deployments/chapel.json","export:evmos":"hardhat export --network evmos --export ../chains/deployments/evmos.json","export:fantom":"hardhat export --network fantom --export ../chains/deployments/fantom.json","export:ganache":"hardhat export --network localhost --export ../chains/deployments/ganache.json","prettier:ts":"prettier --write 'chainDeploy/**/*.ts' 'src/**/*.ts' 'deploy/**/*.ts' 'tasks/**/*.ts' 'tests/**/*.ts'","lint":"eslint . -c .eslintrc.json --ext ts,json","lint-fix":"eslint . -c .eslintrc.json --fix --ext ts,json","deploy:chapel":"hardhat --network chapel deploy --tags prod --no-compile","deploy:bsc":"hardhat --network bsc deploy --tags prod --no-compile","deploy:polygon":"hardhat --network polygon deploy --tags prod --no-compile","deploy:ethereum":"hardhat --network ethereum deploy --tags prod --no-compile","deploy:moonbeam":"hardhat --network moonbeam deploy --tags prod --no-compile","deploy:arbitrum":"hardhat --network arbitrum deploy --tags prod --no-compile","deploy:evmos":"hardhat --network evmos deploy --tags prod --no-compile","deploy:fantom":"hardhat --network fantom deploy --tags prod --no-compile","deploy:neondevnet":"hardhat --network neondevnet deploy --tags prod --no-compile","deploy:lineagoerli":"hardhat --network lineagoerli deploy --tags prod --no-compile","deploy:localhost":"hardhat --network localhost deploy --tags prod --no-compile","deploy:localeth":"hardhat --network localeth deploy --tags prod --no-compile","forge":"forge","hardhat":"hardhat"},"keywords":[],"author":{"name":"Midas Capital"},"license":"ISC","devDependencies":{"@abimate/core":"^0.2.1","@nomiclabs/hardhat-waffle":"^2.0.5","@tenderly/hardhat-tenderly":"^1.7.2","@typechain/ethers-v5":"^10.2.0","@typechain/hardhat":"^6.1.5","@types/bad-words":"^3.0.1","@types/chai":"^4.3.4","@types/chai-as-promised":"^7","@types/chai-subset":"^1","@types/eslint":"^8.37.0","@types/mocha":"^10.0.1","@types/node":"^18.15.11","@types/sinon-chai":"^3","chai":"^4.3.7","chai-as-promised":"^7.1.1","chai-subset":"^1.6.0","dotenv":"^16.0.3","eslint":"^8.38.0","eslint-plugin-import":"^2.27.5","eslint-plugin-prettier":"^4.2.1","hardhat":"^2.14.0","hardhat-abi-exporter":"^2.10.1","hardhat-deploy":"^0.11.26","lint-staged":"13.2.1","mocha":"^10.2.0","nyc":"^15.1.0","prettier":"2.8.7","prettier-plugin-solidity":"1.1.3","sinon":"^15.0.3","sinon-chai":"^3.7.0","ts-mocha":"^10.0.0","ts-node":"^10.9.1","typechain":"^8.1.1","typescript":"^5.0.4"},"dependencies":{"@midas-capital/chains":"workspace:*","@midas-capital/types":"workspace:*","@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@^0.3.0-beta.13","bad-words":"^3.0.4","bufferutil":"^4.0.7","ethereum-waffle":"^4.0.10","ethers":"^5.7.2","utf-8-validate":"^6.0.3"},"readme":"# `@midas-capital/sdk`\n\n## Installation\n\n`npm install @midas-capital/sdk`\n\n```typescript\nimport { MidasSdk } from \"@midas-capital/sdk\";\nimport { ethers } from \"ethers\";\n\nconst chainId = 56;\nconst provider = new ethers.providers.JsonRpcProvider(\"PROVIDER_URL\");\n\nconst sdk = new Fuse(provider, chainId);\n\nconst poolOne = await sdk.fetchFusePoolData(\"1\");\n\nconst assetZero = poolOne.assets[0];\n\nconst borrowAPRAssetZero = sdk.ratePerBlockToAPY(\n  assetZero.borrowRatePerBlock,\n  20\n);\nconst supplyAPYAssetZero = sdk.ratePerBlockToAPY(\n  assetZero.supplyRatePerBlock,\n  20\n);\n```\n\n## Functions\n\n### fetchFusePoolData\n\n`fetchFusePoolData(poolId: string, signer?: string): Promise<FusePoolData>`\n\nFetch data about an individual pool on midas capital based on the pool id. The pool id can be extracted from the pool url `https://app.midascapital.xyz/56/pool/POOL_ID`\n\n### ratePerBlockToAPY\n\n`ratePerBlockToAPY(ratePerBlock: BigNumber, blocksPerMin: number): number`\n\nReturn the APY for a given current per-block borrow/supply interest rate. This rate can be included in the\n\n`FusePoolData['assets'][0].borrowRatePerBlock`\nand\n\n`FusePoolData['assets'][0].supplyRatePerBlock`\ncorrespondingly. (i.e. blocksPerMin for BSC: `20`)\n","readmeFilename":"README.md","gitHead":"778cb0f9eef3abf74c1dea473eac1edf74db1ddc","bugs":{"url":"https://github.com/midas-protocol/monorepo/issues"},"homepage":"https://github.com/midas-protocol/monorepo#readme","_id":"@midas-capital/sdk@0.6.9","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-tbyCMLWCDfB/Qwvp0uzqfPpCEAZzOGf2fffZv00NgBP2RiQpP+f2Ed9hIdMuFSu2HVBU9vrxnVwdg8Vv1a3nGQ==","shasum":"2f3273412dd4e241e7d89ea7a843caf71cd9ca00","tarball":"https://registry.npmjs.org/@midas-capital/sdk/-/sdk-0.6.9.tgz","fileCount":911,"unpackedSize":129371349,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCCKnHGGi0SsEo+pez7EC/BnboBeE9mLcwuGun2E7s3oQIhAP42FiLhk1nlifnmk1/0LtwU3akNay5NsGC5Tr/KYtAP"}]},"_npmUser":{"name":"midas-labs","email":"carlo@midascapital.xyz"},"directories":{},"maintainers":[{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.6.9_1688656920404_0.8024932646411922"},"_hasShrinkwrap":false}},"time":{"created":"2022-01-22T17:43:19.869Z","0.1.3-beta.1":"2022-01-22T17:43:20.428Z","modified":"2023-07-06T15:22:01.233Z","0.1.3-beta.2":"2022-01-23T08:59:11.520Z","0.1.3-beta.3":"2022-01-23T10:30:32.419Z","0.1.3-beta.4":"2022-01-23T10:42:02.335Z","0.1.3-beta.5":"2022-01-25T11:18:31.852Z","0.1.3-beta.6":"2022-01-25T11:36:28.912Z","0.1.3-beta.7":"2022-01-26T14:32:08.576Z","0.1.3-beta.8":"2022-01-26T16:49:22.295Z","0.1.3-beta.9":"2022-01-27T09:07:27.038Z","0.1.3-beta.10":"2022-01-27T11:44:29.430Z","0.1.3-beta.11":"2022-01-30T16:34:20.128Z","0.1.3-beta.12":"2022-02-01T10:13:04.055Z","0.1.3-beta.13":"2022-02-01T14:35:34.615Z","0.1.3-beta.14":"2022-02-02T09:12:53.118Z","0.1.3-beta.15":"2022-02-02T14:00:24.658Z","0.1.3-beta.16":"2022-02-07T12:50:30.065Z","0.1.3-beta.17":"2022-02-09T09:44:06.095Z","0.1.3-beta.18":"2022-02-10T19:26:27.391Z","0.1.3-beta.19":"2022-02-22T00:13:14.932Z","0.1.3-beta.20":"2022-03-02T10:33:58.020Z","0.1.3-beta.21":"2022-03-03T11:53:00.563Z","0.1.3-beta.22":"2022-03-04T07:42:33.347Z","0.1.3-beta.23":"2022-03-04T14:23:25.337Z","0.1.3-beta.24":"2022-03-10T08:59:56.065Z","0.1.3-beta.25":"2022-03-10T15:28:02.427Z","0.1.4":"2022-03-10T17:33:31.750Z","0.1.3-beta.26":"2022-03-11T10:07:38.931Z","0.1.3-beta.27":"2022-03-11T22:01:07.366Z","0.1.3-beta.28":"2022-03-12T09:44:10.536Z","0.1.3-beta.29":"2022-03-12T14:06:37.376Z","0.1.5":"2022-03-14T09:17:21.260Z","0.1.6":"2022-03-14T09:57:05.395Z","0.1.7-beta.1":"2022-03-14T15:27:15.866Z","0.1.7-beta.2":"2022-03-14T19:47:05.952Z","0.1.8":"2022-03-16T14:24:35.178Z","0.1.9":"2022-03-16T15:55:36.069Z","0.1.10":"2022-03-25T11:14:16.160Z","0.1.11":"2022-04-01T08:38:02.379Z","0.1.14":"2022-04-06T04:17:20.781Z","0.1.15":"2022-04-07T13:32:36.524Z","0.1.16":"2022-04-09T18:39:54.881Z","0.1.17":"2022-04-11T12:07:29.144Z","0.1.18":"2022-04-13T15:13:16.270Z","0.1.19":"2022-04-13T16:02:16.003Z","0.1.20":"2022-04-15T07:17:59.238Z","0.1.21":"2022-04-18T09:14:24.190Z","0.1.22":"2022-04-18T13:14:04.081Z","0.1.23":"2022-04-21T08:25:01.387Z","0.1.24":"2022-04-22T11:43:45.309Z","0.1.25":"2022-04-22T19:31:34.923Z","0.1.26":"2022-04-26T12:15:40.286Z","0.1.27":"2022-04-27T18:00:20.666Z","0.1.28":"2022-04-27T19:32:36.502Z","0.1.29":"2022-04-29T12:47:35.126Z","0.1.30":"2022-04-30T09:07:51.855Z","0.2.0":"2022-05-04T11:24:09.213Z","0.2.1":"2022-05-08T07:00:48.285Z","0.2.2":"2022-05-10T09:41:13.440Z","0.2.3":"2022-05-11T15:34:30.759Z","0.2.4":"2022-05-17T15:15:51.955Z","0.2.5":"2022-05-23T13:54:54.732Z","0.2.6":"2022-05-25T19:29:10.012Z","0.2.7":"2022-05-27T08:49:16.551Z","0.2.8":"2022-06-02T12:04:17.700Z","0.2.9":"2022-06-04T16:52:32.772Z","0.2.10":"2022-06-14T13:18:54.339Z","0.2.12":"2022-06-20T15:50:59.098Z","0.2.11":"2022-06-23T06:02:45.572Z","0.2.13":"2022-07-01T11:34:36.351Z","0.2.14":"2022-07-05T11:34:19.371Z","0.2.15":"2022-07-06T06:42:22.824Z","0.2.16":"2022-07-17T09:00:54.828Z","0.3.0":"2022-08-12T12:31:47.081Z","0.3.1":"2022-08-15T11:25:43.650Z","0.3.2":"2022-08-18T15:57:49.702Z","0.3.3":"2022-08-24T12:19:30.853Z","0.4.0":"2022-09-02T13:38:51.619Z","0.4.1":"2022-09-22T08:22:29.706Z","0.4.2":"2022-10-20T13:38:46.652Z","0.4.3":"2022-10-27T11:27:21.382Z","0.4.4":"2022-10-31T18:06:08.385Z","0.4.5":"2022-11-06T10:12:47.848Z","0.4.6":"2022-11-23T12:35:52.342Z","0.4.7":"2022-12-08T13:16:22.786Z","0.4.8":"2022-12-16T18:13:17.095Z","0.5.1":"2023-03-01T13:58:04.905Z","0.5.2":"2023-04-29T18:07:30.350Z","0.5.3":"2023-05-08T07:50:23.254Z","0.5.4":"2023-05-09T09:42:44.130Z","0.5.5":"2023-05-09T13:29:05.374Z","0.5.6":"2023-05-10T06:23:38.749Z","0.5.7":"2023-05-10T06:41:20.441Z","0.5.8":"2023-05-10T06:50:07.775Z","0.5.9":"2023-05-10T07:15:23.233Z","0.6.0":"2023-05-10T08:11:15.204Z","0.6.1":"2023-05-10T08:56:24.090Z","0.6.2":"2023-05-10T09:36:48.750Z","0.6.3":"2023-05-16T19:08:58.008Z","0.6.4":"2023-06-14T12:09:29.823Z","0.6.5":"2023-06-15T06:26:43.019Z","0.6.7":"2023-06-20T11:07:21.373Z","0.6.8":"2023-06-24T15:50:42.827Z","0.6.9":"2023-07-06T15:22:00.858Z"},"maintainers":[{"name":"midas-labs","email":"carlo@midascapital.xyz"}],"description":"## Installation","homepage":"https://github.com/midas-protocol/monorepo#readme","keywords":[],"repository":{"type":"git","url":"git://github.com/midas-protocol/monorepo.git"},"author":{"name":"Midas Capital"},"bugs":{"url":"https://github.com/midas-protocol/monorepo/issues"},"license":"ISC","readme":"","readmeFilename":""}