{"_id":"francium-sdk","_rev":"178-7266cbc64ca232a12092fef4761e5ec9","name":"francium-sdk","dist-tags":{"latest":"1.4.16","beta":"1.4.17-beta"},"versions":{"0.0.1":{"name":"francium-sdk","version":"0.0.1","description":"francium sdk","main":"main.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["francium"],"author":{"name":"francium"},"license":"ISC","dependencies":{"@project-serum/anchor":"^0.15.0","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.26.0","lodash-es":"^4.17.21"},"_id":"francium-sdk@0.0.1","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-WxtS1z998P8Tek5BrGUWVc4WCbAsXEHe5X2Ym/jOLp9xc2N+bjLon5y/IEbbh7JyDLx+9tNffYvk3bT6DCcjGw==","shasum":"1bbbef6eb841f08935f8f9fe29ec10ab79f4adae","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-0.0.1.tgz","fileCount":3,"unpackedSize":652016,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhQbfPCRA9TVsSAnZWagAAu2gP/29fCyoUj+PSw00GyBWj\n0RK2xgjoCEj+dBC7uIMhMORSv3sYog1rwP7khnaS3yASpYe1Fj2+0zFVHRVD\nyYO/LN1CN0gy57JFxdPRT5iPoP2/tVYh6OWcdtFaaR/SeMA5IJmnIICnwSx7\nOuxJShjY2qRy+NZYyRu3S/TYm66Vb2G8F4XZDrVqB39ZqlqZ4j1D7witpO1m\n62U3TcF/6L07nVYPNgwciyoUYSjgeQRnpCYXTsGgn87aHOodAc1vuYR7vTeK\nRs929RulRSZR70y1Sy4APKMkYXtyEBb1mL6OP+GPIz6W5WYnXbH0rjDh1IQk\ni5lPwLYVWsuKGKvcC0egLSi99rXNG6iu5jSroJkc3uEJLPS9LEyp7IZV5Kiw\nR1DVRYsWBzlyI3dmISxJR43DHg488+LcU+c8hkkez4hhJcQ2M7/SOb+NG3P6\na8gs+0IhNOtnhuufZLi2L4IRQ9AGdmVUddPrtBJSkdRsGTSMa7UJS8Re+CCn\n50+6CW5+KUGROiRsUBBsaQUehdnMF8xHAG+xbWBhkvG+EKe6I6rWd5mp7Gv0\ntkEqJeTjkHPAaJK0eoe1D6rSFs9DQz3b8F+YY2abVVrOXfRyD5NReUAeJVnp\nc7KUnD2GxLntS9/6N3mMIgzw1HYKHOr/qv0cJF6prb7dJPCelebCB0JsX8y1\naLg+\r\n=7uRa\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDRp9/940X55Wq4syBFqsg6wGyMw3Arn6gmC0GbwPHb0wIhAJ9ZQPu0J5TKJlcg6cZaA04jgDGyTCBa7qJpXtQJ+mYf"}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_0.0.1_1631696847523_0.6667999222382637"},"_hasShrinkwrap":false},"0.0.2":{"name":"francium-sdk","version":"0.0.2","description":"francium sdk","main":"main.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["francium"],"author":{"name":"francium"},"license":"ISC","dependencies":{"@project-serum/anchor":"^0.15.0","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.26.0","lodash-es":"^4.17.21"},"_id":"francium-sdk@0.0.2","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-v0P90psPDvS9S4Vgo1bTjYmeYJK2e4WKSi+TeztYpAl2w8dn2S+bj0kyMCi8jOTwf8jrq52nrZUI+5ksqkmnbA==","shasum":"bbf9f2e929f8d38290ab8f4ee9e2dc1297b10c62","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-0.0.2.tgz","fileCount":3,"unpackedSize":651985,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhQcgVCRA9TVsSAnZWagAAZBIP/jChp7de7isWkusrIiPW\n9vnxJa9G2Cz6bMeq0IDgEiEYZIjQ/2fLSEr9EoDsHN3biAdiQh8JijRsjqn1\n4Juh/CGBT5+n0V2KysTCOjJIOqY383LHdOiMaBNAOQ6UdpMoVWDlewnbWjj6\nMDuZmX1XN5gnGsRE/CzKWuvlcBC/qA5sktxUooZZx7hEZAN5ZCCOoEKDCV6M\nx/CfLeNOOoGmzv2Yk+lwlf0PdZ+nKU8zB3tBRRGEiigHdf7PzA+cy6rc8FbL\nOZND/r+1TpMeweK0PSDzh0IpLlGQWpE/M6RDtCTBsriTvz9X7MzeLJoRL9Bt\nAVLOT+NVzFcH45udlXeANMNSwTAE1O7tbaVU1CD5ARm6IUyeD+dONUlrlFfC\n9xk50d2aBUes7GhJT4bnywaYrmfKga8Q3W84IT6x/qW27kFY/3FE+L/ZHg8Q\nU8kz1XBbekIFlWlQl11EcsqjUcnrSBYDlXcW3E+eixfmUDl2ynDxdcHgsUNd\n0u2+AlkwcCCGOIp5fYjJbff3rLOWUPqTWNzswm4cFp3NeDGSh/FKVfSsvxT2\nRH640T1gGXmZKV0WuewnKPL8BoDXOv+yBTWyszQ2L0+95xgckUtJaVxpDf1a\ntY4t1KUKw1nTToDsfiGnzVCvGTH0qhXkV+UUvYGlKj4lEsVXR94Up8By8qrA\n2xCJ\r\n=HqHa\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE+HLSJFnGS9igo+oRhMzZ+Ts8qMXIfQtIvRIr4i7hsTAiBqGozAyZVT6jGxLFdTCKgMGO3LiROUsvpWzzqe38StTQ=="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_0.0.2_1631701013575_0.35079309292773053"},"_hasShrinkwrap":false},"0.1.0":{"name":"francium-sdk","version":"0.1.0","description":"francium sdk","main":"main.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["francium"],"author":{"name":"francium"},"license":"ISC","dependencies":{"@project-serum/anchor":"^0.15.0","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.26.0","lodash-es":"^4.17.21"},"_id":"francium-sdk@0.1.0","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-2EB+DqL3qviAMUf5TRrXKuylP9Qblp5oi9T/82kFKQ4J/2WMx5jzqbnfYoWB0SKeRaDWF3X3XRsjDFsf+2eg3Q==","shasum":"79677b1b55cdbdc6abde431a6abd9ca231565aff","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-0.1.0.tgz","fileCount":4,"unpackedSize":652183,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhQco7CRA9TVsSAnZWagAAyGIQAIkGHJKsjIEu87qp+lQ6\nUumZnKkdnzyB7PMQ2TTxnv3CwBIclXZudLBDS81Ms4omTQiFzp//RpLbuGqn\nenuSNBQ/Tf5ZPbacPQTSOY+wunih3PKPLWtR/HIZaW+rCVu1IQ5EAXfowpXp\ndgBYuap3feETFJqOfbMMy9B/a/74tWmuhXoOiwjGNizwsXovFVsQtcK7hH4k\nutq433E6/TMdzyacPpAEPazKrblHOWfy1mgjVpqTeAqyX9l0glhBcNfmjVXm\n3DcZsmOzI7sjo86ZIfm2rj0tNaSGIVsZrWWm5Df9Nq84JuqLNE14FO+JK8pX\nwkPd+tUXP/vZVhmDxQlQnw+oAaaDb9i8OnmF76WCGk1AAz9lRB2fCXbKH0Qt\nT2MHa7oOEWvxcgr9JV9D8a2ZerKhUYnO6IRYLSmnNFkzgtWL9S29iC+IaWbE\n6TQYfonw/oBMuKrV7o4vhZvizMuZnjQs7/L9orxLQzwnbLIt5fQD0jG4vQ53\nuUEUzrxY0rTywN5c4N3g4szJUwijc3+kuyVLO1QcKraCeC7XCHak5N7Clqr4\need3EypnBTAJGfex8unrQI0J90cm+MRwLDoL975aUBWaHmh5mP4JIahvxt+b\nm/nGI9N999GtD6GBZjzOqB2uvu/X82k1CyAyYUK4f7amV/GO1imUjC+tKLXc\nZrk/\r\n=J86i\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID99hDlp6/yWKi3cgLxaMhhF8fA6ua3cd2ZNSsrKPMXMAiEAnWJTdA4DfKq+Dj/OxFu+lwxoC2CIYsFO2QlHWtkRwxI="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_0.1.0_1631701563816_0.03738527346866616"},"_hasShrinkwrap":false},"0.1.1":{"name":"francium-sdk","version":"0.1.1","description":"francium sdk","main":"main.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["francium"],"author":{"name":"francium"},"license":"ISC","dependencies":{"@project-serum/anchor":"^0.15.0","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.26.0","lodash-es":"^4.17.21"},"_id":"francium-sdk@0.1.1","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-HEB5CEJsGhBmrWYLgAG0XvEn80GU1Lcd5DEofFwaESPSeM14TeCH/X0+OIV+ShD8iQIu6Lf+L7GyVld25RgA4Q==","shasum":"4db7700560675336d0265656c7cac06be84eaad5","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-0.1.1.tgz","fileCount":4,"unpackedSize":621850,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhQdGTCRA9TVsSAnZWagAA7Y0P/jZ7SRTwwy9uMr1HmRnE\nEdc1pzHz7RLT4Z8ZYsQ17tjLnQfoZkFI6cyzxn/ZJpYJ24jyQ73qiZUVv9LB\nBpPyKIgtlTp/oqsz264/nxJjBpLGnPQU29HROgHrrC4D7cMHOEiLzcwXUz2m\n4Wy3H2RpzybEIkGmxykQW9PA95qxFwsuKXWduhl/djfK/6Wcp8laBDDTRf2L\nelHENQrXONHUJ/xNjKXgXaJP6ELTYn6QUXyQLM6+kwyP5Vi63oVw2Hy3AvEy\nfUDTimKBq9AhtJIMUcGi5+yU9wFNz7s2P8fJtTX0KyOx0GWkf6zgkGzk+B09\nZi7zxz+zMLddzQJt8BwBICH3BPGyiMFm4hf7JYsAOqeCecnk+VpJ3G2x1ins\nXtrEVRhWtMXL4eVcHcSTUoEQLE4jP75UL/3975vIX921RpW21TH69AaFrFFS\n05SjjAzTSlTmLRcnkWQyPboPgUc0VOMOOb+LIwZQkJPiNOZxdsmEs7XYjXJS\nnevWLyBM/w3V1kXP/Mn29nplnArViaDDFUvrPnw5+MRVP5qNfGJQxtSVki9X\nvUjQR6IGA/ke+7Olovz1o5xKlpDzVIilQSCqoDzLa6VscOBt3tbiiMFomRpM\npPLX/rM8oqFt+N9RWH8Au98+FU+/b6iWbpn5T40o//yFotYKIsH75SilNaie\nai0o\r\n=c5q5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDgbUPMcZ1frPiq923uW95ZivR+2bchK64ifJJHTgNHZwIhAMv8/H9fr3d7ugly+9qFAYyNhuF0HhkBfwwy+Ob86a5E"}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_0.1.1_1631703443619_0.03780531585637559"},"_hasShrinkwrap":false},"0.1.2":{"name":"francium-sdk","version":"0.1.2","description":"francium sdk","main":"main.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["francium"],"author":{"name":"francium"},"license":"ISC","dependencies":{"@project-serum/anchor":"^0.15.0","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.26.0","lodash-es":"^4.17.21"},"_id":"francium-sdk@0.1.2","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-KYli15ZgcWwA+2UB3IxenZodXkwnr8vl+P4nhu5PqUk2uHpJ9jyXEWdqz9gDDsgjEsA7V1po42heMgWkTuCUEQ==","shasum":"cc44c936505c60dab1ab247540623d356d30aec1","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-0.1.2.tgz","fileCount":4,"unpackedSize":623357,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhQsa7CRA9TVsSAnZWagAAIOYP/1SufYvFMc5meYVh+Gan\ngJnaTU9tkcCsqVUdiJQTmFv6raYIu0rkUkuh5kWoz4gCxUYP0dF0vOrEkO9c\nHLzUa2ulVb57E5Zu6NEMs/q6sem3OQJab8Vkf9GwHtq69qS5DHWeNEldqH+j\nLHX7KXe9p/QIw07elGTb6/APXiw9aLFNe3vmlinvHr54QKDySm+caev8QN0Z\ninIGxZHUNM3M+XfUttqC25y30RCSHaT/aLuA92nohqFy8vRZZTWshb55q3L5\nipQnbNwDPKhstrVJ8MYgvKpkQxHSHHDRDm8HDvTIeV+zUHHHg/XEV43uyZwy\ny64jKdd3BIRuPl9k9gFJUkmUOS6Mp45LfMnEoIKaJpElh/HTVGglMhYVkC6V\nUJeTIK6CMSVUbTYvfC/0cGvkvc96feSnTvKVSdPo8NpeuoPi3A6PL0PQak4q\nKVRT43n/v2g/gOwco80PgLMeUvkFeZrRpykzJZhpiRiANa+gdXXVIDeHVlON\nHNmbv5XaYXomGJfItS2/X/Cvgaw8MVOLZgHr8UrU8s053EyA2805XtcGAZgA\nImFv7jPayywPB2TWZUlIQ0Npvg49EQtPXsKe9SyNwYeJlXLo2HGoLwTqPm14\n8vzSSgyUOhs6dLccTHB72SfBdjhA64/PuMj4cgSx1m+WRtyd4vP55Ug1ofaJ\nk1YS\r\n=2vyz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD54gWSlV6p2JSQDK7NTNlIy2DGYQOY47ouYQtclMJc+QIhAM3XSA0HIaM9RYcYNK1o6C7ezCHXFrfBBL7Mrg48O2wy"}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_0.1.2_1631766203630_0.4780269576059366"},"_hasShrinkwrap":false},"0.2.0":{"name":"francium-sdk","version":"0.2.0","description":"francium sdk","main":"main.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["francium"],"author":{"name":"francium"},"license":"ISC","dependencies":{"@project-serum/anchor":"^0.15.0","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.26.0","lodash-es":"^4.17.21"},"_id":"francium-sdk@0.2.0","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-21XLJjLwhzVkm07xUJlOUwO37B2bM3t4pWauXIi6/maHXgCkExovI0R1B3x6kUlE91J8xqwhOEtoE2Z68yfoBA==","shasum":"9ade7df70f6fb13bb1779b57ee06231697bfbf50","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-0.2.0.tgz","fileCount":4,"unpackedSize":623357,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhQscPCRA9TVsSAnZWagAAAJQQAI3C78HalKHxJgbkZkNz\nmpv0/8zd+CwKF/ZO75oM6wiLGoZ/A4KlEWu/Dq80s/Sixq2+kHfXyR2gy2rm\ngRq7Y4aPoBNHO6YhSmVOO0laY5UaJy2thCmAvvhMJxKTLxNg0nVoz1RFGGV/\nbWock5dDJdBjaUXY1C3o3i8RqeuasmLDNlgGD6+MHA3Qo7GCIgediMS4QhPM\nDkDLZe91KiaKiP86mI566CWBANQbPNHY3J8xk+sNjOrh5bRNcTM9UBqJmu0V\nXS/JTIs70MIVxtPe3ofesW+8sSg4DwNF3YNOAeULozvyAeyjdlAiyBXof8S2\nyk7kDkhCY19W2WujVcIUKDdYLcEly/PPC0pi7iaDLuXOY8/zTtb31A4BlfEK\nf5JQoXjfiMcqUOolfAwG2viRpduUoS4HdCvjxcT/LZnmBuZKLvXmw4aeTfM1\nx66WNVDXNp/zCSHdiEmwZWeC66aJgrbndEzjYznmqY5xhzJEvkqi1qQAlPrj\nXTbeeR1fa3D9Fjp+rLDmRsl1JyXW2BkWJk4ZrKNwmDclKOt9yztFv7z2qQgH\n3MLKJGYBN059+QSdh1MW8PWangI3IGrWdkPNx92C3AhsKpFgnaDm0UJT5f/l\nswDNywDPUQEkE9j5p+NQiI4D8SIaAHQr26zCrWkTPnQUdVWWijLG4WbofB9I\nLj9B\r\n=bPko\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDS0pcI9mmTAltQzy03/z0c4vqZESY59zK52ivmFultcAIhAIC69za8Lg9dD0wMtySma7C8btzt1hTRxjnPKySMhzgT"}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_0.2.0_1631766287669_0.9904436784641775"},"_hasShrinkwrap":false},"1.0.0-beta":{"name":"francium-sdk","version":"1.0.0-beta","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"^0.16.2","@project-serum/borsh":"^0.2.2","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.29.1","axios":"^0.21.4","bn.js":"^5.2.0","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.2.1","typescript":"^4.4.3"},"_id":"francium-sdk@1.0.0-beta","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-wole4LTag83kxsA7kV+pzonvTDS6mQQtDE5wT9/697QxWswdxcLsk2ClezCpOb4ci7+P7Y5DhgilMRJeremoOw==","shasum":"3bc29d61840d82dcbfcf9e881684b5f448b15980","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.0.0-beta.tgz","fileCount":68,"unpackedSize":602790,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDHLq0AgVzJbUE8vh8mpNOl3CixACqFJNDGqZSZpA0QeQIgR3s3z8u+uLaqFyYZaKceVia2fiRHg4jFKBK6MDrE6AQ="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.0.0-beta_1633684361787_0.8943128675432654"},"_hasShrinkwrap":false},"1.0.0-beta1":{"name":"francium-sdk","version":"1.0.0-beta1","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"^0.16.2","@project-serum/borsh":"^0.2.2","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.29.1","axios":"^0.21.4","bn.js":"^5.2.0","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.2.1","typescript":"^4.4.3"},"_id":"francium-sdk@1.0.0-beta1","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-L+Fv4VR2nxn183PKnLX8ui9jbTvi+xzfGUdPuAWZfZsP6vCiYhhYJ3l473xAuf24NU1xarZVX3mNnX3qHa8u5A==","shasum":"2e1ecb1d7bdd915710403975a74c14649b4f0980","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.0.0-beta1.tgz","fileCount":68,"unpackedSize":622042,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC3AhNSxHZ/dUpnORayUqojvbnvJ1zWey9ho5DSAJ2GSgIgYc7pF6KYUt+OghfRJtt02kCfuJlZnF70QW40QgdqIhQ="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.0.0-beta1_1633685468624_0.594419747565508"},"_hasShrinkwrap":false},"1.1.0":{"name":"francium-sdk","version":"1.1.0","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"^0.16.2","@project-serum/borsh":"^0.2.2","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.29.1","axios":"^0.21.4","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.2.1","typescript":"^4.4.3"},"_id":"francium-sdk@1.1.0","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-oObYAyxGg43vRlK+y/e5ZirlrL9c9uGhh2+tkNpy5JonukSel1ycqAbmSzxHSve1dwdEMTAylF+qo3fedhcyWg==","shasum":"7a1097af6387f2249ac8f92aa44b09df4ca9276c","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.1.0.tgz","fileCount":79,"unpackedSize":649521,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEne/PtPRUSjstHp9az+fLfVCuPSFbGPgf7iLgoIbcp7AiAO+aJ7c9rzvpddkUtNuS9CEk/CBsOvdz03PqsAikaZ3A=="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.1.0_1633764834928_0.19420671719970617"},"_hasShrinkwrap":false},"1.1.1":{"name":"francium-sdk","version":"1.1.1","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"^0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.29.1","axios":"^0.21.4","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.2.1","typescript":"^4.4.3"},"_id":"francium-sdk@1.1.1","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-5OtzDq6VKXHW18Z1mEgZmIyUka74qeQaKPnIA1J7OaFlocdQyCz+wgfy6rDhRgFn0sEyt41xzB/8T+ICvZxoFw==","shasum":"1c04a3dd6c612a9fa2826e976f38a105fc089070","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.1.1.tgz","fileCount":82,"unpackedSize":667545,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE8Hsv1Dbx05rRUTvZ8UunPn5uwarYVgFmpzsfMzRKlgAiEAhhme2aGKqa8o6dimvSGbWt5v9AZOZjQIhrWV5Y0wD0c="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.1.1_1633932086333_0.9394320417912536"},"_hasShrinkwrap":false},"1.1.2":{"name":"francium-sdk","version":"1.1.2","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"^0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.29.1","axios":"^0.21.4","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.2.1","typescript":"^4.4.3"},"_id":"francium-sdk@1.1.2","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-qM4XWPGOVRwKgO0ILIQr0mTWWeGY8L+8zE4xTXKyHCWtb5qxlRr/tvx4T71NSdSHPUvf1W9aB9dnT1SQBK3xbA==","shasum":"4d35355a5cf5baf377fb4419936d3c4c3fea96ea","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.1.2.tgz","fileCount":82,"unpackedSize":668028,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDFYSIyQRxCWGtMRlJnPwT4pwpv8uRUtOuR0k/XxSDfjwIgO34lMAi5lJFsA5AJyBWaz2g6P+hG+37BLsI9/zA0gaM="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.1.2_1633946567102_0.4368239967397687"},"_hasShrinkwrap":false},"1.1.3":{"name":"francium-sdk","version":"1.1.3","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"^0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.29.1","axios":"^0.21.4","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.2.1","typescript":"^4.4.3"},"_id":"francium-sdk@1.1.3","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-kd2bKcqX9s5fV9zU+epzBuTmin4f1RnyTr26cOWkuDIY19beUt1/4H4MDDSHp/KO/UTovpwyv9G2ckUldtcVHA==","shasum":"50cd3d5a14bce0a52004d6c402a7c32497592350","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.1.3.tgz","fileCount":92,"unpackedSize":802140,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBFhPAU092nmBJHofMsorn4kuMP+3nSD8w+LDQIhAwaBAiBRo8QlHQfN9wX+BkEWmDnqJfhX7cdx1JmTy5JBStEplA=="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.1.3_1634030992973_0.8870593154487827"},"_hasShrinkwrap":false},"1.2.0":{"name":"francium-sdk","version":"1.2.0","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"^0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.29.1","axios":"^0.21.4","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.2.1","typescript":"^4.4.3"},"_id":"francium-sdk@1.2.0","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-b3i6+zFqDchl4XOvFS8OZTMG9opRs0nMlt7NXzoOWyZjYPRCSjfmHrRNojXHD+c1I2yGGaApBIdyx/FAqfEuEw==","shasum":"dc0a2bf6b5e403cb2d2fc3877d1d44ba33c17193","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.2.0.tgz","fileCount":92,"unpackedSize":820262,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCLI6qx0IU6uRemjWw+UHGD0t/RKSvRFBS8vA5HzcHh9gIhANQD8LC6Yh4deBI9Vyoz1dOKMTr7rQ6SlNJ9w3d2y7Tp"}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.2.0_1634375787507_0.14512615401555573"},"_hasShrinkwrap":false},"1.2.1":{"name":"francium-sdk","version":"1.2.1","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"^0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.29.1","axios":"^0.21.4","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.2.1","typescript":"^4.4.3"},"_id":"francium-sdk@1.2.1","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-nOWAZHuEzFBvv01imy6LxThOZ1V0jkmhbfKS43ltfKX2Xqdi8zlBULwsqxMY9lOmOVTRTa2t5EBblXnIpT0b8w==","shasum":"972ccf1e1cd2a3bd6a62ba83f7ce0c0b5bd0e303","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.2.1.tgz","fileCount":92,"unpackedSize":825414,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEzlO7GH3BCAZRskqu2s2IXITLxORYveWd3ocb6bi08TAiA+H1YCkYapSIjiygKd/MYGSfh2/pNkKAg4E4BacYkbrA=="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.2.1_1634376383415_0.21811868877382024"},"_hasShrinkwrap":false},"1.2.2":{"name":"francium-sdk","version":"1.2.2","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"^0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.29.1","axios":"^0.21.4","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.2.1","typescript":"^4.4.3"},"_id":"francium-sdk@1.2.2","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-G/vMBQfICeeelSqv88KclrIn92R1f0q0X0Up5zkFoxp2ZYj8dOed3+hUjqZnR1byTqJutJhSlCvdmWA8GJ+Cgg==","shasum":"ae5e2360989ac3fd42cd4799c306d94ceeb3602c","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.2.2.tgz","fileCount":92,"unpackedSize":847907,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAMzfuJ9yDqueLKgFOgXvqU0dNUHmrI5aUFMCNsKleSpAiEA5sw6yeYBXgIUcZ9EuOXQKaXgJtlkTIBZ+3wpiVCa3sk="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.2.2_1634720317011_0.9203433162501646"},"_hasShrinkwrap":false},"1.2.3":{"name":"francium-sdk","version":"1.2.3","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"^0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.29.1","axios":"^0.21.4","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.2.1","typescript":"^4.4.3"},"_id":"francium-sdk@1.2.3","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-jnfPQPopXjzFIXI/CdBoj8D9Xcl59qvAKXjsTn7T/1Hme7lUfREwWiI3ywCdD8JUyNa+n4gYaJmkljf/4k5SXg==","shasum":"d9d783f0f1be6525e29f9c662789008b9d0df62a","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.2.3.tgz","fileCount":92,"unpackedSize":861329,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD+/WuojGVSj7ZKnxtKcZMdktM6bIyzIuJRHrUzNyj01wIgGma76Ie5SjnlUH8pZ/Z2ad5nBS+GkBVkQaMpTqc3jp8="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.2.3_1634881950169_0.3013636437927667"},"_hasShrinkwrap":false},"1.2.4":{"name":"francium-sdk","version":"1.2.4","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"^0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.29.1","axios":"^0.21.4","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.2.1","typescript":"^4.4.3"},"_id":"francium-sdk@1.2.4","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-aHKqFIS5FePuFGUv76TPuR2wEWTsYslElHWSUB0IX0nAU+G0Kgrms7WyQlvgCg1ryTZG4Z5tP/nRpIzKaDyMpg==","shasum":"29a4896b61ceaac1b01c4d36646a9f41dd817027","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.2.4.tgz","fileCount":92,"unpackedSize":877964,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEhSnVf2KSB2Z7rj3iDrCm4Kc86CBhR7AB05uKlsTnhcAiBqU2KcKWcHApKcXejnyf0hT27NhhTx43t8w1Oeqn2QKQ=="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.2.4_1634974199796_0.8446908501549188"},"_hasShrinkwrap":false},"1.2.5":{"name":"francium-sdk","version":"1.2.5","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"^0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.29.1","axios":"^0.21.4","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.2.1","typescript":"^4.4.3"},"_id":"francium-sdk@1.2.5","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-lBeKahYjjZcgnwMmo6mRIl2Ck7eyC++onaVs0My4PD2TnloVI0rdJl9chbk2BTN0mNMpH37HeqfgX96lYBFKeQ==","shasum":"653b0f297c1a4da91184c6ab2b790afc9b8e67c5","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.2.5.tgz","fileCount":92,"unpackedSize":883692,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDvWhjAFa7JqCR3x3JbGpR/YcwLOJUQCWXgeaQhXh5LWAIge+Zu9acW1uY9hFmn8Pi2jWGF4Twiz+l+3tRBcxDYD4Q="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.2.5_1635152746159_0.6236604637235827"},"_hasShrinkwrap":false},"1.2.6-beta":{"name":"francium-sdk","version":"1.2.6-beta","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"^0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.29.1","axios":"^0.21.4","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.2.1","typescript":"^4.4.3"},"readme":"# Francium SDK\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpDecimals: 6,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n## Lend\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'SOL',\n    //     scale: 9,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'ORCA',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   }\n    // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","_id":"francium-sdk@1.2.6-beta","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-KWKq74PsDZxK84mwVyix55x5krgruyrrBKsOgrfROylePUbbkLFLnBK4tdMRgbTrBGbfiuC88KPIkWcVdoK4Uw==","shasum":"72d5133aa067177a6b2f8c4380d2455f174f0b3b","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.2.6-beta.tgz","fileCount":92,"unpackedSize":948372,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFEh5MOA6WWGHU7eTBjW32yHGPIf8ya2XsscEDqY896+AiARS+w5ILIXEPwOC/wxHQV2vUl4ruZTHQwoDNbaT3hMNQ=="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.2.6-beta_1635334290446_0.5462727459220369"},"_hasShrinkwrap":false},"1.2.6":{"name":"francium-sdk","version":"1.2.6","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"^0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.29.1","axios":"^0.21.4","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.2.1","typescript":"^4.4.3"},"_id":"francium-sdk@1.2.6","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-yzUXwuhcUieptEYmpwyRqKqgtX5Fg75tiii75QTLN0oueHmWY3IvgWxT4dloAIOVTAG8TaBltt9yLMM2USWrhA==","shasum":"952fe98bdd4b516a823f63802bd89bec836da530","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.2.6.tgz","fileCount":92,"unpackedSize":954784,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDg/HspXX2fKn7/JlNx3k4QiHQzjdflIPA7xPcSX5io4AIhANSBWlVXxK/OPmTkEW+BPzX7KlAMJn1laAgk4OdXf+N6"}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.2.6_1635403151597_0.9934387964813916"},"_hasShrinkwrap":false},"1.2.7-beta":{"name":"francium-sdk","version":"1.2.7-beta","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"^0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.29.1","axios":"^0.21.4","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.2.1","typescript":"^4.4.3"},"readme":"# Francium SDK\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpDecimals: 6,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n## Lend\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'SOL',\n    //     scale: 9,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'ORCA',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   }\n    // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","_id":"francium-sdk@1.2.7-beta","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-6xmnieoeBiLKNAa5NlwRIB2EJkUBkZNyvko7ZfMFV+7O+ZHbH3+YUk24MQiu3pH4MqMzh7GhQ0VbAVNXPIWRmQ==","shasum":"c180a72007209458430a6df4b1bbc694fbf357b3","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.2.7-beta.tgz","fileCount":92,"unpackedSize":1072225,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEMCIAS2FA6AsSyJTOjd4krWqIF9teEWJz0JHuT8JLk/drU2Ah9XG2lctHm3v63CmJfRgGidYEaqcCILoXzKzec8Q4DX"}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.2.7-beta_1635911853588_0.6743051219619176"},"_hasShrinkwrap":false},"1.2.7-beta2":{"name":"francium-sdk","version":"1.2.7-beta2","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"^0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.29.1","axios":"^0.21.4","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.2.1","typescript":"^4.4.3"},"readme":"# Francium SDK\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpDecimals: 6,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n## Lend\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'SOL',\n    //     scale: 9,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'ORCA',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   }\n    // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","_id":"francium-sdk@1.2.7-beta2","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-1gFiCuY96wbeQ7m/lGlgDmeYe3tBpwWo0SKffD1r4k4pA4+V5WLjJHWt4/PkbXOX+dehVw6gdsDwzhjkco6zxQ==","shasum":"7dc1490730fa70bebac39c00ce96b7b4fbf7f36f","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.2.7-beta2.tgz","fileCount":92,"unpackedSize":1074332,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID0Wcqu+ngEjAOE38KxnNpEDVwZ/5Pms7KgioCQvxNoGAiAp9ELRE9RFuuGs0IzVTUC5Rfz101Y5sp1jsG9I0ZuJUg=="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.2.7-beta2_1635923883046_0.13164157780046204"},"_hasShrinkwrap":false},"1.2.7":{"name":"francium-sdk","version":"1.2.7","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"^0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.29.1","axios":"^0.21.4","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.2.1","typescript":"^4.4.3"},"_id":"francium-sdk@1.2.7","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-VP+zeeD3DDEgj5qNHOhY4zN+tejp8MUZA1cxw8l4O4XP2zg9NqZuFjSqqvcJDHKmvkDJnhFeodkT7Vfvq0xPXA==","shasum":"3d718845a32dd3763d50eb4dcff31d110b606810","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.2.7.tgz","fileCount":92,"unpackedSize":1074326,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCGVhYgem5kxgXgVj2JGywKrF5aJdvZ9Got/LYKfPKBlAIhAK6qAX69FPl5gATsNBsLdWD2P9xEek0+o5KQ/nMLpXb5"}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.2.7_1635926397477_0.7372685658025613"},"_hasShrinkwrap":false},"1.2.8-beta":{"name":"francium-sdk","version":"1.2.8-beta","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"^0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.29.1","axios":"^0.21.4","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.2.1","typescript":"^4.4.3"},"readme":"# Francium SDK\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpDecimals: 6,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n## Lend\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'SOL',\n    //     scale: 9,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'ORCA',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   }\n    // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","_id":"francium-sdk@1.2.8-beta","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-9dC6Srr0otxhknoI98LFTAvR/n1QjZV396j6wypCY7VX8Wz7cruUX1oVQmGV45wZx+6xzqDu6HTX+DaXaHOMmw==","shasum":"6e857dba24610b9a5b47873076b3314aea1dfa05","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.2.8-beta.tgz","fileCount":92,"unpackedSize":1124564,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCLXov8DrxFY6jWmTOurYzodWfLx5orZUAVCZ2tCfC/sgIgVwkM2bFNTVVBEsorYXCSGgoRIX2qXXT/GXHJzupkTdc="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.2.8-beta_1635933753296_0.6322271880331161"},"_hasShrinkwrap":false},"1.2.8":{"name":"francium-sdk","version":"1.2.8","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"^0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.29.1","axios":"^0.21.4","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.2.1","typescript":"^4.4.3"},"_id":"francium-sdk@1.2.8","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-wxxjyZ3bUCprfMvzGNAe5vSswV6RGXxVLwk4BB3uE87Riz4vujj5T8tuSNOq9Kre3b3b0ZKv/flSO1tX++glwA==","shasum":"dd4b9141b40062516d9165377622699a869efdc8","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.2.8.tgz","fileCount":92,"unpackedSize":1124559,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBBBE5P0sFKeEsmgSKY5LljWKTXiEc8NugfyN32OycH0AiAonP3dHqtYZgaqeT7AsxY1+cdwhMFyptHVNutIIHaggQ=="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.2.8_1636102125572_0.23403636312320164"},"_hasShrinkwrap":false},"1.2.9-beta":{"name":"francium-sdk","version":"1.2.9-beta","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"^0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.29.1","axios":"^0.21.4","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.2.1","typescript":"^4.4.3"},"readme":"# Francium SDK\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpDecimals: 6,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n## Lend\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'SOL',\n    //     scale: 9,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'ORCA',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   }\n    // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","_id":"francium-sdk@1.2.9-beta","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-oKLAiVXCFLKAddyftwgqo64Mc7oUQYTqhHFl7B1TKnd2Rq9N5LTWpliowjzvdZtlKM6/2JJKGE4GP8RNsw8U6A==","shasum":"b1399f2e73e24614e129fb04b6b3cb3d74575049","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.2.9-beta.tgz","fileCount":92,"unpackedSize":1154675,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCjDxe2TREevGYQxf4x0ptD9YWO3jyeLeQn66DHRlSNQwIhAMHt24bHVHE9q65qY3D7diLWy7Fu3l7OQpc1BWH/22hC"}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.2.9-beta_1636180031409_0.6309629296929948"},"_hasShrinkwrap":false},"1.2.9-beta2":{"name":"francium-sdk","version":"1.2.9-beta2","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"^0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.29.1","axios":"^0.21.4","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.2.1","typescript":"^4.4.3"},"readme":"# Francium SDK\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpDecimals: 6,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n## Lend\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'SOL',\n    //     scale: 9,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'ORCA',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   }\n    // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","_id":"francium-sdk@1.2.9-beta2","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-dGeDbZXFaKVIwbqpLSw2HX6T4RAtefh5AROf1F72n2dNsjYXa7NrRaQMM1KBtc9hF+8JBzt0zrnrch1buZ8c6Q==","shasum":"e352c4535011bd5c3a2f853a3d490e8a7fca4baa","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.2.9-beta2.tgz","fileCount":92,"unpackedSize":1169702,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDIydjy26QmTQUxRl+zV3LxA63pBo1xlaNSrbvBgcsQGAiEA55389194KVLRYBNsPeB+JLBFXTZsEwbBx7k+TLTOe9w="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.2.9-beta2_1636188110161_0.8881179663124641"},"_hasShrinkwrap":false},"1.2.10-beta":{"name":"francium-sdk","version":"1.2.10-beta","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"^0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.29.1","axios":"^0.21.4","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.2.1","typescript":"^4.4.3"},"readme":"# Francium SDK\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpDecimals: 6,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n## Lend\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'SOL',\n    //     scale: 9,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'ORCA',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   }\n    // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","_id":"francium-sdk@1.2.10-beta","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-BWaoQQ8YM9dQxGYrbbZF40dDhTSHIq4iUJL7RpAWLiyDLYjK3jgKElRF7LGE1m4zXKtTQ3OyTWa1E4//PpPgkA==","shasum":"fc52b62e9c560d29fd66d2833d0e4cb90e630566","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.2.10-beta.tgz","fileCount":92,"unpackedSize":1169847,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDGMD9A1qRO/gNHRwkCKIyP8EoNtXLRH/fl3Ckq6qrtNAIhAP0nRE1cJxb9POaBq/2Wse2UfiMYQsSP4mbC1uI2pteH"}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.2.10-beta_1636432460194_0.5513684134933889"},"_hasShrinkwrap":false},"1.2.10":{"name":"francium-sdk","version":"1.2.10","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"^0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.29.1","axios":"^0.21.4","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.2.1","typescript":"^4.4.3"},"_id":"francium-sdk@1.2.10","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-tOhUU52SwNZg53Jvn77jQXlxChQYXl9+Wp5w7QPo96FMdQBNqUJykb2wP0IB6XsaNjiigPQxhQNqt8aarX5Agw==","shasum":"e211d3565a9f6fdb0a186c4f625175cb27a7c888","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.2.10.tgz","fileCount":92,"unpackedSize":1169842,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEbP14VtBZrimo8HgcdMTnXOTOyftLF2eEDZ5JTgEE8JAiEA3h0HcBf5NIO2XJ+yZhPXnmCFAdQsvHl8OWIO8bDbl3U="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.2.10_1636439603832_0.02740548096188178"},"_hasShrinkwrap":false},"1.2.11-beta":{"name":"francium-sdk","version":"1.2.11-beta","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"^0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.29.1","axios":"^0.21.4","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.2.1","typescript":"^4.4.3"},"readme":"# Francium SDK\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpDecimals: 6,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n## Lend\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'SOL',\n    //     scale: 9,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'ORCA',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   }\n    // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","_id":"francium-sdk@1.2.11-beta","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-aTj/fqquW3CEBBb5/4FRQyJW+NShHv8/GjKiPfnK1Ze96eAJtbnU4H23iPJTMIYQKp3Iq5xjh8Wo2JeltfQMYQ==","shasum":"b72559b3907ced2cab1c21d1fd3138c415e8d7ea","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.2.11-beta.tgz","fileCount":92,"unpackedSize":1189113,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDSJVT+/Zf7kGs9AP9OEcmsmBVvmVNHU5Ymh7Mahwgb8QIhALJHRsZYnhvLiHKmAMMiYUyk1t4269oBUEUW5BrvwD3j"}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.2.11-beta_1636451940866_0.38141193350922276"},"_hasShrinkwrap":false},"1.2.11-beta2":{"name":"francium-sdk","version":"1.2.11-beta2","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"^0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.29.1","axios":"^0.21.4","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.2.1","typescript":"^4.4.3"},"readme":"# Francium SDK\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpDecimals: 6,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n## Lend\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'SOL',\n    //     scale: 9,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'ORCA',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   }\n    // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","_id":"francium-sdk@1.2.11-beta2","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-TY494RC5V2g+/+i/H7tYOzBDNY+RuCRw01Af4OzFOF46ZkmSSbclhFEPxhT543nsFbhOlptTYgOs7QT6zfn9UQ==","shasum":"94584ab42c49d1e91e324ade1244e19ff93960fe","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.2.11-beta2.tgz","fileCount":92,"unpackedSize":1189040,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFa1ijnSFjyRp8+L61grIx0dlzxgmitvDXhuhp0dNJ/SAiAHdqb8e1hJCemrN6Xj8hrDsbjpdzS3DLXULuB5NgbaUQ=="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.2.11-beta2_1636454003826_0.259651800205591"},"_hasShrinkwrap":false},"1.2.12-beta":{"name":"francium-sdk","version":"1.2.12-beta","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"^0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.29.1","axios":"^0.21.4","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.2.1","typescript":"^4.4.3"},"readme":"# Francium SDK\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpDecimals: 6,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n## Lend\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'SOL',\n    //     scale: 9,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'ORCA',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   }\n    // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","_id":"francium-sdk@1.2.12-beta","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-SxirBDQIY+Ho4pKStNg4SIS3+MyZRGNSqaolS8gLe2LAnhHGP5DTH4G71mnPDQerUbVeizMGr4Opf4sZLff9RQ==","shasum":"66b162d359969c32a536ad056740a0cc21021561","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.2.12-beta.tgz","fileCount":92,"unpackedSize":1185109,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCfBTPmW/g3FlVx+d7dsd0pflJ/Fl2TX6KZ4IX1gegF9QIhANtZzEPemj/DBakheiyEcccCmyZWtKDaYvbJKrjetl1Z"}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.2.12-beta_1636517688904_0.5750335712010504"},"_hasShrinkwrap":false},"1.2.12":{"name":"francium-sdk","version":"1.2.12","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"^0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.29.1","axios":"^0.21.4","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.2.1","typescript":"^4.4.3"},"_id":"francium-sdk@1.2.12","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-qx+48Y0YKeNqrTN82t+NhCSyehQQhx2se1nGLalbQc9T7s7uaFi3+/GUgxt5Rmvxxbg4gp8Xn/X77VtVBRky3Q==","shasum":"409a7f20d74be8c7fe9f60d3cfd86e1f1a9ef3e6","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.2.12.tgz","fileCount":92,"unpackedSize":1185104,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAK73hdS7X9RL8/smQi70CO/gh5jUstVd0DIQHN0/aq2AiAeYT3RkY5hy88LcK59X8I+ymtjEwjP+fA7mN36Hs/VDA=="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.2.12_1636522339415_0.272408917282547"},"_hasShrinkwrap":false},"1.2.13-beta":{"name":"francium-sdk","version":"1.2.13-beta","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"^0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.29.1","axios":"^0.21.4","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.2.1","typescript":"^4.4.3"},"readme":"# Francium SDK\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpDecimals: 6,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n## Lend\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'SOL',\n    //     scale: 9,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'ORCA',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   }\n    // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","_id":"francium-sdk@1.2.13-beta","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-lhbOE8Vv6f9aDE8h5Ct5sBXI5TdKEualX/r2/VjaShPx3UU1Fe1qU2fP2BoXQHP+ag1//OUYEv1y31nujezJtg==","shasum":"ceade34afaff985a1506b9af77bdf0599105a6ae","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.2.13-beta.tgz","fileCount":92,"unpackedSize":1204174,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFPv3aDZBiq6dj6qZJKWNhNgsRNwPtWL9wm79NuliOkdAiEAujGxUdq4/xI45FgWvCraaBVxKTwLaBB8CW3N94MZ9ic="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.2.13-beta_1636543693145_0.5933897616292338"},"_hasShrinkwrap":false},"1.2.14-beta":{"name":"francium-sdk","version":"1.2.14-beta","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"^0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.29.1","axios":"^0.21.4","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.2.1","typescript":"^4.4.3"},"readme":"# Francium SDK\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpDecimals: 6,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n## Lend\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'SOL',\n    //     scale: 9,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'ORCA',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   }\n    // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","_id":"francium-sdk@1.2.14-beta","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-z04NLx8LRbJusMnEFwFdgZzJ/4blwT4GW5povPUp7b+l7hqlDDJ2m+POwdhEwSgMK4BJSmJnYofMKZU6CHl2nA==","shasum":"0b70836cd15bdc9051288efb0d98447089a710aa","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.2.14-beta.tgz","fileCount":92,"unpackedSize":1276763,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDdgmNvK2JMJMqEzRJc4gdh3lc/umziuzVuBZtYfzcBNQIhAPoyf4hPJKtqeTxmlU8GdLdWO+OJwhcWQKe3Zr2VsJJ4"}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.2.14-beta_1636688884417_0.528609745474274"},"_hasShrinkwrap":false},"1.2.14-beta2":{"name":"francium-sdk","version":"1.2.14-beta2","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"^0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.29.1","axios":"^0.21.4","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.2.1","typescript":"^4.4.3"},"readme":"# Francium SDK\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpDecimals: 6,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n## Lend\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'SOL',\n    //     scale: 9,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'ORCA',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   }\n    // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","_id":"francium-sdk@1.2.14-beta2","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-uXD+XBitTDfpQGPooSZ+wt0ZKKdmHXTL9gDXWYRGEtZR6tezi/S+bZdq/VVYSAYfEEPbw3D/zdTeOrhK6B/TIw==","shasum":"2f9f5248cfa2cf776ad6f155b2bf56bf480626fb","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.2.14-beta2.tgz","fileCount":92,"unpackedSize":1278593,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCZPCnC5LiluiDz/+JS77aV/oMGlmIsDTUzFbQktJ8jXQIgVtKwuqgL7/chXH8XFJxw1hZ7DZxjsVbYb2BUewE7gyk="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.2.14-beta2_1636691324947_0.03534293500697361"},"_hasShrinkwrap":false},"1.2.14-beta3":{"name":"francium-sdk","version":"1.2.14-beta3","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"^0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.29.1","axios":"^0.21.4","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.2.1","typescript":"^4.4.3"},"readme":"# Francium SDK\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpDecimals: 6,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n## Lend\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'SOL',\n    //     scale: 9,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'ORCA',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   }\n    // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","_id":"francium-sdk@1.2.14-beta3","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-49ShxYYRVuNw7tKDfL6c/aYzcaABvjln+0DKexn0wulfOheyukk8+Ldj+B+YDGT3spJKat+wMHO3fLIpoPztjQ==","shasum":"99ac4588c810cae91a4b1c4e5ea2ed8842b4a718","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.2.14-beta3.tgz","fileCount":92,"unpackedSize":1279072,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFvnrM0CbZQeh7gqMyecVLemFfBhowEjm0FBeod0w0+/AiB1LZZ06ji/JGqUXK05uL9M9xkrcbFhqI7ylC4eqpKJmA=="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.2.14-beta3_1636698332163_0.10396978154717318"},"_hasShrinkwrap":false},"1.2.14":{"name":"francium-sdk","version":"1.2.14","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"^0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.29.1","axios":"^0.21.4","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.2.1","typescript":"^4.4.3"},"_id":"francium-sdk@1.2.14","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-op0iOl0vmRw+HgSry3n/md7qDLjq2fYxeZx7TrcsaxK3vH6+6Z7zB8dzCdAHzX/+HloUvpaAuNKlLud4PwjB5A==","shasum":"73dc9fb83285e6b9c08a3248dd4257e1a4544ab5","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.2.14.tgz","fileCount":92,"unpackedSize":1279066,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDcDyW/6uolQgH6tnj13U6P2OmFcMATr1pdTjwhwr0RmgIgPzaoUYLETES0ESeVBNp5HKym2JBDXZgr2hhE7q49RZU="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.2.14_1636705782541_0.31579657053923627"},"_hasShrinkwrap":false},"1.2.14-beta4":{"name":"francium-sdk","version":"1.2.14-beta4","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"^0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.29.1","axios":"^0.21.4","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.2.1","typescript":"^4.4.3"},"readme":"# Francium SDK\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpDecimals: 6,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n## Lend\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'SOL',\n    //     scale: 9,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'ORCA',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   }\n    // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","_id":"francium-sdk@1.2.14-beta4","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-4hPNASMD3nSrTOf+IklZWT5VLHM2F7ydRc9r/gHZT+gNJWnco2f5Ko3xAuu2XFGEt4NPl2XWGMHAJldiJ46JSA==","shasum":"5895409732703b6c291204f4bad88d75d6f4f85b","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.2.14-beta4.tgz","fileCount":92,"unpackedSize":1300117,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDpKylP8BbM03eI+fM6ErDSny+TZkmuNJSQ9186M/Fu0QIgB3b5oq+Rp+nt2VY6bxqp0DxoJan33rRlY1Gz3IL7zG4="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.2.14-beta4_1636789198337_0.09115736965147403"},"_hasShrinkwrap":false},"1.2.15-beta":{"name":"francium-sdk","version":"1.2.15-beta","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"^0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.29.1","axios":"^0.21.4","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.2.1","typescript":"^4.4.3"},"readme":"# Francium SDK\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpDecimals: 6,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n## Lend\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'SOL',\n    //     scale: 9,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'ORCA',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   }\n    // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","_id":"francium-sdk@1.2.15-beta","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-NVPkBq/XLEwf40LKIbUOAIF8KRHvNCOj9PywrYBswuey0pbscB/vCyMrjJSANWybj49IRFc3kDk8tY3rhc1a5w==","shasum":"ddd1d92116b45609172c33c1bb3ef7a96c06bc13","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.2.15-beta.tgz","fileCount":92,"unpackedSize":1427575,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhk0EkCRA9TVsSAnZWagAAmfYQAKQ3opYBLzI2yN9wWCU5\nkt23OzauDESckWyqNXvv7/3qdkPFc59ZTTacG6V5aFu9YY8AVBMqCrDvGeB5\n/f39aytdxivf53jYOr/9RHO+Bv3JhiVLEeiIXAv+VzJ+C/UFnTzXXoa/CZA3\npe0ebd3WBhyucVrpukm6cK4eTXqSNbsmIN20UrocVlsckpeE5CsOXa6fudDc\nk43UgTniLPzvzClQLkWJdCLx/pgwJ3jkPWVRQXS1fyIa5lRXjN59wLky7StS\nVqFhWvk+lgRf7U5z3cvPfKLGmW0tZTD2ZUhvaNeU+7JtQdHushI2+O4n64iW\nR6glVL1KNASNNji2cuegq5g9Ygw8NWn8blTNLY6gv+pazAGa0ZR/7xxpgwi4\nQkfoxqNbusJtF1kQ0+uUjRPHzryXvo+BpT5b+9QADLvuqzpqHT52sRje1jhs\n7pRaddQZA7JGflkoOH4zhXtyyvBx4KIgnElNvKPcFHTjId0Uq7/aL3u2e/YH\nvRqZABsYKlEsiSURQwKPHBzWWSg/d6k7Ukq6BscQjiyRWVK5qC3tkVzzS8L7\n5jakOQp9A3nrJOSLRJ5UX5tXYD4SEpUdxvApGIcRmP04x4d+bZCfwPj1yNs1\n0UvIb3pxcXhb0VfOzQtoNFrDhu78savKKapfrDYSxwyZ405DVlNgwK7k3Cya\nmpRp\r\n=oNnH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGrjKXMAXxjoipMzZoUv0lqoh/gbyGHLyxrWYkxwVTxvAiBoIRWxD18tnClbuikdGnPwA/DM+nM5PvaGw8veTKQemQ=="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.2.15-beta_1637040420476_0.8086435685166979"},"_hasShrinkwrap":false},"1.2.15-beta2":{"name":"francium-sdk","version":"1.2.15-beta2","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"^0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.29.1","axios":"^0.21.4","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.2.1","typescript":"^4.4.3"},"readme":"# Francium SDK\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpDecimals: 6,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n## Lend\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'SOL',\n    //     scale: 9,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'ORCA',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   }\n    // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","_id":"francium-sdk@1.2.15-beta2","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-YKSjKBEqhC3nnVedhPItcmqnS7W0QSmSV6WSq4uGByNdbQrsrByP6SkCYRIgkHgcfobSa94kKSbG6NZ/oOWFAg==","shasum":"5fd08fc5eb20713382661d8e6cd190292a4480b2","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.2.15-beta2.tgz","fileCount":92,"unpackedSize":1427574,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhk0UFCRA9TVsSAnZWagAA/a4P/0IEd9t/6Weq0zDDyRcv\nK2EhVI78LYvu1PUnhLKfFlgstVcVWvaTTfHPcoPrW/Wd/D0roMI0s9IF5PXG\nGWT+FDqhk5SVTbG7S/Yt78EQaM97YzXB6a3ecoM1NhiJmfD8SQH5Miec7bpX\nlHYTKSXFMSMh5YjkjJlqXU9Mce2ggqI9v4n9k46bqqzWqrw9LfmXu36+EstA\nVWCh3wk/r1wzo8lqpSQBZt17QCN0DCCFv+5UBalsimeNL1MiwYni+quHzxSm\nqNMgZY5OVZPqqJP1lcMF5qMRNcIqpiUTXOfRM6PPZVvQsxzwLTGxphZcLxPL\n5Gn5YLnzjanQYSsUiLVMls24hDXvNPqSy4+q9+OzTXAG0BlCPmTZ9hli0CiQ\npfuw5I7sOGNxszd26aR/J/SqaNHAAHPpHUTynFF4HoAJgM5PHdUpJzrideiU\nkZhb6oyUXYawTEoKoPiaUWsP22aSWmfeOyh4H3C/gjfqHS90RQRZRoEN66r/\nijnATgn3N/R1QrOTLQdDdmt2g21+6ZShDAVSr8qpVUBhnUZnotfttoTGcCyb\n8s8FksoREQ3IYmIQevdgC61I0C5pZSnCHHdKK+2SUOs51iwugFn8Xbfvp/RE\nl8vCsCi0X7hbNdulojOWH0GgiEK2CKu044uvyz7jDOBMgh2SZlpk+oX6zk+R\ntM+t\r\n=1smk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC/G0ySEiSweO9bTat7Fe6uWyVPwqNzz64tBFdXLU3LlwIgQjj/MFVEJg8MmQL/pRdi+MDV1OSVqo3b/y1kzV/rDN8="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.2.15-beta2_1637041413200_0.841531819571155"},"_hasShrinkwrap":false},"1.2.15":{"name":"francium-sdk","version":"1.2.15","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"^0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.29.1","axios":"^0.21.4","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.2.1","typescript":"^4.4.3"},"_id":"francium-sdk@1.2.15","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-5fCnq1x5e6ilcZ6/7SPZ2AWJ3t96jWLlJP2Pb3Z5eLZai9jRR/J8qT4z82YnYUHCdDgAibgCT2tbb6aR1/2p+g==","shasum":"edd25a176c15525213c1f50cb8e97ff930933245","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.2.15.tgz","fileCount":92,"unpackedSize":1427888,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhlGLpCRA9TVsSAnZWagAAYV8P/RbnbZk8uXchzEtA1fAy\ncOlBOnozzfw8/hl46Nw4JCBhJlWh0zy0F8cnl8+W61MIL/5DQ3v/s2CIAEwx\nnkXQYnNXhnIwisrCbzHE5Q8SkALosfRXWOr2wmoX5rT93d2sWq87KJShYjJ2\ntDhzoYqRNBt7JfoaiWne4SVTh96Q1GuKWGVLgPb+4+8oKh7nCieH3UivDLQ+\n3Cgxn2AKQP4xEg7H0I2187nACSw7NbmUDWiL2hAYlhnGIxlX9aHUmEZlj29y\nxqQ93KjfM2q7zfrn9NA/H5sDec5mSa8EkogRMR2iDOs3X72VMTWIfgXOIIzK\nkXdbLItQvSsk7PqCU+IQvTOxOwh9+c2/PV/LzwZqExgwtmnOj8BRPAgyIis3\nAZQzHUi03Ye/1GMdCwdQ8+SZo13BT+Vi23JmN1vDKRCdwD7mVXXQdHr2rvLD\nwuu+HdPFH8eq7SYMJbu0v5G8u6wF9zrIcAX+FNRKGD/MXsf2INJz9lIaww73\nXbcTp1qJuj5LHuqdU5s/LFba8E4IY8giDCdt+pPSpodUNEYE0DWY3Bfwl6X/\np9bNePaJnO2FZy7r0zarCOMd359i7sztlSB5rorRLtMCwNPFYpnCozwCgzdD\nD0+p8Y7iTe0cHo6XF0HADrf9MiA9FHx6HidpniZnFvqaa8m41u9DJReMcJ7v\nelNy\r\n=CWgl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHmV95wpr+Qy2UapbnVeo+GwCSXPrZm9NU4c7GnGHs8XAiAaCacTy0p6fzvHSPIAk+xXE06NSUo7iizg8naJrfP9Bg=="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.2.15_1637114601399_0.5553834041810763"},"_hasShrinkwrap":false},"1.2.16-beta":{"name":"francium-sdk","version":"1.2.16-beta","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"^0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.29.1","axios":"^0.21.4","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.2.1","typescript":"^4.4.3"},"readme":"# Francium SDK\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpDecimals: 6,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n## Lend\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'SOL',\n    //     scale: 9,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'ORCA',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   }\n    // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","_id":"francium-sdk@1.2.16-beta","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-ZC1y4z+2R2wqnrDMH3QZvqpXIHWMDUgYkm3JNZ6CZk3P3mq2zyyMeBvKMjg1ycw7gDnoPD1rDeiGKPaPz0hNFg==","shasum":"57649ce782b297d6593bfb4690c8e526629567c0","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.2.16-beta.tgz","fileCount":92,"unpackedSize":1449597,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhlKQTCRA9TVsSAnZWagAA+kwP/2uolXgiJ1SFmHmYIAM1\nNqJZb0kQ/mcceb8Df+A1rdt5HxwkvOy46rG+13WMCTLexT+bk8imT/27NRZU\n7cht8iaXTSdy+n7hNe+8fiz81gc0b9r1JFG6kzfRcfBh3wqk91Qz0vFAtfWG\nqmD/D4UOpsrsVp0YiqvbgA5H44liYvJSJlNo5hyUC69gRvemaddl+Z4WuBHY\nRboxgS59TbLCZqJn/2eS1K7I7XMrrDtFUNd12vJyWx3N1Ocw3a9SgzByscDp\n4je+rwuZ9NR7zebu0mRdUM4rFcfuwuqBtHJ52VHCGW5xkP63lZTC+Pym0QMt\nDya+7HtkSJ3+mKvJJzsrk9M+REEmqWIA1600ujVqW1fQsEg521krK2XP+G8E\nm09qMfDIbsSHERcBi5E7kqDIVZSIaSTysi+3///8VqAdwE+Z3OdULjWOm9p2\n2qPjEeUQiwhsaJ9QRFu4W+aefobii4sZwJ+ngvU0o1FWlPxOEAIn7MoqYdnc\nUDbsIFcE3xh2pgt2vYMR3pXENsJwnOu7l9ijxN8Oust1231+a9xp+MjWuss9\nqDWTcoJoHppDHlJ81Jy7GbfqS/jLwBlB4kUExxv10cCRp1nfDrl2CirQ3Z+5\nLM9Yn3qxb2Pf/ZjyZ4Gb6ts86qlcTKt+Rs9mAyrERU/bMCOIeDOEXs+LEBA7\nhSfV\r\n=C63V\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDOrD3/PKGIoo09zCrSCMedU0YIpPkfj4SgrYc9tQooggIhAKFd9CsplqmcPMFqcvgDlgmEjMF89T3AD8jXtK2BcEX4"}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.2.16-beta_1637131282966_0.169562867148779"},"_hasShrinkwrap":false},"1.2.16-beta2":{"name":"francium-sdk","version":"1.2.16-beta2","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"^0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.29.1","axios":"^0.21.4","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.2.1","typescript":"^4.4.3"},"readme":"# Francium SDK\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpDecimals: 6,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n## Lend\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'SOL',\n    //     scale: 9,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'ORCA',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   }\n    // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","_id":"francium-sdk@1.2.16-beta2","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-17a+ghGoz6YhznVxYmddLilya+z/0+ThSyYOyrtsCVHYxCy4uqddlNUPIXbTGkOEJDLAlpXmNL37ZPs/8mZvVA==","shasum":"576527b96fbea2cebfb2eedd45795345c062aa29","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.2.16-beta2.tgz","fileCount":92,"unpackedSize":1462782,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhlLy4CRA9TVsSAnZWagAAIfoP/25JQfNY6upq8eL0rlmt\nPQ+vUk9VLEhnBK6KWd2QsgdhJ9hKrLEOu21lYq9N1EGoxB8Mj/ns6qYTVbh/\nQ1cpX5x88cseH7iyJSkPW1kpFnAybafT17ot0C+i4Bhv1pcdyggzNFAZMiEI\nVfIPo0x8xOiqfmxsdtH8Bi6phE7JjWuSRPAZKxXn7CudTrrk2Dd81Ws+Pi/U\nHSS+UQEFf5pH/8cHryaJml/9PEAIMa5t+KBsvoiLO9jHi0wNB4NxIyEajDPk\noKNRHJI69s9T1K4cw6O5wtVhVPR5tbO0MMe8+O+kT6B9OtRLkO/p6shF7/ts\ncj93p4GKi+XOTbdKRFohRYD5cIl4l4Q1KrX3B9BU0BskLP/hAUQY/ahHmG/s\nrFoVVTRheP0+AsbT5lTLEcowG++83LKhTqhzVCMpPTO3sVcX77UvPgtlV3uv\nb2+fGupo+D5dlwwV3vslBqDfOCTBYU4bEjwZNxOGsZug488kg/Nezug5O7nd\nTmn8ZfiiuVnXX/OpGo77KZfM05/MZrNgoehj+dAAGRycJyeQBI5SdpzcOW/K\n+WZjjYu2+vE1ogaEtL9hrXrfB0htS2GvIY9U1Xi91g+H+wxCTZlZJPq1aRmb\neA7gOWZE0m+IS1K6hgwfTGki4N3xyiT6L5miyOwmmlF0iLLXCQJ3T59pLx8Z\nwz/h\r\n=U4TX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDOQDd+G9aduLE1ugKI61gpagacuOsXyLONnDSMsem/yAIgaIBmHPaeVdLt6EhI7gM4KUqRdaAO8eu0n6nba9tQAPw="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.2.16-beta2_1637137592005_0.7486317549320554"},"_hasShrinkwrap":false},"1.2.16":{"name":"francium-sdk","version":"1.2.16","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"^0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.29.1","axios":"^0.21.4","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.2.1","typescript":"^4.4.3"},"_id":"francium-sdk@1.2.16","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-ieOl/MAgYcsl26UrurZK8SBp7Y9I1FpHSX0j9Ne/iuo7O8CMw7kuKsfNdx6WVWUumDcUSMO/aRzr0FRvjNdDAA==","shasum":"0a8f59a48534db489db56454efec11776c51ba72","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.2.16.tgz","fileCount":92,"unpackedSize":1462776,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhlRnCCRA9TVsSAnZWagAAWfgP/1wQUXym7JO/BA2rGzYT\nkzTV8FNdQ4H5HLilCON9G5KeCTbv69o1s6r3ElvBbJjQDsGKkfX1CEm7wZs3\nPLi4AxXxZCZzk1l7k97GBfV3LSpv51i65qls5UGGMshDEznw5qsrhPkD5bGP\n+9WH2LsdyoNUvzPnVlZMo3VT26YxqyT2sFTfuT7k4LH/miMWLnl1UUKC5hZp\nKJUIUhX4nw1X2iJKu6nJf023Wa7duSEeoogRXFBFr+yJAttbMAzJndBysI1j\nrjByFOYEx304fNLMLH8K6UD68+j9M8TXatLZEtEA8xdn4T8z+pRErKTfa58l\niL4mfMnl5SiuwlXKVTl4saqONBUxtsZG2qcLiFitggPWMA+TMFFrnUDJXNYu\nB7cOPRwWEDrcktxyntjYt+V84SFbWcHdUPYcbugVaiAG1gn6uZTUVrJmpDtp\nzqO2c8mOjsR0UvS1r3fGWQADepi6wg2Zj2ifP34w2Zpx4JOUMOO+mmEBukUo\nfY6cAGtkyoGpvRGXAfnx1HAqz/ita90VnA5FGT4qINu9/76ijkshd5yMf4uf\nidn9mUixNbNqfxhSua33xQ5JaYTfBF3OKfWzvPV7Tp8X0CSojW0ZjCTrao4B\nwx0/TjzGaGbsdDSDPB0ckI/19IXeczHe6lhpEFyH+ZaMRyx0ComqhGoDfIGS\nAXZE\r\n=BNnp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID/YLNj5Vzc+8huy90FlxV1azd+xmsJhKWqjhBt3O/c6AiBHF0BKmigu6s3flKoBq3wijGklKYs37F2MV0iTNSV7EQ=="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.2.16_1637161409990_0.9985411118139842"},"_hasShrinkwrap":false},"1.2.17-beta":{"name":"francium-sdk","version":"1.2.17-beta","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"readme":"# Francium SDK\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpDecimals: 6,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n## Lend\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'SOL',\n    //     scale: 9,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'ORCA',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   }\n    // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","_id":"francium-sdk@1.2.17-beta","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-JeN7BqeGBMxCaCCSRJU4Q9UFATXsEcOpw/NCGxij48Wi7Y3rPQ+SjSXSsA7ZoX1WIXWlaBzc1BoG+Rnj0uszWg==","shasum":"6399f6ae784df621e63a8cbe2703faa8f231022b","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.2.17-beta.tgz","fileCount":92,"unpackedSize":1527662,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhlhKGCRA9TVsSAnZWagAAgA0P/i4VzBENMCZzhIrMfpi9\nfUSAAtjEer3OLou5jYCWK3P2xQcSV3h5EM6fz629e9ok+VKgrVSXELZWGi7C\nY8VREKH5oWh3DEnumIlOhwiD6UZgvZgQkA8MmiGgTAWvWKh1KX9ZGuVgsB9+\nARI9wVF9CL+HA9SfFlmvLOpQ+MoyqCSSxpRC9ku72muf3KCG+Heb+WMlT34w\nmJHPoUP4h0aD+LGHBTAeTHtGu7Ymnn1pZqI90v3QuelQoXA54MmWXjns+vPb\n1Yvtbv8bL8bMpc9NK97vt8PEQeDBQ9iH6v2axzGnQ17TsJiHVcCr6PTycS63\nGOgxoBFPzdM7S0quAladchxFhB4oO/3taSbjIwxvk2KYGFxCo+ac0X0SFo2Z\nUIfzEKraj8s2e0TElpj6I9Vj6+m2pIq6T6uQuRFY7SY876KxCv/5mVKZ5YB8\nP51eRgS9x8W2EXB9fNr+7RtST0ubpNFbINroq34JOmgHOaku0IwVc8r7TBKB\ntUuEE/diDZVzWkPjz3vGjSuK3l5IUFTl6/pt7Q1mFRjW4bRZkM6BqPPOvejX\nLszkAkcebK+m+U/ZOVEg9Dzk98v5er3t/PfPDNWK/kFEzWDwFz/n+f/CfJFv\nV/s6sPfofsOxJJ29gNLsjArCv/ApSqhEDwvvtpvq7UOgzGBtEXdRMrchSBSj\nE09+\r\n=q1LR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCudXnOFpZ9vGOMspx3EOHLdzIj6+Ufw3ILt6MwMIbC8QIgVqcjFiPXw93ojtd30LFbiPQTDZ8nE8iU36GWX1cy/S8="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.2.17-beta_1637225093917_0.027691928187269177"},"_hasShrinkwrap":false},"1.2.17-beta2":{"name":"francium-sdk","version":"1.2.17-beta2","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"readme":"# Francium SDK\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpDecimals: 6,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n## Lend\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'SOL',\n    //     scale: 9,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'ORCA',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   }\n    // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","_id":"francium-sdk@1.2.17-beta2","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-RgNPbEP7O7+Dpbg/VMZkTMhtmSglY1+lFIzf5CxMEsZLtsUsKURkQHY0SZPmAj/dJWH9qYRyiB5PlswQSFHFtQ==","shasum":"505efca1ee72971ebf5a7bfa16f0c33f96e138f9","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.2.17-beta2.tgz","fileCount":92,"unpackedSize":1546515,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhl24SCRA9TVsSAnZWagAAAHkP/2OzotPSwkjhUA57Bb+l\nhM1oVPiI6DMudNnzjf++1e9wKdgSvDv6bBmEQVrr7me7DVOUMN5dNM0neMg9\n8zRi4rdB4NunoWO5oWviEa+8MXGUMTrF/lB2bI5Gr22U9TLWvSPuYGNkg3gL\nRrsYDWBdAI0NSjauVjuKcjJF+ZIyCk3c4hPHHvaoNhsLTnDIwq4aTgDElN4Q\nLYu5r/v4+I7xRyhSzTFaYe5jaqhqYNNyOVHXXfXW+vpkJxxUfJlcBp2/VKSK\ny6ZUxzyOCAvGkFh/urISww7h/NOA7951R7SEzvVpK4jp5hvfDIDU+rvvsJIg\nEJGeTHZFmfpdGx8fB5qnNnQsTJ7Vy0+JL9vw3Hp26T31AMrWR9kSeqVf63pR\nNsVEvxIrGp/bfnHaiU4I/0wj3+SSRW7oZmE7vdef93LOAUhJ0A/DSiXwa58E\n3dTYIujezSSZ/o1+KOXavpZawd1wBvFjWo7BzhEo/m7VSwJsfcPOVl+7wxh1\n7+DEj/FjR6/7Ie5eZk6F65TmYQfckgxDOUXC8HuCydzpoCaIlOIUlxV1FbHT\nveq26Mka2Dw6CRSxyxtbOH13nvwL3GNxeOYFJOsHRIXPfVpMRtn3x13pqC2D\nP0CCvaXCzLrK3QuUi2AId6qsAZhuWHtXZWxBhR0wn6XyuOHAnkcyE1RWVQp3\nCaE3\r\n=WhEA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEYVa0FITKBJDwCtcUYNfWCIlVlz4xbrJFWYs271O9PiAiEA69EpXKZd0a3x2CkZDVuvVstJMOo+A3+n+XMU5K7H9Hw="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.2.17-beta2_1637314065823_0.3699407182327308"},"_hasShrinkwrap":false},"1.2.17-beta3":{"name":"francium-sdk","version":"1.2.17-beta3","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"readme":"# Francium SDK\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpDecimals: 6,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n## Lend\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'SOL',\n    //     scale: 9,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'ORCA',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   }\n    // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","_id":"francium-sdk@1.2.17-beta3","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-O2NOBWxxRYMxda8GCZNU4q9r/yk5LdyrCESguLn55QM3jc0GC5eeEkHz9TSviv9xGP1gimqLniYa2xdpL2k8yw==","shasum":"6baaa8f9323e027ab99ac5ab33ae89c43df11ed4","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.2.17-beta3.tgz","fileCount":92,"unpackedSize":1540166,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhl28oCRA9TVsSAnZWagAAJOAP/RXJ1pD4RtqYgM6UZnIi\nxL0WT0lUDDDurRQLgYiLE3T6wKwHhD6NMhpc6zvC4BU7q31Iia+rYy5Bt1KG\nnqzRdV4TzkP6sTZN1zKipsDTuPmJIGE+6TEmzT9buvntFdj9oVsISuky0SMx\nvi0Izcc5GH8uKZ2iKSbkCmbLXv/lEYJBz6rp7+j0wvzllvx1RfJ8qKTd65J5\nzh85nmtwgrZpAmeu/pxkqynm8zOwiYIKwTW5jdFlPD2NUcWFAimeOL27t1Z5\nD7UqwjmGhh8NGKDnf6QfjDM+Ce2ruIvyH/n5p9VhUDPasflQCB9dKR70Tffp\nN0sTpHuR31dBM6AdmbOCt/98pNLUqgNfr6cmlmouZFcsvOvtRKKTZgyd6Rop\n4iI+LA9m+CxqIgUclQd8T4gdBhg24vJCdrN/KkV3jEEOkMofrMaEfbLoIyze\ngI7iWTSYbaBDGIG+BFf1CI0VuzQgXiMUXwIzlkmM59IxeB486Q9+g2uucoH4\n86i04mGaUpBbnzlnuC7eLSmCtqTZjlwFiuw4XcJTQx4pe7VsotUPl/XzUiRP\nctCpgoUHga0z6Ls69O6j5Ai38/YmKIQrb554+EjYOXkfgMPr71ob7SK7IKS5\nk2C4YhD4x8tFFMdGTTatFVb47pI2ObZNT+hZw8x+JnaVka+HX1nWaXpk+0Ko\nk0CT\r\n=LOLs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGAAomLK7mVHIx/RSWSBW2kD0+wJOBTxuQU8s4ujoCG3AiEAxpQLHPS0cZTJxlyHEJngRw4Uin94XFabQYxFWZMKNU4="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.2.17-beta3_1637314344334_0.9539046445829804"},"_hasShrinkwrap":false},"1.2.18-beta":{"name":"francium-sdk","version":"1.2.18-beta","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"readme":"# Francium SDK\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpDecimals: 6,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n## Lend\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'SOL',\n    //     scale: 9,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'ORCA',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   }\n    // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","_id":"francium-sdk@1.2.18-beta","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-jmvI6m3zwJmle8fkTxpYT16Ht2WgDgmEyDOh+mxqyCbVL1xLB8bZ84Ypi8loJYy5ovx3Nep0T+yL/yGXeDHkdw==","shasum":"7ea05563839a1a181cdec74d03023260974f46c7","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.2.18-beta.tgz","fileCount":92,"unpackedSize":1586255,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhmLNICRA9TVsSAnZWagAA8G8P/RRJVWQU5qiTA4HPvPOU\nOcmUIWx/gjpU1z6Z6JkWpH4pBQrU71QzOF7FoZCOZkr0XvN2dbOEvLr1j5aH\nkzWjNqiAXuDwOu/aCWEBQA+Ap19lLPVFbzAoYRV8gqOKUiETdA5EfJUSyllz\nrxBk9dQ3w5NM/ZvY07R7lFurm3kvEM+FsnfZfLXCSsJ1e58FbUjFNf5BHQsb\n3ZiHx6J6VwnTp+DwTCtBJARVK+6CbS6+Pe5PqK7THHQI/r5cNuJZBUhXqoBl\nNwf2peYDT26dmhwBM/xDfjLeGADgme2a3MkGzG2wbDpLBNbTJTIsmztIvPB3\n62/IXkkndhyPWVK11JHfksP/dRia0r9F2Vce8P/gYjE66u+5EZA3dABobP0T\nNFKw5lDTAcZaq9XMI+mY+DPIEynsld94c/5md+qYIpORPva8QVJ3OW6llIrv\nkk+70H6LdMLafBOG2EyQQKzVJIP2QTDiBQGdYVA7LnPLB2dx6PxHAoaxtFkM\nK64E0OHeFcLK4xFkGOHph1wruGhg6VhY6qiRO5qlGq2vklGzNdrTmdxL8x/H\n4s6Z5WFFnoCP+Y6eDY7iQ4ycZiEXUorqP6JZQthHiZKq2lOLG6LZ/urr5qt0\n26PiS8vfLsrdlbrAdf1WleVPAP77Ot2CmzW2P57U6zvWy4oKdc3czrtz72pP\naEBi\r\n=nZPq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDT2WCcyGNMVLHbaLNJtb31z52TrhzaR7ykAvFrff1+GwIgciCOW9BAQMngKlsWTwZKtO8wyVHzyx2dX9x2XUj4zWY="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.2.18-beta_1637397320200_0.10564170908497439"},"_hasShrinkwrap":false},"1.2.18-beta2":{"name":"francium-sdk","version":"1.2.18-beta2","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"readme":"# Francium SDK\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpDecimals: 6,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n## Lend\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'SOL',\n    //     scale: 9,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'ORCA',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   }\n    // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","_id":"francium-sdk@1.2.18-beta2","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-kAJUMIYccQkclKKi1/G7YiA7j8gMQ7gcdJ+vbkHdzeXWapyhOE+xcIRp+qam44cAQMjGDd2NtgGgDMmedsADCw==","shasum":"8862aed17b166254198e1bf0b12da806d55b93b3","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.2.18-beta2.tgz","fileCount":92,"unpackedSize":1588370,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhmLiVCRA9TVsSAnZWagAASnYP/0N1GAvzp2EstySfZNJA\nd1poSB5fGtwoxtFxHyByjYyzsy/QDiInl72aByycrIsKVE031wQm974mFc5E\n09d2C9okx/9vvx1x7AEOpEv6zVxVuwHaC++Sf2JpM42Aiq7VAv5Go+LSn8fK\n8vXk4YIx8e05g7TOB7KdjmJ1MBCTozzBgAtaXiMyGtrvsiL08+qWdkmRYcq9\nXCcvauXO3KUDGu4PQzK6CSUxDtTZvQZk0I+ezJYp2FCLNQ4elUC5inXSvQbU\nQRHYdeysUyYZ4jMwUODqm7N+Xo6a/JuU8j952OFluaFUqjp6cmHoQ6zxxzhz\noiOSxGtfBH4luXUIDNS3oOzglA6Tarq1vHW5MW8pE5Dj1jdMScfgA+ed2RIQ\nqpYiYwIe4tul7cq3QG3QmmkLRZluYRCZq4bkDielLhJIp5UEfvHH9GeTXYOL\nTkpLrm1XWfw7p3B951I0O1UlR7fzPERPw630XMApz89iJbAlAB19gRKe1j+M\nr31XCcRn7aCJEMwc22g/Hwm3466thDDvR2/qADdkS1HS1qUdOC6oiZZmLXgn\nfBMiyx6XEBr6BcTGW70BZXq+Cv3QNt/ZnHPTUMsvpYrEFV/3iBTKMItCqE+K\ne1+qylFteC2S/Iu9gDN71j36oIX/9Uuttm+3O6xoimYQY2bISZgvw+BObDvi\nvicB\r\n=YbU5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCXJ+ev5c6kx1s8w+Sv3/RgcdeCru5KKJ/P+VNFZgnkQAIgQopV6Pt9urf57o6kt+9mkuoVrK+08OluYxJVKbPI3AY="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.2.18-beta2_1637398677521_0.8064992134464226"},"_hasShrinkwrap":false},"1.2.18":{"name":"francium-sdk","version":"1.2.18","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"_id":"francium-sdk@1.2.18","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-b1bJOChd3DhfyIo1Cc29iWg6SmFsksElJIQCKDbSeGu161G3muPdQN+e700J0FPO9sM/wgRHRrQ74ZEBKpyh/g==","shasum":"f19e0c7a1b56190499743cd05b93d6f3972afab3","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.2.18.tgz","fileCount":92,"unpackedSize":1585050,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhmL3rCRA9TVsSAnZWagAAtA8QAJ7c45+ZtXdJqInwE6B3\nEUK3Ked0cDq2Ggg9ciklm0VEPfxFWc2eojeuK2LvEQcgMJKgC2xQcI9+sY9B\nlPUoticPCvGmVbhLPw0s+CVfkl9L7uG/KZsvSEsyaudnDJk187wH+/BC5aOS\nyBXq5xqbltJ+7K+GzZN1uCNEtiRoSxQPNaBsaYDDOHEPTgltN6hEuQ+PZuUe\nVLy8szgr6HdtGqIGZzRKHMMIWkvnJXRfW7cWlguU4VGoqeQjPMJKmZRhRjSp\nk/anmNzoPJXUVWTsOyvKrCG4+nBJbxOyiUHiEuIm9hNZJla8Y71glVhE/t3V\nw8YfuZf87oDWLW09e7LTDpkBic928v+AzlLMM9+vyLldHGDBxamx+1UrJvhw\n0VY+ORjjch99pDVwLPNml5NmOt2I7SPyPFlNU8wIczxES1xnXEv4n9vGYjky\nEHk6d87/6KW1E/gH+p7B8se2M/l2/5H4jH0oI2P9tHcm9nFpO0W8wiWElBM5\nY0mdullFOUsp4wiz4BcejEIX3pBpVR6yWQbZ10wG789FYDn6QazzUUR1L9Tz\nK9bgEosGil0sq3O/nmXMXe3BXdvGQVUOUNVf27o2r1orHv7DkpoeL6khnVSg\nmIabDkpwefTXbZ5zmG9F2j1fhMuklDwGOZvu97chu00Ru/Fa+jU/QNe9r96Y\njkRz\r\n=Dxiz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDSDmJDZOQWHKsTYkv2PLGnO8eLZTCxxo92Te8Yi6f7qAiEAxiI/PYmca0WiDZgW+wHheXFA8sgHU0cY+7Aic27d38o="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.2.18_1637400043384_0.10240037814136027"},"_hasShrinkwrap":false},"1.2.19-beta":{"name":"francium-sdk","version":"1.2.19-beta","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"readme":"# Francium SDK\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpDecimals: 6,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n## Lend\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'SOL',\n    //     scale: 9,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'ORCA',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   }\n    // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","_id":"francium-sdk@1.2.19-beta","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-+7uCqOE08LWGc5ZB1aFu/q86N165ZroVHBkp0NQZX2HfhP9Lw4/UCHIwLnARfD0hQoMe3Nz7TVWJWU7fsGwOEQ==","shasum":"97dc465adf31e52d20e7e9eafb960cb5ce1fa6b2","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.2.19-beta.tgz","fileCount":92,"unpackedSize":1654229,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhnHziCRA9TVsSAnZWagAA2qAP/R1LYHdQpqvkUpwOva7x\nJrONAr+/2AAQHMMWKoz1sdT3So9elHobYbVIbY0BCBBUIj918nHJTVy84q4h\n/CiLaUxxYYpzHrRF6+XLokRJxS2u1rV/vJQvs+fmrv3RwcdMPCijRXSTHtSq\nEXXEI4hP2bi/H/huW00qKn+wnXECPm+lXllMdY1UMh0NoY+ViCFWA9gI1cSU\nsFmv9hy8f/MuI2vqWWSiDXhMnfmyUPPSsJjDPjfn2ftZEr0M02gMz0kriOIx\n0DkrTXXBkygHShTM703wKriR0vPx4oHBbAln+8GCNVnPPJ98Q5jSrLve+JAO\n8Dt0XKu3+43bKdL0nJifUmXxffdseJqOTsYaSiM6OmKUQbS/J/nJm4fQPUmD\nfo4ugROFDg5c5ufBSpkjTbn8jwNmKQBDU4dvFuGubfygLj5fltflHDVsBSb2\ndXZtwJOyCBonYEBb93CJEctsEO2hiZZeTIpQwtJEVEzSVk6StDboxYSWfnf1\nhzQU0Ujjk4an3jQxVrcmQjdCcM2LwG2xBuWc5IbqNcxFytzThQ4wWi/efHQg\nHY2Gu7iW2EFOnlb9vRUxAL2OLhQkpmNOdv4CVYIFfAbK9EJxhoSf8XbRgpAJ\nbRaLeWhVoMwU3h3/AYfczr3avxGzXrKWRvhAhpuLu+2Nfx+UVwBSalpvexjq\nZdtI\r\n=KSmX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDodzOBjFXrIJ5s1kMVhCx5edoX01/hqR64GG9r+tg/DgIgWsRN08NKYtrgr9z6ixgJWqNUiWcMjsrkqHI0c/ihmTQ="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.2.19-beta_1637645538003_0.3246502731243426"},"_hasShrinkwrap":false},"1.2.19-beta2":{"name":"francium-sdk","version":"1.2.19-beta2","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"readme":"# Francium SDK\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpDecimals: 6,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n## Lend\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'SOL',\n    //     scale: 9,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'ORCA',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   }\n    // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","_id":"francium-sdk@1.2.19-beta2","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-cFPXEAWvl54/fttH9OaHpGi+bDW6h33DpZZHaI6Nj2ApXfLTpaYq9gH/Yq4SABBZrNy0hNG2sCUfUVYYKiL49Q==","shasum":"0504086dd62f0e5e0dde22e2534a4af44c700863","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.2.19-beta2.tgz","fileCount":92,"unpackedSize":1650814,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhnH6gCRA9TVsSAnZWagAAvcUP/328XXaPSEVSnXsePhkf\npIIR0p5yFc8ffZ51HpiMENXLUbVWqR8alem5jerh3AVGgEmK2s5d0lzIE6A3\nh4UPXERj6l8Q+LkFxQCIeJV+NvTdRVHWEMqjipLiZRGtb/a0rk7cJjL3paL7\naJprMme8FAvTRCY59xcerilkFFr7BXXUjaG48NLRitvlCCdxdZyO0R1+OPmu\nUehaWYmqdUXC7oyMqWb0/rMok8YBc7Zapw5ME3uN8x3ef8fOVoa8cPAaXczf\nJG5z1zAlkoH1qdw/St/sO7gqMsyFFTePm1zkZYp41htTsbvaALIT/QmAHYAX\n1EZX0uxBJcZgzyvaC1NxJXaYI3A1hupZ9+Bh5i/zbuEUwqRnyBLRp+gnTfnQ\nJM5LliRUZOkD+V4nZVMIw6ZkFWH8ayHA43kfsX6aHbSCDJxtLoSXJXaEDfJc\nTXw2oO/TomAHh8ky/fJKWVKRma0/VDLDOD88rMt7J3ZhNitTXk+7ADWfkBdR\nEGHejS7u89AF8Ze71uhS46KZxhTgTaZZ5vMIl88XhNGUN8yItjek6IRQeTNl\nzIMM2O6A28ByA17tjiPJx28NvVbnluYKe+yl6tVswTbG+/kYRaHwhWsSf97Z\nvIxWRu4D5UqtGcYmKz0UeWwQyHeG2xlhmBZ24+EoWlYK8ddoRVXfZ6cYMOp6\nqzAz\r\n=cphj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH/txmpXn5UZkx8xgh3bfKGvDWR9bfGdgsYhJ4ACsd/eAiBDCBZ7W0j7TxW8ZVtBW8gJeK/cyQqlCe9WzEOPsIjCGA=="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.2.19-beta2_1637645984036_0.49841065163618414"},"_hasShrinkwrap":false},"1.2.19":{"name":"francium-sdk","version":"1.2.19","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"_id":"francium-sdk@1.2.19","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-xZRONkysbw3qcDG0EffqXIkh9CkZlnATBr7qXJONCdzV3qadGnQdgd4JxNzN81o4WzXyfNRTeDft3bMxwol+Uw==","shasum":"01f7beb9aea67e0c66e43564a398aea257000431","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.2.19.tgz","fileCount":92,"unpackedSize":1653642,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhnIoqCRA9TVsSAnZWagAA0DAQAKE/gAIGc0QgtMvcr9zW\nozVqckFoVxxt7KwICEj88t7VUJrKXi7Nlk/JAY2yME7zTpR4q9cTN4eV2COt\nfQX6Np9kWjBG09SeG6KJzwxZl2SvgvQ+SCGASZa2YS+U1smkdYxj/3Fo8LC8\nxTzNdN+WfKextLPSljADmXFMZ+D+lzomeE86sEWoPBElY4i5ZnzVfUtw51nl\n0InGM9wq+zudLeuorWI7Jb6cdi9MWR5qGLae16S1HNZtBPu8NCSB17Qz7//x\nMGvPCn654ms1K0Jh/cx4/QGDEdsS+pH41GWFCImfoWOJNQqeSSiHykdxWoni\nnYwuB5MI/PBZXpNoCvAWhsSBdc0yuOSJ35gWPtCFczqqtwMHEie2dVi8T/gD\n7BKBC1U+tSLSFl/SiWgUJEO/JQaOvzOjNT6AEgMnXWU2ebrIAVa6DQvL/hTv\nvECqeTkHyrn3aQk0nZ8uQY4WyVB6tJcNP8SXNFNcY2miTuSqgHKDzg3L/7Bb\nDCHLdmu97bLJCn2jlHC+wK1572t3epyHeG/vWshi2jGoJaCKnbwxqrg9Hx6Y\n+CUhggK+J45rTBglaNltr5AVTEiK2wLu0FWDKyGd8Pu20UkUZT0aoZb3JW/O\nlHwR1VMfMZBnRKpwttdGaFaFck3WzcNn3fsMCWfk/62S3lbTf+7IwA94QR6J\nmHPj\r\n=nqhl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGMqa4lDwCBzUCvlUf1ED4hRlOpfMYX0AlspAlh4z782AiAHzKzVOxBLU4O+peL911YDBtkPJVJcn6FhCqHkEJZn/A=="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.2.19_1637648937827_0.5960138466290674"},"_hasShrinkwrap":false},"1.2.20-beta":{"name":"francium-sdk","version":"1.2.20-beta","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"readme":"# Francium SDK\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpDecimals: 6,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n## Lend\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'SOL',\n    //     scale: 9,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'ORCA',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   }\n    // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","_id":"francium-sdk@1.2.20-beta","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-Z5THcSzAms6zj2tkmJCuhxg1y5BjioItBaD8QkVnIKQPyGM91DoPms4ujXc3OAH5xkdU+MkgphN2w2gGAZ+VyQ==","shasum":"4c5e6c554508fbb2fe39f474a6698c1ad301c5aa","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.2.20-beta.tgz","fileCount":92,"unpackedSize":1686880,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhnwxPCRA9TVsSAnZWagAAdy4QAJsOt1H4YCEyuALi+m9Y\npj4HomhC5QU78LoJrg+qGvUVEylw89Ic0cw6rLpX4AGe45sLXh22gh9GAMj9\n/q3xfWW8flMMqQeiR+0AfPii6wtgxV4YjGtXnD/v+7bXMrrEryarV5vIOjmX\nyA69dwKJ5RHx0S2lFmRxuA/v2LaWi/x1uiR6FV+iTJtRVdz16Xk8mzcETebJ\nk6WG6VdJP3YQrLv6+MixAN3hJRbvMShwJoIoqQIShLHQASXLwaJVqjNF9GBN\n1WR8+bYDvhTF8+eqXNYnv72e/ciTiSjIESYU6FCopYBsjktmpzb7dT8lagaQ\nYHkDnQN/+eoLxKYeshEA1zzpWWOFXTwWwxvo+wJG37O6icBlDXI4FCbCb2P9\npGV6DE4GySzWXqWUI28rSeJkUUzaRrvIRHggpfm8/2pmjc2vz/OzPndgbI5d\nJgw8P4JVzZA6HJ2ETRMc/m2AnbZrLsCdvMQr88y3zemed6UKMgXwceLJCk03\n9V2hxexZtqKf60TuCT+8NLDyPTaNtlfTz2frNHKHeK6e0lTHiz6ZQydlA5RN\nkAV9Vc+w9GvNkN3rfp2HbOjW+R6MOTt+jdy/lxEPYT7PA8JfD2260gme8qDk\nux4I2Dho1URSVrniI2+9Y6UrcLzpAUZkuq1oIUtfA19i6LjQQZ8z8N6Lr7kH\ndxhr\r\n=CPMO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDXU5ubXrVZqNCDpdzscelEmefGAJMHY+vtUHZFl89e+QIhAON8S+/zc/uy28RoknshY111rT5TWuOa3SwICitHMsU7"}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.2.20-beta_1637813327272_0.24877874082373785"},"_hasShrinkwrap":false},"1.2.20":{"name":"francium-sdk","version":"1.2.20","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"_id":"francium-sdk@1.2.20","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-sGdBvE5ovq9jv19wM7F4SGWa9xKJYUn/15R43RnCGucF2mqbI0licwDUKq5JbyE6drGftYdjHuVQyC1BkUlt+w==","shasum":"6095f6f875874318e6b77f066b1d6cb3e593b536","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.2.20.tgz","fileCount":92,"unpackedSize":1688853,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhnxS/CRA9TVsSAnZWagAAaMEP/0keuPtdzl4AKjePj8IR\npBxaUVpp0/SGO5ds78+Xggi0juqeeJ3F7IGwWrm44qwiJULwLNiAcdLSKmBA\nXlxRaLd1078d9c1tMpQah1EUPL20tbjXmKmkotVkFJr72qSBeYunQuP4dkUf\nh1gGC1UZ1qCUynz5p/Io6YySxh9T7DXnIQlVJD7AtyPO8xkJrzhP9jUNNdvW\nrgPa0TBepGgzi7mf21/FVEmdQazLqrkSzlj1ZXkB4qWHoxyT0OkyoBN1595g\n+RNbdoms2mEr/ftjsr261WOYahtOTa42RI85REbbjEejegt7zdaQ3+EaUrd8\nMl8yWHY7gUy9ofUXS8Or+vlQu8TC5RH1rBuDI6BFmYD6vXF8ZCuhduAek+PQ\nZacT9thhpo0D34ihJQJhhSAAk/mCqsEZgxlq8erW2S/O4SwzSwYjyvxx+ze2\nggHjoMUo9uhCeLD0S0pSu6VASuCj6q2LD1zJqnnzhAtVogaHL5wEq/tXQhmj\nHYCvxpmk4USTreJ/wiidjLyjmcj7uxTC7teIDAyjlB4lsyr49GugBoAj1eyi\n+M8j7h/Y0ry9UFTijnMcBn0Iz+pzOO8mBUNmKezhagzyqV0TVFbWp18jHWqa\nn2/FbEhogdCl7KAhlG2gJ3gIZ+d0Ej0kgQAcMOuQovISJJyuFJyEneE9wSFR\nr30q\r\n=Vyeb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICXz296NCjRZh+/S7UyLc057yezYwX9bHn4nvW7vKwJaAiB0WyNmmKyGpVlKuwy5dU9O0RgvywOkpWfJgUsjeP0nOQ=="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.2.20_1637815487372_0.09022386963296691"},"_hasShrinkwrap":false},"1.2.21":{"name":"francium-sdk","version":"1.2.21","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"_id":"francium-sdk@1.2.21","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-ReDpprQ2wLcwGzA9DRbKO9sdXRW9tOYFEyw23uqh25j3He+lNBFVlolKTBkwphX7UOTifbmplcVt77LrGg079A==","shasum":"d0701325af691182846d904dca4a316525fcda0c","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.2.21.tgz","fileCount":92,"unpackedSize":1688924,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhnxVECRA9TVsSAnZWagAAk4EP/jo7iT1upM2448Zs8Rg2\nLhO0r6f+KuVEMuFAdno4tfADxsH4lsLyfM95rE5d2K5/+aVL0cP1iS5fm/5n\n8KHoVcJzwThXEBwAzkWYVYd5qKwOJ8BdTDF7VxRGmwsh1RtIbsOY6YKmK01Y\n0rW2ySVMJN76udyZcOXQbJzy2bqWt5JDrEdgjwMssJU8KiaJDfs6V1x6fq+O\n2JcsnfJAQ1b+dmJnpI/PN2hr3WbNW5vih0f0LGTf/+XdO8LCoWVujoc0cdgI\nymBadSZTjVOy/LNY318z5Jk8MnYCH5HRX/ubj5rJkjVHM5KgpdlHDOkpoBg3\n8NujXm+8BCfhiRDEHA+7+lvKJRQRBIqlZF4RlSSPLBG6A3ZRGkLOQerCAf3C\ndpUfHWMhQFcudDI8yfPLvyJq9sKZDdIP4VlA7w5JlnKixYbgG4qXCkWl8Dpt\niIDkTxiAg618p9n5RM/vZGLEJriaYg1kZ/X9KjlSCjcBhzXgLnjtvpn91DL5\nSlY6Wytr9fyHoWeH+xCcL5EnmKwaf12fryDYy4wt8KEdHs248d4DsV59/SEo\ngP+sdf21aCpKA1JP5Iix0ScmPdwJV20iAfvDOO4hv+/S34SPLn2Y++sJ70tt\nF8UptIksuF5Q4cvjWnGng9mjy2RWkf0l6+LXjpMg9QYnbAQDN7mhsh6QgxPS\n7bjc\r\n=Qq1W\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCqki41xca72lj2d0dVfa/vS15wTuvHRcrU91kFQganGQIhAKD4y9nOldPJBvPdmxpfvAr81zflg+MDUre2qYYjgzZK"}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.2.21_1637815620287_0.7918685022950553"},"_hasShrinkwrap":false},"1.2.22":{"name":"francium-sdk","version":"1.2.22","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"_id":"francium-sdk@1.2.22","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-LBsH3crcKAZahxMWu7Ye5lwO/TIt8Qws++xGsjPJWkHryGXU3gJQAl7I4guN9+Epq8j3KpRSMSkQcaCNqkIQAA==","shasum":"bc30484a4c4e1891b2ffe4d85404ce63067280c9","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.2.22.tgz","fileCount":92,"unpackedSize":1687021,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhnxVVCRA9TVsSAnZWagAASQMP/1+0CsGVwL5UwsLUWHzM\n5+Q3qow+Nitx/yHFqBOtzFd22+/kH2WzcyDaLD/NZYibyB/vvWZgc7D9p2BN\ntC7jy+cNdhR+pVImnV29/e2wbB/EwK9JdZmS4GoH6J5S/5oTEDnfjvAupst9\nDMIM1T9iU+agXC9pyZeU4Rf716iV6b276IQxjbmgSEA2NU5jCTlnBqmfJtyt\nlVI0LjBlPiHbLE80ncfwuGlaFpVw0Ry+o5JXjq5pUs9gOAfS+qduw4q8ksWj\nojF60XiD4TWNHusCHiAj7PzsE2YEV2+Y9OdlOVM5oizEF4dnHv9ttQ57+jSE\nM3YUstkzjFIo0Uv+kQlJAcwnjZQz/TDKgEgZgCnwqeFMhVQ7CXZxR7M9m57Z\nCSF1sDyho8R/lXTFXBrZfUBQmm8AvVxYMXLRuL4FseMcOFannodoUsVzBiDe\ng9oAEIjrchhQopQKSTo7NwnvQP/Zw4bP31e7YZlJCxOoSqhcdGuSJb8bhVuo\nkUWaEYlDeN+kCLqNE4jhbOUCF8Mg6l2WFOvG8TdsvcCed3ckDBMKUqu+ndmb\nQnBx36M7AKm66OiwAyJ09FgNOKZiAZUpfWOXPXkpVsn85/HoYlzl2R+BV7Bc\nW3j78uUUo2P55eJ66MiHQfkbxLxa66Wx1hI8tnDFvDpTXVtjeKtaaYJbS+er\n3sNh\r\n=zYBL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEov+FOE8FQCJX4Yf4he1wDbvYQyRkGCbrPZjHpkRn8VAiEAm0jKJJdC+fRk2nF0hugjSQxHb3LQ7JjMdGFWxnGynkg="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.2.22_1637815637765_0.8105823067322775"},"_hasShrinkwrap":false},"1.2.23-beta":{"name":"francium-sdk","version":"1.2.23-beta","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"readme":"# Francium SDK\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpDecimals: 6,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n## Lend\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'SOL',\n    //     scale: 9,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'ORCA',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   }\n    // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","_id":"francium-sdk@1.2.23-beta","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-VL3Tzx0wQzgEyKIXoUjaSBE7hUttRR2vfDFIz69Hzq+pZcz9aXNzaIWfwPuF06wfBRTfygK3s74Tt+NtQ7C+5g==","shasum":"8d68a796688e5a2cbc8f05ed01250cbc50a19932","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.2.23-beta.tgz","fileCount":92,"unpackedSize":1720676,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhoFyyCRA9TVsSAnZWagAAM3EP/RPY4lod3f4XLQFniPJK\nwXivgXnQGLedSLOCkfkl8hWyeox0oTb2jl8YsxV4H+IVbfqLvw8z83Dqwvpm\nqpk8AR/E9O5RAOARv/qAUgFbH2fX/sWp8j/rRTN4NE3bZloivXuHDRre8Mfb\nnwm2XT2zrkQIYGkG3aI1jOXK1eiY8APkOrIi/wtJFJMHWE2zQfpl8r6sRzuC\nkAIx+RnkCWuqGhj+9+YGs6eOCLW4eI6FVoNjDhmZvPQ7/Jdor7qRBvYkpiL7\n9AN8dOF+KYPM6PGCGcop4monD6NsrpfB1qZwrS/82deIjTWXR0K+e8lyHwek\ncSevPYvgGF5KtdQSv9zAlwsDweD6XKqB9xE14pLI4TEjKCN3tdjOBVEC/pn+\nSMRXTXZMYuZUWIEdL2VuuvRr4brnZ3YdQOm/cAHGGe53psLcKfJBI1EjzBXk\nsnFLdrXezdsibiBtrLgzw9rcXtaNLViz4HYHsfovGSl9EIUneh5k7XxZKfE9\nrNkexLYvgnBs8eU2BDz7BcZ6z7CdkRoORfOr8vM68rBSonLQlzlFr2pEF8my\nCrAxt4oTEK1YpabYkOKeAwZ8XVrueTDwVvA2YjEVU+UAj4nPKVbHH8jV3Ylm\nUKHMtG9XzTEkRiWME8eaZWLd+WCjj4gy2n746GSQ4ncu7iQiJmVzkRAykfrY\nG+lv\r\n=HR4b\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC21Fv8c2rz5aYCTu8hkfv5PNr2Z0iJF47G+5qJS/S/UAIgcmGlTdp92hb4dIXhrUbETPFgs+MCQkSE81WHZ+3N7b8="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.2.23-beta_1637899442569_0.3456089445696031"},"_hasShrinkwrap":false},"1.2.23":{"name":"francium-sdk","version":"1.2.23","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"_id":"francium-sdk@1.2.23","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-MUMT4p7MRzzR3J59mS1pRSTPMAvXHDYu6iuJ/+/LpQMYFWQ5FWs06S9zguD8iwuAi2Ajy/f/jDk/zTzUfXrebg==","shasum":"2bc5a49c3b9763c4dd16f7658a6719d0757289a7","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.2.23.tgz","fileCount":92,"unpackedSize":1720915,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhoJeuCRA9TVsSAnZWagAAx/QQAIqvgHNMk6BUdjPYYV+Q\nhKt38PxSKc738utj680NBsPziSqwznfIcEvg4es1Yab+e1l1cmEJsEkEerM5\nVQs1AYe/9LeETLf8Lj62gbOL7sPb/cvwVKcOvU1vwFt0IGIuPBTgFV4shx2f\nZhpdnqtHvbYPYcpmJtwP6zbx3DepMZtPwSohsbtwrE2sNfz5dlRWYfiFAoUp\n50TpIskluqAIqASlG+CYLofivEBV4cyfywQenNN+X9f4A7ns2QIa1LiIRaFP\n18GvLZJpHtw8JUgGqHZa+WBxjQVnVtQ/ERi/P1fAhdQ/CcW3JlyWpQl083I2\nrTldE2fVDn1INRa4CsXiKc14a607ZXCG9mck9Wkw0lWsr1dTyiYKVsoBMdnc\n74bm2uRxf+ULOKouzRfi4oL1ObQjOuIU5o4mHEcBrTkoqLg28Mm7XyDVkw3h\nEV+zSl6KNxiecVqGHCvG1x5YVXH67jcBxVkvCDYTyg3DB2ctIt7GFkyJz4dc\nTcNUbYVQUbuQAEwyEahjTCufnfndKQICcQUiood1uyxHap/wYmlNshUvhFYC\nMEYRpSLA95tK2qdD9Oq/5BWuIxqOCxgrqViPq2boUnrShLz3WbeZS6EqnXFW\nsCXiOuWtQDLS7FP9Pen4f+nu6H8mPdiP/ryhVXc6G7kW0ZaQ7mATfHKbvvhW\ntwg9\r\n=p9T9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFVsN3f475tgMYkKCjFQ9JeBwdi+tUutXLhEJrsYelOIAiBc9If4+z5DKx5RxUclxSghxo2UzzmDYgFtXNvLN71u5g=="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.2.23_1637914542102_0.8446788952921866"},"_hasShrinkwrap":false},"1.2.24-beta":{"name":"francium-sdk","version":"1.2.24-beta","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"_id":"francium-sdk@1.2.24-beta","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-1xQ831n4yIQvCexrSuqOKw7Gwjwa0v7SBQuV0eCfdbiUVj8wvB0GQq80Bfd+7r2y4Eoqziy0k4p90RzzawuMfQ==","shasum":"6eb983d2e1e35110ded997a0da296682f8e3bba3","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.2.24-beta.tgz","fileCount":95,"unpackedSize":1735630,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhpxHJCRA9TVsSAnZWagAAU6YQAJ7NumDITL+smvHc9oA9\n2kKt/k+U3XdB95vjVBQWbd8I7tLo/9GMBAxn70xy34zJcc40YezFzYV1C2cJ\nC2TCsC3jcrbkgN+2g5fFRAtoKsM9YkqNbfNcN+NC2wqqMh6oAxePNeGksBWi\nH0MZ6jDE6dHLYJX+n4x7vW/CNgA4aELMhcgjfl57+TPb9FFruZt+hwyssipS\n0Rg2n5rcj+VZgllkbxKpfmF6jFHO0gLIfv/BwoqllRqN5NiaYOsMwyJi9/9q\nTwJPOZvg3jXYiaeS1V1FvKEaU4IKFkh7SNFHKgRezNAPvOMRnYrQ2PSkOIJH\n0BmZ6DDWNLaB15YTd1QrnoiQewciZ6jmQqyhM5WUJbCvvDEgf9HTlAOieKdF\nOjJ5bzaRkiH5MF3teMr7g6iZlGmYTWy45wQHgaLE9Y3z0Ty87Anu421OepU6\ncIx/MwK9Ywy/uD79sYgnI13LJnoWuR4LzYQqjWtxDQwwTWTqdHEkeDewNB3w\nPrdmihIVQTepV6ZEeuQHkzNX5wSXmrT2PFkOxitMEzantD5SRRmMdQpRnT8T\nretTX8hJxaHotDs1Hynv7dbbS2lm+X1yJTi0b6WyAh03vUGuPy0Fd/2fiL4S\nKlrSxqhDjM51sTAqwYwXLC6KF5UAUwyAlSjKpVW8EOWn0pqrrJYkRC7RtJzN\nbX2G\r\n=frWf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDf5jOSOwZH1kW5cxHdkuQPt2QrKkqU3+xNPHF/OVDe4AiEA6FhGsKYT4jYPBR/vSR1+MphzOpkg6ky0H/x3Ww7dE8o="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.2.24-beta_1638339017104_0.47503092493247134"},"_hasShrinkwrap":false},"1.2.24-beta2":{"name":"francium-sdk","version":"1.2.24-beta2","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"readme":"# Francium SDK\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpDecimals: 6,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n## Lend\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'SOL',\n    //     scale: 9,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'ORCA',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   }\n    // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","_id":"francium-sdk@1.2.24-beta2","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-Ri7NT1CS/4SPR13G7jYMSNYaOEgsCAZAQ5OpXCp0mdmwndgQAeMvIJ2aSlMT8M1ghETOv3O6FO/WHYFVADFl0w==","shasum":"2f892192dc636f7a2aa7799188d69912029540d3","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.2.24-beta2.tgz","fileCount":95,"unpackedSize":1735631,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhpxHaCRA9TVsSAnZWagAArHAP/ij/GljJAlrsLp8tcO5F\n1qXfparhHfPqS4oqZurpNHWRT3bR+8svFFOeT24xHzbXv+lqQqo0w9w08FYJ\nZmza/QRFuWJCLPYpQArC9GvzoUs2xlAC2d+KhaYGoj99fsj8KdvLw2mBZno6\n0uZQTXY0Tc36jNdj/u5r0Opf52qSlJbFZPT3goIFp1/qclVAfBpbShiRYYId\nYqGMpJmNEfq/QDOy04IXOqyB69aiulUpvrBwBjWewwhlwWoexnTDAMQLW0wN\nbIDe0LYSUz7FrpGYIFKoFvHEgMLOEtPN1YHvXIamrs/ydeqq0O0Tr4PPQCF2\nKukbTuFqfPIv241OgSVsAGa1pht40Qhcm+XsvhJn1BsDJ6xR+clHB/Ln6CBv\nQyqG4Vv756/Qjuj6otbCTPSL5ZBNmN5Y8b0wG8runyUrWF5X494+MDmMbB/8\nbj/Uu2GXJkwPg1IU/6x3dMPO5XomAJZGZNUF7fkyfo6K18/6p04VohJkoyXP\nvFJZAAtKR4Je5My09oIWUnQ+bFf2Io8uewN4CY00Eiqb0pPC9vZeMaGvS8cs\nV+sGBdme5aJzIHDo+2kOUplSRe+7wY3c9btrXXsXGppAYwg1aO0myb/OF0oW\nNkVnZRQo6bnX3rBXlo22v3R5ZNU6Own0SYUdTJrNngcjDZ2ICRgF173GH4Fk\nEEIO\r\n=th8D\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAaFsOTKaTklKI+VmuFZcoPDSs6Ap5HN7m/7wV91nCSEAiAgV/uygsNSBwEcBvH91McWI1MnQ9O3sfoW4gXTdPaMWQ=="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.2.24-beta2_1638339034383_0.21049313178649154"},"_hasShrinkwrap":false},"1.2.24":{"name":"francium-sdk","version":"1.2.24","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"_id":"francium-sdk@1.2.24","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-rfn7n6njjVg0MDA+iYNKhrgC50/FCE+JhcTXGn8HGywgZRZiaC8zytGp9uBN4oDDU++9HTbRlJmrSb91grertA==","shasum":"5f05aceb53d90dfd079d6808c9e33d233718e402","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.2.24.tgz","fileCount":95,"unpackedSize":1735742,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhpxzpCRA9TVsSAnZWagAAv04P/3wD8uZYEL+JJv3ElINK\nhG6/JbqPk7187nXkNuJLx490GfoYTaptJpyNDZ81sV4Rjx+mw8ka+6G1Mq76\n58nabtQ0KAR+Sr/PukwMGyQL7iGM9napgoErLO47EDePdUvSYoXZ4Adpr0JQ\na+798xEB/OgFkFO1apCGCqOa8TlMOFr69eapX24rtBhE6GFfkQA6wZDVO15I\nIR8hEANqTFFDVx59/iVE8Lw9j2s5CfWQgmluelM74mLV1JJJpGNx3Fka+no/\nE3mlA3G+CLr0IHjOgfUY3mZY/sDQQYO4Ynvcwv8CroZea7iuuSu0ahZaMKLf\niPjE+1zC4SpyVNYHN2YCyUv6pdBWaZHL/Ak84celypubJJZKotCWIgrJbjyc\nSrOai3RHef7uigzsPIMbhGzmWWmLdjOD+WJ0UMj6XiwtWJd3kWdd9IQ5e2ZR\n6+dvc0G/rV07rxfJ/qtNqoyFsjNdw9bK/pnikyqtSHqS9L0My0jKjWrJP0sc\nf/HVDweuDVwy9zt6kQqUCLOvkkUNJONEaLwcYDm0qd8oKdDObbfTznHxyYXL\n4ygTvvUi4rHy+1X7eVjpX8jI3SNfMxEq57FFM5X5rd9Palzlkbddjsyfznyu\nkt+1V0IKfmy4ao8/nlj3jxde7amBxJy8WJzeIgu1v0e7GopFt7MnDGMbjq5d\nXlQZ\r\n=MGqT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGd6kxVT5TFq8/Li3t2Bx4wYBvwGral6CWjPDCQpdPRWAiEA1158Y88xx3gO1PmA/Ji3Hb8H3sJMiYvSLk7tOIZphnM="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.2.24_1638341865288_0.22280674843227133"},"_hasShrinkwrap":false},"1.2.25-beta":{"name":"francium-sdk","version":"1.2.25-beta","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"readme":"# Francium SDK\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpDecimals: 6,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n## Lend\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'SOL',\n    //     scale: 9,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'ORCA',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   }\n    // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","_id":"francium-sdk@1.2.25-beta","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-KC8iPauVkL/wmQIfYCK5oXn5Xb3krJqyYQl+q3gSVgWbS1nKM+zCWy74qUp2k+0Nyy2CqpN/zN1BjNtebnfN/w==","shasum":"c226c20880a955f206805c1259402df3a123a1bf","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.2.25-beta.tgz","fileCount":95,"unpackedSize":1850854,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhrYnRCRA9TVsSAnZWagAA4FsP/iUa7ilvcQ/Gvo3qUVUD\nKTfx4rWR2f8f2yZb3BuJReNHVWxWuLAdMHQkVBG84TuCMXVijFbQavbnsnfv\nikc6RIzW0nFCGLECdo2XrNPfxDdzTDEjMnx3IQ7wAT1KIva5MqphF+sGh6vA\nL7va2z/PEXXMKxctypBO1T98hTgvn+BRaTi7LEtzfURQZtDvkdshwjz60Wwp\nJCr0n1uenAMiyaXnnbYWw/cEZYLAKpODIYDGbuxB4zgDBAh5Fiy6gOmbUU96\n52WleCAp1OtN9dJ4Iu1nCyKCASuFAAETNUU3VgYI9FxtNAWQLyzBAdyBUHh/\nNha1f7xI04G/UiiMQ+e8SlJXpHFrM2+5AbLUKy1vXl0+qz02Miggvwpip7sD\nVyy8YmKzg2OrkH8PsUJBQ/VPZ8IJMguGnUbImTUeaiPr1aVYvKjsoRoziZeU\n5QSpOmufoIiadMou+zbzk0t/TCQBe2zastEthTT8frNrJyQsIwfrLkW3CP0G\n49At0s0UUmMA9tgCa9pjG5Af99cH0gFNmusiPV3nAK3kEFDANVvjnORyhQGS\nbLJKFBxEfvGkiOoQtuMvbgR+b0h83KWhCGXrnxthkEIP64o2WdU3BysvzNIp\n4hrHgt/xepJ9nGi7YCmxyn6IY3QjLKfA7uaf8ILi5KPJqKzJQYHjgVbLbLj7\n1Cws\r\n=QMIu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC8bcRyPhhxTSQ5WaXJEu2EJo/vgVUOEkBpomPM5tCNkAiBVOOA0guAaGHIbQcIwuFNHJdQsy+CN5r6E85NCINarSA=="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.2.25-beta_1638762960965_0.6423195514619209"},"_hasShrinkwrap":false},"1.2.25":{"name":"francium-sdk","version":"1.2.25","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"_id":"francium-sdk@1.2.25","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-eLME3VzKOJyx6FxRIAJ14xEd6nMKHFi1JCit5pn1y1yx8Yrw9O4LXMrFFSEIMCwE3L0EZdt7GDTrAyn/DZ/8pQ==","shasum":"286777605368014721af9272e6c13b3fee82f95d","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.2.25.tgz","fileCount":95,"unpackedSize":1852129,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhrczjCRA9TVsSAnZWagAAfJsP/AmvWdNnUCWXtmiPnJST\nqBiBvESZndzq2lf5QeVQGfeELwEHfnRPJ37M8M0L3KXchwyIqctOsLDfScaO\nrown+xVt6yBhv/rwUHYNUvXK46PsyKzn9XEQ7RpBDrSykpYXb1RcPG1SlGVo\ne8y4nBDGuqcVK51h1HC6YC4wdy1MvKPbQmBNYuXuOlSE0cOQvjbgMA0TDaug\nDB7WoxpIOOe7fL8dSKgt0iU+InvlBPkQF0KDoXbGDMPbEpaYCgdOg7pgmpcH\n79kpdeV7IFP2+DBrkOTH7NrsH8xKm3phQd+5blgopv1qaXz0R/uvtaRwyUrm\n/+qM1dvhAPOm4uJmiPwTgrVwsJkztuzK2pLC4AreMSUKPTkwYsMe5ysKRG61\niqu/O8U+kgUv3vicKqh2h5rLnGOgk8WyTsD3uSwMPBPTpmf0Pap3FaoBRg8y\nTHxrVugg3PFU2wmsIpEaYqmz7GLwcAoKcTslEDWTrhPU6Wtio5GleQHMvP3C\npR5lpd/e3HTpo25Yuv9m7swLynjx69XOCck0JocrpUOXxTEt6TnyV2KCtZv0\nHFD8EP0iFMJRCsp6/bl/DDHj+4acW9rVgFWE//HX6xyPe2h6rFrkJBiwLbTm\n2029Ets3tZCY8FZlwWf3aumSykF+3fZ0VrwdDDsobm4N9gydpQunsXiyLnlA\ngC+M\r\n=5tw6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAUybjrtPjaKA2e1VvLUvN6JlvIv8UGix2OhaYQKGhkyAiEAxWQjibaxVQk+CNwY133PxDQuCaD9vZ8ipUb2OdWvZ3A="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.2.25_1638780130896_0.07517781216178787"},"_hasShrinkwrap":false},"1.2.26-beta":{"name":"francium-sdk","version":"1.2.26-beta","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"readme":"# Francium SDK\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpDecimals: 6,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n## Lend\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'SOL',\n    //     scale: 9,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'ORCA',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   }\n    // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","_id":"francium-sdk@1.2.26-beta","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-jrdfOBQcMeKR3IpKof62vMaTkWfJJJJx9FpYcT1m9W1pGbeIna1nrMJHak///LlQ9D/r1PxVHy08l+vpu8uWRg==","shasum":"bc8f02a4f5b90e8111c8ac54c729a1b34d0cac9e","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.2.26-beta.tgz","fileCount":95,"unpackedSize":1850883,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhrvS+CRA9TVsSAnZWagAAsawP/3I9NALOVeaZ1rMiSY+n\nKAyxL1AEV9kZ6zF5EXvu8JkicqpyyDDQ4dyl1AS838JOoPwTZGuX12e94mtA\nTEVurM/Cy2+KciF4Fu344y6Wz8q9atVU+ten/xZH4cO+qAPKkS3TnITeMidG\nNGS5xKewe6v9XtNr6EvZ4DZ96JE9X7Jq3FFa4LM9Aw1jl+Rqy6oLLxXudmaH\no7voBRSKhtU4WHb9yMebX2agtVzQ4jchHH+UCOqbva5EkWcdKJ9vzv74Dp4w\nl+5FWhRMvn0KsghySXw00Lsa8hlwB+DjGCIvgoQae44x26fzrcmaGzPpbsHw\nsNj3y0a1/Xq6wyG/mnGWKgQh1kgku011LdcZ1vVdeiGR6dAfqvak4I0whhsh\ncD7mylnAYEyPKKuqeagV0mwJjepbnqHD9NWY8Vv7B3uwsD5kLutnobr0GsLY\nHFpXbdv61lBPaLZmUBs7YyqbCNso8dTNNj/NeTzidc7d6NZN1xNf/BiMrhSC\niElavOuJtBO4yONy3vpRSXzXnHvvk3JoAHyqV8Byn/MTrHLPk0/pRiND0ArT\nIG+OtYvdmNUwlB59NGo6H7SH6KNtL4yZz9u1LGCSGUr3eHVjohpr48kOVlnx\nstwDAgZ4Qzn0h20MEVymrNnOh8rIKYy2L7v4OyffH/JxSG0hKg4Q15/Fe9y2\necFl\r\n=DEaP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICt1rVfFJNFr5hdmBLZhiyRarQC0iStR+CMLG3ZwqJAiAiEA8E63J0EF2AY/hPxnsLkI3/sF8EytSsLpFBW2r3YU+YU="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.2.26-beta_1638855870261_0.12202287268674938"},"_hasShrinkwrap":false},"1.2.26":{"name":"francium-sdk","version":"1.2.26","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"_id":"francium-sdk@1.2.26","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-0jbD3sVOiEMiL+f5zYKwMNwVZ019mAdUfVZ0HCXbD0ldqoQ4GDM7vJjW1QqocUl5MqBrIWH50BaZm55Lx95vGQ==","shasum":"db562771258676d8a74ffbf3397c6795af2c1598","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.2.26.tgz","fileCount":95,"unpackedSize":1857013,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhsvUyCRA9TVsSAnZWagAAJC4P/3mLhz4ozpRJGMMfpHPH\n5xShSL6v7J7MmaXxjtcyvoNutnDyChT2nuVWWD0JbrSOg9DwN+vzCfoAw/bZ\n36aeZSidRaLmdcppPd2D+SJ2Z4LXJFolAyiy/AIW61YJeKfhCZA54Mn3ejMB\nGzTIBK9/XNaHrKl5Hn5bsmWwwc9+Qk0LzjE2+JM5wFO3EX/aD83Mnp1Y6pdO\nibgN/Pk+Mcbh4Hj+kFh5Q3bVQn/g3ZHm/D7QlO4QpJJsacR7YOUAojGeG6oO\nDo3saduw1rH/uG+k/YmKYl3i96YNm+13N+WWwSNHt12uvhYwxtcXU5ivwD/H\ndx4lA1XwuJj9EiOyflJ3bCTU+/FKRRYDRRkMsBXTybiIqn9Wo/1GQjJspRPY\nHeqPYCOCxi6e+qW/klIakUOgQaYF6HWH4kts+Dc4WmmVkMz/8twPGJTaVmtH\nQrk+bD1M9gZPw3jUZtgyE0jTR9AryinoaqoMRTS9VDlCE8FoZt40b7rX9TZJ\n2n4dx4tXcGmXucTLxzUjx1CMp1Rm3p9gQe1PA9SeWxgMbEIyNgrJTOYbfYS1\nXYT3D4Tc16iIxt45onkr39do9yf6HKJ3QXHYc1DhUQpzHU5iDwsg8DHAzPoU\nXyYs0Zd8e/2bGRnUte4SBO8GgFQbR47YfJRDbi/SSDPGB7eOzggnQaQyjnCj\nI2Io\r\n=/Twd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCENwKWXT1k3+7buwYX/GSckEG/hUWxjG7BGZbGk1hj8QIhAJwbM6hw1AjYuggo+tr8/+wVAH5gcgBrbFTKeYvlU8k3"}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.2.26_1639118130163_0.09549559177005262"},"_hasShrinkwrap":false},"1.2.27":{"name":"francium-sdk","version":"1.2.27","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"_id":"francium-sdk@1.2.27","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-3nGBKKjHY/VNijZRMKfeT+oJCnTgNysZBLQTQV+saJjbxfSvLvdBEAzTFemQmcbbLwizHnqJ3fREPBpbUMF0GQ==","shasum":"c52f960555c01014883789f1982f50ade0bf8d01","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.2.27.tgz","fileCount":95,"unpackedSize":1853450,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhsvZtCRA9TVsSAnZWagAAx4wQAIJfsW5l8DjHaOyffuGH\n2gv1IWWqz0S+tEMYYLKYsFcWMz1IzdypUX9XlXGeHK7iRDOlRJ9hm8B6z43V\nyFR+WEaOMmiyAJ/JcUWCmbrmKR4wQMIadG5XS8tkBMQcnoRsF/n6TqJ4LjT0\nJESrR3IqKP+Zs1viCelZY6FxJBCzNcp4qRz9dvyeIJNLZm0gZxdXh4g53aKR\nlNneJ/LBScumuBxmGtanDhx176B1vcZOazRtYu+oDOnZizCRMDTaP+UZqoZp\nu3yT4zDWkl/GXuRN2YLdJr7IVvOFa49QcYQmR/eWAwTc0BrW5l5/9q6E5EEV\nVDhPOBsxqLf4S4puJ9581ds81g0Sib3DABDB6rpbrxFRaxubYu5fazSnmj++\naxXbLBrnClUnRSY6Z7zHTYo8xlVcaBUO2VVwBWrFSJacVgXpBHHW5zrYTO+D\nN3Pwtw/vDPeR2vxKYAjJamlbI7Xh2XFthez7AyWnWTvNoFuAn8vbMwby7ihq\nB/ltG9twv4IRmtyECH+jeiyt2M58yNuftdSeXL9b863jSz+YlULmGiCETPls\n2L3kPzM0uvnuZG5UJs9J6BPwGHr6Dfu9F0KR6VyhB1C6PUY6RP2Wd84ue9Yx\n6LcKRSpbL34Ax1tOTvfZiXl2LOTbJhTRX3Lb5uE997Od/8dNSTJphCGGy6gv\n1uMt\r\n=nDjW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEMCIHwEZAa2seD866Z0P0+V3mniRPwlA+J1BLpXmO8hBoG3Ah8AsS3L4jP8HwnZuZYxtc4maAIXhKSILrpyBUmkPUI0"}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.2.27_1639118445482_0.30768125779433864"},"_hasShrinkwrap":false},"1.2.28-beta":{"name":"francium-sdk","version":"1.2.28-beta","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"readme":"# Francium SDK\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpDecimals: 6,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n## Lend\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'SOL',\n    //     scale: 9,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'ORCA',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   }\n    // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","_id":"francium-sdk@1.2.28-beta","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-aoqeuRRprNl4AyJr93000IvYEBP56G2H6qxWSesqs44aIYakYi18rIjVPryegHa2mbe4Y1fT3jnfZmTAzDAOsw==","shasum":"4e7670671269bccb9c3a07b1fa6ea585cd5699c0","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.2.28-beta.tgz","fileCount":95,"unpackedSize":1872834,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhtJmCCRA9TVsSAnZWagAABYAP/1bOrKfAoRpFhW8qvoFx\nz3OdEeewpK/ccQ+FFLRP8CmfORLYKLVycefu+5FLR6G+EZxLRZJAKNuydqJ9\nXjFP+hi/3UYeiNHCX45VGo3zwmBuFFHYH7iIj3XSNESfHto0kRxq85sSI8qW\n/hr10TQNJ3uoblg0MM6re/OoZs0Js+i4yT4E7u31gNlyajhYXcicS9TaypKa\nL7ey4f6YIzz/9lFISGP/0FBjHN3YckcLbZUA8Xdq3de1RCiZHBUtN/NiVh5C\n1R2GXotGICYnrceJQh2NKn6JhIQXa7csboJe/lOWKVU/Wwgq1PT3fY03pa+f\ng3UnRvslIJf+DHrXAislwwAhnH5TGK4T/OW9BNO05JShqG7wVw0UQjemdgli\nWkBkRidITiSs7a0pdtbeBtRwiGc0vn++CqNmxjRLFPskAPYzl9M6GKN/Eqi7\n6gyVKR3aCOc6jyMwms67dLEKhr3wzYqo0983bsRp8DTK0DVJHJs+pnc3tKWs\nhdUsMPzLaVx2V10NyqQct5KWsGfr3CDq662ca0gjglhRMhyQmAf0A4PF8Eon\nka1pYDRWzcMmaDstO1vk7DYdPsPM+q2jULDUHFoTHG64wX6jAsP4OH6CwsYj\nrON7933tJZMvPzoC1jMO8xBSxe9E4ltx8uPmm+pEOQkEO/ulyPiLTMV+toPI\nGbxs\r\n=jvQo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC70AT/DSPUzASfhdGIOzkC6Wfjg6bWLRhhteK0XBGWBgIgOb0WGshjkAX2XH8P3FSLeQA5zfxcpZCvMJUCBiTz5sA="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.2.28-beta_1639225729881_0.13634339961405773"},"_hasShrinkwrap":false},"1.2.28":{"name":"francium-sdk","version":"1.2.28","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"_id":"francium-sdk@1.2.28","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-Il02VbK0V2mPmQw5hbIYBNPPI0PZ1x86KjlJEtckrUv5eBUaMD5BWkOWaf4mgmEL0qHInqfeMaB78v8ySD0vIQ==","shasum":"56308aac20b0f052d5a6d43f85f92013bf36fdf2","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.2.28.tgz","fileCount":95,"unpackedSize":1869651,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhtLoPCRA9TVsSAnZWagAA63YP/RcKCX6J5SAVf4Ehk2M0\nfYmNu505nQUN3RHipael3dPhby7XcaDMwv2WleFdzsDxEfEgjVuuOEF5U7Bc\nIGruQCbeLNZr0ayjQBB1Rs8oNhP9ClV+ahtOYn7NfWfT4F5DMlmk0jdZj0Dh\n7WZ2GeawgAJZWBF10eqeBe9rvMyXOO7TaF1KZ2hQVPIcZIHYpnIPJDU1zn70\nI2G85PBg052N8aeuAUOTjeFd12/+qGje+vuuVeXXZMEzkxPp10UlZdZ2DwDv\nIyqljuUvQDZTxaZoSXuK7NtEQSGHYpkzHnLoUdklKqO32fokuB38Hi35ucC6\ne4mIRW0UuYwqy/wr+R8Yxr/bTbKgwkQ5Xov8uMq+8okIfGX8H5gXjVjcPt5W\nbxalhiaXXIYQFBrfnuhtQmdb+OEHo496L9as/lx98T69K4W5c6f/kia/DHAk\nL2OY9mXrdHEsQQn3dsQiVyDKOSDHPxFP9sM3MtuBFznzWsrBMzvvmfUzLmlI\n9uSn9ioxXgveBVaneAI2Teg8AhBQzNnkU8Ce/j+F6yH3bRybWwmUYsUTf7fY\n8/HacOm/gAvri09sjlARbwkU4CB0HieChyEzLBbmYPm0gWw7Hs1Pp71ICNP1\nH2sOf5PsYX1Rk/aIxomQbbReACiRWX6ORALK+tKzmSqOGDzgHPRieEzMhQX9\n10ev\r\n=IA31\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCaj6BVUQWi96wFYEjl4B0DZg2CJCt9dClRHUXGLonHuQIhAMUdgoiQzYzB0pRGf2z43Hwg/gLSgP+lEhllDIX/PjUq"}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.2.28_1639234063446_0.49465296359111943"},"_hasShrinkwrap":false},"1.2.29-beta":{"name":"francium-sdk","version":"1.2.29-beta","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"readme":"# Francium SDK\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpDecimals: 6,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n## Lend\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'SOL',\n    //     scale: 9,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'ORCA',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   }\n    // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","_id":"francium-sdk@1.2.29-beta","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-y3Hr5/Lo83kW7QMWjnEAxvGW1krElHSCn8cr2OVJomNaqlSgbU/a3az/1DrejipL+euYQsFPwD+50dSur6WkHg==","shasum":"599d9e6ffbea30599ff484140dcff1c156df89db","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.2.29-beta.tgz","fileCount":95,"unpackedSize":1888901,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhtw5dCRA9TVsSAnZWagAA+9sP/i7Qhp81yAxxNqgewfEK\nFnm18Zbw25Fv+OuTOfPhQqYcauCE4eGbW5HCP+qSJTjaorXhxapKvVv3DkOS\nLkgyXicUCrVQJK9JlMBsL3KXCovA8UpZeaAoM7J0KV77PKdDJ+Bo0eB/yJWH\ngitCZ6ssNmYVNS73uT8rv5w8ma1paK2x/ovqqWWsI2UgmBsdi9UDkcFVFNCx\nK3rIhDbbmMTkixt2KInbt4btQzCTIYZuKI6o6aac53uR06cQlHrUlLJtbHB4\ndrDnnc8Arar7HExHOZwEP891v67CS4QX7X7HdcXMqmhYiqJKjk7NQzdWmwKf\nDXUTg9DO54VcNzIlX2Igz4ebigD2M1s4+jv45fz7bmIGTwM9qAX15CjgFUsJ\naK1H3sHQW6CQY+0vnEeqN2yCTZrvApTDQ5XYL/1B7XW64B7lr5Lk7sGPJyYL\nTeTEC7B9q76Qd6nnrv7HAEYJP4dJMZZk2DK7JTdKqkh+jdW8PUFPrASNhw7M\nxvAjQbULld7XoCu9JLsm6a26fhw+/1QuBVgRRRAU4sHs4mfNXFHrcP8KTAoa\nP50gLZyS7KeUOwmntJWLJ12DDfHwOUtCb4VttZRYl7SiuYJIwi3q47DX+XQd\neSukUD8ar2Hlzn/dOQZ0u/bDL+oeAHcJAiguC+y4vH2MO+EjM570OwUC4Yky\ndclX\r\n=5ixp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD6N9F+5HGvvq1l1wP6QlsrplMzHaNeV+Knp5M71Wcg0gIgYe7/MngjPPvG486D0adm5pdVo5D7m6bG+QJzetQ4iNM="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.2.29-beta_1639386717352_0.7638772305588735"},"_hasShrinkwrap":false},"1.2.29":{"name":"francium-sdk","version":"1.2.29","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"_id":"francium-sdk@1.2.29","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-sVjAdU6a9RSvngjsL+UxpwEia4NwfT5nuNIMaP0NRRGzESGc5SCehkbojpYqHYdg3Px2UNkQisC9YKkE3nAWAg==","shasum":"733b8c3bb0f7136df6ab5e14c6716062189ce0a6","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.2.29.tgz","fileCount":95,"unpackedSize":1885811,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhualGCRA9TVsSAnZWagAARDQP/3cnG0xNF5p5g4oMHL0G\nvfNc4tRq9XV8tQFSFIpuo3/+JjFMn0/gPSHTEx78jfb1avLf/nT1Jt8mFmGf\nEEIibgYSkNKZDiix4Voyt4h+45fcZS226aoxeZhKj8pP45ZHyYGQe4BqBE/V\nHKmq1p/DVc8qfm6U/37PVgNioWgVw4g3q60TkcWrOXtEISOrrs6DQY7dRCIh\nPRF/bP0bJiZFFSkIXqvCPbFnTu7lQu2ZPcpeQxR3ufEH+9CEwP9obWb//Syp\n9smDEVFv5MtE5r8ha7jyozgYViw6hM4VZTIDQ98pffUImGQcI8/f5BkQXjSe\n+U+A2YdIG++g+K94Bi+oT1+z9xwvCwrAcZfoXtl2akA5duCppc/2W4hiDy7u\nyTtNY2YQQnHteFiaMh28UDyY0qf+VVRR6kPqg0XBBnAUMj6AO2AMM46/Xbkf\nAFbW5yfKGwhA50vU1CHjsTjc0nTQ9TGsKWtZ4gVcY5NnOmoAXLJfC3bgDET5\noANVefU2qvYkw+6aIyQ/dwoLqsQRwBfgMstqvsiMWunCB9Z4JneN2QX0U9sj\nF161xdc6zUVVnbwJvJWH1ljZUVI+bNQ5pzRoZRdBVc0btkla+eX8Iej26NOL\n1TSB7h+33wHSgAQUJwBvgi7YtDhqFaeyfK+fH6T7GWHb2UqmIbpMbcuuizsT\nrMpl\r\n=1PLg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDi/Te7JKwl/yq/C+8alZ9YEA6RSJFd+HnE8gKkm582wQIgKRx9KGvRf6u2OjdUonf9ioWDodQQaTWYQoropjnEaxk="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.2.29_1639557446779_0.8359724375553814"},"_hasShrinkwrap":false},"1.2.30":{"name":"francium-sdk","version":"1.2.30","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"_id":"francium-sdk@1.2.30","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-4TWTIWsN0JuCVSwIeE6tAg2p6rTVWcCxfYhxEToQc0oKyzCxD2P4an/2mhhnD4b3xnsf1o+TfOmSqCI0b052tg==","shasum":"bdaabbf2de0c8c67ba206179eab2c2aebe2b8067","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.2.30.tgz","fileCount":95,"unpackedSize":1895714,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhuulBCRA9TVsSAnZWagAAl/UP/R9L39IUChen0Uylilpt\nt8v3pT55iGo3A/rHrSzJ9nDE7vJIn3a33Jo2C9ZVfxcCH+f7TUt6FxQaWxui\n2/5UsgJZv3rWNHQDdWk60ACSOCnsjqtajkOaLmYwUldwU4YOxG9lhaQdGaOo\n0t71stfJu50HmsBM9A0y/M/QIpUQjgAN80v8CjA8uCTF2isxAOOVsEgSBrCd\nT6bzlrQCoZN4n8GCFH62+zYNDPw5CdbG6/SePcjdFJbuL6k1LJ3ColZkilO4\nVu+13a//Dwi2k9eCmNpQVIs76ivab6YIyuYDisYwesOoafHQHQ0t02HMGKtv\n6Ln+JuNSOEGVUlmnCvMsVRNO1OGY2th2rk1gr/jrwpJ3wD5VLg/a52v1/UN6\nX8QG3X2ajB8G9b60foM/z7T64C0bOO9VjS9jJTwmQBr2mDT1Y0vgMttlVbhO\nj+VJOuGmZZVOS21EL+zFTZfa7Jg22L17dLvbbiGH4DRcQcbPTZw+X3loLiJg\n/bb93UN4pBumowG3tgatrRiE5sVC692szw9nL9kvQIPgguXVlqT74cZVxoAA\nj2eNGujhCQgTDllec6LYbU1+SVoCYwKIY/QjOSBHltPjvi41s5gr6Tfo/iTH\ntFTMsssFQYNNmje8uc3k3ULN1cXAozkkk/8oBTgthd7OIp5yXWZlknfmVPER\nK6g2\r\n=kFvX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEYsTaE2xCke956ht+4cKKpX+14aIizjbF3QcvaKcfaEAiEA2erH6yzw5t2eF2RQlSZcGHoq/gFDoFwcS4bXzRiPKGo="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.2.30_1639639361347_0.25594643386671967"},"_hasShrinkwrap":false},"1.2.31-beta":{"name":"francium-sdk","version":"1.2.31-beta","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"readme":"# Francium SDK\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpDecimals: 6,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n## Lend\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'SOL',\n    //     scale: 9,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'ORCA',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   }\n    // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN,\n    //     apr: 8.36,\n    //     apy: 8.72,\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","_id":"francium-sdk@1.2.31-beta","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-Iz7cuMUWoAOQcf9ZlNA6UTIiFYM0WaBPc9R2paW9rVD05hlmirQBOEOQvUIJCqwhwrcUA1cBp6xwc0A1Ovbxiw==","shasum":"b7c02e7f8fc112d96221e762abe5b022d0d7b26b","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.2.31-beta.tgz","fileCount":95,"unpackedSize":1898984,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhvDSaCRA9TVsSAnZWagAAKpQP/i8iiZXjRmejh4KgFEBf\nEnfqRIC7dqhHLVfd93yMZXWVtmtUzCekh3QDCtvt+qagiW2Hk58kBZ5cjkgV\n9V8SwH+UFNcE/D57U1nqhY2k3cVLiBeCk9DwzVS9JTgb9Kh6v+kS2TZSNDkL\ndK8aspV0iiukWAuXnOIOOywKrnaD4RX3vVb1orQA7516KlCAVbDls7ysvs06\nJ/3/B9ibsqTuxyMsT9uz7gPLaUQwYa0/iD71FXhDiJHuikfZQd0Mq9f8qwAn\nJ1TIGqfg/ETRu5JuXa89wKZfoc6N1nfEd6vrLJfRkZhPJpSgh1Q0NJ3kqNBN\nR4tX4a4XCs1IvMtGCDwUrbEKv9LZO3Kv6c98LRnH65IvT2flZEkFejDO+AA6\n1ofw9aE8A8n1gz+yS0RX/0f16RPHIhaSDpYVvnOmQ9sm2pmtQH8aTPP8xrcX\nwYyfYH0fhT1oA2QknzMz+snPxO5jEEgT3kpwCuRSyicbvOGpwnqf4iyo26Ie\nK4xK9/PjX5tpa07ys/JSRcH7Pl+liSX+sZk/otmhb6ZKJ1JeV9PHHFTjCgTY\nLElOerS/IKjM0nQ8f0DWMPXOQRg9kGBEiPiUsAxEkON2VvINx63fgLzFQQqE\nJkM9oglB2xEr35e0Rq3KKvkNCfCTL0+4TR18koymus+5ZaUExsBHqtkIuBKG\nT7AP\r\n=gNDm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDVwFJoJBjxCNf3/VILSGjmzguysTpeTpAHcTG+VMiUhAIgaNzWYDXjYbTrXa9nPxRUsyGDy7QkEtifqUFB5q41/vo="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.2.31-beta_1639724186388_0.532351444764442"},"_hasShrinkwrap":false},"1.2.31-beta2":{"name":"francium-sdk","version":"1.2.31-beta2","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"readme":"# Francium SDK\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpDecimals: 6,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n## Lend\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'SOL',\n    //     scale: 9,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'ORCA',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   }\n    // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","_id":"francium-sdk@1.2.31-beta2","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-tB3SvCcktxbrLI96jGz49aCUKGeB17LwEKz8BHWYEfnNlXr8Rwp9iG3setTl6N4pp+CmRE5u0pHZl5jbq6qJCg==","shasum":"55359abe833a02561b5993891363b0588cd86f05","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.2.31-beta2.tgz","fileCount":95,"unpackedSize":1905174,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhxDQ8CRA9TVsSAnZWagAAVrYQAJeihmbOvyqQnB4td5bc\nU+ED1731PWUJe291nj1IrQITq492522bGWBNk0OknrJhw9QeVchCyi+DXcV6\nZMBd6OnAZY0KeOYWg2VyFqiyhxZ0vGcfX6/PFnXAW1j1nDVmOn0r9lGaXIC+\n7PtXV50RKNVMe6KfvSwxZDCQwW5lfEU8+LEaJuud23trAaLNay5rEnuVru98\nKNSd5GVwIFRsadZK1dRXbx0eQLN4uxTj9qXyORR4NEiVSW1D2bAdwgsA0cTm\nSSrzWrbGhpAladhXe/pCbw2gVkSxqL6ngDoe1qzga038lFbIRnAppcQaSu7G\nBdAZ7EJE39QyXyToC3SIkMERrLPLHOO0XnhLC2vRKr4NwfGjB9mH9AxPLard\nyfkgYOv53eK5ripMa9DPaP4w6BuZDb+0XSxbWtPbGnh4oarCpHw/VcEYiWQY\nYozf0NM8vzhPGP/yfE86sKCMMBaWNJAA6WWchliOR0BqG+Dkb35hxwKY4jhP\nEh2HaaxSEtFceVox0X/Z8LwpHPZkLST0egFL5DRMsqXn2vpyDwcfkAJZLbwB\nlAqyqsNfYlZTQLRRQMdYmYTNnW7b5EJs+eFUNwdDQBX+U7994u4ZuWV2CYHz\n0PMbO0WvYEgCxzJ8OrI0OoAUnCDzkcfkIEPxXHwvX+fLciv2fe1gRky4pWgz\nfSBK\r\n=pYnz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCZwrtTBd/pgNzkTfo8qYSQyAsDkbpxWvPy3zbT1yfq3QIhAJZgB6c0WT6i/kczy7dREq13XIfIgtjdEISZ3Ntpnjhw"}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.2.31-beta2_1640248380327_0.715922971200708"},"_hasShrinkwrap":false},"1.3.0":{"name":"francium-sdk","version":"1.3.0","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"_id":"francium-sdk@1.3.0","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-Qveup0z7RVdwZgl3P2r4RgemvmwDHxvwjGqkgyDgg+/hpxgGkv7Pea2aEULa4yesFj/hMsFiwP/y2o1gwDskSw==","shasum":"fc936415108b73d0bd1c7a8eafe615856bf4909e","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.0.tgz","fileCount":95,"unpackedSize":1918010,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhxWOKCRA9TVsSAnZWagAAy1MP/0ZQrj24qkKviKUwGr8B\n1NcwA9hmwiKMxUb6nPlOwxPvBIrjUfN+OucbFeG+oLyUvl1HmsGpE5iA6nJt\njTk732O0Kz223URG+PV19FlEBtWTj11F0OfyLL5+4qhKQcWEMJuUS79TQs24\nWQyC6F4RWEUWP8VpUnPbtV+4YSlK1loR5YdEKGtEzL7bQgkIw2ddf8gN8PCv\nk/sCCuJuoH2CqAswZxm7jj2sy7RKEtSTI+ugSKviI5O15FzUEFoy2/JyiK/X\nx7VOcvD7yi+6YlpH6shFhZyZ7Szma4Q9OZ8u4NlT2N5KLE11LUYVRYwS0mR6\nEi66jLNZSP8SZaL3gBe3+yi4A/PgPg/sfY32S/CEjPo3HlZ3D93XZDTmzPt1\nlfR+UORFAlaAbsQ/N6nXE45bcRjSmFHZmfhKJ7LU1m7MdllATAm1kOaRpUzx\n+sanOm9hnA+TyqEzjl3AdPb0OWmXFaJ7oE8vedNyPosD294/zo5uvetibPgP\n+RE32afNBmoQs38qvSDATXdikdUR2CcM9lKgj3nWsXOfa6HSu3Esz23w49fY\n12I/McPRCj1mpUimnZfIP4F7CsT5n8C4R7MZqylwJnUCwSe0sOPwYRUnmeUs\nZeHrnM2yMjkNm2QPGoZotbGKtak9nqW9nXlsqtkv9P6LSpV5dvA2YIjOFpEy\nQ7Dq\r\n=2xXN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAQo7jMUg+zvIUuzlgg/U6qoA591fIArNTmGQz82O7b4AiEA+HSUJ1tiTBBWCRNybnrCN1etYjcK2MYrTA5Gqy07CuA="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.0_1640326026142_0.6942877307672282"},"_hasShrinkwrap":false},"1.3.1-beta":{"name":"francium-sdk","version":"1.3.1-beta","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"readme":"# Francium SDK\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpDecimals: 6,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n## Lend\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'SOL',\n    //     scale: 9,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'ORCA',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   }\n    // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN,\n    //     apr: 8.36,\n    //     apy: 8.72,\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","_id":"francium-sdk@1.3.1-beta","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-pb/IBA9SKzCpS2JfKPIOX/rq7t7f+iIEywimAlFLXKWMvjOhwpn6C4RGOnVAm5NC9H/+leQcp5rGp9A6wrVkmA==","shasum":"08a3f4f16c72dcbcec6524a31e82d7d303f4066e","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.1-beta.tgz","fileCount":95,"unpackedSize":1944527,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhy+KsCRA9TVsSAnZWagAAK20P/1kTvC7MRwJbt/UXh5c7\n0osglkH9vEnQlTSQHGpkI0aTeSFfXgkXzYFY5u+pLNFzjpfN+qlLwuQLjD6w\n1NX4YpLUIeyJbEMdFdHZbxGrOZDQuf3eiqPk9MKK5aKKCRhRIUGZ5D4WPJQk\nI3p0F/z/Je+SGYtuIY62+7XZeYe9LWAhJ5OOPSc272lYhZQKVeYWERa7+OW5\nc7xMKwWreLHgRnldbyJE8nRX79XAc1NIq7uwvXppwRbj+tceK/7TVaAgGIaw\nktIo4+c7iwPdmDfFcJhFSsFaFfoZjuygVbpDm6lE2DfnS4EZJtsbFbry8vw3\n9t3BorO+eA65HMBvIfFodQOeJWXLpCh0OZQBQpTJV9j8iC9oEaLx4mRdoYM5\nuKhYGD/3ZZFdKw67AoZJ1Pf5iLneuBuTXREprlN2Y/17HWJS2BkSu9PdiGio\nlZ13MQw4O9aPx6gM7XR8LMi8gp81VyGDvHW3XRCiYbvHqga6NqyB0KCuU7MO\nQ3lUz3hTfWYrJUm4TpcLdeirleKZ8/cmj3KefFyy58AlPAHqgXSSTxO9Vcwk\n1iODqFByMILqkFJAViWRc0upxU0hhFxgs1UZkort8oQhiY/yG0Nw10laSo9u\nYi4g+cxPzY5+YVI8jrTPcTtH+6G0X3O6HRuSrlh862pofW5eNkufkn+mibTz\n5oll\r\n=E1HA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBASYqxcxw1kaCpIhFFvsInabdm68D8+jK1jU2zIKvyWAiAobUv+JOhQkCfpQGc1GEzdA1QBj3uYCA+Bf6uk4Vnxpw=="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.1-beta_1640751788204_0.4422731607523154"},"_hasShrinkwrap":false},"1.3.1":{"name":"francium-sdk","version":"1.3.1","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"_id":"francium-sdk@1.3.1","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-AhYX0YuktVqeW5BL4Zmbdpo81yCRS1Z/lWes6m5cUMeoni/5ooN2JQ2Kl4PVCBvgoHscuKMmX72dzeN/w8rDeg==","shasum":"2e9e96218a4ff1e5276b23507d7e11b0b1bc2ec4","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.1.tgz","fileCount":95,"unpackedSize":1944644,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzSO9CRA9TVsSAnZWagAA2DUP/ieL845VuGdnRuFA4tFh\nD1eP1xEoar8PxbOHrOQyCsFkcBwEuJtn3x6mBaikWpzUSNQkSYPf4XQpAMbP\nDF9ivLTyAhkuydEtxpupyuPM5q9dbkkklJ/QfUvdc+UfHg8sPSlLKPTAo26S\ndr3eETfhJYox24rK/VdfHFMEdvcx67XSQB1nvJMKLZvsxDyhPKbHOoGEQKBb\nHAIrnCB7J2Ns9zek6Yil29jn/7OqoDIPw/k3kV6OTWEL5YsQdPnTN3T6GN07\nnW/NEm9p4uDDmS573yXvuYnaMvCvtqgSLD1RK7lOazdCJ5YK9kXi3WCRiXvs\njTuzD+OMXfLC80uqkcWDYmzUfehMqnBTivOSpavbi+kcnU578rVHN3eKkdoE\nOt+8OWAiy/fZjsjanP4QWZqiR2wk6U48WS5w1cjSUfV45nOIUKb6SDznq9z4\nULLRzic3XrC/1wz9BqsKjMQCXOLfGCNQn/UzX2DKuFylTrCcQRaAG9+tIgld\nwxppL1n3fa/sPtkRgaYjk+IE2Rp+fYTml2e+pOwoLELNDPSJETmTT9hvzcHo\ni8RS5FRHwef3pjYeiDc/Tg/IPaHo2IGfv7olzuVj2dm+mSp4eiRQdTypi1Hl\nWkDUrtTRlKCqct20UmsouGoSvCFeKkwktq9pHmzvwpeL4pqNHbUL6CnVv/GI\nr51t\r\n=oYdQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEeLJne3gfJ+HjLEgGkRahRyHBzsP38qDYrCk++rN4x/AiBIOHcUsjvo+rVGKvsWIi3KByb9wsuLcrmtB4UYXOhwYA=="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.1_1640833981202_0.7891975231548864"},"_hasShrinkwrap":false},"1.3.2":{"name":"francium-sdk","version":"1.3.2","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"_id":"francium-sdk@1.3.2","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-uE5J6DonW2Bm8pzDJy/N2zdI6ZHa9JsIGvdxinjwmJ6GrRElpQmAJjWQfr5Mh5Rtjj78+a597gcAFBKopIDHgw==","shasum":"60aaf87993cf73ced296cd239b4493c15ecc3d01","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.2.tgz","fileCount":95,"unpackedSize":1944838,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzT4cCRA9TVsSAnZWagAAuQkP/AldLmevkNgbdzH+wSKL\noA4bbnrzYKnWCd7MEDm/U13AZN4x9OhFixH620G6Tztx7OVSTmPW2y7KT7EI\nDfsCpnB4Ig5gu2th1dqJMrbh3JXONHJ0zuBHLl3wQ9q7ntO7NG4kWyoq15AN\nkVckTuDHWvY7qkB3zrEeoF6w+d2Tp6Cm1P+auqp+Jh5H1lmLdCN0Eo3Pz/4k\nBeXQFCUYOlX/JHBD9vWx2uUPaRaKhd2LzzjmID5coInGgfESJUBAwulOVjXM\nBqj0Y6/Ys190lBNikWe9vmwrWi2xQ/saDLKj2i1WG352roCEO/zQAdZKR+mv\nQ0WHlkvNbG7QjKTWGsBsiMyQFzwZbG2ZJu+jhrQ+32MmGZsU/p7KRsYmmdVt\nuQpsi/jveBTJ/GbsMi6eVR5lF9fUO0AQ7g9kfSdf4iGrX87U8sHqEVjMe6Go\ndVbkDSDP3X8asQ/ojmcjfowyJdjKw/L/aTlCiXFjQMNbS9bvUKwbg6I8s6Ra\nEbBxQbfsnh9k3er/eaGVpFNTO4em3xniPjNa17KVf8UvCrrEvmY6SaZJaNZn\nePg+KxS7mtmyoWzINKDTCM3bpyPwMrrxzFyuz2jSeLIibXPiWrU2A97u9CF9\n2iOtWERpfqMEw2npKP2MIqN9QE21Ld4oFvTd5fwXNM5E+5yg5WSGKhZ5Fq4b\nxjVb\r\n=XbDF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG1yCYUM26z+tny2YBWxnoMirqLntZp4UXCf1789zh2DAiACq83rH64Go0bLjuIE+TBRX/21Mz/8q3CRO4FabLja9w=="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.2_1640840732171_0.35258016599433195"},"_hasShrinkwrap":false},"1.3.3-beta":{"name":"francium-sdk","version":"1.3.3-beta","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"readme":"# Francium SDK\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpDecimals: 6,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n## Lend\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'SOL',\n    //     scale: 9,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'ORCA',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   }\n    // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN,\n    //     apr: 8.36,\n    //     apy: 8.72,\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","_id":"francium-sdk@1.3.3-beta","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-rgaot5xg9VhFvVmnS2pl3baCmQsxJ33zS/KWUlHASCc4qNKcXVb6ZyWDSHPCf5fPYACqypSYeu4uyZrMge1O1Q==","shasum":"c1ded06b7ed7e504dcb0591d681151446e2db544","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.3-beta.tgz","fileCount":95,"unpackedSize":1961646,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzslaCRA9TVsSAnZWagAAmzcP/2a3F04wr5BpbLmSm3xZ\n5fRQLqsTkpJpvOcW3jmsNPPsKcmohIW6pwW2kPSuVfNgtc3Q8pockMbV1pEL\nOThRMeR0IaZmGHibfdzx1vnJoVgzrcy0nctg1N5LF0Uir9d8ZFfCWesDfx+z\nFi9GlR92O3T/L8FIXVBl2I8QP6tJL1Zvr0Ji9tN2xjEbKYvM4UUiaDboeisL\n2gipHwl+eExcE7ISfipqvJVgTzWPvuDQQhQcoW21KzJ3TUpAlWllEaA27yj1\n5OiG5WPAJxJws8o3fcdcRuEGIn1yKpOdyo0r2ITwLceU2iKMoeETouNjfyeY\nzJ13CNxd+aZaLPul77v7SgkLWu22gFNp70upiNkuLAJ7A5U3YJQuM9K9ZMEL\nFnUrzTGNjjouOdFFEdY8ENlRagSkOeO6unkE99D3ETjnl26t+EF1leGN04gq\nJpUT9jVCift2o8KLvzA+UIzPm3UKO67XKvF32JT0/ZFGtRnQtkqMulb/XOU8\nw11pG8KNW7NznucSNEfb2NW64nw8rEnhRXbLatvok4vHMpHluNtImoCvEYSy\nT35veE06g3wzkvxhDqpDKG7zJBAD+GVkxejHMWzZHjURFsJiEJNLLuuLrfGw\nb1feVsW5Pc5r+wSxRu1fGEpWPwUD+hELJ9rFjQgHf0Oq7ZPHArutYfJwJxKR\nzAsQ\r\n=1xag\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIQDRIja4ovdOnBuwdtDNxl7HUhhKg02Katmfu/ZIDtP/OwIfRGcoaSwY8Xjnjwc3J4dsQQObD1yi8/riUMr6mQ6o5g=="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.3-beta_1640941913887_0.03170337407301749"},"_hasShrinkwrap":false},"1.3.3":{"name":"francium-sdk","version":"1.3.3","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"_id":"francium-sdk@1.3.3","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-mPQGilDwDIL7V8T5D4YHpK/BmXLEPRj9oqm9ymhPuGd3lcyorxI1j8aw0TEi6AUO6vU7CbiZX0N7tP6cQUtSlA==","shasum":"7c5d17b1062631206e458d79d2426b0f89730de7","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.3.tgz","fileCount":95,"unpackedSize":1963103,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzs5fCRA9TVsSAnZWagAA8ScP/05duVW8xHYKGg4wD5WJ\nZqXoHyTE5zW7nWH3YWDfqP2xrKCQKdqz9ZbBoGM4f/gXSxnATpJmx7cHDZCN\n4KVCC2eyR9YuV6BfuDNv5LlhaerlzVneypiSerKWTN+iPUc6uYAU2sKZfCob\ncLz9iu+uheC5IrgTQPcmoGFjfxsRIJMWD8gdOUMNSNjYwJwcBSo7U0lPjB0l\nt7+ZFDa4bjaywO10UkfG8M2DcGHzQkTcNQkN6hhZeCC9iLWV1hn4a4WzkmeV\njxfdgBF/qFFPagDxVE2sKf+QxNlcfPHAx5Ao7+uJGu1Qo+MHlhZXOu1v8TWk\ns/70fFKA+m8Bmmk4StAKqaoy120riF8sIuWcDrDLKrb1KXM7+jUfZgDjJ+Ju\nJnohHe7d7suZawCM5q2CLs6coDRe1sl01Vq2TMEuYJqYrDUBXNXt8T8OcOGo\nMYYP3fjuLOhOIYWFPZStiLC3wqvm5Voh/QxSbay6tIzMgC0uc219vZKbHwxC\n8qmMTcweBFPS/dA8dhSqmje/ZHXRk/0pCWoMn/DjF1VaXYl9yg9yDUd5cBVi\n9rEkgs68Wc5qo5IXqZGKWrGOX7HaIgPeNZxif1HlrT/9af+S0lkodQnAKkV6\numGHVmBauOZRjGVZX8tXfbYau+glk9VkJMDIeDzMvXf0IkqykcnOLtNCdGqE\ndrMX\r\n=J3ma\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEcq8e2sg+3ubU34HC5caEbFrTwgQapCHJJMj53idAz5AiEAuJzQFwnHJJlWTPpjMOIqnKO03EMpRH9vPDOcRWbGSjw="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.3_1640943199638_0.1266803591846115"},"_hasShrinkwrap":false},"1.3.4-beta":{"name":"francium-sdk","version":"1.3.4-beta","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"readme":"# Francium SDK\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpDecimals: 6,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n## Lend\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'SOL',\n    //     scale: 9,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'ORCA',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   }\n    // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN,\n    //     apr: 8.36,\n    //     apy: 8.72,\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","_id":"francium-sdk@1.3.4-beta","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-KA737ePDWKtrNoS3QSpE6aEuRW/3MEaQrzM/fASxEObjOaC9jd2LExfr2CrVVl5e6thcIPJZX0bRY5QesGLZ2g==","shasum":"1ca5a14cd6d594c4d14a2214d52c53b465c3b480","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.4-beta.tgz","fileCount":95,"unpackedSize":1999628,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh1RpJCRA9TVsSAnZWagAA+7UP/1yKLQye/VLk6ZLRa2Xb\n6bbepSV23wA3dXNUPy/XNN/yrgs7vQEAJQ5aN5nqZCZITEENBwxArtDIlijM\nbGCHOG43cBZu6ZgTRCfYhs4vOxrOgW6A+b3kqIKSzhztS5SAZUQi/bADm5Ge\nCR7CyrZF2RljPFu5ojHxGf2Okz68vVvz6U8hXEDIsbU1sMI0phBtpdsjX5xR\nNd2v9WB4JjBkEqS1WqYhhqrf0ROQhe4mAA3sslcltY+YiuVwOPVRaFpYvFFQ\nXPu/RSbVuXMtPT/JNJaHMd0qa9PbITsaWp+jUJjFKM6B5r1hZRMYF+1kSNxy\nNQnvVsHKtobXegqx8hrJLs8YcpNeZhEXWEEbRQgjrLM2sGzoNcNwEbyoYkJM\n4VR0gOjU6QFjUl/cNBM+Hjtr4kLKmfAZlVrt2wXvNZHnwymjQ9WkWRNS7EVv\nuNsof+Idwgtt6Xo+wiPUib7YF4cZInQ9SqX6TkUMKHIozaVYCb/xOebSmO0r\n3c+9Ye1KvUyGJlXaMeodFmyoUDO02W9eCSl+Z3vaah9pPWsFKLPeCaS7HQZ+\n05kQkLlo13+aTb58+A3NoRQ/jOvwa5fQ1wIBypcQ4/j8nOQoZwZ/RxjF0nJ2\nFjC4p5/LFC3GZB8lGaCu22JgfgdZWpn+W1XIxgc6hR3P4EEVCkGL768hEjip\n5iiR\r\n=rOgE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDJEyKA2aKSuKRplC5hr9J4WaT3asHnnADwDyH0DEelqQIgTpmvpJhDkiFY+wnes2RHMrZbUr0v3fDyc5cwcnVGBQk="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.4-beta_1641355849502_0.5321504534374213"},"_hasShrinkwrap":false},"1.3.4":{"name":"francium-sdk","version":"1.3.4","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"_id":"francium-sdk@1.3.4","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-HSVYyQi04YKof3Y3j29ICkMZHDlrcyooVTaASwO7zQ5Xr/QkB/a6ImUZ8f+HiA7ByU/UpbgjFTzv+FLJsMiOQQ==","shasum":"e857dc49b823883876a70766ecf4526b8b934560","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.4.tgz","fileCount":95,"unpackedSize":1999623,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh1S8RCRA9TVsSAnZWagAARYEP/idnjZp7rQOiUt1TsdD7\nz5d5zQT/Yw2socEBArSlXenUlnXNhx3CDwG77e/Ku1wAxgmELeejwzhpNsmh\nUDOo9RlxXB/8+9Lzy0ESpOOFj+P18rOrScRpLgnNIcoX6mYmkfW/EYbv0EeF\nI/hMi5K9BgKOYqQnkKpZWrLiS607uc0a69WYWMgtBG73v3cW3GeqJ1+8JtmW\nNqruwBu18p3n6SHYSRccGlLQv5MtIMvgrBieOgLVYCN07okiLyZZ6GgmEdU5\nkN+Mfaf0bHFtqmZPuJR/Adc5FH/0iSmKZv36acdFyCGhGhiuXRGqkopSN77H\nNHCrjhLB5y1BpHOvRyNmCKqCGfDSW1DOcMQgQIHbhx1Om6shc9gAPuJdzOAa\ngygZsCQTlYhhLUXhEIxigSpOPc++wJOH4RQTMrsYrTSa1trO4ggC1kz5gRHs\nMRLYfIwXN7+c+vnQdZ5MfQJKoxTTopsd5CdgYT0sWWNy6OwKOEMlwvSxKIiN\ncg6PheQwH5QV/uNcmnQ3JebH1ZIN0PAk4bkq8HzBau881TFOcBafVoc0BciJ\n337KMXNW/X3k9gK6CqD1sZkezN+RANYv6/9xf/sC5gCouLlnbJz2Fu8kgIme\nvm1aQybii697RAcdTBxaJQ+h4QVGTgUZvrvJWki8nCgmLRTceTKNycB+l7+3\nl2pl\r\n=Z/5q\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIECbCt4laMgxXkz3j/bGUaLC0c55XS0M3xosvwwoK2IcAiEA7x0lzldmocss/s3cRmLghrUwjSkJEzQGBzzS5yQhRHc="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.4_1641361169082_0.008021859718327029"},"_hasShrinkwrap":false},"1.3.5":{"name":"francium-sdk","version":"1.3.5","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"gitHead":"f3be142672528e5abff64065c182edc6698678cb","_id":"francium-sdk@1.3.5","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-z/rUeIUISgmWsDLA18PoE4GUJUF9X4unlYMaYRdVNTN0uuymIrYLA463NMEKtTRbfEYbSJ+qtjigRQiaCbalbw==","shasum":"cdb2ceed2f0e9deef0573e30b7047a1809fe0c11","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.5.tgz","fileCount":106,"unpackedSize":2085595,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh3S8HCRA9TVsSAnZWagAACe8QAJuc60gDsxJBpdRTun/Y\n4Rq7gsr07EzDJ4W5EA3v+3IX+L/y5HXEMxeBqCWYIRlbfMddOzLiJQeZlg3a\nZy+EfBkpydzEpR2b3jRlqS1lYc7JsDoxKVPDNzBlcS08bIA39nMes45QA0wj\n/91ubF9RNHTk9DGM+ygjQYeUumrZgmgKdve85pDa7uXRTiRe5ukF5a8OWHqD\nUS8DI2q0vpp6eHcvWcMmad5yOoaNaMrNR1tu8T4g+X8xp6hH/ZtHim/8a4b+\nVIKXSqjRfb9fFxJBdpVXQEM3xKjCelSqazou/2AFe7QXH985vx6zh0FCfKWr\nUub1GK6HJq3eyRxW+jwJuPPZ/ORzEaOc4LTSP1M3FazdRCn5P5J7ehB+7ZgQ\nd4L5Jm5Q8sb3f0Ng8c1yh/6hoXI8gyP3OqlMPRYAXY8hpdK/4V7ndhO7YQs+\nOiGW1/OS5j43B/JwJGNP8geBODnOpdhgiXy3SwQEF0xySeBMxm+lb0Sf5qAa\nI6XsRIno+fIEFEYkVEGJNndimq1eS5HC9Eb6GNx1u7KzvJbvnaxyh+abZOWC\nK3VsnGVYMzjC2K66sUrBdbQ/BkPJUikh6qoUv8NJ80xjze4AcPvqA7qFQwB7\nGMI2VDxdrAj3evdpr/LsZmpDLQ12B7N88spX7JIoPAwwGWsvpK/KBj8Rgp1o\n3bkY\r\n=o3+N\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD+b4OOd236AOO9gMYIOHwBuO1x5+EJQT99wN+xtLuC2wIgJr5pgDglXPxfjWwUQJRoT/teC9zF13Ogc2yvVPBcYDg="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.5_1641885447581_0.03178943575718285"},"_hasShrinkwrap":false},"1.3.6-beta":{"name":"francium-sdk","version":"1.3.6-beta","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"readme":"# Francium SDK\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Farm Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function farm() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = fr.getFarmTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      depositPcAmount: new BN(1000000),\n      depositCoinAmount: new BN(0),\n      borrowPcAmount: new BN(1000000),\n      borrowCoinAmount: new BN(0)\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n\n```\n### Get Close Position Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function farm() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = fr.getClosePositionTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      // 0: swap to PC token\n      // 1: swap to Coin Token\n      // 2: minimize trading \n      withdrawType: 2,\n\n      // userPosition.lpShares\n      lpShares: BN,\n\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey \n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n\n```\n\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n## Lend\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'SOL',\n    //     scale: 9,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'ORCA',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   }\n    // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN,\n    //     apr: 8.36,\n    //     apy: 8.72,\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","gitHead":"16c22811fe719ae10d70a4c14c2f888f75a5aa27","_id":"francium-sdk@1.3.6-beta","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-t8iLM0gHz/h+dJ48E5KwRGK0VpltiJYibJCEsVtk9HmxrttlhRPiBL59/BkG4J2SrSI7JzukZ3oHMGZZsOS9fg==","shasum":"b1dd4ccdd0756aaa200603ea1ff1e9be5c2077a9","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.6-beta.tgz","fileCount":106,"unpackedSize":2104031,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh4TzXCRA9TVsSAnZWagAAhAYP/0PM+49+4c3tLnlOHd1H\nBCNrevDlkhyzd8dxAlTNLSGRfVJlFRGzSrQK3E8mRq5IlPnxFfa5MUZ8zY25\nDY39LQ0IxCZq6tFZvWneDpK7xVtB4SyM2mQ1ezPaUhVuwxize8tXzFDm8aOF\nacrDcoWXgyTrCaz1jnDmCYQQYBHtH9GutOX3qRQ2ZzT+iCaIWBW9sc727fmX\negh1/lRxviruDv3/KGoX3GzF4UusHNqSI59XwzOQ3/KmhimigHEYZ2f0wgr/\nWohPlUmDClmY3GQJ2jE8AHTg3MSFbJunnanptUvX2rwzLqKgbSTcnBvHepiE\nsux8UrOm0RG+x3pMouh9hJKEk5IpkTD3rrjxMEuXF2vr10JU8N6vuJnEQKNI\nWppwTD/XDCUrEjy+a0dRYm1r/16p+bboBhRrMObkv5VbGdYIMD3nEkT1uo+t\nQm9Sg2uBiNrnfQBXeA9/lbXQ8wn2oD0+OnFpeBst5vcjx3b4fCd4KsPY1a0x\nAA0H8ddGJ3TDNYCfQFiqU6ijP9Km13i4m3XXXI02jISXafiBQi2Uqt1nU+O4\nxUZ1tFocblQwL0SjhHcj3Cg39wPP4wUUfQlZyt6tXDBLM41hmL+bDmvXZMoj\noDUSct1yS6DCwHqLclTyJj9mH3CVYFmuI6CwkzjFzYwIIoaBpMNplOE59YYw\npavM\r\n=9yCm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDCzGi0LXroFUtM3bRr+thp93ybncK9+X/u1DFdMG5Q6wIgXGmuV+/G7nS/BqeT0sVVZlwhhC2aVK26Q9QFWOqrOmM="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.6-beta_1642151127111_0.6404957787705987"},"_hasShrinkwrap":false},"1.3.6":{"name":"francium-sdk","version":"1.3.6","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"gitHead":"16c22811fe719ae10d70a4c14c2f888f75a5aa27","_id":"francium-sdk@1.3.6","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-TOJqEWMy4K/mqagMCWz/6uCnc2Rku3Skah9uHJnbxvY8/HZV6uAOn44Nt/+dkm+8uWckrjcoO13zvZlj3VVCIA==","shasum":"5c45a18190e47e592dbe6df17b6f999836ddf5c3","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.6.tgz","fileCount":106,"unpackedSize":2104026,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh4UGrCRA9TVsSAnZWagAAOeIP/RlGmyfCbPfQonC8pCeu\nZ6Az95B0la9TXGMTtvRpJU+hHR/yYYmubYjdvEPTLSxKv57nu9XZBFYKR7eg\nDXLCOgvYXj2MREVsH2n/ctOdF9NlOHrPT61MlyIbY9lzn5EfaREaioftmDd1\n4+qQ5jfOuFjqF5+tgmit0TcKp9FuZgKtzETTmeo7LK/8dr4LysxnSK6P9dEo\nCeoMF7Tac3C2GBeSz+Wtp96ug5oSS2pZbbPYr+GU9sqmWPr7EqCmriMF1bFQ\n8ia5FrfHCUCWxUE/fYwjzsmOIpYHAO5/kHQJBGgh9/EOihhSZas8bu4T9k8w\nWH2xkH5jldjEdhkd6DdKSVsSO4ufc92hxmkwO7ApZJAfftKxoyWyBaELWQP5\nKcW1brzlJePFGKIYAIScTfj9z0HTic4fhoY7CXWGHQNbc75u3ZbcKKtTWF9j\narsvJpgGksQNoWOUq7tah6UWzGbJG4/Bu4VNEN+476GUiQwkwwBduIAluGAD\nhb2MTpRLOAfri5P6muPttePA2hk3Nw755arg9P8XHRFWdksJDOYQwXlgzmv0\nowUS+3Kgt8f9ZqH5qfzNA6DumW8+Xj0zp9No5nBgZbMKLb8AYO8OYT1nkPyX\noqqKX6qGCdQAec+vjKKL6FNKyShNVYUrxk/RHxTqPrMGtwKiSLcntXXFlQsM\nTunq\r\n=n0t8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB4fJmNFooTVYR8EPPglUHKda1tWV740HZ6J06V/5ZP3AiAJaet/ueJPw7Lz8RVM/wdkJ28rwoawdEwQo6fd+SQEew=="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.6_1642152363509_0.7734176391943115"},"_hasShrinkwrap":false},"1.3.7":{"name":"francium-sdk","version":"1.3.7","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"gitHead":"045efb990b584e3915cf918893763b52a1c8c9fd","_id":"francium-sdk@1.3.7","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-IFK0nYU725riHqb5JqvYnyzqesGySRufD11p6zG8bkVCqzzEZxt0V91Vuo9YmxHeBddmrwE7UZsbxDgffKaD2Q==","shasum":"14ccfc39ce6a4d8eeb8010fe8a3f30b7d328c79d","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.7.tgz","fileCount":106,"unpackedSize":2108024,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh4ZmbCRA9TVsSAnZWagAAne8P/AjpUaNAswWAv38UC6Fo\nPLHplWzn0w95pvB0ag5NSDWtjuDDy0U7tnPV26k39iUmcg8t+8oTapTZOvyJ\n/td+KYW4+O9XhuHfoXSgsTqAzNkin9oTqQ7xbeQwBITd/ASvyX8mZQPOaZLi\nQL5rDoSkSg8GYGkKSd9UZD959m/2a66uWv4VVMuEhY4c8/zZ9Kl2Wf1GhMkE\nHz5XcD2BGHUaVOrY9GfMrLdtWP+UTcDfKxXk9xBaKDxRHT2l0YuGGUjmNnBx\nq/OJxEvutPTeckSnVU/SjbVm4kGpeN0qi2NsfgysYtaRpyojtyH6iG59eSZT\nUbEQWSHTv+O3r02rVGxbrQIocwhPv09KN6zBF+GOgeANYM4RuX9EuenBP4Qm\nLSuesoEvOQSr01PeZYhUKoL74PQiF7MkRGYLzwcmNAiyfgACTcrAyj7CPQvF\nrKUohITlkOwa6jH5SzB59nC9UBBsTkIbMs/nFJ7Cpfh2PhngljbiJiWI+f/u\nBdmOYZym3+akII+OIeJiaO0VVRr/VHaDkTB/9jcqF2g5V5P0XmoaJTdMx1vZ\nsYFjuzUPWpC5VxMybLSnH0by32+6gnm+RptDeRuDHRMs9BNOuESemTlXJxoT\nDX+CUBomFS2ToE0H8hofFxcS4jxlrHjhMiop/eAbvPO2iblrPgJmZoWH2zbu\nsgRo\r\n=t3oz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC6BIWWx0VXG6JayVkby9QrpDWe2xN4rn2BbF68RHZBbQIgFG25I7+YKUXgUQvSZv79pXi+oRRd+KeDy6OeQgU/nFY="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.7_1642174874821_0.5647584916718151"},"_hasShrinkwrap":false},"1.3.8":{"name":"francium-sdk","version":"1.3.8","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"gitHead":"045efb990b584e3915cf918893763b52a1c8c9fd","_id":"francium-sdk@1.3.8","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-rEPeEIX5Eeqsh7WWKLdot+YGmm9HaN2wS8VbmtuIKN6aYDJVe2hHY2Y5HbbK65alQ+qeDG1+gIwDZTChgWT94Q==","shasum":"70fb97cc2dafb6ec853c49275cf3c3a43abab1bb","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.8.tgz","fileCount":106,"unpackedSize":2108142,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh4aSqCRA9TVsSAnZWagAAnREP/R5W2N/TM6w/d1KsvR7E\njtt60q6VbGd/z715pyAf8qmkzo0CDID+8/AYooFPia/yKhdvNFrVEuImzobn\nm50LeFGtT+0EEv/P9OjuswX6H6NoVRAhd0nYGrm8PPFLddJIXtJ+jqM1l4nR\n3WWIFKJnatwVpLCYGABbrSlN9jtM5EJPn/pUR9prNjN59TUkIE/guE6zw/31\nZr8fLk9G4Xf0JukX3NrPvFORoqqkXMCKmiO43l8vFRoPTF89LNy5bcGBWMdP\n0rZVblyGv5v7fv7st2k4bPuI4ufveJwpttWK2b7pnVFdBf7wmlY/M0Rol0Fy\nL+sCqSqyXwcqmLpIh2KKRgmnr7iwTU8YZZ5hJH324yPvo+FP8anI12MwTajX\nNXNWOZOHvxL2ns0d5rmnc0RIcE6tZZjyORipZ0qtMEICkniYeyWLTWpuL/sk\nChp6j9eoUD73mgau/5pX2/ZVpTEjOHOMHnZzfiSzPLG1Ls5eNg7slqElSkDi\nElWEZ3xhTcOn/mu7nhXzXPrjPJVdtA8MDROESyoZ2MzP7dgdQg2FvO/gAXz7\nSafMyktJPyhUDBDxFYrPxPJNiRbGYtgZ5ZdOhAG8xBhEIu6aBv4iwyC0pNUX\neJWmXQTNLmJbpRmZM/kLXNS25MWEXvcdyXsCazqTT4HZr1b4dXWJhtLepBnX\n0NLg\r\n=xU/m\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID64IKE3b1smyb7PTkkniEAZ31IQnYmK4byOk2InV33tAiEAyd3d76AtdUqbPWm4bw4q0kQZ/C601k48zmkuf86B8cs="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.8_1642177705973_0.21227925434189276"},"_hasShrinkwrap":false},"1.3.9":{"name":"francium-sdk","version":"1.3.9","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"gitHead":"0f8323d8609563785cd23e9fa53be25bc834191f","_id":"francium-sdk@1.3.9","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-ePuTfKgOw6t6hP4NSarojcPabxh4Fj4mhPA3DYSyXTdHYd2+C5U/OP4RxaGOK3y19nt/EkYP7nP2Q1oAtXbfLw==","shasum":"932d9f59ba719085a562a6ce62f31eee284029e1","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.9.tgz","fileCount":106,"unpackedSize":2112730,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh76fjCRA9TVsSAnZWagAAJlsP/2BNsfHRCuTYuyH8Stxi\nLaBh588SP/jeHsp+6tXQZHRBOZS8uj7darhMlNMeR/4xDkz5h7ibWIqJU3hj\nSB40J5D91UotquoQwX59olP+qiydrEuvETtuSnx7RUJufiBkObnjedTUI370\nFKuPN2wmXnW93pBeklowGYNBJiblSizSBAlyECKoD1yN/7bykF+hSDsDMJFm\nkBoyFHVNzD4eRJQwvRWeYrOPYTVdnVN9oEmcbh4Wn9TroasbCseEq7sSEfVa\nx5s9ia95lBEHA/mqpxDmqEDcvDaoeCt+A3ums2fcUiBoEUClOllZ8c6FSRej\nPp1ne012X9kL9RNI7NOW8HFhYNGEoCrBCHXfpmGtb2Lg90suooDpYU8CsWRP\n9gNXaq7K969vpJ/LyxZdaNFZJY4l0klEbM0xDXDwBaufbZAK4DbrlH2ccuzz\n48kVBE5ol73WteSs3aZxkTL7K6loXqKpAR/ZvIg1nxHSoHr1pfckkPo3MX76\nNMZv9QIdecmmRSr7A/lG0gysIx2i/PU9TMD2xCrXYEWI4agjgkWeMeb0CexB\nWoaiKQN/7JJQ5HCqoPHntnr5hai6H3WAi/cvcJ6hu6n+myBSgOQ2mKFWNX1m\ntkV8jnYrahXODSI3azzA0cyZs/tgm6znqbK8zksjnTZTMA+KwXy3zHQzbucY\niea7\r\n=3JGk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDPEipsbY3lXMkvJk/XHnScMz9vUiIbbEykd/tCrVE8ZAIhALujqAPWm+H8FPhg2yYOJGn0cgBUuGiJyuacoQAtXwdV"}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.9_1643096035435_0.047809823241880656"},"_hasShrinkwrap":false},"1.3.9-beta":{"name":"francium-sdk","version":"1.3.9-beta","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"readme":"# Francium SDK\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Farm Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function farm() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = fr.getFarmTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      depositPcAmount: new BN(1000000),\n      depositCoinAmount: new BN(0),\n      borrowPcAmount: new BN(1000000),\n      borrowCoinAmount: new BN(0)\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n\n```\n### Get Close Position Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function farm() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = fr.getClosePositionTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      // 0: swap to PC token\n      // 1: swap to Coin Token\n      // 2: minimize trading \n      withdrawType: 2,\n\n      // userPosition.lpShares\n      lpShares: BN,\n\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey \n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n\n```\n\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n## Lend\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'SOL',\n    //     scale: 9,\n    //     totalAmount: 0.100434\n    //   },\n    //   {\n    //     pool: 'ORCA',\n    //     scale: 6,\n    //     totalAmount: 0.100434\n    //   }\n    // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN,\n    //     apr: 8.36,\n    //     apy: 8.72,\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","gitHead":"c4dfb5ef1d68bbc6e25346e9421b9d53db6f65a5","_id":"francium-sdk@1.3.9-beta","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-EYBqQOj2VVA3AYl4wVTjTPyJTfV1jVuf6clU8lWm8/TnDcp99V2BfKHt9INYkutwbIElv1kINUzZ/SlWpukoAg==","shasum":"52f89327e69d951f89b7593934a0ad097d8328cb","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.9-beta.tgz","fileCount":106,"unpackedSize":2139809,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh87HECRA9TVsSAnZWagAAj+sP+wUz4UaeMJULc5KIx7z/\nRG+c+hw1YLg6dP6Y1Rp0nH5XaTXL3SKaclhGX1j8b+Ox/KdXJ6J+0qYwK687\nku4De54hQzpNzSu+NspTpYbWkqa7ZddUYVJ41mfIpJSel5ydm91EjNN5yOU3\nMSi+WYGB/GlyZdiBIWEtLbPT0ZOorWBs9BsGSIzrxIwq1XuW4U4cYjxn98tF\nWhs8vsOwFj75U1vc7axLyZoCzpOD0Mep1QfOwhyt9oUizM2OeHaqEYL/TeBc\nXF2AxcdiuM1s2PzwYSrv6cQEnCdx+HJ1V+WXtrffLutqpLcM7sArmDu/Xauw\nQLiGbuQGoR6pCo1nqZ8fjfWI2HkFIj6XNAo+LssaVtPZlT+bT5pcZtMMooRv\nyPhbQrlGMYAwgKkFcNTNCNK0MqGO8CgRQaJUotZgC1Nq+N+aimdzSOyOZUZc\nCWR14kUBs4V360/8nZFSms8lUn26vHuGvdxdRI2w8NywsCCjk7+MjcFNG6VY\nvDNe6+MnXlqCGziGPAqwjPocBKaaonuPM70XtWKJ0+HmFCLm4VH0FOvUwS+w\nffV/VBIEEATWCrpqWcXvJAlb3aswDe1dcKI7EQDpdQwkSsWXm8voc2ngrB1p\njz1wfBQkz2eHgnpnm68WuOqT0OFb+vXeXW4DBNsaA2lx7yoK02AdinPRPjFw\nnOr4\r\n=LHRL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDhhRkTBAwl7VRVj8VduAxemj+rQuHj36228d3YGuf8bgIgCPolROwcKWfuxDL7T0TITIs5C6IsDRpxORIMV92uVM8="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.9-beta_1643360708529_0.24488291015585117"},"_hasShrinkwrap":false},"1.3.10":{"name":"francium-sdk","version":"1.3.10","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"gitHead":"a8d7a92c461cabee9c25ddc02ce8c773a13dd2bd","_id":"francium-sdk@1.3.10","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-VTbtQ5hyKtHBvsikouSRRUMzZXFYmDYLRhYnHndUrq5uyrBPGXCDamDGN+UhquGNLJgUdpCjYKru32bmngvWdQ==","shasum":"9e83eac0625d80772a2164439e84d22af71061ad","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.10.tgz","fileCount":106,"unpackedSize":2136765,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh9qEZCRA9TVsSAnZWagAAiYEP/Rea3cewrvlThq84awkR\n2yZBHH4DJYbnxb3QfVuLtjh/VVac5kh3bvbv5ySfxyehVAtkYBzXlIwcmo8Y\n4HHuPWI4wvib+/fwhVH8Cs85OXEQoIBFxsen4a5T9UBtq4wAGEvQl7IEf1l3\njsbNWM982DyYo1knc3cyP1mRidCufVuhbPreLC9diRnlXDRLpVLBHkPfdLqh\nYDnx6DhU7ZURmi3Mp0WnR7UpNB0Ih8ch28ofCH6y9TVjmWrVaJ9+SD8kWjGR\n289TDYPDE1kpVN2B497ejiT+x07nf7v0hzLoj1w0ekAddvSVpw42vaETm2xC\nnY0jEwSNEqTXh5Sa2dny6kRtj8VnReAtEEpkZ/E/VrdmU7buz1g/Ukno5b2g\nVp20D62NQa8KiefutHW5YXJ+2IeeEfRm1cYsSzhfMt5X6oypA8T4l2Mwmo0A\novOwJIq92ZsI+sXuZZ8is6zMnHzQMP95JAu3d31cTHvSw01YdQaTREfz5oos\ntyiGLhT0Fur98N/dK67YkgULvihaQ/h7Nsnw+LkHwqnEY0fJn6OZ4RXemRcJ\nAGImekx1wpsVIpeF38tBDPRwF63lSTYeGHTzV2LcOMiLscwBkvIc1WheGwAc\nL4BC4Z+j05/XMqdNYrJ1gNnE+HUrCLwPGDpAyqFGRShEn6zZxJq820pp8y2Q\n7+uU\r\n=tHMH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG1zX6JgCm0JbQPxPZ1hv/3ZL9cf/vFXbXQ8El5CCeQCAiEAuIGD71abOVbfHiMLwlooNJ1YSuQ1YpV1eY/LhLjTlvw="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.10_1643553049381_0.6067018087873193"},"_hasShrinkwrap":false},"1.3.11":{"name":"francium-sdk","version":"1.3.11","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"gitHead":"bd211751e9252e09ef692f193df24b89263cbfb2","_id":"francium-sdk@1.3.11","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-zrlRTZtEGPR2hgS3XU7qyAlYi0Gt6xpo9ZVy7GNrw15HT8ooXPx0FsX6ljKyA0G4m9dGgprKZkKEbuslzc9BpQ==","shasum":"9b17a30183038531575f045e567d19995256c357","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.11.tgz","fileCount":106,"unpackedSize":2136809,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh9qONCRA9TVsSAnZWagAA4PEP/Rc4jfK9iuU4rybMwGzv\nES7f8ZGaEaGxKmrcdY3gECb0pXetpKRW2/1Xzmf3TwBuCuwvXAXa8ki2/pOh\n6Qcdvs78g8NGLPu9MROCAy8L1CfXWIQH5nWVBhE4njzFzBGohl3pl6Q4Hqqn\nlCjUWbsfLxoT+4jJsBzTVNzyOwahaw5lG07dZ0glWx1b0rQLbAFZ7HPiVzzT\ny4hi83I947iUGH3LynN8CQ3naeWyc5Kpm8j4OISc5wK9X36QRN7SRTxMn8zE\n1CLFbkR3Pve1I0BVRv64Z+EhR4TFuW+ZKOpldl/hUGWqCCkYCDnudEyNIX6g\nw26DrNzBLus6Yt2Yqd2kKCqVej6YYcao633v6gRXUaANL02fQdl68OhiM+Dd\nHKiAynbE/mB6e6XcPlfMMcnNaZVq21RPjsjU1g7rjeNaAcgPKWbI19w3fXYW\n8AKgXMwX2ge6rtLoirCact+oqEb63llFbUipYu/5NodqS/O/7Vapn5hTiaKk\nlV7YZ5SJdjRHJojCe7D9gdYQHrZbtQPWFfFRdlerdkpEgM3wP1E/j0UUxfWh\nhTAOXHpZgvXIwLiEvNOk/YOTAnMqOqItgeF3Cp7/ZVrj7H2KhEhGt6wpBGAp\nfplLXiyhqvGdRyJcaaBaIP1tgKdnGyJkFggAJ+PkuvayPu/Zf32iSdyYcRIl\nRnN+\r\n=o1w9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC8LzzqrFH5aTFFUyvAEbYqFelj8NJ6WAeWPCf9Tn6R3gIhAIaYDzoBQhxSn2CXYOViuwbbwZ/2dro7lfVqvSw4cljj"}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.11_1643553677138_0.6624372661943756"},"_hasShrinkwrap":false},"1.3.12":{"name":"francium-sdk","version":"1.3.12","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"gitHead":"2187afcf372afa72b06a5332db6cecfad61b413b","_id":"francium-sdk@1.3.12","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-6xHj6Ax+n7sTmnh6EP2MGKkGBhZuz2eq3ahKVzkVyIAYIB8iAwieFIMuxGDeJhfvreXEltBpgBfCPhJTA3pQVg==","shasum":"9fe04cde8f1365ac9dfbfafc57fd92f785630e01","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.12.tgz","fileCount":115,"unpackedSize":2189221,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiA4qzCRA9TVsSAnZWagAA7m0P/AyujLDeOdNG2gmsktXa\nCJ9jwhN0Bj8w7HIYoZmj1b2lLl0U5P3AwXg1anDUfDNHlg5wm4/bLJu7BxS3\n1Uiee/EHpDv5jUF/YwknSYSTO6ewVo8erVbgguH/c8oA6LKwDnKRYFaPBKa1\nIFceo/9jfgu6tL5PoOijiqLefrpRMa9mLYvodO9hdkLwW5NtfJVGedjcjkHO\nRlxrCi/yzUUsThvX2tYYuuoC8L6hgT23IyhzJgF+Hp/eilH0kW1bLHZiBj56\nAvg83L9OWxR4fYiox7OZa2lKUMXg2GwHO/DLjZgZwtEcSLmm3AmHnN+U05Zr\nB6pI7OQ7Bp4CZNklb2nqd0ziZvxpKfXLAtbKSIb9zWXOzUWbMbFXAzCiVFtz\nuoNlCnCLYGmYhy3YPmr26XO/jA9tKzIupka1BztGkMJ3O7Z32afq4MbbvokT\nHJdSLWKCeag4LXFIEKyuRR2yQYMoWfFH/g8Iof2OaoEu+Urk10lD6qA8ccRg\noW6FapUnG/wtlHVjDrkfEUYn/GIxU77M9nUbY2xEorrVScBPsYzbdNLdEZJP\nk/Z9C5vMJzxZBk38UfY2TCieyGt1hMro1BE8QT/H7evwGDaWWuCuBe1pPCVy\n8x785vjLr6YoA5MezwVjeU7rPpohvcwrP9HK/MIWKJBSw6fjHJ1ZU55dHew5\nGMb5\r\n=tbNy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDQrwYYtOiJXrazKfz8AW7E++cX/fQK4UNQDs42zGAk9wIhAOMR8wg8DiBitHDJ08L7rZTq5Ds4GMCiPHrqIcNxI+ql"}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.12_1644399283181_0.6782411769854726"},"_hasShrinkwrap":false},"1.3.13":{"name":"francium-sdk","version":"1.3.13","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"gitHead":"257470ac654b3ea0e1f1aa0d168ff5d356c31b64","_id":"francium-sdk@1.3.13","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-y5qyQ8ovUsj5Bdc1r93mrlU+dghTYHV3M/PjshVK9CdooZxv8kMH5yt0az8YQOuhixtIepd+qltbuvGZTR5p8w==","shasum":"97f130483bceb7f73653563c11074f11106e572a","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.13.tgz","fileCount":115,"unpackedSize":2189417,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiFf8IACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqtcg/5AK9/rUHLF6jDl5x9H4jsyaEGikadXP3ldsOhSBMcx1lFmKxT\r\nUzJCbk3xinIoMmiH2iCbDBRebFltcW3M20d82FUpXzVcqGSUEYF12XpwjgLg\r\n9E01Kp/y0BDcytdeZfu7M5q0yx6LJ4awDYUpQtgnflW0fwUjIohbRhPzID60\r\npmSToJgV2PpNwj+ceb246ScF2mkNUrVFQCshStg3rkxBiX2x3ysd2PHoB7oq\r\nLZkbruiWrfLLP3YzLLFJpQ3Zqis42YHq9ReJu0AxL+S74UAdWex37XLU6lsT\r\nI+yYb3rxuqT4tW+OmghrJgxGc7t4tEaxfinvEVaDIf3oyLF9HFWtLFzXrxdL\r\nnZ09Dax8RG3Lyn11mqV3rGSIHGmMwIUkX5AXXa8q/IqFd2uR6XBTXqnl+NQT\r\nqqzhd60AdHIEx5kOUywo55PiVRPF/9el2heXmtYhOm1cFc26fjaqiXazYmPA\r\n3h1xf77a7CmQBNEcXuFAuZV6qm39/ftabpjDdFvodnZP9k3QRynAmCnSh/oi\r\nJHEfUWT5BCHDEU92nk80hsLShjumXLf4iYOqsDcLUggQ4VwPKT+zQ2wpjgmf\r\nrYT/fm5dVHTGblm+LmiWc9HQh2AF7AomMx13QHW9cy5aPVwSPyarfJE2v293\r\ntMRRiVI43GN3diLTOd+Dp1GYz7z1Jv//toQ=\r\n=kLCp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEE3LDS0kAcaZP5D6gF02EKYK+x9gGvfaRJ7GmX5q/ZFAiEAr4OQ39tYRaDiAfuiII533eJ64UThsi/uYf2NnQ/IWno="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.13_1645608712643_0.18359907962961786"},"_hasShrinkwrap":false},"1.3.14-beta":{"name":"francium-sdk","version":"1.3.14-beta","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"readme":"# Francium SDK\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Farm Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function farm() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getFarmTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      depositPcAmount: new BN(1000000),\n      depositCoinAmount: new BN(0),\n      borrowPcAmount: new BN(1000000),\n      borrowCoinAmount: new BN(0)\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n\n```\n### Get Close Position Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function close() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getClosePositionTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      // 0: swap to PC token\n      // 1: swap to Coin Token\n      // 2: minimize trading \n      withdrawType: 2,\n\n      // userPosition.lpShares\n      lpShares: BN,\n\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey \n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n\n```\n\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n## Lend\n\n### Get Lending Transaction\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function deposit() {\n  const { trx, signers }  = await fr.getLendingDepositTransaction('USDC', new BN(1000000), new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\nasync function withdraw() {\n  // You can get this value by getUserLendingPosition method\n  const rewardAmount = 1002232;\n  const tokenAmount = 0;\n  const { trx, signers }  = await fr.getLendingDepositTransaction('USDC', rewardAmount, tokenAmount, new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\n```\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n      // [\n      //   {   \n      //     balancePosition: 0,\n      //     pool: \"USDC\",\n      //     rewardPosition: 41354540149,\n      //     scale: 6,\n      //     totalAmount: 50386.25041249344,\n      //     totalPosition: 41354540149,\n      //   }\n      // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN,\n    //     apr: 8.36,\n    //     apy: 8.72,\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","gitHead":"257470ac654b3ea0e1f1aa0d168ff5d356c31b64","_id":"francium-sdk@1.3.14-beta","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-i36TF/x+ChlCQlA2Mb0espuLQUYx8GbhmDzOjPO+Cny85f8j/yRxzwz8vAZxsoqcPk7HnzXYiDZxFyhHQYMRfA==","shasum":"811ee8bd6629070859a891474cc26d88fccc7a4f","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.14-beta.tgz","fileCount":115,"unpackedSize":2236080,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiFgOpACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmph0A//UnK/Tpo5wh0okC79RMKRd2GE7jUXkmdslth2z3NMHnKGFfT2\r\noemp4oppUZUzvpgJDwWuHxqZyNFcpYHI3JgcOS8TGLXZQuSZVa/rqtHihOSL\r\nl3TgH3A14QUiUOKJ91O1e/lTGSfCabhzJApr4NKfMr+mQulTczpv2w5XX0AQ\r\nQTiERS5u5sW1KgYqpNeafrl4+3Z1PStLNhsMJnDF4dsb+JWAGNf8khf8ygPj\r\nBdvS7BE8xX0UfPVIwZ/zho4GUvXB/WceXhhAC75mP78mRedrCZUcdBF4rKlz\r\ncd1/FxPHVwj80UTEYCF9OIlH1GDKN/wcIavPdfjUHbrXCwi8hbIB7/aLQ+BX\r\nOQgXz8WnfYRKBbTIAAeQXfSEkclDInvsk1j2sXLQgc5M0Yu3OW1T3ipdm7JK\r\nf7C3XOZDCeCSqexi5hRZpuPZn0uwKTfiRkLhTFB1H9pR7u/ITEgV886a3Ebq\r\nQml+krhnLaCurTLrl09l1fRTdxb7fyDU/QbgDGoHaMs7MDqT9KAw9DuvttHd\r\nl4Yfj2IBmRCNibHMN+QASJ1Hd+LU09Oj/slKIdFl2N6cgDBzrO32yCSuuG1k\r\naVVQ6z++dst7OCFbMQR+X7hTrZ6EGzVoWKrboHOpOEGcKra+hmCRDLKwUo7y\r\n/omocQjqVTGDALGMqOxdXf4iOkGW3y0bgdM=\r\n=xZKe\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEyGSuR+6p5xGR7ZJ391y3lw91elEvV6iyNrNDGtPQMUAiAvSFyecwj4c/uPzDh+FEEBNzQmrJihYIe0ckHHYrQaaQ=="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.14-beta_1645609897249_0.289396465846389"},"_hasShrinkwrap":false},"1.3.14":{"name":"francium-sdk","version":"1.3.14","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"gitHead":"35e6fca824c664b721292f76d73f154331d9af6a","_id":"francium-sdk@1.3.14","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-5jn64S+BFYjd4Q4e9nYM7qQSkS4Lc4mZ4YVPJ4J9TV1fuwbqvXXou8jmJVlST7spGDdS8UmUaWBYexudAwAUqw==","shasum":"b13439dda3da735744d6ec36156ae2c315b93f13","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.14.tgz","fileCount":115,"unpackedSize":2236075,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiGHrOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqETg/8CXWOlI9FW7jTHMCtEac/RPKDXMvQrhYpg0RzwKtPZMPOe7g0\r\nvoHkLX/iyRSG+ujJNk+R1FhfWmwLu9Y0re8Pft6ZpMbq45ooWLtsUKRyxUVf\r\nbAE1ZWPupRUIqg2xkYndyAT08pdNfn1vYXTiNADMfQxbhyrINQvjH8uyEv3C\r\naF+VbAej/noK2V0gvXckJIGzFjT/u0j50uQiGDJzgaY/uAcMQUP+FkUhH/H9\r\nQKTM/GgMM3adV7f7yVAdMYmzHC3pdqGV8uW+JR7FQXKfzG/kIYpDkaVH0vhh\r\nlkKmOWnUqCcaniMNxAZ121UVK//OxKe6yYTblTt9en4TPeddq5JPhdnzwUEh\r\nraf3KQNV2+7S/G52HkQAj3RWm6wCxIwv4We786SdrYRSokozR7/jJbfZfFmA\r\nnY104uG9HxZrWdvhZn7aj4zTNWdsEnlKvtFHrbIG0hYzaGjgh+4ed+k5QqJj\r\ngo4SuMtGVD5Kwaf6ATJkrhuo8e3GV+N9sbYOK9VT6wRXHlN5xzadT1gBG2PI\r\nYpzr/f9cRUGJh6ziuFRRaHVPKDi/PXubcOxGmaikaEhGN7L4bygT4ngnZakV\r\nF44lGERTGh/xl111bN196Wz0ROZSpc1hGE+S6GriNoomcdalqIyG6HeBeilS\r\nCuJq35fE+nyGaZKrVLekpvb3nLUYipNOIoU=\r\n=d2Yy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC0zyJp0dnfNgtNq+UqTc/dWZ56d6wBZqODV3dKdRXklAIgG9lAmmwx1Dta+TehIDHuf7unwXOPWOwUP9EAgWabO1s="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.14_1645771470566_0.7455982833094239"},"_hasShrinkwrap":false},"1.3.15-beta":{"name":"francium-sdk","version":"1.3.15-beta","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"readme":"# Francium SDK\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Farm Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function farm() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getFarmTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      depositPcAmount: new BN(1000000),\n      depositCoinAmount: new BN(0),\n      borrowPcAmount: new BN(1000000),\n      borrowCoinAmount: new BN(0)\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n\n```\n### Get Close Position Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function close() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getClosePositionTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      // 0: swap to PC token\n      // 1: swap to Coin Token\n      // 2: minimize trading \n      withdrawType: 2,\n\n      // userPosition.lpShares\n      lpShares: BN,\n\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey \n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n\n```\n\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n## Lend\n\n### Get Lending Transaction\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function deposit() {\n  const { trx, signers }  = await fr.getLendingDepositTransaction('USDC', new BN(1000000), new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\nasync function withdraw() {\n  // You can get this value by getUserLendingPosition method\n  const rewardAmount = 1002232;\n  const tokenAmount = 0;\n  const { trx, signers }  = await fr.getLendingDepositTransaction('USDC', rewardAmount, tokenAmount, new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\n```\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n      // [\n      //   {   \n      //     balancePosition: 0,\n      //     pool: \"USDC\",\n      //     rewardPosition: 41354540149,\n      //     scale: 6,\n      //     totalAmount: 50386.25041249344,\n      //     totalPosition: 41354540149,\n      //   }\n      // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN,\n    //     apr: 8.36,\n    //     apy: 8.72,\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","gitHead":"ac347b9e871351797d388f25a406a1309c212c88","_id":"francium-sdk@1.3.15-beta","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-Tg3Ti9SpElJFMHzfbrm7JGU/k8kFy1SiivOcQFTe6B7hG9XO/Sw3f4YFv4880vaEzhgRUVjOZoGCsSkc2edqRQ==","shasum":"96ddf802a82f788f19e27abfae1d55c0566dd1af","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.15-beta.tgz","fileCount":115,"unpackedSize":2264584,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiLVNgACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrFKxAAm/CKoXu1xBHJCpNHT6akbB5tMZOd/EnEMZt2YzK814JwliSf\r\nMMKV/ykegBVFBEX9QNg+7JYUop1Fi/dp0R7kf7mjx691Rm435bV21ILAm8ud\r\nz9rDrrXMP1IXYZ2VlmUZ049njtlyGtxN7+OxzL1TcCCkBDhle8PZ/rjVSuOE\r\nubyoZ+UQE3gp3CQ/si0j569IcQvFnCMRp+JirCP1/u+n3feYQOR0NHIemtuI\r\n8b74TGJO0IgXkeKJoPD//wkEMTcErsQEQL1pEdITy6Z3DWnPuRFwM1OqKDNi\r\nB/Rxe7LGV6OiSx+QjizlG6Y6UYZFVGXK7U3e/dhV7IctzyXrLU9PMMrVLh/6\r\nNFaBSxDpMEjstarFdCVh25iRXrPDRBhZ/lfdOqBWXO+PzN+zn2W7oJKHpDfY\r\nBYTN3ZYjJHRkuis/3f5PfUgQHAI+WIkkFW6AzVf4rfU3QvBk/QZfkPJZuW65\r\n+O6fSsA2TUm4/dWSavw2J/LVdjagKP3k9PcV+usGIDC1WN8jX2Ab7P7YBIpC\r\nz6FnDtI6CDvLCuQLjfnyCFzImhoOzkbvrs3OG+l+pdkV2qbvA7ZNhkf/Rasj\r\nwSeQ1/HFTJEiJUnvbfAVguDSSkkNhlxTUMlp681evKnaMhKXvgUbz89Rqt0f\r\nCZtclpbrUqTIIWP/P8KcYttZkTiiM7INDKc=\r\n=vXmd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCrEGTj2voffPjhY0lcuJjHafbmJp2JXRXRpAhyFuBiwQIgAlKVHMR2mOKdj8rnzHrGli3zFmUsrbwcHBYyNlUoohs="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.15-beta_1647137631828_0.48007711514347395"},"_hasShrinkwrap":false},"1.3.15-beta2":{"name":"francium-sdk","version":"1.3.15-beta2","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"readme":"# Francium SDK\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Farm Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function farm() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getFarmTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      depositPcAmount: new BN(1000000),\n      depositCoinAmount: new BN(0),\n      borrowPcAmount: new BN(1000000),\n      borrowCoinAmount: new BN(0)\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n\n```\n### Get Close Position Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function close() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getClosePositionTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      // 0: swap to PC token\n      // 1: swap to Coin Token\n      // 2: minimize trading \n      withdrawType: 2,\n\n      // userPosition.lpShares\n      lpShares: BN,\n\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey \n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n\n```\n\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n## Lend\n\n### Get Lending Transaction\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function deposit() {\n  const { trx, signers }  = await fr.getLendingDepositTransaction('USDC', new BN(1000000), new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\nasync function withdraw() {\n  // You can get this value by getUserLendingPosition method\n  const rewardAmount = 1002232;\n  const tokenAmount = 0;\n  const { trx, signers }  = await fr.getLendingDepositTransaction('USDC', rewardAmount, tokenAmount, new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\n```\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n      // [\n      //   {   \n      //     balancePosition: 0,\n      //     pool: \"USDC\",\n      //     rewardPosition: 41354540149,\n      //     scale: 6,\n      //     totalAmount: 50386.25041249344,\n      //     totalPosition: 41354540149,\n      //   }\n      // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN,\n    //     apr: 8.36,\n    //     apy: 8.72,\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","gitHead":"ac347b9e871351797d388f25a406a1309c212c88","_id":"francium-sdk@1.3.15-beta2","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-xhg6MsNKmqgi5FVbkYdcxetw+uDm7PLC+vWBX1WUBBckyBRrlouorovX7pKKJe9M5yLftrnFZButbA0j7GKmRQ==","shasum":"708ac9188da59d060f7974c6c6b23a7c3cc5dde2","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.15-beta2.tgz","fileCount":115,"unpackedSize":2257785,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiLYnnACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr2lBAAkb6VjwoN2qfo1rwhgWSWP068ae2XQe12iloDdKB9NlcEbw40\r\nW2qnIjeqCsGR3Ezp6QYBg2zaNaNGQOhzf2QynbMZ2m4lKPFpyWctgja97X/E\r\nEtDSBuEeBMDiynJc9ZyA7iUnZ/Re2YvMWWnKlCTQosgpuYL5PnJjSxOB/y4K\r\n8/pKSAxj2pUCIEmKpSsn1PFvyq9g3Ahkw+AEKZFNcbIiZ1qp2bjpgat9HsCQ\r\nCORorKxqlq5VWCVqFgOPeuPIRjxBtjF706KjXQD/0mwlqhSVYQp0FcpaGiz9\r\nnLNVaZzUdXrEAprzDBfJqjqNeMkeQUTvhMp5Ofq80no8kuEW7CVxHbn1KXDX\r\nFVjGx6f2llElz0bIkkfYtKzRbLlzPejR7KOHwmMJhW2zfQi0AXu96KBmUCR2\r\nNGZ5ON/YElj2qkii2WJVfqCHNEjPFHDHBxUyv/2Iqnc1XtWGM8cXUkDupRXe\r\ns6yLcrbtzsEVQ0EwxvLhTP1tOx/zGP6Xv49Bv10MOZnBkNdPY6EOaz+q1TCp\r\ngexbtL98dAxyIVMYwJ/ujXMgsqM69e6qygCdDEMTJWrid2fKB2sQ5Lqnf85V\r\nCiFCQecIUMzIHOUzOfDoAOtQDPNMNVbKvAnp6cuT3vOsCgsXOsrxY8trp8yx\r\nYac73giyBu8ZMWQ/C0yfrjFoYhe+c1JKa20=\r\n=g0T8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCloG3vugwhZiTvX20xkXVHEUNad4GyxSrjIJe4fF3M6gIhAL36sdJ7VJiXvCxtY8w30nQx7sX0ito+mS6Z40FHPckj"}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.15-beta2_1647151590882_0.3694077865595453"},"_hasShrinkwrap":false},"1.3.15":{"name":"francium-sdk","version":"1.3.15","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"gitHead":"74c7ab7e1d557cb092962754a3f863e889b086e2","_id":"francium-sdk@1.3.15","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-/FUtZ1z+yocJB1HCIh9JK7pWbG9nPf2uohvPgskMpIU48W4iKBpR2zeFandP5ASKgegAtMouU0qGkGbF5PMbWQ==","shasum":"74c53407a786b007cbd44c8523613d5359f73134","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.15.tgz","fileCount":107,"unpackedSize":2250369,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiLtvSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr+/Q//bJbrVvDVXd2kHJl1dDa2yIg8fmQgrSoYhXWx5yoD4TPGiUHO\r\nGCPiLwJcRUCyo769pzo+MlYKb3PN2i/Exroi/RBHSJh0UW4toRSXvFT9rU9Y\r\n8PbqZAA4w2uk83r+/k70pieONZAGW+rJjokLAxcFezAZOz3cSHZXdNx/isO9\r\n60/HpZtCcZhQY+NAL0wd3/rytcGCkiX/t0NWZEiOjbEu4LncXy5nHjcDY2GB\r\ndb5CbepyR9mNluJGc8gsdN6CwJSVoAHnLQXywPCuC2EBro2Xfi2DYBz4Dwk6\r\nyberOJiPhWupu/e3gw/+ekP2wnzCdM3MRt1Eyyn3VFtOGltoumpbYcO+Ucsr\r\nzgGJkI3FXVtYwIDu7FRLqq1ys2KkOwF6AigagrAVvZukqHm6lpspBrbcMFmu\r\nfFnpBuOd+hrbUhmKyo/qfcKLfoAOyDChVap9QqTxquvrTDwBlwp4f4Eegz6U\r\nuzJq7GpKjZL0oJoVcMCpxAPHLj1659f3YvF6GHTuYDuvGpK2Nefx7boxva6f\r\nmrkU97/YwIZQh/pgpc+W2q3zZwzdUxdxylUFtYYfVmpy10O3vGZ4sDgvUN5P\r\nmSz5+MB8/qRkrISHW08Ifa4MRmnkGi/7QRVqFEjOVtI03LpeN0ojTFAPfRC1\r\ntA8WBf6Altl3AbhdPbz2AAX1wUlJNXJqV4s=\r\n=CLCr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEP3sRdiTQ7EWuGTj4MH5cNoDEs4Q6I6oZuhZYWErukhAiEAvUggUaoBwDM3oVAFKEb2GVP0H9CxnvR6kfYMSnObc+w="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.15_1647238097810_0.6990295752757676"},"_hasShrinkwrap":false},"1.3.16-beta":{"name":"francium-sdk","version":"1.3.16-beta","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"_id":"francium-sdk@1.3.16-beta","_nodeVersion":"14.19.0","_npmVersion":"6.14.16","dist":{"integrity":"sha512-NiWCkcSXpfWCfVgAoxveraRe6tTVsGrAqrrMse0EHfPyX5QKv325ZYjo8/WFQjAOQYmhMFKH2PwjHgzfTueCOg==","shasum":"2baac9b85e9d2f1527e25f244929a4f62c3987f1","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.16-beta.tgz","fileCount":107,"unpackedSize":2298498,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiMuxuACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoe5BAAkQac6pGfNLjhqFP/Cos1GQ/2f23rn1D5QM+9U7KWsEEyTGU0\r\nT5SHGaJJ46tpAFoNWtslwoXfyZltMc3XS66UIbnMqybTp88gYFPXTsBD9I2A\r\nZ6taxl+CM1RGeikSGJIWOQu6DJUibn7d1P/8/9Up22tpdXyTEhYAm7gWTPvX\r\nu2UP855ewvbNCwhgpwH+1Ks1kxRQpT1Dk7twIzO2truQbIAf8teXIj1C/Aq7\r\nhKMVyYfhW1AULp0GeqGvbtJ1fOWe2+ZKXAUJzyWQYvrCtImjCq2dlC3GfXA1\r\n9GciXuUUGU2QnhOrXlL1xiVOnb1q+GT1njen+eNzHQwpBi5ICyImYjkT8+c6\r\nF8P250+IkCJfpZjBCkm0gwIuQ5XTXbYDF8fES5QkwQWX6AdS5Q9W6KQ8SZlE\r\nUXjYdHHoriTdqk7kxOihY72TkWF/DYBW3hgTwuWp869P/6NI+HdY871W1dC9\r\nYyA6AUCLNFoiwVWPOpTSHVJO9HLzZrhJt3CqJ6QeIPXiRY0oKikVNpyyNWiz\r\nxguBuBOc3doMk8q/DCuSzIsYOwcC33qiwM0mMroMF4sd/Glx0r3byAKrAtir\r\nWJSbSes7oRzTtmHFAfQimW2n8h+uKS3u5Ha8iQ7veOZiDl8lYkA25u9udxTx\r\ngPLsXCdtncPvPwFAOjV703ThdkfcrLPmu68=\r\n=4E5N\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDjLX/VJ3YJh/H7AGr1I/PgSdy9KCk+COANYy7Byg3nQgIgUt5d4hz0LoQScSFQ9tjJZ0bJTfeFxOqYNznB6Ix4ebs="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.16-beta_1647504494014_0.6899262558230148"},"_hasShrinkwrap":false},"1.3.16":{"name":"francium-sdk","version":"1.3.16","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"_id":"francium-sdk@1.3.16","_nodeVersion":"14.19.0","_npmVersion":"6.14.16","dist":{"integrity":"sha512-uCBQOt0Jio+hk3uoV0+mB+4hjFVIPTCq6oveiT48vLanaeYdqRmfN8Kxwx2CQ2UAn2TS5u99OPu1Xetx/aWggg==","shasum":"cf91174b88d20c04f93e94aa829691590b096110","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.16.tgz","fileCount":107,"unpackedSize":2298679,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiMuzaACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpeXQ/+O3T/+EL7tYUGoX0DH9GVtvJdsPunPGOGs/cQe0N728rPgflC\r\n341LdL283b8OmCQNPhFtqC/KFhTnwAYBcE2vGu8AzoTLTDVmMkUr1tqq//PN\r\nWowwppOQLxOneFNnFgi3j41qTGFMFl8C3Esh/QiulOtAJwbVSUL3L5quhB/n\r\n708cLMFCZklwTZBM/+Iv22wah/vbrXx7J3AoBu0SkydsOpvDWETdP8qin41i\r\nJ+i0XD4vM8f+QA0KaGc3z2lnmpROebbbXyUg+WHGVbOt9Zt2UgYSGZj8jrfG\r\nBUpfMWp6VG2N3T2y6GWfl4HYkLzgpYBoQakSFNPFuS+zS7/aeofakb5g6NX3\r\n9UiwTZGHK7fNcztP3P3fKLqonYAVmYYN2WcVWN0pMHz/7FmLLY9Mvot0FqrR\r\n4Yq7iz4S+P8i5f44qU/g1kqNDn8HGRauO6sHEzTP3QkFwvBU4JdMjWl1X0ni\r\nBAO7NYVIRWE+LYlNXyRmdFZk0E6sM3X5ncqkm5cVb6N8RGOkBvkmikN9pB+5\r\nsyVBnrECVWrVWCgoReUFtUzaH6AeDfn9CMrg6T/6LVnok0k/bTK8yeyUAz0E\r\nIt6pbf9dhUAqviC+ptAIR4A1YLXO1WzBgsNouQEgrWxCsbp2/WvLNvtPif3O\r\n4lJWcaaPoeAZ3+oCWFXuqFw3ce16DMBdct0=\r\n=4lbI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBvX34/wjsoRV8+JQtyXnpifyy3fX1yyQgWwFg3u0IJlAiBA/91d5jkQ/k6Ps+qJ6dm1af3ARIZup1LdD+rKFYbcHw=="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.16_1647504601709_0.5414492590798647"},"_hasShrinkwrap":false},"1.3.17-beta2":{"name":"francium-sdk","version":"1.3.17-beta2","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"readme":"# Francium SDK\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Farm Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function farm() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getFarmTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      depositPcAmount: new BN(1000000),\n      depositCoinAmount: new BN(0),\n      borrowPcAmount: new BN(1000000),\n      borrowCoinAmount: new BN(0)\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n\n```\n### Get Close Position Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function close() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getClosePositionTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      // 0: swap to PC token\n      // 1: swap to Coin Token\n      // 2: minimize trading \n      withdrawType: 2,\n\n      // userPosition.lpShares\n      lpShares: BN,\n\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey \n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n\n```\n\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n## Lend\n\n### Get Lending Transaction\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function deposit() {\n  const { trx, signers }  = await fr.getLendingDepositTransaction('USDC', new BN(1000000), new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\nasync function withdraw() {\n  // You can get this value by getUserLendingPosition method\n  const rewardAmount = 1002232;\n  const tokenAmount = 0;\n  const { trx, signers }  = await fr.getLendingDepositTransaction('USDC', rewardAmount, tokenAmount, new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\n```\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n      // [\n      //   {   \n      //     balancePosition: 0,\n      //     pool: \"USDC\",\n      //     rewardPosition: 41354540149,\n      //     scale: 6,\n      //     totalAmount: 50386.25041249344,\n      //     totalPosition: 41354540149,\n      //   }\n      // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN,\n    //     apr: 8.36,\n    //     apy: 8.72,\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","_id":"francium-sdk@1.3.17-beta2","_nodeVersion":"14.19.0","_npmVersion":"6.14.16","dist":{"integrity":"sha512-VpubJc3X72GoDFqb8RN/sQYlWXJSoBRPEjLKy5x1NP1ny8JjMY/0y9/AlAH5B4jiXFGobcSsW54Oq4cHMqpJCA==","shasum":"ea659184c0f4d0a834b8f47333ec0ee7c7b84025","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.17-beta2.tgz","fileCount":129,"unpackedSize":2465842,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGlxJI+0PCod1/SaBicXegGiX9yuMeiA+eAX65jowHmTAiEAvWDXarYiQi7T48MCoJW7RNpAvtnaWd9Y6Wau5Q2bIu8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRVdzACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoxow//WlW2Ml2WFRRDNwE7H6R0ALp0ra+iWVrT97ryXv8YmKpV38eO\r\nGgCH1PMKTQgA1siQ12CUXjYq/FRq+D7gJdQw6qrsDD10mrdKtBzmQJnwdixp\r\nVoQ9pCiy2yzReGDhWDrU+r4ry8SVY1bgH4SVVzSoNrmOwHx1009gJsnud19c\r\nZS1OGX4twwRS31nrIZP3ZjjMNGTncxfmvv+w/xSJah6EOfLDjJvn090SU9nc\r\nUVUBwDwoaGdgEQFWJs1NYZPiwajiJBl6l9NAhMY6qhFNpOeMObDa03Fs/NYv\r\nbAfhz9rwKIMLU9WbD6aMpJHYZaJEGVFhN6mphlIhIg667ca6gdGmJcb/Zf6R\r\nPnnMrHEYdS1KxYZzxKQQt1ykKFTOrrLWG9N+b4eF9zELVxosloKP12hyoW5u\r\n1kqfzLTZxuhBBNbUH00Q+SCPNF7GGLtqLoWiQuWqhQ67lu2biFK7f/7sao4M\r\nTIzrWflTjKWNj1f9Jw/viryhHanSZy5IAyDoFxu2OzmqkziaonkaJlzwPusz\r\nPwjXT/LZebo9Yuxau9KtXdb+026aFsr/m/vFn5zCSHv11RXJRKHBBC7UgVrK\r\ndkoW/DapiXoIuprCE3cbngSNPAWQ+yw5sNg+0Uj5JDvBqAVSjhQg0HieI59l\r\nKcYkMojR7u0caCugw9GAaOZ40lPJRg/C6cw=\r\n=SLA3\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.17-beta2_1648711538695_0.9320874535444748"},"_hasShrinkwrap":false},"1.3.17":{"name":"francium-sdk","version":"1.3.17","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"^0.21.0","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"_id":"francium-sdk@1.3.17","_nodeVersion":"14.19.0","_npmVersion":"6.14.16","dist":{"integrity":"sha512-K6dpuPplxpJoVbPpwKqSpzEMuntoOZPIFWb8GCIrEPIEmNBDVG5k+MpUiJl1+TTLh5ff2RlQx4OwyKY1dUnoVA==","shasum":"3490173945aa5a92ffa0fa8a7373d33700e04a15","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.17.tgz","fileCount":135,"unpackedSize":2562967,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCo2FSvU0F0NK7G+QYi/Z/jbQWPH2SjNcZHv+U6ZydrSwIgN1m/u6L5YrgGRsgwLXdZxNKyOvbpqfeEwXU1WYRZWh8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRXhIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo3MhAAggxOuwjmfHTPYGL4QC3OL8TgPa7BBII39ibCMgkaStNQPNCA\r\nmgtg9KwwXR6MGUD/qJrwoIpNfqBtOosMhbF3Da/yDlIGdCbrCg74rxaz8Xb5\r\n/6rlbyRcg3UoYW+bVkh9Z//k4UrID9CdmjzInYAqYssBq+ZFG3rggFowMOH4\r\neIbJUTGMmdMrTJC6ACRb0AGWWoFmeRnanR5ZVslW+SLsVyxTELDvwC3zbEsx\r\nuVag2RyRcH+HMxs2qxI30XTeS8HDfwygLCPD3NFY6HKwPRN6pw3BJDw/4+O+\r\nIF8+cEkaWuHitFEJIC9iY5xft7QVYOrRWHxYhX07P6YOFscZMhB4YS08tShh\r\n7jtrTOpnDD46PzjrPgJ5B2/OxYyal8tJmRKaalW1ILfD05N34hIjF0nFIc9P\r\nBsDIBQ58f30WxNgvEmhYoLcHZ6KieIuLQCTT7xLsWG2dfYGDMprXH4RhGOAl\r\n5wgBnre4yWWgJO1sl+wHQmgdmr/okPMSmv42+nXxVmQ3IQVLLFHmvBlxfIKx\r\n+RVqGgY+4Od5Mu3GOGUbCvJou5GgBTDkX35kDpHeiQqQFVHEleWKwgRVws56\r\nFGuQ/LDnAf+8pmpJGXx+HZzonyC/yZiDje21J7cbn/CUNG5blmt+KqNQ5MkR\r\nZOhkNT17kfnPsAitc4jg/ER5Z4BFjNYdKYU=\r\n=vgwN\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.17_1648719944663_0.7475806894328534"},"_hasShrinkwrap":false},"1.3.18":{"name":"francium-sdk","version":"1.3.18","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"_id":"francium-sdk@1.3.18","_nodeVersion":"14.19.0","_npmVersion":"6.14.16","dist":{"integrity":"sha512-RUfFo1GeKrl5XM9gJvzwirtGwUZJYWHLizNwGiC0WerLWy0zPfhbXjkyiC/B5aG7enQ1x/ubc1Yt5towjVvXHA==","shasum":"d6a281f219e83b6018e5b4d61511763ef2d2787a","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.18.tgz","fileCount":129,"unpackedSize":2447667,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIESyl1PZNFoqZieaiGyIIqSUGpHPLVO6Z8Jpt1BdkhshAiAaTSl6CIygBatBcCqOh9MGOvQcp2rR/SHJfuw0T7YIRQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRXkTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoM4w//T8ut0rTUKmGgouRVBs+cZBqE5Q4id5nFuNZiOTMPDI3fFcAm\r\n2UwZ9s1MrlgSUyN6YQM8JWC1buvGW7ynZNBA5jcJ+9wMDo9VxLW0ic5Iyq89\r\nMo9pAH0DmO0ZpeKsUmqTrWpU4R8xYAiPa7ZklDGvfTF0uNFZDtC3FVrYLAoE\r\nSvTA/bvcIE1TTVhUMUSs/ut3tJu1n0/33O7t0Tbuhr3nTrKlt/oddgkvmPoh\r\nydI0pxh5NAsqnjhVashPvPhtpzk0h7GbtQ1xAhhGa0THZpsbNK2IiIFSfi9t\r\nc//b/Yjj7HwnNMImu7zmvJK4TZ6FRKjq2sBbcrVsieYKb3OYQVIz/vqEFbWv\r\nEoIySw8XE8f1vdcGSItcJ/qNfCDH4Vc0lA32U9fni23l4Xenfp6oD76yaA5B\r\no86ec4AvH9wRu8bEABLDU1z0Zob4glTqpkoE4al6KfKCkyMiaotAwhlfLAa2\r\nPYFjwgUeGT1Akf6umuF/+LHaySncG57yJVPOfMsN9W80+G6L7g21PDljF14v\r\n/JMw+ISR5Zcw/NfmTubhSDdK5WNhV3ALs48RzaKZDxzTQcEyeZe7Km2JQRmr\r\nYoSwXPm8iJB/moOEGVBLtg12K8fsavKpUYPgDmbBse5DE+Yu9zU6g7Qv22gb\r\nJR+4GVZ6YMwcST8QnzvLLFP4E+d6iEg3rZE=\r\n=MNyh\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.18_1648720147506_0.8279993880107541"},"_hasShrinkwrap":false},"1.3.19":{"name":"francium-sdk","version":"1.3.19","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"_id":"francium-sdk@1.3.19","_nodeVersion":"14.19.0","_npmVersion":"6.14.16","dist":{"integrity":"sha512-UHHsOEf28YxnFixJqja3o6UovQko6mLBKBPIvw/eW+PfhmEECR1eUOnSM4KrPuAnqRjg8LqF44Y1UMn2YDetTA==","shasum":"fef31deb9ca7092fac769d0266171c9265aa3205","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.19.tgz","fileCount":129,"unpackedSize":2467619,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDBGh7cK4kowf5g2ZoLLZrfJb4zkBoZd0vpEwB78g5UXAiEAhUA431YeHlE2CWzFAJWRt5ZZNuXYUUbLMOfGvo1h9oc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRXoYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq7Lw/8C3FWOTQC5pKNqqnS7Bt6l7K8/gSMjqREOzSU9rTZsIBpNn52\r\nL/y3xPVpTHMTVaHEE2x01lCZQeU7pZdp7aZz5gqAWw8jti4zw6kXs+3k2ABB\r\ni/Mkot1LQl9R4TFblOa99LajQTu7wuJ6xqQDkWZs2MNse2O1LcDKCrAaiQq/\r\nDUGmrp0Y6Jzm/9yP3u44XApQ86mm2/P++sCSUJlWRbv1D+Fc8FaZ4ilIWWqn\r\nNFam5KnDFqxikvA6EeRmBaN9fTJJt0t4TlWyhMQxUkuG6E5ltjWLrBVQN4qM\r\nSMShz9JvtGUGNpOELWvP6CXKDMSLTgeVLroOpxyBXEUKyf7Keggr+c0WThcF\r\nIDN+HczeZ3qT8ZWmofvFI7UrV/fRkO7JblvOY86eeuZVRZFJpIFmXblZTw2Q\r\nq1GjuRoSstkPPtA4NISKtpMcy3SgwVDmeFdS0PtpN7bc13b8qzhmZKLt4tOa\r\ndpZuVmUov/GMeKRgJ8X40dGkBMF+Y8A/uGYQ+Rzx1N77h9b4xaUSYMO59SSG\r\nd7nXvv6YqP92h7o/xe87KCx8y2PVFIF7o49aLpmNmubJocnWiNSb6zO7fE/p\r\neT5yRhofDpv0WVtRkM2vHkLWyWYpQtlyeCI8ayFcS8T2SpqZ8F0m6IuOsV0T\r\nFa16kMS3VI3yz3QAOL5dsdNhrJOofrWo784=\r\n=PthJ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.19_1648720407904_0.6406490242498317"},"_hasShrinkwrap":false},"1.3.20":{"name":"francium-sdk","version":"1.3.20","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"_id":"francium-sdk@1.3.20","_nodeVersion":"14.19.0","_npmVersion":"6.14.16","dist":{"integrity":"sha512-SKz2siQ+xIdpl+c6Nx7GDFx4pQec+5A8E1slnTNUzdokZFrrjVEBSuxE1aAe9NBrVvywbI/MsQTseoiEHfqv/g==","shasum":"fed50bb062436c9b79be5e960c642b4d81b06f15","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.20.tgz","fileCount":107,"unpackedSize":2336446,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICAqWjyh0aciFgeXQR/f38atMmwKnaQtpHW3Z2pVpSiiAiA1W+J1z6oztk4APuE3bSYWcsp51Rc2PxBpgKIhRsefEg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRXwjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp2lhAAm4vseCXFYGqoMY/QdpwjVdhoHQCfCnDEcg76Bv2tU/aYt7Uu\r\n6XmfK0731kxHl3QwW6VuvlvKy74DYuGeLTfb7P25bPi77xvDJn3aI3oXgE5D\r\nfeNGMytmca/wW+MqN0VkHhiKR+qRYyOEldliJNg5exW4mOHeM7H8XZWqrUl0\r\nFBhxI5FegLdOtr+cMssfLTirDMTmXo1tjdBWpORKi0toMb+dDRi5KjShpZ3+\r\nboUB8ThKAwN3CtYL2PWdt22Uip0XxhwsZfL1r9emHSXfgMw1Pq8QNADJM4tA\r\nOEFJFevwJaKxd5iFX/uz2O/ykhnVO6Audo1huD83hzJSmIO9Fo/RwinZG3j2\r\nWSBD4R9hXUVLhpZVZi6eMvOIywPwatkx16y/xlrB0Tb4uuVog1XqyKJ6nI/n\r\no73c/VybhI9xRxR9T/Vc4/0F8HiH9oPFZ5rgIW8fZoUWHXNBwy1hOtQnyZR6\r\nQd6fAq9WhvUWanDut/gkebHbIEab32zGKPks5DCuPy2a1TAFC66rPUUgsZ/2\r\nt0UnPQeOPa5CDp8boxa08LNiu8tXY4GGeA5Atakl5/TvnND2W8tv5WqYiTim\r\nh8ivqLobYQjmOQT7oHovX2RUTlZ5vWQMLI/VS7AsFZSi9phb/iDV7+9IkyDO\r\nGKk8LqNGeyWKHWwO2fjpo0ZQUcOFsHC7Ggs=\r\n=ByO0\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.20_1648720931745_0.24270018504348223"},"_hasShrinkwrap":false},"1.3.21-beta":{"name":"francium-sdk","version":"1.3.21-beta","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"readme":"# Francium SDK\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Farm Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function farm() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getFarmTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      depositPcAmount: new BN(1000000),\n      depositCoinAmount: new BN(0),\n      borrowPcAmount: new BN(1000000),\n      borrowCoinAmount: new BN(0)\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n\n```\n### Get Close Position Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function close() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getClosePositionTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      // 0: swap to PC token\n      // 1: swap to Coin Token\n      // 2: minimize trading \n      withdrawType: 2,\n\n      // userPosition.lpShares\n      lpShares: BN,\n\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey \n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n\n```\n\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n## Lend\n\n### Get Lending Transaction\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function deposit() {\n  const { trx, signers }  = await fr.getLendingDepositTransaction('USDC', new BN(1000000), new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\nasync function withdraw() {\n  // You can get this value by getUserLendingPosition method\n  const rewardAmount = 1002232;\n  const tokenAmount = 0;\n  const { trx, signers }  = await fr.getLendingDepositTransaction('USDC', rewardAmount, tokenAmount, new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\n```\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n      // [\n      //   {   \n      //     balancePosition: 0,\n      //     pool: \"USDC\",\n      //     rewardPosition: 41354540149,\n      //     scale: 6,\n      //     totalAmount: 50386.25041249344,\n      //     totalPosition: 41354540149,\n      //   }\n      // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN,\n    //     apr: 8.36,\n    //     apy: 8.72,\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","_id":"francium-sdk@1.3.21-beta","_nodeVersion":"14.19.0","_npmVersion":"6.14.16","dist":{"integrity":"sha512-PsrACM1gh+7iLzkohHc/0ldAK2YevyBq9vVQRx9r6UoAwaKWrPK+9Hu9JYUs6QekLjFQljppWLBlSWd4fVwEzQ==","shasum":"4c5f310ef8ec96c921f8606d527bcf3c386e4079","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.21-beta.tgz","fileCount":107,"unpackedSize":2464034,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQChR5tVHv2Wh5ZAx7lJLBZbAfY8QAhLhkeA9vOF6qISlQIhAKdjXztW12Wo3qCpWegNDNWk3+jZPVgTS0gCWnlvCjhi"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRqC4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpctA//Y0MY6vga0aSZcAZhqF+RJgWhYVCfZuRsLDcHYE7RIwkO1BRg\r\ndfjhMQWtyuDag370oOo0srgtlENJw78j8MBSJqM3LEZnUEkqZKWytPGeDVJi\r\nS5/nkDJxC+G99lyDj61CfQW6ELqtsrPeZ3+fTkfdkiPoE/z9MVyCC9fZX2cz\r\n3bF+SELCQ04pGG+k+t8WtawH/nO0C6nySmwH8mf1PQB+d3Vu7C3eJPA7I+UF\r\nOCunSEKocFieLw1lfneCHONS69SHWvcdxO5NvmmYrNfwpRte0CRZ8pBVj+/r\r\n5AUNOt3cjb23tHunUznooCiHBdvtzXnT6tUeCv0eLfjDeBTErAgdepLmIS6N\r\nuiEYhcfrjWST2uSOrDq9ImSxZPEcJtSaNmpidZAoQ+B/ZVV96fxjnK98h5u3\r\nELX3e2MP6V3ijFou/suD/kCP4hyQSjrcosxuQi3RQicHD1OLa6EtayqJB0Gf\r\nwlc7Kz88gYo2giC+As/D4nUNb29DjEQgOf1yNKwjrXrT7AVxZRK1osOw5MtZ\r\nDR+PKPufjzquxFsapJ5cVnHliArNuCsR8j+AfG8Koz+uLOzy09LcWL8WKmRv\r\nqIm4AIsKoViwjigoigAIEPFyH8lxTtTs75k0aY49mau8Jld6Jj9zYKli9zwj\r\nkKk52O8R8i7WOJzbz28RQ3TaDKQqPnAV30g=\r\n=Dt2+\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.21-beta_1648795832418_0.034425424688233175"},"_hasShrinkwrap":false},"1.3.21-beta2":{"name":"francium-sdk","version":"1.3.21-beta2","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"readme":"# Francium SDK\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Farm Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function farm() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getFarmTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      depositPcAmount: new BN(1000000),\n      depositCoinAmount: new BN(0),\n      borrowPcAmount: new BN(1000000),\n      borrowCoinAmount: new BN(0)\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n\n```\n### Get Close Position Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function close() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getClosePositionTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      // 0: swap to PC token\n      // 1: swap to Coin Token\n      // 2: minimize trading \n      withdrawType: 2,\n\n      // userPosition.lpShares\n      lpShares: BN,\n\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey \n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n\n```\n\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n## Lend\n\n### Get Lending Transaction\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function deposit() {\n  const { trx, signers }  = await fr.getLendingDepositTransaction('USDC', new BN(1000000), new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\nasync function withdraw() {\n  // You can get this value by getUserLendingPosition method\n  const rewardAmount = 1002232;\n  const tokenAmount = 0;\n  const { trx, signers }  = await fr.getLendingDepositTransaction('USDC', rewardAmount, tokenAmount, new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\n```\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n      // [\n      //   {   \n      //     balancePosition: 0,\n      //     pool: \"USDC\",\n      //     rewardPosition: 41354540149,\n      //     scale: 6,\n      //     totalAmount: 50386.25041249344,\n      //     totalPosition: 41354540149,\n      //   }\n      // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN,\n    //     apr: 8.36,\n    //     apy: 8.72,\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","_id":"francium-sdk@1.3.21-beta2","_nodeVersion":"14.19.0","_npmVersion":"6.14.16","dist":{"integrity":"sha512-WW2Mm3aDkWtHUFkEM9Sb7QBXTSlWKuyEUwGMFjz4LD0ZYXltHFIgHU+PbXk6jcaEK32Rvm/A2ibQQwrLaavfZQ==","shasum":"4ad85d1bd67455ce9a755c7099a8cf5449581ccf","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.21-beta2.tgz","fileCount":119,"unpackedSize":2567219,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCxK3ZkG+kPzmAAwmrDlz4E3UYRGW1h3cpqJzw5rJXMygIgUA6LxCyJ49gqmwpPONx8+2Q7Kshku9sOvnL6xGCVNLQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRs1sACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpOaw//edzQwIU7pRy60hQIp98V0c417NRo5SLpMm7CYmyutXAhH1mW\r\neDCKh7OuGUI4dXPem6dGL4yJ3IcCSHm8T54z3tJXxu3frwKdZGVkVE837M8V\r\nQ7X0wDSv+JVzsmmRO3BD3w3u7uY9GSq89qDgZ7PqbA6EqHuhIGrq2Jiae0Q8\r\nFxXA8MTXbMutXWyVZHOmZrLWS5IP14V5qNnGjNnmLA6A2EIeocYchXwMaxz2\r\nmh/JT1k6zIH0Dv6dBlWGM7UasNNVYGggj/ngGgTecqsIO2Pyy1uzdhqJKxzl\r\nBPGnf0AvV9LjJoOIXJTKUVuYrgta61Y59F/XaCvz/p5C4rK8bTEBwmAnX7sh\r\nqWk8P2wGSFtX8cCtY1sDrBvIB0g44ExRPd3sQ1yqFa0WUyC8cBPdmJ88/74o\r\nYaN1h7hdT4NlomRoReEPIhRma696LwEEk/DyeDM5q6PSg3f18kJgQBiCDK+P\r\n6tqLClEdS6PkZHMoRwIhBWblukt7i5GXRGAF/weRb5ImDzY681U67lLydICL\r\nqnAbZn6ZILO/I1vHLAc5u9PzyYoX+/eL0TrxVKX5nNWG0nZ/u6IctE08+3qn\r\nhX3qcNeBK9YzNoCJHbCtshyHoR8oOl+LNs8n83mYyFrbWGGPNxsvVe2zYlx/\r\nhPM1lcV7gAy3d55ZdugKA5SBjPLda4MlhlI=\r\n=5s3E\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.21-beta2_1648807276347_0.09698052076389563"},"_hasShrinkwrap":false},"1.3.22-beta":{"name":"francium-sdk","version":"1.3.22-beta","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"readme":"# Francium SDK\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Farm Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function farm() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getFarmTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      depositPcAmount: new BN(1000000),\n      depositCoinAmount: new BN(0),\n      borrowPcAmount: new BN(1000000),\n      borrowCoinAmount: new BN(0)\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n\n```\n### Get Close Position Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function close() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getClosePositionTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      // 0: swap to PC token\n      // 1: swap to Coin Token\n      // 2: minimize trading \n      withdrawType: 2,\n\n      // userPosition.lpShares\n      lpShares: BN,\n\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey \n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n\n```\n\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n## Lend\n\n### Get Lending Transaction\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function deposit() {\n  const { trx, signers }  = await fr.getLendingDepositTransaction('USDC', new BN(1000000), new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\nasync function withdraw() {\n  // You can get this value by getUserLendingPosition method\n  const rewardAmount = 1002232;\n  const tokenAmount = 0;\n  const { trx, signers }  = await fr.getLendingDepositTransaction('USDC', rewardAmount, tokenAmount, new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\n```\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n      // [\n      //   {   \n      //     balancePosition: 0,\n      //     pool: \"USDC\",\n      //     rewardPosition: 41354540149,\n      //     scale: 6,\n      //     totalAmount: 50386.25041249344,\n      //     totalPosition: 41354540149,\n      //   }\n      // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN,\n    //     apr: 8.36,\n    //     apy: 8.72,\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","_id":"francium-sdk@1.3.22-beta","_nodeVersion":"14.19.0","_npmVersion":"6.14.16","dist":{"integrity":"sha512-k+8lROlalp5mSD5gOOyOwbnxh1+EMtkp//9mRHDQnPgHDr/mngJBf8ugGYZx3L6gzdKTM0dr29JwMtEeSuKtvQ==","shasum":"b2d85500b2a713c4d8df78ccdcd54d21fc296c4d","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.22-beta.tgz","fileCount":125,"unpackedSize":2658637,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHdSxGnekylQYmrFp90xEy/txiTFGSwRiDKM776/Ys76AiBEiDqc5iBTcfNGdREeQT6b/JOfuoXKsHIl73o/QO1hFw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiWTl1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo4Zw//dN6cCH9jJqhG6Eh8elqwPm+slDOCgBezS+jH1np7aDLZ1qKm\r\nlacrk/FFfxuY9RG+NoeNfIr5ezFCIv0EyguwvsMesa39XA2jH9hnAusuYfME\r\nAXDIovGochaUhh49hS43n05LQoBU4Ym3Vw9j9j5csMeohDcd8NFlV9sKtQg5\r\nCyOaDNTiNLWbJfbiDsOHN734jWoggOgN59MxCXjPMAbrF2otSzodX5c2kjn1\r\np1pbAk9B+3IsDIl/a9fiwbTzoOeu6qAEIEUAlsO/gm70KXEH4I1nLBDCiioK\r\nMkBkz88TQfG/qwFs4KGfFmdegZVioQMuLyPcVwvGtvX+j0IoFAccxQyH69Zm\r\nG8zQBGVZRwfwNft6O6aQ+tBdT/XkVc0+DK9ZYe6cjvngZL87z3Ew0B+RQoV7\r\neuVGz/LBD4gpTmr4l8jncXP1OvL0lfhffvRY+XNZDoTClTrWyZbrrsKtaKQO\r\nroFkciucKPd5/03kHmqQyK4TGdxGZNNZpa4cE8z/egqx4r4nYTdQn/0USEDU\r\n443eRMyLkMcVFQ4VKYDhkCBi+KNlYh3Fmq2iEUb4Rb7Ha0qH5ufa+jUsNMeu\r\nPafCrV8OMxCb/gIAdSlS1CALHXM9KxQ5QPhiOwPLHtOpjFc0GBKwDL1duS4A\r\nx7Mingey7Z6u3kghuCnPdOW+uABjkHJwnHA=\r\n=FRVr\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.22-beta_1650014580828_0.9006543653490313"},"_hasShrinkwrap":false},"1.3.22":{"name":"francium-sdk","version":"1.3.22","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"_id":"francium-sdk@1.3.22","_nodeVersion":"14.19.0","_npmVersion":"6.14.16","dist":{"integrity":"sha512-vTzg8MJwkBeqaoSi3awlz6Ip+BFkgSTf6jTbZB3rjNVGWU6vnwZmiu9Cp3VOeKojBPQH4IGDNjYWN8UTqR08DA==","shasum":"8a1cbbcae8d5031e23e83cdf69f54a51d4302ca6","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.22.tgz","fileCount":125,"unpackedSize":2658632,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCmRY1w+HMhdVJEV7rG2pLoC9eQt/cz3UL23a2BSouZ3QIhAMCpeywstxcqIlnBbSXOMWvkGhmojM+fVoN7DH+2H+zh"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiWmU3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpi1g//cze13M9U3JAPQUNCleomIngqhrG5X04VfHki4T884L3rPcko\r\nvTPo/StRpkAUcOLj+zeoMq9KFnw3xfV0cUOpg633vZJbdwAAeID6bBETQBuy\r\n4ZzOB26GAlAezDMmMDSzJmNyj7TX3188IOlOp1DCFlCJIsEiYwqtXTWSiBwX\r\n/x/pze2URK8rhrFvOy29cj+d2CQa+WQrDezE6Sky9rfyr9nQS3XaWr7KoJI6\r\nE2IObQC5QOJpDydr9EognwtXE/79Nryc6uFTxh1787OoIgFNGfyd4CNLV3wa\r\n1gl2zZUILuthy6LWw7hk5dvxrHvV8XPNWRz82Ra8Jr0yuX28bJ9xVQgmYN5Z\r\nPeb6h/pSYAxCNs4gf130ituhl6T6+NgAHyhdcBrkK8mI/FyCcpYwxhNGSStH\r\n1f2xtA7VMKrttFhWs3b1f48D30SKBVv/xlH6mRudDcphetyqsxWmr/J2aBD0\r\niEYdQ6Hju/ousae0DuFWWb6KaXYS8TieAjKlTJHHJoqCoghuMZ5hXtvFPSe9\r\nPENbLUlLmGQmj8GhZCjhCZGwYNQLJUqTWJwBh3tcpnymJeE3cMGiNvoEZF6z\r\n+5gCV4OZwoy0Q10Vl0OIamyhripTdAQNabQnOU72rfpO10B5C+Gjj2n9b2en\r\nDxn8anlFWZVjCBFRiIlMvBP5PFUPxWLKqBA=\r\n=+HLZ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.22_1650091319206_0.2912383326090249"},"_hasShrinkwrap":false},"1.3.23-beta":{"name":"francium-sdk","version":"1.3.23-beta","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"readme":"# Francium SDK\n\nJavascript sdk of Francium lending pools and farming pools. [Learn more about Francium.](https://docs.francium.io/)\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Farm Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function farm() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getFarmTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      depositPcAmount: new BN(1000000),\n      depositCoinAmount: new BN(0),\n      borrowPcAmount: new BN(1000000),\n      borrowCoinAmount: new BN(0)\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n\n```\n### Get Close Position Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function close() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getClosePositionTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      // 0: swap to PC token\n      // 1: swap to Coin Token\n      // 2: minimize trading \n      withdrawType: 2,\n\n      // userPosition.lpShares\n      lpShares: BN,\n\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey \n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n\n```\n\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n## Lend\n\n### Get Lending Transaction\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function deposit() {\n  const { trx, signers }  = await fr.getLendingDepositTransaction('USDC', new BN(1000000), new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\nasync function withdraw() {\n  // You can get this value by getUserLendingPosition method\n  const rewardAmount = 1002232;\n  const tokenAmount = 0;\n  const { trx, signers }  = await fr.getLendingDepositTransaction('USDC', rewardAmount, tokenAmount, new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\n```\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n      // [\n      //   {   \n      //     balancePosition: 0,\n      //     pool: \"USDC\",\n      //     rewardPosition: 41354540149,\n      //     scale: 6,\n      //     totalAmount: 50386.25041249344,\n      //     totalPosition: 41354540149,\n      //   }\n      // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN,\n    //     apr: 8.36,\n    //     apy: 8.72,\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","_id":"francium-sdk@1.3.23-beta","_nodeVersion":"14.19.0","_npmVersion":"6.14.16","dist":{"integrity":"sha512-wrZ4kF4zu5gHHUPxvMZYHHWMDSnm4fqM04zsmR2ajledaOIgRG+h5xVIVpzp5JJCh/W0G1wCGVcEvXjw22RhTw==","shasum":"2231900c7a7d99f656e301f0a9740299dd7e660a","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.23-beta.tgz","fileCount":129,"unpackedSize":2728599,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGjThLCM0o9Is2FUgTwGfv6rXhlQ0h7G3AyXff1kAc5yAiBLJsrvFFXfDwZLq1pjLmteGlbwYhWsduWforyhyj1iPw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiaLL3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqM+BAAn7BjXb4s5jjF/VkVUiSN9h41CwCIp86NHugqR3+CA18e6AEB\r\nAX/MMpzAsPcQxI/pBdNgipdDdAtee7z42Ab6G67FNsN4JZEPWo5cqHMhG6TI\r\nLEHEz/jWzwPCqIB3IUS+Xk4AKoFCZWB2vA/yK+0BEl88kgwB21FM+jset76Q\r\nz5/au75d3jojbHvx3QNY0bcp3q4OJYGRs5Luzb4SKhS0wluRugeEGbgwcRs2\r\nxfOxgFGWHKUfqYYe9Vn1s2hmhgeYD7LQWp4idcQ+cFg1QAu/+jc+yohvg+0S\r\nM/wq7qF0xYj/sasjjos9fTQY4ueXnWnd4fU7wXFz5njSCfO/RIOWZ4D4VZyd\r\nFs8VocYAJQtTY3pc5FZ+rE5T+W7uqffpph+fG/kmVVZ7GYkAnR8FvMmsy4D3\r\nEjPtKi6E1UnXK05+GTXnjOfaCVRWNXKN7t/38MEd2wzUAEfz/S6ODQP2gGLJ\r\nel5vHCDjeuAfKkXCyeU840srWAiIb12gfTNxMAxqF169jgl/qxPNf5ll7Gbo\r\n6PTopsA0T832g9LoRY78otzPRr4VXq30124rUCTgWfRw20sNwHqU5eNlQNYk\r\nEIYxVAIVNvdYp0q7D7zs5/A1umRgWnC8fsLMXiw7EpD7Fji+iCq218htZD7N\r\nGYSdk5FGA164+e6xQrAdzYJm+/mtgugUCSk=\r\n=xZsz\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.23-beta_1651028727158_0.4549801876590094"},"_hasShrinkwrap":false},"1.3.23":{"name":"francium-sdk","version":"1.3.23","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"_id":"francium-sdk@1.3.23","_nodeVersion":"14.19.0","_npmVersion":"6.14.16","dist":{"integrity":"sha512-6s6XU4D7HKYTCyIRvqKY5BG3uPmoUDppFrJ18cz0YqBVCT1+Zkh9PsZg2NS+jJ1TX1TY95DyMuNqnzBJjouEEQ==","shasum":"ef10ac1696d2deb2c68781f5a76011529bda7729","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.23.tgz","fileCount":129,"unpackedSize":2728594,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD4ZkseJbCZbs9pQD4o10kuA2ta6UFPSWspkGTT3Uw4AQIgT94V+60WVpUi6bCNv7MPJSOhtNV09JM43B9lUuUUrtw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiaOJTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoWDg//cxedq9gaeQDdTC0wStuSvEOz9l5UEoeYaN2+tMIj9vB5gsFA\r\n4rELppdiTsr8PSi6sj3/P/1jiHpNycZTZea0aGus5n5n03FmmI+ZNOEWwrkz\r\nQEZHfsLRgqlpu8lIaCrzrrr3bGvQcf+6L9VqXQ7pGo5Gbq8tL72OOY2zUgWL\r\nEWbcYKqrnsl9f7C0qd3Q/LFBV/Jnr6aDH1ZjhwLFHQc1m/tcEzrEokjuOJ55\r\n6tOT/NLGofwFMf5bFMpt9VvEfXORGsB+d8JpmWRKdxOBef2lANXxjASXmMmt\r\nlJsGqKQ7xxrrzucxgJbXUOjoUvpCxUYGFDxUl3RF6uLQy9Jui9QxC7Ruh8sR\r\nCfbtcDeVhkvWH07JMngv/yU7pk9dKnpKK/TJ8utrhCfnwAw+pgDq14Kl72rc\r\n4c8UN4vIAskZJfZC/kAgGJ3hVcV40+JZFqwxRq8/cLliD8oREXreILDncxEh\r\npV8PqNN3epb2PYx2qdXV5W8ZlGZyF6G/DHfufvVuHEp9vfwQu7SRDJfRkc7J\r\nDsaouWGWbI0COPAnJyEZh16/RRBuDPWRwi15s4nRqIASoWUW+7H+ODqyvDF2\r\nhRRer32PluLbIwVbpZ3VwFPlaXFZ/pDfpzAEqofUB+icUO9mEVgmiFaXNL5Z\r\n4zcTMrGaftl0KMFX1/1I30uYoNry0KRNqqo=\r\n=8ndH\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.23_1651040851611_0.3890729685206422"},"_hasShrinkwrap":false},"1.3.24":{"name":"francium-sdk","version":"1.3.24","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"_id":"francium-sdk@1.3.24","_nodeVersion":"14.19.0","_npmVersion":"6.14.16","dist":{"integrity":"sha512-xWRkDrQ4hnTvmxhiZ/MkEaqyJwt8g/J97RluGPwNAOhFYCZW7553UPkhYoe6TOkwc1MaDj9VtJfEeDQqtURbbw==","shasum":"7b7f44f56a15ced5e0b80ed0a1994f1a99ed56d6","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.24.tgz","fileCount":129,"unpackedSize":2728671,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDYfZLB7Pc3rGR55hPFDkobiPt6a21kRwFxsprprDnGrgIhANGdf+DILtTQWp6vpBxpFqYzOTwbSQKQJK5Wq599050W"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiaOehACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqvhg/+JGAEMcEQcg8hh0A2Yy56Y/i3hQUDENf/pKG9xkMuaRz8AYVw\r\nbU3vQJpbmOYvcGRzG4GyxaSpzGn+ZSC+MitfImKVekHBDCYqEzMZEPvMG31T\r\nbDfJJIx6SvcaHbC5H+/psByUX+COz4eK0ibnwIEthatH8/bKGuq+TNkMEgLF\r\nknCRloYh/Y1DrAzf1opQNVtWHl/US8obuKs3e2NStEtCvHqaQfUUGQzZG+Kk\r\npxWslo2GV+MxFJ9N7lPdCeje1RkaQ8AZtuu3WAG9wP/hrZFEC3d2tb0i/712\r\ndhOc4A2Sz8ag00b0V1GXDSr7L0dfHlY0nDf/yzDrpvvGgbZvrA8Ub6u5NXg7\r\nX7B3AkTzS/CcVmtplN+M2xiYJ1NV+S4/hkA5g2xZ+L4nwxT/OVxlP03seECF\r\ntRmG4VXLhaUpmd2CErvFu4SAIKfvFhhuObKcOB5zJTqBGQQnD9F7LSb3KX75\r\njh3fACMdvujdIqPstwn1lj4gJcfHN7yo0LUr8gODVyMNlgKP7UbVuQqgmX3b\r\nWkHtGuuhzl+z5Hr5e2HJ90aQ5MBiBSYttJbv3Ctcoi+RWOagQtRNDIpnfwza\r\naO1HP5xM5QAGiJYlNoAOrQbxwm5B15ZepJNHQ6dw4YjA7WhNKc+5SNPezj0Q\r\npdx7hiGlvItkLmZxnED2AF/kIoIpsv0lEmk=\r\n=2rYP\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.24_1651042209240_0.5866570277626704"},"_hasShrinkwrap":false},"1.3.25":{"name":"francium-sdk","version":"1.3.25","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"_id":"francium-sdk@1.3.25","_nodeVersion":"14.19.0","_npmVersion":"6.14.16","dist":{"integrity":"sha512-a5Tu4dBZCY66PDQFDd1eGJJrKQ9D2PEN5HWPb6vwIbY0upk4Xan7nit8Y2QL+lm6QtpXXI6YVRUy+QnBRFkckw==","shasum":"2b2dfee8ee302d4cbbe9da4f9e40401eb6adf285","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.25.tgz","fileCount":129,"unpackedSize":2738496,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDqamxBr0Eh/K19jdECygkq5SM3xhW1Q9HM7j2ErD1iyAiB0bpBGA55OHiMzDlb1ekUgzH0iXBD50ltjAhULXALkMA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJicmyYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqwrRAAlPVM5h+e4EUaeP8UMXgtZBqCqieXbWB0HxziWXTbZwTtFBAi\r\n5xC22O8kn1o6f4V4AMGN31Glytw4EehFtyzhp2TDPLlRy+zhWgWpFGgMccUC\r\nYMSPxUK5Ee1GhCV1dsCc//4He0znezzJlFNtDtMrN/MAUNj3Gq+a0nttA8xH\r\nbz+gxxhDSiwaeiZFybhE5rBCKtVweft3DdjGcAWUV0YJq3QD5Nj6EosVaahW\r\ntBg2GWcZuzJY0e4GuniaAJ4X9orH3H7rhx+v6jNC2YndkodC8hFXXE8Nc0sV\r\nfGvuvLCblsSN91IHpZncdKp1FdnaQss6kBPiuj0Y9x6LECPfv/XjUBfdkz9J\r\nuqFKQWsLnr4ZgWY35oEJd2E9Ou6zIzQ7IrZQe4MTGZaLNq+ytI7DlrqIsLam\r\nc3rUfeOAmrNFB1tY3tlz2dxWWTF8u902aC4TT9EdU2psUOWzA/ST0JSmnlL7\r\nYMyz7rK5jCvIEP19q7PKMZUWSn3zqMFCL8Vwbrprhg/kw8mqnnViIuKQVLCm\r\nq6br4fJfMx+ooLZHCo+IIqekljkN0KhxWRzYiBKDAKdv4E93peVSy9aCWGAn\r\ncr5koJYXZdHuZuFeWRB7KymZr1F4+BHMUXhiRVcFcRtZE2B+F9O8oaCQj12C\r\nGt+Au7M1Ki3r7aZftDfL+igXTngZHaGSBdA=\r\n=EHxF\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.25_1651666072068_0.9819608559727442"},"_hasShrinkwrap":false},"1.3.26-beta":{"name":"francium-sdk","version":"1.3.26-beta","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"readme":"# Francium SDK\n\nJavascript sdk of Francium lending pools and farming pools. [Learn more about Francium.](https://docs.francium.io/)\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Farm Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function farm() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getFarmTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      depositPcAmount: new BN(1000000),\n      depositCoinAmount: new BN(0),\n      borrowPcAmount: new BN(1000000),\n      borrowCoinAmount: new BN(0)\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n\n```\n### Get Close Position Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function close() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getClosePositionTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      // 0: swap to PC token\n      // 1: swap to Coin Token\n      // 2: minimize trading \n      withdrawType: 2,\n\n      // userPosition.lpShares\n      lpShares: BN,\n\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey \n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n\n```\n\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n## Lend\n\n### Get Lending Transaction\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function deposit() {\n  const { trx, signers }  = await fr.getLendingDepositTransaction('USDC', new BN(1000000), new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\nasync function withdraw() {\n  // You can get this value by getUserLendingPosition method\n  const rewardAmount = 1002232;\n  const tokenAmount = 0;\n  const { trx, signers }  = await fr.getLendingDepositTransaction('USDC', rewardAmount, tokenAmount, new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\n```\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n      // [\n      //   {   \n      //     balancePosition: 0,\n      //     pool: \"USDC\",\n      //     rewardPosition: 41354540149,\n      //     scale: 6,\n      //     totalAmount: 50386.25041249344,\n      //     totalPosition: 41354540149,\n      //   }\n      // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN,\n    //     apr: 8.36,\n    //     apy: 8.72,\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","_id":"francium-sdk@1.3.26-beta","_nodeVersion":"14.19.0","_npmVersion":"6.14.16","dist":{"integrity":"sha512-aJCocIqLD2bZsx+NklQgYaSuJ9F0XWdTo7zuR0c6xGaRyb0LOaXaNlyZFgGe+nJuP2UVUg64XKKzI8ENcqarjw==","shasum":"eb48d8862871a7ec28217af54f5014b07c2f7a34","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.26-beta.tgz","fileCount":129,"unpackedSize":2758696,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCjenPN/zyNxrqnHmpSmsCzuNLnGrIVYJ1Cnbu85RrTSAIhAJFJfqsVOidJuBDxYxyq7q2rqT/Jh6SD0K3vovODr+IA"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJidlu8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrmxA/7BtD0OaBSuHbLQYyM6zN3NzXCUpc26I2jzAa8onNZlbXMVpc0\r\nn6RaYuhbTrB37fPcYwIT7O+ZOmRBU8f22HKgm023cgXnxSC0PoZvU3Rjh1Dw\r\n5/mHTKbQNNLGKDUbvo0s9+NlKb4qshic9uuvHglH83/Kzi29VW6tSK7M3Nmb\r\npFbu8/f+5R//N73BsSor+mTyHlofHzCPH+dNCSOp60eD/7Ohq3fs+iXc9XAM\r\noW68WG3lCJhSPbQWVbEdOMJfKNIutYAJSHxk6r+9aPlPyYv4+g8qGg7r+wlc\r\nri68N5F614dfpQEqZryKoBbZ45PtSmmCUQL9x93LP8MVjFXaWs8mQ6K8Z7/M\r\nB4hJzT81JVTzIpcrtivw6U/2mOZ1SYaIfTWvAFFpXq5aqGMp3KWx8mm+fkjd\r\ni8zsn05gPkYaMVVuUmoF3Gbipw8nMnV9b0WXyrnJV7xnV7O7a3KPbU9q1r44\r\n8dtUH3W9o/G0PViboDAZfVGKvqABbPOswipghlaTw2JCgs1AyMF0TFkzoyf2\r\nklSeg00K0gMJf5QvE+m1krV3rqZNQM85ngmY8z3lPf1D8nmsp8XiXbMwitYg\r\nCX4qWJuacGGPwuVRn5KFykoL6k6O/gbPgSAzNlbSoF/t3u7RADCVVJmO9lIo\r\nw+aLFD704NZB+KVWifk8dRgIDBtTEmNdghI=\r\n=HEYK\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.26-beta_1651923900647_0.33933018071243226"},"_hasShrinkwrap":false},"1.3.26":{"name":"francium-sdk","version":"1.3.26","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"_id":"francium-sdk@1.3.26","_nodeVersion":"14.19.0","_npmVersion":"6.14.16","dist":{"integrity":"sha512-dMVaybga5WvDRzUo5Mk4UHKfqwUwspkEI9S8+SjTjcMR5+pBORz+JNvOiszYot9lrsOd4wcOwCkyEcqM90fmug==","shasum":"70595316cc004b667b363ce06578a015d34a9491","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.26.tgz","fileCount":129,"unpackedSize":2758030,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICpElrXj/AEzdvt6zoTH1paaep1EdnwWnyNdSugIcSXWAiAJ4zE/gi3l3qHNri/5biqQ5nUFe9+ShMT2uQLIUcAXTg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJidmeTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr71w//d+CiDNRMBLcAO3tNcIxLSXoa4wjZZBdYkfKYHKi18Efr5DVy\r\na39sefEhj64gLErtb268lZsxgOTJa4rMqFn4ioOw7kD2nlhjMk4SokPvFuGc\r\nkschqcvDHmgFlLArh1m/WUOyU3aMi4x9Mjny3vO+uJQb8KiX7pDIUZhw4GUN\r\nOOLqz4cMbcvAtHLeH5GJIO1KD5Y2lhDYZceXN4btRsTMUNoSCjqq4vmcSrqn\r\nR9Qed/+1IK4zgmMJ+eca3lSAClJdBRa5JzwDKMspcbKX+O1jPMPAPCeJt7pw\r\nP8IMZe01+snHKLKaOQ+641dTMhnKMv3IVFRfwoid81DztUY7A48uQUgYRFYz\r\nfOeAInezktgjKNzsP1wZQJT7tF468mtFFQ7RzlHLSnN9SysQXfzCwMuobh/V\r\npO2Quc061VWb+ZNWwePotGsFVb02IZO5WeP/G/xQn08FE4mwYw+GeHIc1Ose\r\nPGpWwXfX219uVcSio7skuu5WXnaw1fCuyxmR4umjrLcZkf3kiwDcWSuyu9OF\r\nOEhHrAWlA7SVqZjlMCSYrCHWEmO0P5aCgYd6jvLNfX8zrsLGPXgjlghgt+7f\r\nZojQGCwcg/IHh4yTRa496d6gs5fmbyna/cHQaF05e/yivkOjxq+hthVRnXdD\r\n/vs9nhnED7Y4bGRvw3kZD6qYRAX31bGPUU0=\r\n=bQVd\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.26_1651926931556_0.5386326640929742"},"_hasShrinkwrap":false},"1.3.27":{"name":"francium-sdk","version":"1.3.27","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"_id":"francium-sdk@1.3.27","_nodeVersion":"14.19.0","_npmVersion":"6.14.16","dist":{"integrity":"sha512-zjR1KIf2At8f3xBPfLrKi2HlJh7tam0tUXdQOuILeZUWMPX5wHVH/IJ29H64NZs905vxnCXbqGhyfs6A1IzfcQ==","shasum":"42348d8bf0ea5b652df9f43f91aa70e291746fc7","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.27.tgz","fileCount":129,"unpackedSize":2765205,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHS1Mb77457M3KPsCe+wmdC3/n8TPLuOMnM1U+Q0s+OhAiARdGObjhkr5egqjTiy1psnRJqY6sNe4p30GCdSnezRAQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJihfQRACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq1LA//fanGh83UvB0/czFcXhLFYZemjy0u4jZnKwaWBatk1GGKTMhH\r\nxorovXhwiOqZIDp/4yZ7Nw3J7OSS5NbUw1tH/sUYyk9GcfFogp9e1jcX56+E\r\nXKUHnJ5sL/CcK1/Y9u6Sc+MtiU+UHh6Kw/g7MtQxo76cQKcuT7XiRYj1o/XA\r\n8LhwhKxBRpQlhig2fgcelizYwp1SEg2Tx8S22Cw5NPlpcHLELKEfJYWwr3VH\r\nA2RVGP+sGTNQBv4Gj06DPJFa0wgoxQn8O8s0wrcsEPau6z9iQ5M0nxe0DzTj\r\n12yoyiTYplq2zrVkXU+pl4kYOfz65P6BP3+tttRZk62XCo1UYnDcjEuzS9Bc\r\n3zr/I9FuSJKaUu8fmsazVYvDRvrJi+ADTPMrrsa3WM3N+godzRfcMTu0TZeO\r\nmpGkX42mFFXikqxeaGFiEioS03LOT2C8j+4VOkrSFIexqa2VlGw3vKPfSb74\r\nysPAkUuSJoIh98u7XMPj/O9EFIQbu5hqyh6zvHjPb/unmO4M9ZQDeF68wNRr\r\nafqp5+2u973wYaT5pOXU9z39iZDzeEs+lhoxO2xIBFH9QA9CLhdZenQwiQPP\r\nBSKrnSkBF9gIrmXD8rEKs30NFl/uMTM4ZNlH18P3JyYxVWrov59TiqmxGqP/\r\nqfG5nTThtpNdZFF5GoQ5x+ucZ/oMwl0NyEw=\r\n=SJdr\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.27_1652945937262_0.7113494672301903"},"_hasShrinkwrap":false},"1.3.28-beta":{"name":"francium-sdk","version":"1.3.28-beta","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"readme":"# Francium SDK\n\nJavascript sdk of Francium lending pools and farming pools. [Learn more about Francium.](https://docs.francium.io/)\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Farm Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function farm() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getFarmTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      depositPcAmount: new BN(1000000),\n      depositCoinAmount: new BN(0),\n      borrowPcAmount: new BN(1000000),\n      borrowCoinAmount: new BN(0)\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n\n```\n### Get Close Position Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function close() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getClosePositionTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      // 0: swap to PC token\n      // 1: swap to Coin Token\n      // 2: minimize trading \n      withdrawType: 2,\n\n      // userPosition.lpShares\n      lpShares: BN,\n\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey \n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n\n```\n\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n## Lend\n\n### Get Lending Transaction\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function deposit() {\n  const { trx, signers }  = await fr.getLendingDepositTransaction('USDC', new BN(1000000), new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\nasync function withdraw() {\n  // You can get this value by getUserLendingPosition method\n  const rewardAmount = 1002232;\n  const tokenAmount = 0;\n  const { trx, signers }  = await fr.getLendingDepositTransaction('USDC', rewardAmount, tokenAmount, new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\n```\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n      // [\n      //   {   \n      //     balancePosition: 0,\n      //     pool: \"USDC\",\n      //     rewardPosition: 41354540149,\n      //     scale: 6,\n      //     totalAmount: 50386.25041249344,\n      //     totalPosition: 41354540149,\n      //   }\n      // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN,\n    //     apr: 8.36,\n    //     apy: 8.72,\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","_id":"francium-sdk@1.3.28-beta","_nodeVersion":"14.19.0","_npmVersion":"6.14.16","dist":{"integrity":"sha512-JjvOm+xrXZdK52VENMLdBFPlbhQjDz171kLdWkbKZRyXD4XjY59fplPpyuP5IAUtesL5JNZ1p1vKkNenyqqvAQ==","shasum":"782162ff413143b8b42a33200ddc60d6b4392aed","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.28-beta.tgz","fileCount":129,"unpackedSize":2769724,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD0UlRubQTzKsdnVXkqdYrVviE1W1dCaCrczt2kHrg4lQIhAKLhxfqQ5CyRZhkCoPI/ISAgzlgm2lnIw2JMZtHA8R22"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJih3rvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpjig//b+QVWPRI+5aPWDplsXF+G9qB2SArfHv7uYsETgk+SMqYPXnW\r\nsJWT3yVure1ot8wLUFyGNg8z6DMW0aWzgicAbBuGRwNe8dCJcZlFq3WkSvl4\r\nPFcOEcCh8i44Fgofzq/5Zz5vi2D2fgsL2Nyml0+HgnhQISQUqN1cwxyXFQ0W\r\nRbHVQroB80LUOqWPpbx2aVNuoXSo68azIHUcGnHfSfeCIfIaHsn7TgIuRmJH\r\n5ofAtqMxR0YfMZOtST24DpaqQA6BHVtCw6WYVs9VrkIyO0tBiYIedUsQt+hT\r\n+3ubsPqXwI9z60V1xvBFJHSGhqWr3hFfRD3Mw/0AUao5IIz0FymeLL4dSZZw\r\nR5/k9vQzRf9D+t2K8ph6+dxPuGUQQV72DKxxp3rYvyDj2kRAHmNa1meSspir\r\npPQqTGD/z4s9rna13Hg1OmqihPAds/zCNZsCped02u/FfANLn86BOuGWe+4A\r\ndgjWSbI1GrOvSggAf+7+uhh0mJoBLOmj6Dkjy6606RKZm8gJ/Yi21JRNFTw3\r\nlG9IZGbstqN6wwxnY0ZVl7UqmNrYoA0uPj7iaZscXUyvoBSmAfULKei9ywJj\r\n8VpcXszwuNJmGO8FhPqYjUoLhMln66X8KIfTGyD9QG6EUQXx5RF5o7BPP4ML\r\nkQRQqgXoTYoS2/9Kw1cSaeEXaXqjTX/DL58=\r\n=7wJc\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.28-beta_1653045999699_0.5821353981010347"},"_hasShrinkwrap":false},"1.3.28":{"name":"francium-sdk","version":"1.3.28","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"_id":"francium-sdk@1.3.28","_nodeVersion":"14.19.0","_npmVersion":"6.14.16","dist":{"integrity":"sha512-4gz3inmJ0iIYq4VgAt9f7WKWgjOv5S+d6SoLmfSJ/Ecl4/1l2HFs6JOvFDlyoTgDZuup5x6Xi6+5P24CTTO+CA==","shasum":"46eff3f300c7972f657956e9f75be405e6ca5e7d","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.28.tgz","fileCount":129,"unpackedSize":2770613,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDMsG0Jf5m0j1Z64/RovPAgRiiID3/bBsQ1PbbJssT7WAiEAm59VwOi6bmR6/JopRIivPOHjl92YUA+RuJ1pTN2JDKA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiihWZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmopJw/7BCk99QE/6pMF+/AuguZSvm0Essia4TA4lIgOWjDwZpyiE0Dk\r\nLh4G7ZZLC4yYDkOcsobfh34h3GMeZHdY13LH8bIFgoyznPPtIefGre0+qoyn\r\n60Kkk1xnH6r021/AL0Cc1ZMAQgWAummxgEnZEJkZnhHCbgp79ZKDCfful8k3\r\ngLT3dbZUV81bdZwZQZCuiGFS2PPMFl6oD9QEao744yXfY5S5tYhbALT7raFl\r\nJdgYkgA3xeQXQvai25puMDbUvactHSVEWf2T2ylrvRsGysTJ3/nOO37eVoAr\r\nm9z6ZBlU/P1FA7QcYgI0tp1g4Dk/1HaTLtttqt+cp0UyQevX1T2JbCFWMAae\r\nM3oni+YOqqsuCsSVN/IpeD7z8JBDS8RLyUUZ1E1z2KLGD9qDOGYg0rw0QmbE\r\npXs+OJOpnxZcRCPtF8Pe1PoB2Cd8JQ5v7v4RksSpAmG754cKOBG4I7aGs2zY\r\nXtb+hHOwBHe9OoEF5UK29ZZxwC0yd6KAcUQ/KRYDQg3hE58ot8uREPY/qpWx\r\nSsfccMyJCLwKgL9MPBfNz9hi/OCF7LBAKJF8OjGAm8u7ezpQO6mR0xpwpwDh\r\n8Npnm+FsroGEGnUQnTJaAS8MAW6yH7gBWNPkDm8ZWTPIbNnAsUE0+SMD9T6N\r\n8lfJAN7SeDOk7BCFAI5MMFKVgb3AwNBNAgQ=\r\n=r0hj\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.28_1653216665305_0.9983483961540001"},"_hasShrinkwrap":false},"1.3.29-beta":{"name":"francium-sdk","version":"1.3.29-beta","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"readme":"# Francium SDK\n\nJavascript sdk of Francium lending pools and farming pools. [Learn more about Francium.](https://docs.francium.io/)\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Farm Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function farm() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getFarmTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      depositPcAmount: new BN(1000000),\n      depositCoinAmount: new BN(0),\n      borrowPcAmount: new BN(1000000),\n      borrowCoinAmount: new BN(0)\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n\n```\n### Get Close Position Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function close() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getClosePositionTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      // 0: swap to PC token\n      // 1: swap to Coin Token\n      // 2: minimize trading \n      withdrawType: 2,\n\n      // userPosition.lpShares\n      lpShares: BN,\n\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey \n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n\n```\n\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n## Lend\n\n### Get Lending Transaction\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function deposit() {\n  const { trx, signers }  = await fr.getLendingDepositTransaction('USDC', new BN(1000000), new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\nasync function withdraw() {\n  // You can get this value by getUserLendingPosition method\n  const rewardAmount = 1002232;\n  const tokenAmount = 0;\n  const { trx, signers }  = await fr.getLendingDepositTransaction('USDC', rewardAmount, tokenAmount, new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\n```\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n      // [\n      //   {   \n      //     balancePosition: 0,\n      //     pool: \"USDC\",\n      //     rewardPosition: 41354540149,\n      //     scale: 6,\n      //     totalAmount: 50386.25041249344,\n      //     totalPosition: 41354540149,\n      //   }\n      // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN,\n    //     apr: 8.36,\n    //     apy: 8.72,\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","_id":"francium-sdk@1.3.29-beta","_nodeVersion":"14.19.0","_npmVersion":"6.14.16","dist":{"integrity":"sha512-FVzvbbdidGab8ILCrFb+xoj/avuiTg/H0tU8ck/EzLsMTf9D46o1nSDw4prHGL4SAJToWHWJGa3kuneNZ6x02A==","shasum":"cca523cdc0d7bfdfa90eefbfe1a53853a0d6d9ab","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.29-beta.tgz","fileCount":131,"unpackedSize":2862220,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEL8CwhZ39YdIWTooDFx6VaTLSvG7WDP4yUbd3yy52l4AiALIkqxKr5wuZ07wShYdwhyVG+GZ7+TXn3TsqFNhY/uOA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJimCbHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqs8A/9HTl1tkG4fyvgYNnAIEtwMFDsvg4ypFCJxghYBlzto2AVDMwq\r\nmMUCQaPfhEisRXXM56cAe+hy0twezbOu620ZqIz05IRGyn/9XwGajRFT+ZHd\r\nPqLQMQ7kA5sgUXazRKU3UQahOH8jVc8BR1jlazBIL3ZpKNteX91adCbBWzLP\r\nYdmBFBUi44myTi3zdIZlhCXQYLGAgRNwuDjVxR5V2Cjtg4EEsQjHA3nRCU42\r\nZpdIRdYQR9UavLubOVaIhIzz/Awv90yNN5A2LsNr10e9hQZtSrH7oFejGer7\r\ni7veDvbfeT2K0RfU/husjQSJzEdQihhXEUtkMBO6p5eNNzuae2G+m/aVdQMx\r\nnlmZW751qAaYizsdLNJvRWBt2azxlHCU7y8zqQ9Ad/04mykYH5FuT0HdpuSz\r\nNr0NTYQIeiBpJmw/7OyavMFnhhujHwtkyFAFvJyfp1PWmGEAiy0bnIWv0zwm\r\nMGkHlRZ2JGfjYGNTZEaWedHtDNmT4GG45UN9ndJlIjArsriRB15zIbu1o/vT\r\npONJucYd4C65swf9FyXigbBbn0mBLVjl5814CH+/EbbtsQWM8OzffubVy7/a\r\n5c9L2z73hPnuUTrQCK93epSBieMbJZLHdEPoMRAgkBFJkuuy6KhcpxqMlxs8\r\nv/v42nGYAxHIlgwdJFhBzF1haMxbt6DPXGI=\r\n=7Z0x\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.29-beta_1654138567421_0.19095388996146556"},"_hasShrinkwrap":false},"1.3.29-beta2":{"name":"francium-sdk","version":"1.3.29-beta2","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"readme":"# Francium SDK\n\nJavascript sdk of Francium lending pools and farming pools. [Learn more about Francium.](https://docs.francium.io/)\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Farm Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function farm() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getFarmTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      depositPcAmount: new BN(1000000),\n      depositCoinAmount: new BN(0),\n      borrowPcAmount: new BN(1000000),\n      borrowCoinAmount: new BN(0)\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n\n```\n### Get Close Position Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function close() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getClosePositionTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      // 0: swap to PC token\n      // 1: swap to Coin Token\n      // 2: minimize trading \n      withdrawType: 2,\n\n      // userPosition.lpShares\n      lpShares: BN,\n\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey \n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n\n```\n\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n## Lend\n\n### Get Lending Transaction\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function deposit() {\n  const { trx, signers }  = await fr.getLendingDepositTransaction('USDC', new BN(1000000), new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\nasync function withdraw() {\n  // You can get this value by getUserLendingPosition method\n  const rewardAmount = 1002232;\n  const tokenAmount = 0;\n  const { trx, signers }  = await fr.getLendingDepositTransaction('USDC', rewardAmount, tokenAmount, new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\n```\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n      // [\n      //   {   \n      //     balancePosition: 0,\n      //     pool: \"USDC\",\n      //     rewardPosition: 41354540149,\n      //     scale: 6,\n      //     totalAmount: 50386.25041249344,\n      //     totalPosition: 41354540149,\n      //   }\n      // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN,\n    //     apr: 8.36,\n    //     apy: 8.72,\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","_id":"francium-sdk@1.3.29-beta2","_nodeVersion":"14.19.0","_npmVersion":"6.14.16","dist":{"integrity":"sha512-/jF9TmoLpBNBikF9OszJOGpnthBoClDHSrJGERxVEcq+gr31yc0eHX1O5x1iFLXqs76aqTSUKN+cSLClbcCwaw==","shasum":"f4a53a87703959e873b4a636b8d221138657c483","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.29-beta2.tgz","fileCount":131,"unpackedSize":2862221,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAV8pR155DE7tGRDEQizTSJUIiPZjWRylPuR4I2FeWBHAiEAldIZ0oq26aN3+MoKCMtz42tm0Ah9m274wVpzVAFLQt8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJimCmgACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoidxAAoWdEBoYtQ9s8rBCc0rRAoD+/gQeMVov4G/M0Z/1K+uoni+Uf\r\n2/Y+YQkHT6EVm52+RvzYJt5z3kzubEq4IuGHKwl0QZEgXqlkcAsxhZmbx9O/\r\nFWt+NKyXFSOBAmxeiercttnrxAMgp1Hlvj7yp20RV9bsHYmsIufDHsL6O545\r\n5bJ+2qpcp+cj/Ant7MXlKWTw0GsymJHkVoKoC16NbvT0KIV+zbseI17mvCOt\r\nr+3ANtlV6ilE8U+Oh9isM9SDrDdteLrun2B6oWrr0MLJ5K8etRMbTCYi5XiT\r\nriuM3rXrqMjIlLlqb7y2tatng+q1NOVbNaK+QfunNQ8tRfnBgqf/abfleQtt\r\nV9EIi36JHpCYbdLHBTf9p9Tx5RFl4XBiExXBdGBRDNPJJ4gRf7VYhECMmD0d\r\nq0EgBQkS67KB09gs+X3eX5m4Zwts1lCHjry1oRflUuIl6V3MenqhlWW9n6v+\r\nAS6ZS8Im8Jl/TCEdjDaVtix1hMtp5vr8/dQ9QpOK1IgVO+jn01dA7TIUY9Xc\r\nPxmokoVEEBBR/T/2PTF4o7KjGDEDxfYkVRntJ8xLc5udQs6gTAEiTTlFrB6g\r\nDUBhN3r3R1scBawmKUkHWa4a9fUImhdvnq24MRYCVUOsFKTJknem30zfHBRn\r\n2POt2HitF5T7ibb1EhqlQg5cL3I+i3MwOY0=\r\n=SRMV\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.29-beta2_1654139295644_0.20492096174030183"},"_hasShrinkwrap":false},"1.3.29":{"name":"francium-sdk","version":"1.3.29","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"_id":"francium-sdk@1.3.29","_nodeVersion":"14.19.0","_npmVersion":"6.14.16","dist":{"integrity":"sha512-6UH2gNJqKxKdghXyXQy8fbC+XM4Utin4yGvsZP3xEWazO3Cf0D/5JP8Wk6eSyjtz1fFsd/NRuBog+n+0vUBIAw==","shasum":"6a6e48f9d6c93f7de90c387b644a8d3b3e1c5650","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.29.tgz","fileCount":131,"unpackedSize":2862215,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC2kYZoFktv3yaoGm5uLMWQhHq1EsCJWQqRIDSelspJawIgS9qkfkgZc8fruWqCkMrudKndKq9oNa9UKr0nUcKZsSY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJincKOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr2zhAApRK2EyVzl6yjEx2uxNT7lVPLvytjtmL8w/D6tQ1/7Mh6M/l9\r\n27Z83MRBeOyq9i3vmBG13Z5/OVy8dqEfn5IvXRAT4LVXcM2vlQrocorBbA5z\r\nTTTw+34AB2b0/sSmN6zyK59LskUp+J866ta9gPazKU1AkdiGbtRAOStyd+qI\r\nhL1ZDGeLPNL13gK1uE3tIDnEO189Z/HnjWfiOgf/YgDB10SX5Pt/EeBWgJZ/\r\nZBC54ZqfwTuV9pOX8WSZHZCCEufpuYHP1WTXScTiPPZW4zflTU2mEaKIn4Gh\r\n8A1p/Ipj9KR1WxEk0+mYPF79KGVGbZDtbpsVLWnj6jSHE6UpjWCIEXynRPpa\r\n3SUB75qh3f1++XrQPAbmI7YEctvCg67KYoN/wPjLDkFMF1EiDNrGVfeF4ROR\r\nW1mRofLlg/FO4SauntcnlV/LwNKnFtam4xUtGKOra+jABxytPcStEPZG3iFZ\r\nHQQt0i7anD/zKoIctAd0G6HvZeOqZQ5CLwZNQ2VWdPM4sCI6xCqf1hRS8qRs\r\nIkq5uDZfvxN+DRtJP/S8gik36UwaO0UyOnIH+2mozEXbXvxBDE4zbOdtPFuR\r\naigxMd5BTFDvKXorsWXOTarvBmEzt7lvJyy99frL6naegROaDuosEv2CQ2Sm\r\nzDks6LSst4Figqy2jJ1q44Pr84Mtd+ItK5A=\r\n=1lYj\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.29_1654506126405_0.47814533313344154"},"_hasShrinkwrap":false},"1.3.30":{"name":"francium-sdk","version":"1.3.30","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"_id":"francium-sdk@1.3.30","_nodeVersion":"14.19.0","_npmVersion":"6.14.16","dist":{"integrity":"sha512-VwGXfGAoHtUDSypMt+mL5y5Sd2OKFU6z4RPGs5fF/HJ6KFABjUj7gdqj7rggMrzMTX6SgHtalLGl6UNOPf83Xg==","shasum":"a58af0416d17a1c19eaee0da3f58cb5a0586f3f0","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.30.tgz","fileCount":131,"unpackedSize":2893815,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCkIRVhd5fsdJSDsbqm6Lstl47Hsh+PyQiXtdVST1ISigIhAMTTccJxByV1vG+AR+DR24q3nTyDmYzH4LPV9VUOs2VR"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiqpqtACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrQfA/6A+bybFwKO+stv7PgfaiA4+n2HUnulRi39h9Cn+t+gUU6Nkbv\r\nIZl7VolsO++POR68QnZ3nB45PT9yH6nAUPmXV3P/L2WBWju9wgv0YLzvuKxd\r\nfJ3URdxppcZCMBc3C1i3XTf13acX+jJL/xG67gsAZSJMbcYTyUeQ9wNlD8gG\r\nBb+6TTbHL8/jfCYOyl8/Rw3PgC+UaA+qfGkn1uT4vf4byWRCLypbXvsmgHOx\r\nn7rWN2hrmokT2OxhdW8WEz9yyS8z15OBflXaQgQ0IYudsagagOr6MzWzpmBW\r\nGsbIUdJfcXdMg/VcVMAPxCIN453ZDSuVfQ+flyYxK7whUwGcRnq7NXJDhn3v\r\n7ItRu2hsOZKvliji0TTh+ptFmlsKsQico+U4/+bhczg3WqSWbhSwzzspEVWD\r\nCXJV0bflZCeRxSw0HqO88VXsTnWDB+UXBl37Gj7rMfOBIcwRa9hr5/XGR+Ga\r\nkef8ScxcPgPwAgkR3jJeXwi7mHuzOVkBEl6V38exl0a83QALBHhZbG6+oGVA\r\noAbZrHwgJGwqn8d37oQX3IvPh/Xa8IkYVR/h+TXAI7ZZFN9KmUdWFgmVnW2a\r\nbpgvo9KBMYpJG4E2H7BXEUMv097kmP7sbVrvYUU2MM0TXTWKLCd3m+fK0qHF\r\nSnpURAgxFOoTBKfJI3lwek3Zl0E/qXv6Hq8=\r\n=eXW7\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.30_1655347885594_0.23162612125879956"},"_hasShrinkwrap":false},"1.3.31":{"name":"francium-sdk","version":"1.3.31","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"_id":"francium-sdk@1.3.31","_nodeVersion":"14.19.0","_npmVersion":"6.14.16","dist":{"integrity":"sha512-5k3AtgMO1nxWBGdtKoRBsEtXWHVPznPR6oMoicRXGdOw7lHfBTvTLfrIFtOHkmsSuoBqgx7WWPvRVG27nV1VMQ==","shasum":"1541acafe9f2f33388bee531964b4af60a133400","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.31.tgz","fileCount":131,"unpackedSize":2904931,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDqelivCbzHeWR1HYIAiYYGAIOIULNpUBcxONtKtWX93QIhAJOUq1U7NfQir/pNi8P/kW4xULZz+5hZvLr5AwOf36iw"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiqstGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrkKQ/+P94G6zuvZMFbPRkZBsJFgdgJt8Fg6C5UMStP62EVXMcvWQWc\r\ncXQEsGOToab9tk3nHzVg2N0vysBcKRGCFgA6WMJIOk1HM6sk4bnCZSnMsLaZ\r\nNsODtw8IK+ru2t043xQ9iYI+Y1JRKBpR4OddLv7Iv0LfPKGUszRk4d53nrS0\r\nrbZ849pYP/cpbJslpwWPmDxaw1rmcJUUQJglVLMhNZO7S5+vZF1uGzfHCK/T\r\nHCvNwNXTf0J6D8t2leyHfiDXEMqCzhWzcCUsadTPT8umU+HM0TtytlQyBAyo\r\ndxE1/kSCNULXDQAI6CJZPX67D9D+DjM+BrPtLbrQ6v+by5NzJeHTIMleHzuu\r\n1oKNjhufFaOy8yLN8kYIVqT94sbS1E5Ol2wAZPtA/skraWY5aQygxFWFcDye\r\nC1zvCPg2jLh2cxi7CXnRtRad/ztHf9ax/9S3gMlUIFO8gnk9MC3BipWqUSFG\r\nZRS2MrQS9QNcEDAnqrDCC7QFd3ZoCNVE++2eRSKOf4Bsghv7Cdr1igwiYEEH\r\nah7WRb042bzYxBy/ptYkbB+6wX9PO3bJJrxEAa1yAqN7nDanWijfpMsXekxu\r\ntMYab2H5ehu3cHbOkBHWICfjryyWDn1dGt08cfxmmvC0vhqMRp0a9Gb13PTS\r\nfj1vfZZzSCboQ+NvXNw0dhKYmq7pF/Sl41s=\r\n=jKqJ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.31_1655360326728_0.6198939670773309"},"_hasShrinkwrap":false},"1.3.32":{"name":"francium-sdk","version":"1.3.32","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"_id":"francium-sdk@1.3.32","_nodeVersion":"14.19.0","_npmVersion":"6.14.16","dist":{"integrity":"sha512-6GgooeNgnGEe5z5NG9rL2s2fMrLwNGYCenfCvk0v1uwvU7725D8KGysZrrqXKYW4SLWKGLU3rTJ97FIveuSNmQ==","shasum":"b25be1b8129cfa05d3eea58a5207fb2aa2481d51","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.32.tgz","fileCount":131,"unpackedSize":2905145,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC4VDqGTYe+tJqr2vN6KLkAqM8d80N9D4gsmBNuM2mTiQIhAIiixB7UaW1IFB3gG+Vm7+xf5WogFz8rTVumFzDK5iAG"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiq95eACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrAEhAAl7SWw30gO76ySPwThwrmF2u5Fnigj127szy7hdUEm5bM39YQ\r\nusoc9mbX6h5rghgNRdp8Ier73n2a0EsQj1AGZnkZv8d6IdSaGbmPTwHMzj77\r\n2BfM4oN8hh192VXWWCHVjDVxazvbHSRbVe+Ur4Ijh2RXzL/Dn3/lkMjpX5m0\r\nlMmwCn23g+32saZvGsV8R1y7neInN40bVOKaB07tHLegqpZf1f1nnINg8M5G\r\nR2kiue0N9yODLlRSuFyOL/5iijzNBJy5i7khceY+uFkvQCiU3b86dwdBgMjB\r\n/vSYwqaj3XCXDgdzw9ZJLNHsyeADFEXVmX7GESFbSHR+o5FXG/bQIuRZzBUm\r\nJ2HfOTyIHtRkm9BkYcBrtfmOJ5lqGB+iURMPEolOshkAX9omVXohb48Zq93H\r\nt0IZY9sj8AFh7hBlRzpldWLMKVbPH8RmqZ3sPehkcNsLfik+KgdcytsXeiWe\r\ny87U7mYdg/2F/pTEdWQwmyQ5/GapLdkDCw1fzvf3fKqKpVXuiIKelrNpxnq2\r\n6Jila3OfePvOu458uUcHd6fE0PvUr6xVDIXnqWSgYcP2Ny3J23jrMt5Pm5Ic\r\n7gDZASVuzo2gEUdDasKg6TQuoDGKAPkUmSYOxsr8dsgV4XDVB+sz0slkYx43\r\nDtVapiWXX31u5myCPa8zW+sHu+yVZPrzoT0=\r\n=66/S\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.32_1655430750243_0.8260016617839083"},"_hasShrinkwrap":false},"1.3.33":{"name":"francium-sdk","version":"1.3.33","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"_id":"francium-sdk@1.3.33","_nodeVersion":"14.19.0","_npmVersion":"6.14.16","dist":{"integrity":"sha512-cIOHoqqrI3/pPJlFg9m0xGLU9hoT1LXDMmPOxDlhNhGjkopb0BHAdr4SHUxvoRIi2gkKsjxlmZwhYLNGnuWGeA==","shasum":"b93aebac178181daefbcde671b378149fc382419","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.33.tgz","fileCount":134,"unpackedSize":2929785,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCziLJC9WiCvvSdAbFHQUOzEEC+Z4IPDz0mm49TJfdjJAIhAMeHdMoDvXdXBvBSHNIkSepFxBi7i+Ij0tdFHvXepr0f"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJivCKeACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr8qg/+O9YiLTf74ZkrbryuULtqEzc2SC4/j1wcnIKpt2EB92EXXNwf\r\naMGw8rRGYpxvDQXISn+4yosI9aQPxYgom7HbUQPSNXhOQLKmtngSHiNGz6PP\r\nx0mII1J5X0oc4Yil7WCuG3Yk1vimkwPSsVovYd9LzaLT61Gxv3CBjVvduGwF\r\npjIuXK0uXbysZKpKTp+wsZJyPLzTKeaVUuq797np0z6hdlgOlCtYi599yGlO\r\n5u4Vq/Hd+YlDGeq7wzBoUAmJlacMMuWmIROY42wNT1yFcGnoXAyNBPz8h8AL\r\naiytC5IX1hZWoRZBfo4KQDBR2N9TdixWccqjl7NPWsiDPUmmnG8E6QdgbMbm\r\npjfMGRtuhz+uy83tyX3qwKbArQuIvtz88La8nWDXcushDSIUDeaeuSrkkUNq\r\nuu7Vi58YGHmrHwTEml/bPqCc3iNwZaKsX2nSUT9NsNHhwoLMckapBMXGveag\r\nZTz1WeYKtAQt1lvhvNsGuEiH8227Im3gNS6ru88lZNIMvfPA7DIhtU+RVRDa\r\nS9LhI+NCpzuy2p6Ke2X5IMQuE8J8qXeT1xKsuRx4icBO1x70fbokU9QK3Bgv\r\nD/x+QMq0YhXxSb1S8Uh78G1uFlazJSbYqsGeR/Epnb8xqh78ueZ9irIjLkiB\r\nYR+HJt8tdHGxGLzDvKfYcaRhugYkQMt7i8Y=\r\n=TiH/\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.33_1656496798639_0.39966472061067915"},"_hasShrinkwrap":false},"1.3.34":{"name":"francium-sdk","version":"1.3.34","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"_id":"francium-sdk@1.3.34","_nodeVersion":"14.19.0","_npmVersion":"6.14.16","dist":{"integrity":"sha512-vRsPEDgfTi6/XvqnDjVG43gNDEjYxMy+7st1lmdhZww/ARDZNLC572R0VP2LKVkpc62NBVUwLy/tLb4JwePKzw==","shasum":"456d1cf16f308e7cedff7d57f540397b5d4e9b7f","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.34.tgz","fileCount":137,"unpackedSize":2951576,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDGRXuFkUDZIIWWlsvZhjJ1mpcDZnXBud5V/hKgNCEU8AiEAhTUwD/ILgeD0+TQYMPhkF0oiaIx5IKIlYKyZl6JIPgM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJivsezACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq04xAAhVzNQfAo47Ex9nZ/0BYGbM3Fc0szUhQn6/CoiKuMlPeB6bjw\r\nhZbV450wYulq+QIjNAf2+kky1yn4v06d+pk661cFj/yjDScA2GEJrjrVqrwJ\r\nm7whGTCGfkJLLPYcsuuoNh/uqOpW+YPzanjSuR9w7revVak0hNvWidRnOVzt\r\nhq6xXblIPVpmf/7IyCTDImkXDAYF88AcLPz22E0rkMAXEHGuMqoqYMqSOaxF\r\n0XiH33jM6P6Qc+Dinh8SnYZ0kU2xBpGSn3QuxE+M8S77RHdklmE14OayhCGu\r\n7lvbt3rNIK7PPsM1e800huFxhlcXJcOIRQsHbikypDJNFhkYury+tuJ0r4Y0\r\nZ8RLwo4pGwlYVXdldVqKbpWwi4vd5coFHmIqzzyvv0DwlYq7bxArunF15ri+\r\nXhWWsXVSULUxXWgrca3wTgUdWfwmZyXZicQz13fv5cBlgOS25EFWpBXBfiE9\r\nbeNjddW1Q2zrIVv7U9PKh/yvyYYN7JHgq1L4fuyGGVbkI6vj6aXk3xEx6A81\r\novF6bDmo9UvWchIU9jCoJQWrfrRE7PnqBD15omNAB0Q0MSmLlKl4ooyFWRo1\r\nnY1F+U261wE1ZZvgE5/3V+uAcjCfNbRYRH0bb3OezNfis2BdT/wUoqQzk1My\r\nS07iH7Haa3GV3opZprfBn33TiKf3toJSmKk=\r\n=Iun5\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.34_1656670131605_0.9196512526443084"},"_hasShrinkwrap":false},"1.3.35":{"name":"francium-sdk","version":"1.3.35","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"_id":"francium-sdk@1.3.35","_nodeVersion":"14.19.0","_npmVersion":"6.14.16","dist":{"integrity":"sha512-Nabac1qB/KiFqqmgseTr9yuSHTIVkpvMcYm0WcGGBytT+R1T5LDcU3h+U7f9tzwRf4gy712PNcZaEl8uqn/fXw==","shasum":"7bb0e53aa610f80ecf159d2f87a451f0e50e3866","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.35.tgz","fileCount":139,"unpackedSize":2955404,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCF2eE0dhYvYDjHdGAxZ9gORnOeeV1BnEwXKFAc3YOrSAIhAMvhuCf/Zm6krOXt5yRgcQjjfdrNKg+HLsxmmakEQ7/y"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi2OymACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpmqg/+PvJQa/oFcaN2ZatI/E4WiFBwGvxcrb7DwvypLyIA5BoJFRJr\r\n61c14tuKLamZ16W+69eo89IJahxQCe2T3NA718Nhp90G3Xo+SRYFD6TbU/DB\r\nPH5qq18M1839o7UoyUuX5MCVMZtPd6xQHQwq1BBQC6MtaLE0FPx17kzjmftO\r\nkuZbP1dcnHdg4XjdiS7t7LlB2BThd6lMEjDb2pkZ2B9pAFoST5FLowTG0Z1s\r\nMxMtTv8DvDQBJFujB+2SLd3OGH8LJRrCOGqqT7w8YcAy+E5V76sy2O2N+TMQ\r\nAGJ4FBzx9H84IbO4pzWGCvxC2xal+YHTKY6vEtHzMN/RIQc3elzN9LvpPDw/\r\nPiodFpbLf6CblZN1fYpueFv2BpEA5njDxwcJV4rAv4CrQSqoe56MW1w5ncsz\r\nadToqzRM8PNLGKICYB4S1jmULCzAtY/wOvgWYv+o8hcizQvUc5xlv7y7dxXR\r\nv0YZiL4a/nMc1E9xIbenFJ/tDBI8ZoiHqO0+Cl1e+tIQYNEXKx3te/1Tg90s\r\nq4zMptkjhfd1P5HcRNZEgK+o/kDQFk6McME+Fbtz+pasmDkEWZL1HF9AzlnW\r\nZ+kAI/YwQUtZ8R+rM5XM337kGKmWlsPu/uZG7kUIqXJHLzxKrwugmVpLZH7y\r\ntL7zxLjoYlVJ7px+r5jGgtKBi4o61bRx8ms=\r\n=yQ+V\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.35_1658383526091_0.746922216401783"},"_hasShrinkwrap":false},"1.3.36":{"name":"francium-sdk","version":"1.3.36","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"_id":"francium-sdk@1.3.36","_nodeVersion":"14.19.0","_npmVersion":"6.14.16","dist":{"integrity":"sha512-evurhwiYSbgmhgd2/Jey/InmLTknvQob1EK1NSMjs+t1U9cgpJJjmMLUzMlCVTbWls/G80gJXipMZB9tj217ZA==","shasum":"c341922f6e0a82135fa6b4bbd650f9d2bb926d69","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.36.tgz","fileCount":139,"unpackedSize":2974496,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCEtP773zJu8Iwya9piwLgtJ+h+xRTXWSSYiBjNFIJPdAIhAMB3x2uQDV8JnRnMmfDppTwUEloHfc9P7wxSYrW12VFb"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi4kuYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpDeQ/+Jb2A7dWMNsP4buCB6mKgdJVl/uiZEUNa69Iiy6BnIAMeUoGj\r\nMmShrGFm3y23MFy1tFv3jhTO1WAFl+m8WD0h0k78a9b19eoRPWeCg23pY65c\r\nCCctF/n4bdfAWogiIvIatRGkvp6HwPONik7bTDxz27wgR8mlgAAgvVk4QMeX\r\nv95M79VOcWSRDQjY9xJIPR8o68ZrxtaM9k87y1VOefqVyIa+Jhv/7/BOA5tv\r\ncg22zUHqcSPIhiU0nLnFj0862vJapCCUJx2n86ST86DsZ+xJZTIX7xIhm1dX\r\nTPiA9PJkauxdmTbDo5tei9oRVHhJe+yozcW0eLw54g112qy+9pw3g9aJDrJ8\r\ngMtVz5v3Y85TVc5cUOy0Gh26U+E36tXwvKmOcAEmqyOOVTK9ssl7OHpFD1bg\r\nlMBadNaaW0JeHerls+CnsHbC9zd2Ya5PSD0kzUwUcYvhEXrVY3HBYVNXYU4c\r\nABSgJNJ/eLTd9gQGDC3iagJCQp7MtK3gHPrOYchPiO745lHXJPxbCy4uF/2G\r\nAgLLMkbreyh9sWg3Fp6c8c3sSP1yJZySaRcdc5iLNuEhEJ2bslrZRxx+zq5q\r\nPFl0UUCP3j0Tsq51eVrEPQ8ea7N2wxrQvathakF1yevL9g4xU4Ehl6xMI5fe\r\nMlsg2cQfOlGuwIQzbF0JIuVaqH8ZjYbGL6M=\r\n=bErm\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.36_1658997655995_0.6157424247547754"},"_hasShrinkwrap":false},"1.3.37":{"name":"francium-sdk","version":"1.3.37","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"_id":"francium-sdk@1.3.37","_nodeVersion":"14.19.0","_npmVersion":"6.14.16","dist":{"integrity":"sha512-biqk5vFwFrqJFlkbzgr/vKfbMW28JaZdOVAiwoSsFAHPEIhEohzKFgn+WxCkETdbqj79dxjQ6kcCIbZ0lxjIQw==","shasum":"7f7bef59a9b519c3916adedbccb838b9b5584dde","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.37.tgz","fileCount":139,"unpackedSize":2974892,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCPeAhofuvoUUqzuXHKiSJypGkOnNqrvqVaiu+6ijr1VwIgA86+2DTtgu1Ta+nowLDwbKTSS1QvT7kQ7WU2jvejn7w="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi4lxTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoyiBAAhw2ZsHND+rffG/P/TvtH/nYPe52XtwM3eqI9XnhBpMH+lIId\r\nelyGHO/QySz1S3+6OVW6yF19yK1iMcXLIPwCiaeS6Jb8ZmF1HNFV8XYJhS5m\r\nA542C3evzpUHED0BXqf0+VHmm2iOB94A3IO1O+Tly1dJnlWlg/ihrPVuziUe\r\n+HOTU7XrtYh53IdKPm22by8g8r2A4XI6AAWKN+H5vqjykh92OKAz0BxpzLSX\r\nUzuefbhiJc7cHo5TdOSUAWZQLrG1hEP9vmsnNREOLcQZJnQ3dgR1Csq5DMUe\r\nTMwlT1CPk2Eicbu/AmtnO/QKnjyvWqqOHDYdKP68IIgTBgQNTaoAx5/XXslw\r\n//J4QwNtxoxb78WjhsSicHc9j07tLz1VrZFQOG7XFOXSVZBCIcpmFDMp7hwD\r\nc0iQLTZpJJWyZh6n9E5SMOXhV7EF/eZZFUHKe7XX2xdDkDZF5uWyL3bQhSOz\r\nZVCeKCh4HeiX/WF+8yxWguyng2k+NHu3Wen2LtaIaoh7QUswjr9gPuIlRYyD\r\nTsa3btLMO7PcuFjE9w1APtDWM5FdX3iNSLem5YoQGeb2Yr2Zhi26sODXshFf\r\nOltLoF2GO7K5sT6DHym3wwvqgHFKaNBj7rgy8R1bP8j0XQucb97jA80oWv8E\r\n6boCEgvdy0ISIZa5WNsjdPe/cSKSUgbkcMQ=\r\n=2HCk\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.37_1659001939438_0.789232954475418"},"_hasShrinkwrap":false},"1.3.38":{"name":"francium-sdk","version":"1.3.38","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"_id":"francium-sdk@1.3.38","_nodeVersion":"14.19.0","_npmVersion":"6.14.16","dist":{"integrity":"sha512-MmJsZYJBl4o7jDKolGWOcehS1T/UMgrfGqJTuSHdiCXHMH/ZdK+Jecfb4Ch/iFoIHhTJJw270ayQa2tXMdFATg==","shasum":"06059fbde9578a4d855f6d7de3d17e8f14b35dfc","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.38.tgz","fileCount":139,"unpackedSize":2975836,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDysHdGBlAv7rf1qUB23DBFbgcr5Kjt3aC9FcbakHECLgIhAMAz77J3WFdF0SAsal+itiG6HOmsS3ryxIxsCuYoYCp8"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi65MlACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoF4w/5ASubNZw8GNgB5p9DJ64NHGzwgJ7sQdCUXfmrl3V0hlLaTK4M\r\nIoJZvegz/AO18VHzizsz/4If13CDWNfF6X1fw8u9ForkD3GmPB8DWduEuf5P\r\nkyVFxBQJerZem0SvWVvkvPGSGTdJL19CWiuuiViJsrYQ615qbcahORxyRW76\r\nh9Rx54B2Svr4SwV+B6aUPmCvOUd/UijjFL7UtkSxm/iUqgkumown8wMqO7qJ\r\nYdwRFgUtokE16q7ZfV/d3qDypbTJc7XPI+qwUWt/dcQ2RZjm7gHj5tD6dj2/\r\n7rJKzp2u7Fteksw0WDvSIfPft7/qsyKSQFw0KsNgNw3onQ/6608G9s0LJhWw\r\nErZ2WFSA9087CM2ukq6LiKYkh5fubtoOZ6/TvNeyTve8KbhJKXV7Fsx+57Cb\r\n1jad+WB8Xz9uzry2/+UMqba2DCtwXx86xVbontcbLbrPEcAQWwzsX20cgM2L\r\n2OJa04iO5TOsgya8LoPEiT4238e3zE7Pp8ljaEvJEBFzHxEMdVhlNvDfyJQP\r\nvXLYcvQePBWYK0zhRBwtzqLnuBb/PfnipwBS1+tD5eYCRZ6WZvB2IEJWey7q\r\nnwubjRVccAGxzUCA1aebI+SwXiWIaddnem23+aZddKzpPbq4J6V8S9Cf6Wfc\r\nMIOfVDSObfIh9x3MF+cv/q88g0FrufS+kYo=\r\n=VUFB\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.38_1659605797100_0.9250691337598886"},"_hasShrinkwrap":false},"1.3.39":{"name":"francium-sdk","version":"1.3.39","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"_id":"francium-sdk@1.3.39","_nodeVersion":"14.19.0","_npmVersion":"6.14.16","dist":{"integrity":"sha512-RsubMiK958SFHu+cx2K4aQlPEMBBEcsKVn2c7oAGLwdX/9oA2H/6FdzLo7WGSMrzhXFTMUuWFy6lGs+mXmpAzQ==","shasum":"5f20e3ad450be88d3d1474b96bb79dd1f9e32025","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.39.tgz","fileCount":139,"unpackedSize":2975776,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAt6dRHLLyuOxmFTyJ/5c0TFuHw0x38DKsFrHownZ4hSAiBgG6harr7EIYTdKlfL9cGLexNCVAibZ24B56Bf4HuwgA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi8G12ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoCRQ//YDAySOHv7FusLHliNahihQA9KCesDPPiRBjHI6BNpAGWiMD4\r\n25K7lEoK04NsOYiwAcU//jgTMAiRIuZ7XZSxA617IWEIWj8XCcyp7VJ1wCQQ\r\ns3ALcO2JpeENFe3jnpUd89b1nozFcq9G+ttFXAZ2liOgEvPkJWagw5g7gFXs\r\nkRDitsOFMfRJAReY47Na+ac/vorLhcAnzTImkgwsr4tPaMOJhJJ6Tc6Btpp6\r\nAcGQFRRyOLsFH0aA4u4hHl2DjgDebRSQnpDYR+Zt+UZV69a+xpzS2D16MtYT\r\nXmkGWjFzBRhG9xYxwsNMOpd9ILdubBTe89MpXHVeBaCdIodWOXVEjl8badar\r\nT4jovwRV3LjWsFW1GNnf1+lC6nwioryiJYRUw/nB6kikBIDdiP6+WH7sPfRk\r\nzKKHdT3LkrP9QjXb+oDGDupQIrzJGzmpNFXu/up3OAxQDevBIhLVjTqJCkq3\r\nkcvxcZcWjv5VrejyvcKkRBpkbIs7O4KXuOFdr6uM7Cd32KZVd41q4fHcSmS1\r\nHLqcc3JhntnXdUNTrXbdjkEeng1BvkQRkMGjHt0HNjmkAwKH86YAw6UPjt79\r\nSH36tvcRc0rnp4AcBVktU1dOCxFSRqKWBdoiFO5zh5LjJltXg/MWvLLS0rE7\r\natWOKjT/17FidigmbpcElhmvK8Pr3ggy4fU=\r\n=yxSd\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.39_1659923830067_0.6097344412004222"},"_hasShrinkwrap":false},"1.3.40":{"name":"francium-sdk","version":"1.3.40","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"_id":"francium-sdk@1.3.40","_nodeVersion":"14.19.0","_npmVersion":"6.14.16","dist":{"integrity":"sha512-0zaFutkgkAMEJQQaiBW9RMzC6ReK5lTrYSKjG7FMJWepvn7eIp7tQFRL00ZYqlT4SLHGegmX4BnyurDG1y1UHg==","shasum":"9a933db5ab09b7ec03c0d5ff1731ccc0f1d23470","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.40.tgz","fileCount":139,"unpackedSize":2979747,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDMoYCZVT3LAaEc9W584fV6tWElJ8xLfRvH2eDx8Opu0gIgG9GOhiwaVmdq8+lFSyQHAcRm5GF2l68w7ATZfC7xewQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi8NAyACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr/Yw/+KiQK1Cz7rGoLpFHLIz75gvjo1rTSJXsF4DbdR/tS1Eji75Mi\r\n3enuuGcviL9KHQab8Wtf/iHeqf0u/hDJ29mPG6Pa1YrnD1On7EqjPoB9HlEQ\r\nRcrwQQJVgmD7y94RRjX9XQE9aUhhClK2JHH20yzrN3fMFio1mLHZy8h6MwYo\r\nunDaWHz4QCuzO2eii8CEqBXsF6SvaLxjtuGWI/4YQ12IJwjjpUG+z84moKkZ\r\nlvie1Fb6LPwBd+vJQzwVuerteNzJ4td1Ar1UQAM+ESunBTsO9aF1xizfNC92\r\nYK8K00jQKd4nBGywkqbi+XsULOcJUfxTfNOoEWw0Ky4qxJg71i+1273oaBRh\r\nI/UiVCZO1bD43jWu+uh1A1YLtbK1OXkqnY/zkvg2FEJAwt6lyyKhPQiHcfyc\r\nJ3ufg6wZiRJ91yGgTrhW0vxxwmMUBvCR+MZSznjga9WbpArwbkAeXx0VU8C1\r\nxFw2FX/2pL/8kOZ7ad+U4bJSegFBC/jYdPwGEcNz4Dd0DGgSq0Kby/tSS/NK\r\n5ZNKUhYjvpGWJEKTUI4MvQrFr1aogMI51u6blyb/plAG+J8eQv7m4/PQ9DVx\r\nqeuU5hue5GyBj55sOePoG1834eOCqPpsada3VNOKI7ilNGiA3jS0p0O8RuqX\r\nZyt/8yjDv5wZ697aAktcX7uAYVnr3Nu8wNw=\r\n=UMCO\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.40_1659949105889_0.8708760591199929"},"_hasShrinkwrap":false},"1.3.41":{"name":"francium-sdk","version":"1.3.41","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"_id":"francium-sdk@1.3.41","_nodeVersion":"14.19.0","_npmVersion":"6.14.16","dist":{"integrity":"sha512-yB3MMw5a4KDqKvxl0VpQZ13qtD+Wgw01pb5E8xN0eBjW/z3hvMXJ2m9sfJZlREtKMMdx2PqRcXH934DQpCPZ4A==","shasum":"6e106ce24addb6553c7abf0c24dc751b62e9be8d","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.41.tgz","fileCount":140,"unpackedSize":2985396,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC7DfeqMLl1mFeO9Gcg8BFqN1BPLmPZxZosJUl2tvQI9AIhAPmaADqDoXnkMRL8ApbUM+rDNqq2PuBqxSOMhPCxX0PK"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi/13/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrKfxAAgRQrGknieFBdq6LGkiDPPBuPpB2f1yUxgibWm4UXm7QKN9Iq\r\nzBVCNcIMYUABp8VNMYIvWUii5h4LY8PgGWsgphXoNasUHGLsY+DU9Sl3ZhqV\r\nk3G/9Cac1Quxq6gI2xAAVziuWAElJt9WxxgXbX6TpDSgpudkeXaVp1s5Wnrl\r\n6jAQaP1yIMkB3wk1EuLBJKfZVlDQ/DKVZ0yPXMRABhgrDgA6/PmgaueUxjPM\r\nnAo86/pIoII8Nb6HjjzjSTlWSbBqWqQ0RS1QVcqWzSg1FW0Pbq5/aPhln44U\r\nXpKDmDueMg9/OozlvLUkUfSVUSdqtb/nvXyaSmvdVppg3zVdzpg+fE/D1tUI\r\nooMuL1Ri5jV24NqWYfiTSHInkRKTeLENnd5V0RQ2HwglmjTOOg+kaUagAv3k\r\nYwHSIOKwSvF6rM8DLP9USkFLadWaYiwYvWm9YYsO3ff8/CKEkT8JdZCX9Qiw\r\n75HDnwVaFDMPTNccFYqqG5AthK0uPhTK/eBogMWlIEPZwNxlcZdEUjc5Yuzf\r\nfngcRmdwcv90tC10rSErGKQsJKI+O/zNA2LTA/SswHecTpDvyF08hbtXrqmg\r\nnVUfVKN8l7l6/lqjNBJscp4Af04bOU6Vols4AycZt9X306P1UA42GvF//cvb\r\n61knY+qt+nmfwpzvg/DzgMQoT3TTE0O/66w=\r\n=aLZx\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.41_1660902911113_0.40366656246542276"},"_hasShrinkwrap":false},"1.3.42":{"name":"francium-sdk","version":"1.3.42","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"_id":"francium-sdk@1.3.42","_nodeVersion":"14.19.0","_npmVersion":"6.14.16","dist":{"integrity":"sha512-XuWdrOSsW92uKEB7ZouiWt1fvMAnfBRTf/g00qoi+fY0A5DuwnEolZqFjZN3miVIXgnXpUgVM4G7Zu6gECvjIw==","shasum":"76030eeb087230226b09ad448aea870624bd0292","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.42.tgz","fileCount":154,"unpackedSize":3102814,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGBU9rBttqfVb5MFGmhZ1LmRbStLH9MkVC8RvA3vVP7kAiBbNEFbrAQgUF3tRT9JllSl01Ls+zkUTpWoVo6dP52myw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjIUdwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo1gQ//ZFW2DOyXZVwI0HV5NIDHLtT5kK4Fam/qx120EJvLGy5VUGfd\r\nRQ+xK1UUvYTJiUG/aUeMpaj7cW7/Jb7LCT4W92uKVdqukTDeyKrp71OZ0KOW\r\n4U4JJ+zYRwZeGzDcAQMDbm3vMrg0RyrIgMAsvw3XOJswz8k/k0C307AIDbZG\r\nlu/o1cXrWR2rQo29z5N+tSPSCj6DtTUzA5vlZXvSggEC9W5wmud+6uXUWbdZ\r\njYH8J1vO3kT0WE/gJi3kCpECK3dkxvj08VOEHkLCfUk/2ToV6afWJYKzSKIE\r\nLqQLKOvCSlUSHpCYXZ4ITMgBiSmmCBVD1TLKouvbyJQPe1HP/HtyvBstxb4Z\r\nVcl6WQmPgAQDInhKNFPUtE5LiIS8h8VSipZ6K92O/864dFaoMppBWSqBqAwz\r\n4iCttXd89EKbgMXkLpHDDuDAbAt0i+aYyPf6nbbk+gsqc58DMLDiSrs8s2ba\r\np7V8qDTt5jUgux0zOEXl+atnzZth7Jq+lYfTC5OKZtbzamEAbkBiFWdi3b7w\r\nPYpQlkFZ9hg72W6/rAv1LLkDFH1QwoEl2sK6SXxWOddYI4fXI5L+Tmsg2omn\r\n4xz2dFDFHvL00YD+fylytBCgTmCcdi0l+c7OLAjLmzFXs5mrJQ0eYWIsnVI5\r\nIT+Gx1f7KWtTvhQ8/MHSRgia09VyzBzBYi4=\r\n=YYnn\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.42_1663125359902_0.9607329854672582"},"_hasShrinkwrap":false},"1.3.43-beta":{"name":"francium-sdk","version":"1.3.43-beta","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"readme":"# Francium SDK\n\nJavascript sdk of Francium lending pools and farming pools. [Learn more about Francium.](https://docs.francium.io/)\n\n[NPM package](https://www.npmjs.com/package/francium-sdk)\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\n// Will fetch the LP price info on chain and return equity value.\nfr.getUserFormattedFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }],\n    //   totalPositionValue: 10,\n    //   debtValue: 6,\n    //   equityValue: 4\n    // }]\n  });\n\n// Only return the amount.\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Farm Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function farm() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getFarmTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      depositPcAmount: new BN(1000000),\n      depositCoinAmount: new BN(0),\n      borrowPcAmount: new BN(1000000),\n      borrowCoinAmount: new BN(0),\n      // Needed when adjust\n      currentUserInfoAccount?: PublicKey\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n\n```\n\n### getRepayTransactions\n```\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function getRepayTransactions() {\n  const trxs = await fr.getRepayTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    configs: {\n      amount0: BN;\n      amount1: BN;\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey;\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n```\n\n### Get Close Position Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function close() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getClosePositionTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      // 0: swap to PC token\n      // 1: swap to Coin Token\n      // 2: minimize trading \n      withdrawType: 2,\n\n      // userPosition.lpShares\n      lpShares: BN,\n\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey \n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n\n```\n\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n### Get Farm LP Info\n```javascript\nfr.getFarmLPPriceInfo();\n```\n\n### PDN Rebalance\n```js\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function rebalance() {\n  await fr.sendRebalanceTransactions(\n    new PublicKey('23xxxxxxx'),\n    targetPosition.userInfoPublicKey.toBase58(), // the userInfoPublicKey string of the target positio, which could be accessible from fr.getUserFarmPosition\n    wallet,\n  );\n}\n\n// get rebalance Info\nasync function getRebalanceInfo() {\n  const rebalanceInfo = await fr.getRebalanceInfo(\n    new PublicKey('23xxxxxxx'),\n    targetPosition.userInfoPublicKey.toBase58(), // the userInfoPublicKey string of the target positio, which could be accessible from fr.getUserFarmPosition\n  );\n  console.log('rebalanceInfo: ', rebalanceInfo);\n}\n\n```\n\n\n## Lend\n\n### Get Lending Transaction\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function deposit() {\n  const { trx, signers }  = await fr.getLendingDepositTransaction('USDC', new BN(1000000), new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\nasync function withdraw() {\n  // You can get this value by getUserLendingPosition method\n  const rewardAmount = 1002232;\n  const tokenAmount = 0;\n  const { trx, signers }  = await fr.getLendWithdrawTransaction('USDC', rewardAmount, tokenAmount, new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\n```\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n      // [\n      //   {   \n      //     balancePosition: 0,\n      //     pool: \"USDC\",\n      //     rewardPosition: 41354540149,\n      //     scale: 6,\n      //     totalAmount: 50386.25041249344,\n      //     totalPosition: 41354540149,\n      //   }\n      // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN,\n    //     apr: 8.36,\n    //     apy: 8.72,\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","_id":"francium-sdk@1.3.43-beta","_nodeVersion":"14.19.0","_npmVersion":"6.14.16","dist":{"integrity":"sha512-q5Xrh0sG8l0jN5c8LABJH8UG59YKG1nXp5tbVOsAVbHovBhhdva5SNpZS2yLJvjO1gg3bu85h3dN3GN+13zjzg==","shasum":"3fec92c53ba74ca0aa6e89fd006e358e5fef092c","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.43-beta.tgz","fileCount":154,"unpackedSize":3145239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCyOns2B4dIJyi0xup9G9yHUrDY8bgvsiRa1TWhY0jpRwIgTFhkYr9il6fEM0i94y2tlKdm8Z9KfRpdagZpwx4nZjs="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjMVlkACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrQcQ//fumxA3EEUYh+aUQ63rHbNaTVwCtN21oV1w1yTwmXfx0eTxVk\r\nIx+Vci8yB0fQZ4ffEvg35EZka8TUXlZUMoacN5hGb0N30k1uwmI/SlUqEiBL\r\nj2R6Ux67e5zlUkXqvO7EIaebOXt9hL555AQyee+jnnjNWR09u+JwpmUb6rnw\r\nqV6/FpkgIfE/RENGaaneBo/jE0kKYTq7FPJcD+Arn2j6UVZLmz6PBSzKbcTy\r\n3YNz7aniN5DnwTcuTBG/TCPj7APwg9zW4WJD0HqCRf3WoJtRRBdHZKuJvsOT\r\ne42xgxHaEFur4VsYCwHGdqtaeEc7oUfdlgpEVz0biHG7MbR25afayiKIZZnO\r\nea1Ty2OOObjSTMGj9US35a9IpkqGn5K9njlRDkURQTdRWRX4UdrLXey4ZGvS\r\ndr01c24spOYFY1YThCVfrariqZ67YSyW0Nmjh2poSbufimHBwoYoXUq0dL7Y\r\ngu6xVUlwXgaunZ2rNYqTqWWll2Ebc9yVkxr7lWNI9dmmzGVfns3azLcaPIE+\r\n32GSNDxMjAZfGeMp47I5za+a7PtmKCooKckDxN3+8rMfsEbn4vN6xertXQN9\r\nNrT3O7iVhMN7k6P0/sE+QCtajFYUH0WmoWii9ErBYi1WpeFWLwGzB6GWPx9c\r\nmNTuntew6kJuOG2CA96ZH/XmfiRaJ7MyDZE=\r\n=AqT1\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.43-beta_1664178531870_0.0284487764676864"},"_hasShrinkwrap":false},"1.3.43-beta2":{"name":"francium-sdk","version":"1.3.43-beta2","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"readme":"# Francium SDK\n\nJavascript sdk of Francium lending pools and farming pools. [Learn more about Francium.](https://docs.francium.io/)\n\n[NPM package](https://www.npmjs.com/package/francium-sdk)\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\n// Will fetch the LP price info on chain and return equity value.\nfr.getUserFormattedFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }],\n    //   totalPositionValue: 10,\n    //   debtValue: 6,\n    //   equityValue: 4\n    // }]\n  });\n\n// Only return the amount.\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Farm Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function farm() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getFarmTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      depositPcAmount: new BN(1000000),\n      depositCoinAmount: new BN(0),\n      borrowPcAmount: new BN(1000000),\n      borrowCoinAmount: new BN(0),\n      // Needed when adjust\n      currentUserInfoAccount?: PublicKey\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n\n```\n\n### getRepayTransactions\n```\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function getRepayTransactions() {\n  const trxs = await fr.getRepayTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    configs: {\n      amount0: BN;\n      amount1: BN;\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey;\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n```\n\n### Get Close Position Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function close() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getClosePositionTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      // 0: swap to PC token\n      // 1: swap to Coin Token\n      // 2: minimize trading \n      withdrawType: 2,\n\n      // userPosition.lpShares\n      lpShares: BN,\n\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey \n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n\n```\n\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n### Get Farm LP Info\n```javascript\nfr.getFarmLPPriceInfo();\n```\n\n### PDN Rebalance\n```js\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function rebalance() {\n  await fr.sendRebalanceTransactions(\n    new PublicKey('23xxxxxxx'),\n    targetPosition.userInfoPublicKey.toBase58(), // the userInfoPublicKey string of the target positio, which could be accessible from fr.getUserFarmPosition\n    wallet,\n  );\n}\n\n// get rebalance Info\nasync function getRebalanceInfo() {\n  const rebalanceInfo = await fr.getRebalanceInfo(\n    new PublicKey('23xxxxxxx'),\n    targetPosition.userInfoPublicKey.toBase58(), // the userInfoPublicKey string of the target positio, which could be accessible from fr.getUserFarmPosition\n  );\n  console.log('rebalanceInfo: ', rebalanceInfo);\n}\n\n```\n\n\n## Lend\n\n### Get Lending Transaction\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function deposit() {\n  const { trx, signers }  = await fr.getLendingDepositTransaction('USDC', new BN(1000000), new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\nasync function withdraw() {\n  // You can get this value by getUserLendingPosition method\n  const rewardAmount = 1002232;\n  const tokenAmount = 0;\n  const { trx, signers }  = await fr.getLendWithdrawTransaction('USDC', rewardAmount, tokenAmount, new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\n```\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n      // [\n      //   {   \n      //     balancePosition: 0,\n      //     pool: \"USDC\",\n      //     rewardPosition: 41354540149,\n      //     scale: 6,\n      //     totalAmount: 50386.25041249344,\n      //     totalPosition: 41354540149,\n      //   }\n      // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN,\n    //     apr: 8.36,\n    //     apy: 8.72,\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","_id":"francium-sdk@1.3.43-beta2","_nodeVersion":"14.19.0","_npmVersion":"6.14.16","dist":{"integrity":"sha512-EA3ev3XC0vP6QuBeJzy/WP8E+n/kG1bE/N2LEgDq898aB3W/di3aPldasQbE9+XAxJrCwzX4puLyKu/AdA68RA==","shasum":"8eab24f1473b9d007700913b7c6da14f525c2b2b","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.43-beta2.tgz","fileCount":154,"unpackedSize":3147666,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH6Abrj2JdkMgx1D6KjMTltrnob5dXrSF1MaafyUPDzPAiEAigeexhH3hDC/RACk1B3vVifDiePny086HxKRTVNDKVU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjMVu8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqB1w/9FRHA5G0VcfzmLyvmXbThMPxjxG0fJeD1J09a8Wy1dylca8P5\r\nsZQfA0M8xRqv0MzE4wKIh73SSkW80W/WOdiAoGv7paVF9q7cRdYS69dJU+5h\r\nUozJwKY6lJheYzubES3RifUtmh4ojVan2i9YOFHnq/w7u9DjeZ1lLrdVAoRD\r\ndQJrOOM23nn/V0IHYkYTqUKrpkE5B5SFKKsIRr7NhTue4Z2f/eRP8Bf51LKa\r\nyOdsezmz4yPxgr08qtamfCcPRrc6B+Y0KG86RuQ2lCNDKbQImNW5zKyQ+g7y\r\ntG1VdKKCQfrLapm4HzWx5hEltFlu+wxs3d6JGcDAKMeByHulgrAQNs1pdI1s\r\nf198YRQ2Y2smEHbThF+S6qOpd+V6zwWepm6Pt8LXGrQA+xUili3Z+o8d6kad\r\neP0HezbIKFjPbqRYZ1IStRcgY5hzP6kl1l3Z3zcZKNJoWUImlcL8nBwxr29P\r\nkLEeXp2kZRqKQA7gP4r4XP6n8w5IbAaplJ5BubJadGX8yfLAe2hNPdmzsSjv\r\n2wkRVtgkOvtStIiXmzkzuCRD65vyCE4sX6zYXaQ4jYYljs9XZ99KdB7Gmn59\r\nLqgL8Cws7JPo8TfEl5yCpDT11eNbb6RmQz+Jh/iz5DbLE39emPJqOA4uW+t6\r\n4ttc1BJ4yPBMUVc7CH3ON6M28dm7A/ULr0M=\r\n=tedc\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.43-beta2_1664179132390_0.39472687532062567"},"_hasShrinkwrap":false},"1.3.43":{"name":"francium-sdk","version":"1.3.43","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"_id":"francium-sdk@1.3.43","_nodeVersion":"14.19.0","_npmVersion":"6.14.16","dist":{"integrity":"sha512-BQd4xLv8V8qHNnOYKTZHAMMRBxGPfJ94fJlNgqSw2t6jaQO3byhvtzHnTNfAxXr5r0zGkYIbp0DkBVNR6JQUzQ==","shasum":"4a0a9a9e3c6a7cab26e5bad2b3174ec3ad4eda46","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.43.tgz","fileCount":128,"unpackedSize":2898640,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDDteWDc5DNKDYKZDIoTGVYz1cH7zQsg3neid08KHbQMAIhAPo+D30564QXZiKYUsCZs1RcxKteUQyxuCNCKqq1nT0y"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjMrzYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqe9w//bp2LpxGMC/ZMdLA1BvdK7xuQ9uxYSzmEbttIF2bbSvyBLCnl\r\nH4GFkPBy8G6UAFn4PoDiMQmE80xnbj0DVfmKZUZBOhnvM7lukg7CfFFkNBf2\r\nEFn0TqGgz+RTpxzEdmB/3XTFS/cV5kAuzYYJxvVaKjC/qQeceFdXJaPAE7uh\r\n1PWNsvUB3G59uddpRJU6BFmwvg+llZnXTpICHJ9vNtvZ6tDZrGdmcc2QGv+U\r\npdTPSdODIFKE8novM7ZSt5DLO1qtZUur3sKG2kDaVDdOx4o45Wf1xM2/VIfP\r\nhsBvkQAlRxtGFEIPsOebtNjgyWgwQA0dtOeTQKEZr3dmepxj232kCdbrr++w\r\n7BLvTL/TPM0emEYw3CK46+tMJksfOvfgmq5Gs1o2lfvPQWytp/I2WYONf4uS\r\nuxHXWo6+SvC4NxA7EhZDQxIxLW1tVOfTXaPL0jiIyESnmc8He2if8dfjDIdn\r\nyQhaNgdsdlbPhf7yo7fa8JNXh5FnysvY/pY/Kg+zmuhVL9huTJlwT85V/I9c\r\nubfHOVec8ykngobKLxzvVTwhqvR7Ft4ECPIcwVU3tcB5bhhCatQPiOuM+c7K\r\nlw+oAKhZYQMK8DyGpS4AN7+chOyl2/E2t9idskHoC+SWKwEG96XbtA2mSz01\r\niOfELuidMYO2c+Bx9WSJ4Y8wkDA4b9+I3zw=\r\n=6yFy\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.43_1664269528308_0.3810140627940122"},"_hasShrinkwrap":false},"1.3.44":{"name":"francium-sdk","version":"1.3.44","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.30.2","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"_id":"francium-sdk@1.3.44","_nodeVersion":"14.19.0","_npmVersion":"6.14.16","dist":{"integrity":"sha512-lUMpFyKzevD4K8mkqouKOxanJ1XYWtxfnaKscgemSn57KRmb+7IXnRTHIYbCFENQzsHYzToBRBinQ38lYwg2SQ==","shasum":"ca9df8e96afba04fd3f33cc379b8ccd80c918ae5","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.44.tgz","fileCount":128,"unpackedSize":2879969,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFX5LW6jAUFz2BWUefe66y0Z1CD9v9ZJ343qzk8eN8cjAiBw1DBRiFyOdF0JXSELoRC9TNRdvrx+lCW074l2CChGXQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjMr4sACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrBMhAAo0oHoQui9+KId4/QMuQBHZUYWq9kPjvItZwdHQiPHCyjxVYf\r\nvdFhNJzbwJIuzG+ttjeUnj7zYp0swim/yzpHJW2H+BIncw3c2GJqbCucYumJ\r\nGD1Nky0T/GCam2RF6x78rDDklPwXSoXvpexIfIwoTpP+lhF141gyu0+txPDg\r\nA8jWqc/PuOYlGHxp4aacX4TVvAtXZJO+4etXPgDMCJO7rqw40ocJ+vhnOUy1\r\nR95aY2ohI7ZUOVvdBZdIPXnOirGqvScalAUMlQp+9dVRCnNgOS7ewq0lpWYW\r\n8olY7Ab5kfVqlmNwvLt5BYiYM1ujWLS0tNPJfCsVrujrB8x0KGo0r43aLXQu\r\nVCXz8VQHkeDpzhB5sdxBuNKO+nKX1G0L5Jj5gb7IfvHPiLH5YSsqC0ngi4RM\r\nECsw33hc9JoSMLQ858JhCWVCn4wX9E1Fi8qzjHZ5chnkE6vnZig5Ra7g4u3r\r\n9o373oaTJMr+WKklm+judRG3a9Xq9S2sT1AZhqqgeHxjeDdIHo08QaQJvuzV\r\nHRpWs97W1z0U4FaMMu124h5mhxgfjaRWKXCP1u6Q/nVAUBg3hxoNgXVsFVzl\r\n+yvwnGH0VLQtE0AM5OtDujBQuzBtoenBjSsyrqVx6rm4Ldo9lzeZRcRncLcf\r\n40cznykIcesLjDbEnd5AwPlGGtZH+ZWexww=\r\n=buV1\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.44_1664269868697_0.013117903473145898"},"_hasShrinkwrap":false},"1.3.45":{"name":"francium-sdk","version":"1.3.45","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.59.0","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"_id":"francium-sdk@1.3.45","_nodeVersion":"14.19.0","_npmVersion":"6.14.16","dist":{"integrity":"sha512-P6dZqcgi79YrjmkDUc7keRoqb2NxO3J9OWXdE5VYRs5v1TBf8CytCrORI0TzS6E27PFN+r5Y4EhZEYKPjF6gTw==","shasum":"73516473a51a06fc3bc3664026fc425bae4cdc02","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.45.tgz","fileCount":155,"unpackedSize":3161400,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBmx7ZSINB8bjRXNYXFpaqiwe62kmXCDgw9TtpbydVOMAiEAk6jGEj1xBWsV+wK7hcLhUGyMsRPwUj+zrWl2QB3zF8o="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjNq/IACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpfJQ//WZYShAmaKMPQeQtqPsi+ZZI8UNUTAXGdMss+EkXmxa6ou+HY\r\n5QSRpVPSHjW3Pv/1E28WHhL32t3CtbQiLXiuV7bUT9E4ufMItayYDrqlTK40\r\nfyDkk1bjg7D9BMJEZv2mFQbCQVcZX7Fual9Q3pIJ2ZgvgrumNOLF8GGyjuFH\r\ntnOhHYUQU0bYN3oaS27iTo+UnUaEqfZufmClVXdrx9NgRU9Ki/PugqbgNG2v\r\nNyu6gMN7X5r0WbZ9InVloDF4Bf2Xw+cMdHnYC9KOOZtFYssE3IjQv/J+i4S+\r\nSG0Hws8rIHYmSNT+9t9gVpRlraFjaxlD/GZwu8NAG3LqXMZ0yd9RlRS/QQ5j\r\nFWDAtL13phqlJ+LRBFENu2JsBv6NKIVvfqf+uJaM70z59UvAQO5ez4S7fTTw\r\nD42sY9vVCVxECMFASCM6khaI7IUkOBIjJYwSz20Ux+YW7XfkNTYT8u6Q7EhS\r\n9/fVKB8qa42N+r2cWcMWYpgWIv1uAtEZNe4d+UkOHH3UKPvSesx4CPWVrqXb\r\n8zBClVNGj2ThTnY0zBkuneGZXrFLJDU5SRDQS4/LbU7yLr1dXMtwGFbPp6Dk\r\n4ZzvwzQhkVfrEFH8iVB2glaC0AQ9W8siUb6U74PWGU3N4ExNcYe21mKjVG5l\r\nSaiSyUTKPAGrzOUdxQ1BcWKF4O4IIFHjR1o=\r\n=7jCh\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.45_1664528327935_0.767602934813302"},"_hasShrinkwrap":false},"1.3.46":{"name":"francium-sdk","version":"1.3.46","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.59.0","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"_id":"francium-sdk@1.3.46","_nodeVersion":"14.19.0","_npmVersion":"6.14.16","dist":{"integrity":"sha512-S1GUFO03ZVgVYverpy4JcET5g1eQmNHMKumj0Isjo7XO2uQrXPdpBJlxcsJjjfTzatqAzS9hX0iq46fyHuBx/Q==","shasum":"6eb479d7dccc8f5342fc65e2f18e5f77f3914615","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.46.tgz","fileCount":155,"unpackedSize":3160930,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC4ZGMNZLPlvqVWSHKgha/xK+89CvJAgXTKFMFW+aRxOgIhAJfElhGfHLaB5DUX/5N9kC5TK1l+06ak0qIshGBI4OJH"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjPN84ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmry1A//biN1B1EB+v6gewXiHZBt/WUIsZ/32r8UsbKMI8tKFA4ABBCs\r\nnWAu2BsF0wLh26Jlyw1Zg6AS08GpkyMrc1vBUKwHbMUqQ/DH6ZwNkbi5MGzg\r\nrb3ZJ4Ehnl6JPCAFNWzEcNbjk7QAblah/MfFrEWsoGWUPdzCWxBTDmgP37H1\r\nNSR3PAW+H4kRj/vzpgboYVUiWOoXn8BrUgID21IOq4FhLco7RjrcR19ZAj73\r\nPteaHFpjjRzx7xNvJs01iM8Ok7ugUZEEbedoCsYNEz7lR/UnCQqgl3RuZx8Q\r\nmD6CVjCHT+5wzdgwjLXxxIYlPXcvQhxJx8i3Zjtuc3WK6pi5ZPdICowihPrR\r\n16i0DzELv4UMXF5hFmuCiOsRBZlB9TRzXP2x2ethW9lh3avTTA7MejNeildk\r\nDE6D5vlWWYRgWhZ/j8zfw4vJxlnN9jA6zOYESBfwf4sUZ2GKHFdwsQPvXDlu\r\na/KXowRR+BFMbp7Zlnk4xwn20XPnGHGcHlal4Zj/Wz3nHBjnSAt6+FVpid97\r\nv5G5tlScmjD6Dmhx2bBKYn1kw4w3MVcTqKjLgnAIN0wy+tocC7tgL+HlUviG\r\nUOiNUFJ2XZEbdVBHlzFDEZnC6cN+XK8/O/fHlaVCKAICF4NbQTihPiXJ/m75\r\n/vSz4dTbfbOcJrfLuIuhtEWLenORW+SL5HY=\r\n=LoVo\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.46_1664933688443_0.6303647491695052"},"_hasShrinkwrap":false},"1.3.47":{"name":"francium-sdk","version":"1.3.47","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.59.0","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"_id":"francium-sdk@1.3.47","_nodeVersion":"14.19.0","_npmVersion":"6.14.16","dist":{"integrity":"sha512-fldLvYiBInV7fu43BHAApZd+cPxUrRtbjJkp3D4jXaH+cutND/85YIxAeRBWq6iohElbqvyZPGhFtF50odpT9Q==","shasum":"5903255893e122d0f6a241ad1453ce6323ef3a72","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.3.47.tgz","fileCount":155,"unpackedSize":3161513,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB84NrNEC28FoTQnCZcKlUQ729rv+PHXlX+ARX/M2wg7AiEAr8IJPQoHjf8AwWDQn60uO7JbPZH2ztjoL6vm1n272K0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjPn5oACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpeqA//Rfx1wiXdncq+9mEespMOIzIaj6g9SOqTdLg1H4CZVG5nxD0K\r\nolfUIUTYmIIkd8s9cLuPiBEnnhh/P8NvBOldKgccTC3IfOjvsPB4EwEu8bHk\r\nE8Quc28zm7QQnu0OCQbVGLaoSYjTBuF0Cj09B4aL4Pnq6O2LaB6DInay7qf1\r\n9IeBIT0F6TUCa1Yn5OehyMbpjq+MSsG6vsReHwXoi0BIr6NoQpvKGcndRmo7\r\nDpqMCbgrnYUpuzGDVT/o6nfFG4OrRtDJfMGfjIiVKd9HPJtdGgdDnOIFcEzP\r\nP/lA66OYiqbYtfGVgsD5E15Jc40eP9OqS42DD9Q9txF9077etuuEezK9FwGH\r\nKRjSn8SWFYavUG8Rl30rzc1dlqjPFBciFexd1LSaB5q9ek0aUYz6BuE7cBOX\r\nmYb9xDE4qVYQsG+vOithjBsAcTtehq6Ua/I35EH+Tp0pa8FfB7D5rSoqAwuw\r\nZPaDxY63XYEMjIZDmGZ69MrIRSKROGc2Ta0eNNcfJgG/rfIhqo7ujt+0hThi\r\nwoaBVl4wXalYgfcxYbmBlXXHtqgqmqGsE68G5poWgUD1B/g4p1lcyJxRH93W\r\nkbLmpwlxVdeiXB9ofWNxEF7HWvsj5w4zzDIXUsXyzOoV8RSVZqV73Zz+Mtg7\r\nxyywm0ilAKaykN5sNcIsB9qEXbakA6c1eT4=\r\n=qVit\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.3.47_1665039975818_0.028905742166891013"},"_hasShrinkwrap":false},"1.4.0":{"name":"francium-sdk","version":"1.4.0","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.59.0","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"_id":"francium-sdk@1.4.0","_nodeVersion":"14.19.0","_npmVersion":"6.14.16","dist":{"integrity":"sha512-9RglnyXIfF+AMcuh7Cdgonpq93BwWVrA++NQxukFCrwvLLpB7HN/18HAeid2G1v6q/WxYG/fiAI26Jv7u6AHYw==","shasum":"dd70e10f6ab867ec7eff8d846bec3beb459a292f","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.4.0.tgz","fileCount":155,"unpackedSize":3132703,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICaiTWr4zl9zwHt76zBSh2vm7voRG4E3qkSlFWlExLHEAiEAn1nhN9V5AODOlsanoznsaM3snzil5ctqKY9My3mSVxo="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjT556ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrlag//fRAeHJ+u5NsIfpFwHDBSxiTcV21JotoEhlMeXtiHMT01906Q\r\nLLxOyiF6sa9aqncqAUILWcvI7bTttcig20TqzrlAF0vjZdhqiPOjY4jj0Y8k\r\nSvkjWTtx2HHIK7NhDFBunQv5CaqrZXGu/jNtslap3aoWaMp2qfxR5eKCJJOQ\r\nSD/9r2dha8iZHYoMYcexIWY5zqKNJieweuL1iFTs6mlwM6K0+USADgIFzoVQ\r\nraEvVm1+a7H3rj7r8W9MCJy83bszbN9C7L1Kk807dUkccH7kzEovPa/hYGA+\r\nbSBbGDMY9BNDij1606mTmzPWdDnpdBIZtNQlPFIFq3+YAbiDGiiKVYErD3zT\r\n8OKkrZSmuFOK/32Csq2+KmOY2Ezoayah7Hey/8MoUZtF27I734IdRxvG5T8V\r\nrbvsMwDqjyWx34ynbBbeQW6o/2mInDUb9k9DLispWRnwPqdqs/zcMYXokLom\r\nP+AfcDV9dvR56LBdAUwdCpYSPF9zzDSFEqPfAQ91DvJ6rem93C3xpGjayTP0\r\nJAV9lXNJ5Apxcw1QwFTeNvum2IlnYJUihN9C+XgMOEKsnW/1HAIzWKLFxsux\r\nmfm9FBf79CSSLNsiAL3N462d5UZ2yYEVrXnFqzemxLUt2uKcRwlc9PK/rrq8\r\n5SYZRs6KaVixq4scgcQtndTh+DF27mMwqXU=\r\n=uwrh\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.4.0_1666162297765_0.33084515473001064"},"_hasShrinkwrap":false},"1.4.1":{"name":"francium-sdk","version":"1.4.1","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.59.0","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"_id":"francium-sdk@1.4.1","_nodeVersion":"14.19.0","_npmVersion":"6.14.16","dist":{"integrity":"sha512-FJIneS3c1mVy4lPtCrJlKF+627Qhlzx9oNtDe4o3egsdSSlxci3gmRnmxRkEPF0k2uNdEZESsbrNoBcqcEHWhw==","shasum":"9f059c0501f798b44edd6112a426663fc1c3d705","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.4.1.tgz","fileCount":159,"unpackedSize":3145732,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCZnEKY7gCJrf1a7rPPFOllSHzbmHaxiPcWwvjbO8rjUQIhAPjmCgu7ZPnmo9SVBI824RVPwibgeLYGcsHFDXlYvv7o"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjV4GHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmodXw/+PdGjWiHGThRC9B6cb+CQfPYDlIGcNMRptafbAlPWZrPMkLTz\r\nwTp66aSbBsxpWYtwcVQidwi9qvnLiyOFQgFE4IMoNW6HOuT9n41JqJ01DMX7\r\nHBBzEXFwMT6633u0k7BrWudW9m34RlINVCQ47dFpqsZsDEL+j+nUW05kQJ09\r\nHtG6UvFS7GB/RZtJN+ryomZ+so8sQcPCbU1d7NLju9/HeB7aRR6mOYmEiGp/\r\n18nETgSwCnPmaw5S8Iag97WQ2nUc7wIvmpD9j7Q4BgE/BcVyVnyTSTKQiHOQ\r\n/LrruQjY4ZEQnU7w07v1MQlnq+tJk7lNAzQTW8ukpSg2CP72i3CBPxaBbvwk\r\nHgKb0pgtU/c5uB39DffBJ/HkJCPpArqHygvKgkFbbvu4EY8WmAuO6ShfipJc\r\nZbU5cEcg84xy+CAejNklMMI+Sti3pNzHiqxeq4/35D3F4dmLO5e8HVjF7XlL\r\nrpAJpAMhRf9TICK8Qz1T9rxL7uWJ/IPvGLbW4KrcYoLWDOKIhCEy4X2uVg2I\r\nCMUkh62csB94nWNqHroiUr8YAbWGByRsLSPjy9yphP9EXKbF25TIl0EFcZZF\r\nyUXrBrEbp9KE2WXSD3b+gl4x77XK4mojhGbtC49Z5kdme26Yd6zJkLfVRy9+\r\ncNG9WZqNyuFCGmqNfCDLEhjXs/EVteDik9A=\r\n=zfpf\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.4.1_1666679175316_0.4907992001233219"},"_hasShrinkwrap":false},"1.4.2":{"name":"francium-sdk","version":"1.4.2","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.59.0","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"_id":"francium-sdk@1.4.2","_nodeVersion":"14.19.0","_npmVersion":"6.14.16","dist":{"integrity":"sha512-Rs1bGY/D/Mmnz4jXTVpxV4WSv34dWvvRC/F84pTl4UllMqssuPKLsciJaeF7HMY4m30VLC7feExIrT9bgPjUmA==","shasum":"267c6c28eef93bb0c855dd5652cba7f5e01e173d","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.4.2.tgz","fileCount":159,"unpackedSize":3156743,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFX7HchjQ7WrQj//Qrkp7ZddkO2UkrsgN9z91Nh6VLd8AiAP1dDl+GfgkOu1dpN6/wlq8Mef/FrnkJGwDY0koj0qiw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjWkdNACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq/Gg//VdYMUuAJ1RpkJRLrEmoIabEYWnSnBXh1tQZloICwRD8Usbva\r\nE1X/b8F/9IGRgx7RrMYkWmscbNLdBlR1Od/0M0I3zuZel+Y7hYXQhyhLCWXN\r\n0Iy2rYSMRI9RJh2AqEw22YWBlfQ6Qo30gEuufmu8NaW/159FRf9ibTpun/BZ\r\nUplPkr0u92803fm+XfF56m4vqEjw2PK+k6SW3yc+eCC/ged6sFXR6D6PzOM1\r\nmfv2sppEGg/GWGtCWjWeK90TfVn6ScTp/eApoRZMmwJu0DCvAfwOemkhHLbF\r\nvqLwllyWyXgmQf8LLsVhh4NKWY1Pll5X4734VS6XrMOUmHXV03OzRnMkpY4q\r\nDsyqUJwKSd8QOWOd0ZdwLTqLLKzAWBa4AuYEm9YIORx8tvRkgnmJgJkFZN8j\r\nagT7WWGjSjmI4YNQ5CwNAj+vPhdfWEDVdGwOH5AKULYD46Q9Haw9odADlHFa\r\nokrnqvd6eGsJt3Bu2uvEDXTxzinN1qiRZ2UdcqQeUjD+XFSEvLaTwuZSFSWP\r\nwuTuiCb7BAZ7LEKBPMWGJclcD1aT38KPN/P4iQ12n0ce9WG2u7z+bJHu+aml\r\n+dQzkokH2Q/72GA+Dm9K+6TYC8sBZ8wCBBb/Moi8XApYrFPlYzGqoQS2ZiGk\r\ngiOaBo4ph+/XgXOagmnhzP9fIfTkD0A7yQI=\r\n=9H7F\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.4.2_1666860877199_0.5283781826687735"},"_hasShrinkwrap":false},"1.4.3":{"name":"francium-sdk","version":"1.4.3","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.59.0","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"_id":"francium-sdk@1.4.3","_nodeVersion":"14.19.0","_npmVersion":"6.14.16","dist":{"integrity":"sha512-lJACTgKMvPFr2MNhFliZZvUwLvvIasGzetvTYaEQ9jW2dv8hug/qCaNLzLcLlyMFuMXaINt3hg/sZbVYQvcTEw==","shasum":"7ad2ff8cc7d60ed85a709eac4804b4ac3b1e56b3","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.4.3.tgz","fileCount":161,"unpackedSize":3179463,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDatOTN00A6g9vdJRguC+UjAZo7spbB//ecJmIygfAcqAiEA6O4gRsvDQ7zaIxw8ScVIEJ9QU4+WnanCU4LbkY3ITdA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjfDPvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo3og//WWl9VtT0pCc9e/z9hT6/3dKdW7qL6vWseoR3UwmkRua1NRYd\r\nm2wogyyMHV486Qw79kzVjhQ3NmcRHlfHtrkKzcl3dSq3lsUhB+6Ff/pQ9Zzk\r\nfgJdGgrIoJS3jreexpY49RddQNgedHHhndaYtDMbdT/nc/J6lwVrfbPF52VB\r\nV5Cx49EcpmwAn7lJ2NVNU+3FKAFrKeNcMy9bk+/D8XUngfAwAmAH9AlTIM7T\r\nxzm/9z4qzwwXPMBr8akHN7EJC2z+ry5VTSxHxgxAGVZgQifBamlz/RM6sWN9\r\nmsFjg/CJREyWQpgwYW313Yv8tMe7QCPxAcdfppLznzwjc0lV7njMhlsezsFq\r\nVhoKvvDfdLoaSTH2byG86VjTf+UD8MuMJfDsRDP7YAzUGMpNvKHrTDC1gfbG\r\nG/by6HfVTAiuqv37f84o05OR3LU17s4jDNrnHd6JpQ/l9gHyvFftAygu15Lt\r\n6ITyg0iaTyVqW33uG1xyogA329hquB33tMg09HHY3GssXOE+fNCs+dQ/olyK\r\nDxj8NsOTCJWEidi1A3ha/2QsA0tNGIUE+mBL5hAYHqNFbBR9eT7N+H7o8eEh\r\nZ4F5tREpDxh+JOQeDuL09c1BAVnEDdFEwKrEezl1eRsCS3ZDrw851G06JjFp\r\nkGhxsXlfj42jGG0tZ2Cj8lvhONrwG0kdqbw=\r\n=jYT1\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.4.3_1669084142720_0.8805586892843322"},"_hasShrinkwrap":false},"1.4.4":{"name":"francium-sdk","version":"1.4.4","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.25.0","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.59.0","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"_id":"francium-sdk@1.4.4","_nodeVersion":"14.19.0","_npmVersion":"6.14.16","dist":{"integrity":"sha512-FjOayD2Cmh/RRqlxpJrZLvQPy3bwVDHoECT6w85Zru1aoupmnmbSACINwWWvfVWAOTR7tu2n/afPdB43TmL3rw==","shasum":"896873ab6e54c328e225dc653966cc74e3774e51","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.4.4.tgz","fileCount":168,"unpackedSize":3374188,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCyrUn2w4YuPXFdWKB6Q/AI8xhTJE8GXY5VBVhZBUC2xQIhALLRcamvtPQuQG0+RnHoczcuNaCeONuBzzu0jCY5DZ51"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjyitSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpnCw//QRdJWDYK7Ot/ufO5QPiYu/HysJGfK32+JTf31/Lr1No0c3zO\r\nAPjO1Ph46gYIm69sAHEjJFk+BcC4xiSoX3Xwq+bgc7WuseiwJXNZ6DiWjiHr\r\nc5xOGq8a5zj5MSkap+B0tMJNdz26OEKzBhf3ek8nehLXghG1NXUX/J7FTwR0\r\ndcC8oYFYcptRvspFBKfZxZpHZz2zdfYyWoC5yj7dCDfs9D/EK3QbUUcNrhiD\r\nHCko/Vsl0u1UdC4FLGvdpiiHLtLNzGYRFal3pg5v7hpy8HKlyPdKlLkDr5Zy\r\nnRWK9XVHv4LkqtbpB+ORt8GIH1pPRSwH4FJ7Y1p+AauzZq0RNHL1zkLBp8qh\r\n6hJnqEZAYv6HLOcsKPINSQYwAtzUBJCHKVvxRgINuQ09LehIBrjhXj7OmhUz\r\nfHm4qb9Jqmc178wLNeptHeUeGmiNkE1hCbFeaEBdH5CMqrK0D103EGBQHLXe\r\nX5yxa+yKqmJ2fGdFGaj63xbYW/P9I+6S4cIOpH0yHDXypr+TWmjxz1nPCqW2\r\nrViXw8aTQ+FmvfofodR/OGj5BUDr1Vs1TZwRInNXRWg3oGeeB7P3Ws4rEion\r\nz45DTBJ6UUJhDvsIHTraJEECxTmA/XfjDpgak0cqLVS6HpFDKg3gE/JgVhMe\r\nb60EblAy3c6QybzDAkWruVrL17xAw3IdVWg=\r\n=jvWP\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.4.4_1674193746442_0.4790381511688775"},"_hasShrinkwrap":false},"1.4.5":{"name":"francium-sdk","version":"1.4.5","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.25.0","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.59.0","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"_id":"francium-sdk@1.4.5","_nodeVersion":"14.19.0","_npmVersion":"6.14.16","dist":{"integrity":"sha512-Bn5/0lrQdA5emLMMUi7U6SXiz2904Nfm/5chFQQcFReH+vBaP1WlU1yw5CcFvKGr3+07x+wMGtjU/WWSAF0bbA==","shasum":"41fafb8aa9f9c5647351b06e3f9e11afad061100","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.4.5.tgz","fileCount":168,"unpackedSize":3374458,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDXxcGm2kvWMe7c3ZRSNhmD0ahpRw9g9pJ8vFCWrXkKsQIhAMD7jfcoki6vYH+DFqUDgqlqlli1elRovMYJFPncqyIz"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj2dZ8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo67xAAmmWzvVzhWp/rJE3reoEALb390LnLoPe1e4TCcGCaW9fI22vk\r\nBtw67kmvK3U6+bwb/UK5mLtHAFlFePDGV7uc+HfK3LWHzM9n8kumdMjNtqWQ\r\nupGyx/g03bgfu5R/SelFrluUzjGjhx6rciY6GFF5uMXH70NqR88Kcwtke2Py\r\nkk2M3EyrgT78tR+MEbXF5X7SDBzue5Zm3EqUMoC2WhKbeS0lvx4qgAyOki2v\r\nN5qKbBSW+jtjHHrXBzqU6jXkO4JLMrox1cPx1cgpQ8N7qpOYGc0bB8gAuZ0s\r\naIaxIp525qsVY/tvplzjk6N9Kcn8UPLJKXOfVRJIL2BqizTDvHD6426nLhWs\r\nnUMPufF6V2thKjb++bLwd3VnLnkFD2I29ALSwouoHkT5VrZHXhr+KoJdJJNI\r\nbpKE4wyLkbGjxpUUhVNHQ9E1sR3FT1LQX/kU2o3LQzh4FvsGG4mdfRcsnocH\r\n+i0Bh6UqbK1imlc+X/eE4nTxb8EpLKbs7ch2zAj76HfaK8H9vG79wMUUvpqx\r\n8fc9W+GMzm6OZwK7CvooXCc1NUx07+urBuBBsMbnQdKeXdlxA544v+y3HyHT\r\nfKje9OlC4UkzxPIKwit/vtJ6THVkSwTw5MDnAclpsXKH7m8dGoAPa3xxNFiQ\r\n8jBb1kJmvxNrSppa8ltREPtYz+zrWDR8FBQ=\r\n=DJSX\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.4.5_1675220603965_0.1206353334486403"},"_hasShrinkwrap":false},"1.4.6":{"name":"francium-sdk","version":"1.4.6","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.59.0","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21","@snowflake-so/wallet-adapter-snowflake":"^1.0.16"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"gitHead":"1bb03e850d8bccbbde1958a5c01e28edfb57d506","_id":"francium-sdk@1.4.6","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-4qI+ndxGzhePFv537pNa3/PUDGpFKbv7a5jUU/8r86R04o1HV7KokB6F9WJZMK9aIOQzaVLM8dZiJRQxqRNwBQ==","shasum":"a3b3956e330b30a9e2d13ec924bab8e010ce5cef","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.4.6.tgz","fileCount":161,"unpackedSize":3187496,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAp7hQlNzPv4YpxwwJ6S+XFzVp1JbtfOsdQ75QeAsQyJAiB7Zr8+/vbIYasJdOgCV57vmgvVfijcXjy2Uf4D4LX2fQ=="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.4.6_1702193479802_0.19253739893383393"},"_hasShrinkwrap":false},"1.4.7":{"name":"francium-sdk","version":"1.4.7","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"^1.59.0","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21","@snowflake-so/wallet-adapter-snowflake":"^1.0.16","@solana/wallet-adapter-strike":"^0.1.12"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"gitHead":"1bb03e850d8bccbbde1958a5c01e28edfb57d506","_id":"francium-sdk@1.4.7","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-5MwdigWXhcBZAOQlvITMklTt6CwBh3g8NyoXYk6/fKq86XEbAUM1bbMzpEzY+q2uYsQ1s7ZkJIxFBlxLk58lyw==","shasum":"94252f490b1b65acc67e34cfc958690c39d13cd4","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.4.7.tgz","fileCount":161,"unpackedSize":3187544,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDTMWhYZaecIa+gADOha7o0dXsnXXjaSIF81v6hUBddswIgc9Vmi017hy/hTvLh6cA0qC2cGi8KgFcU9LYF2az43ZQ="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.4.7_1702193960174_0.4397633350413497"},"_hasShrinkwrap":false},"1.4.8":{"name":"francium-sdk","version":"1.4.8","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"1.63.1","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21","@snowflake-so/wallet-adapter-snowflake":"^1.0.16","@solana/wallet-adapter-strike":"^0.1.12"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"gitHead":"1bb03e850d8bccbbde1958a5c01e28edfb57d506","_id":"francium-sdk@1.4.8","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-pp5zsrwiRsG9oeFgvq6oMphcZRamN+o6/xOPVGYurqk9XM9CIZtrTG3LBhOs9wodpjuBonmSVO7K0jNOTteT8A==","shasum":"fdee4b9e45c96914da9788952bfa1b9d7a9c891b","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.4.8.tgz","fileCount":161,"unpackedSize":3187543,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAyUbMKNcNauVK53rAaSM9urNPYLqU5iFa3RE9vAN/aRAiEAwA6wsXi3urWaTn8JlFJr3CekZpgEP/cw6xoKitwK618="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.4.8_1702194788884_0.9524573766155726"},"_hasShrinkwrap":false},"1.4.9-beta":{"name":"francium-sdk","version":"1.4.9-beta","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"1.63.1","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21","@snowflake-so/wallet-adapter-snowflake":"^1.0.16","@solana/wallet-adapter-strike":"^0.1.12"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"readme":"# Francium SDK\n\nJavascript sdk of Francium lending pools and farming pools. [Learn more about Francium.](https://docs.francium.io/)\n\n[NPM package](https://www.npmjs.com/package/francium-sdk)\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\n// Will fetch the LP price info on chain and return equity value.\nfr.getUserFormattedFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }],\n    //   totalPositionValue: 10,\n    //   debtValue: 6,\n    //   equityValue: 4\n    // }]\n  });\n\n// Only return the amount.\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Farm Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function farm() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getFarmTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      depositPcAmount: new BN(1000000),\n      depositCoinAmount: new BN(0),\n      borrowPcAmount: new BN(1000000),\n      borrowCoinAmount: new BN(0),\n      // Needed when adjust\n      currentUserInfoAccount?: PublicKey\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n```\n\n### Get Farm Versioned Transactions\n```javascript\nasync function oneTxfarm() {\n  // supply 1 USDC, borrow 1 USDC\n  const versionedTrx = await fr.getOneFarmTransaction(\n    'RAY-USDC',\n    'raydium',\n    new PublicKey('23xxxxxxx'),\n    {\n      depositPcAmount: new BN(1000000),\n      depositCoinAmount: new BN(0),\n      borrowPcAmount: new BN(1000000),\n      borrowCoinAmount: new BN(0),\n      // Needed when adjust\n      currentUserInfoAccount?: PublicKey\n    }\n  );\n\n  // If there is Keypair\n  versionedTrx.sign([payer]);\n  fr.connection.sendTransaction(versionedTrx);\n\n  // if the wallet supports Versioned Transaction\n  await fr.sendVersionedTransaction(versionedTrx, wallet);\n}\n```\n### getRepayTransactions\n```\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function getRepayTransactions() {\n  const trxs = await fr.getRepayTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    configs: {\n      amount0: BN;\n      amount1: BN;\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey;\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n```\n\n### Get Close Position Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function close() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getClosePositionTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      // 0: swap to PC token\n      // 1: swap to Coin Token\n      // 2: minimize trading \n      withdrawType: 2,\n\n      // userPosition.lpShares\n      lpShares: BN,\n\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey \n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n\n```\n### Get Farm Close Versioned Transactions\n```javascript\nasync function oneTxClose() {\n  // supply 1 USDC, borrow 1 USDC\n  const versionedTrx = await fr.getOneFarmClosedTransaction(\n    'RAY-USDC',\n    'raydium',\n    new PublicKey('23xxxxxxx'),\n    {\n      // 0: swap to PC token\n      // 1: swap to Coin Token\n      // 2: minimize trading \n      withdrawType: 2,\n\n      // userPosition.lpShares\n      lpShares: BN,\n\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey \n    }\n  );\n\n  // If there is Keypair\n  versionedTrx.sign([payer]);\n  fr.connection.sendTransaction(versionedTrx);\n\n  // if the wallet supports Versioned Transaction\n  await fr.sendVersionedTransaction(versionedTrx, wallet);\n}\n```\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n### Get Farm LP Info\n```javascript\nfr.getFarmLPPriceInfo();\n```\n\n### PDN Rebalance\n```js\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function rebalance() {\n  await fr.sendRebalanceTransactions(\n    new PublicKey('23xxxxxxx'),\n    targetPosition.userInfoPublicKey.toBase58(), // the userInfoPublicKey string of the target positio, which could be accessible from fr.getUserFarmPosition\n    wallet,\n  );\n}\n\n// get rebalance Info\nasync function getRebalanceInfo() {\n  const rebalanceInfo = await fr.getRebalanceInfo(\n    new PublicKey('23xxxxxxx'),\n    targetPosition.userInfoPublicKey.toBase58(), // the userInfoPublicKey string of the target positio, which could be accessible from fr.getUserFarmPosition\n  );\n  console.log('rebalanceInfo: ', rebalanceInfo);\n}\n\n```\n\n\n## Lend\n\n### Get Lending Transaction\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function deposit() {\n  const { trx, signers }  = await fr.getLendingDepositTransaction('USDC', new BN(1000000), new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\nasync function withdraw() {\n  // You can get this value by getUserLendingPosition method\n  const rewardAmount = 1002232;\n  const tokenAmount = 0;\n  const { trx, signers }  = await fr.getLendWithdrawTransaction('USDC', rewardAmount, tokenAmount, new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\n```\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n      // [\n      //   {   \n      //     balancePosition: 0,\n      //     pool: \"USDC\",\n      //     rewardPosition: 41354540149,\n      //     scale: 6,\n      //     totalAmount: 50386.25041249344,\n      //     totalPosition: 41354540149,\n      //   }\n      // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN,\n    //     apr: 8.36,\n    //     apy: 8.72,\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","gitHead":"69961194b438a05717644db59ffe65a6fcb22ef8","_id":"francium-sdk@1.4.9-beta","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-424g9QLvv9xGaVH+hePiwV9eHZ/7w30gq4jThpIxYZIoKLDokMDYY2K/3GyGTP8fQxi9G8T1oDhUTJmdL55oVg==","shasum":"9426328ff2c5bd917ee9999d954628abb3f80276","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.4.9-beta.tgz","fileCount":161,"unpackedSize":3203223,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE1GJotH0g9KVakuLhdHxnmhhBRM2vfnp67+THbfNrn3AiEAsIfofbF5V+FsiERkbfqew8fPale7WkqKSVhAGk3N+K4="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.4.9-beta_1704198582447_0.32248351311258694"},"_hasShrinkwrap":false},"1.4.9-beta2":{"name":"francium-sdk","version":"1.4.9-beta2","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"1.63.1","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21","@snowflake-so/wallet-adapter-snowflake":"^1.0.16","@solana/wallet-adapter-strike":"^0.1.12"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"readme":"# Francium SDK\n\nJavascript sdk of Francium lending pools and farming pools. [Learn more about Francium.](https://docs.francium.io/)\n\n[NPM package](https://www.npmjs.com/package/francium-sdk)\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\n// Will fetch the LP price info on chain and return equity value.\nfr.getUserFormattedFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }],\n    //   totalPositionValue: 10,\n    //   debtValue: 6,\n    //   equityValue: 4\n    // }]\n  });\n\n// Only return the amount.\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Farm Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function farm() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getFarmTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      depositPcAmount: new BN(1000000),\n      depositCoinAmount: new BN(0),\n      borrowPcAmount: new BN(1000000),\n      borrowCoinAmount: new BN(0),\n      // Needed when adjust\n      currentUserInfoAccount?: PublicKey\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n```\n\n### Get Farm Versioned Transactions\n```javascript\nasync function oneTxfarm() {\n  // supply 1 USDC, borrow 1 USDC\n  const versionedTrx = await fr.getOneFarmTransaction(\n    'RAY-USDC',\n    'raydium',\n    new PublicKey('23xxxxxxx'),\n    {\n      depositPcAmount: new BN(1000000),\n      depositCoinAmount: new BN(0),\n      borrowPcAmount: new BN(1000000),\n      borrowCoinAmount: new BN(0),\n      // Needed when adjust\n      currentUserInfoAccount?: PublicKey\n    }\n  );\n\n  // If there is Keypair\n  versionedTrx.sign([payer]);\n  fr.connection.sendTransaction(versionedTrx);\n\n  // if the wallet supports Versioned Transaction\n  await fr.sendVersionedTransaction(versionedTrx, wallet);\n}\n```\n### getRepayTransactions\n```\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function getRepayTransactions() {\n  const trxs = await fr.getRepayTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    configs: {\n      amount0: BN;\n      amount1: BN;\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey;\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n```\n\n### Get Close Position Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function close() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getClosePositionTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      // 0: swap to PC token\n      // 1: swap to Coin Token\n      // 2: minimize trading \n      withdrawType: 2,\n\n      // userPosition.lpShares\n      lpShares: BN,\n\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey \n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n\n```\n### Get Farm Close Versioned Transactions\n```javascript\nasync function oneTxClose() {\n  // supply 1 USDC, borrow 1 USDC\n  const versionedTrx = await fr.getOneFarmClosedTransaction(\n    'RAY-USDC',\n    'raydium',\n    new PublicKey('23xxxxxxx'),\n    {\n      // 0: swap to PC token\n      // 1: swap to Coin Token\n      // 2: minimize trading \n      withdrawType: 2,\n\n      // userPosition.lpShares\n      lpShares: BN,\n\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey \n    }\n  );\n\n  // If there is Keypair\n  versionedTrx.sign([payer]);\n  fr.connection.sendTransaction(versionedTrx);\n\n  // if the wallet supports Versioned Transaction\n  await fr.sendVersionedTransaction(versionedTrx, wallet);\n}\n```\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n### Get Farm LP Info\n```javascript\nfr.getFarmLPPriceInfo();\n```\n\n### PDN Rebalance\n```js\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function rebalance() {\n  await fr.sendRebalanceTransactions(\n    new PublicKey('23xxxxxxx'),\n    targetPosition.userInfoPublicKey.toBase58(), // the userInfoPublicKey string of the target positio, which could be accessible from fr.getUserFarmPosition\n    wallet,\n  );\n}\n\n// get rebalance Info\nasync function getRebalanceInfo() {\n  const rebalanceInfo = await fr.getRebalanceInfo(\n    new PublicKey('23xxxxxxx'),\n    targetPosition.userInfoPublicKey.toBase58(), // the userInfoPublicKey string of the target positio, which could be accessible from fr.getUserFarmPosition\n  );\n  console.log('rebalanceInfo: ', rebalanceInfo);\n}\n\n```\n\n\n## Lend\n\n### Get Lending Transaction\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function deposit() {\n  const { trx, signers }  = await fr.getLendingDepositTransaction('USDC', new BN(1000000), new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\nasync function withdraw() {\n  // You can get this value by getUserLendingPosition method\n  const rewardAmount = 1002232;\n  const tokenAmount = 0;\n  const { trx, signers }  = await fr.getLendWithdrawTransaction('USDC', rewardAmount, tokenAmount, new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\n```\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n      // [\n      //   {   \n      //     balancePosition: 0,\n      //     pool: \"USDC\",\n      //     rewardPosition: 41354540149,\n      //     scale: 6,\n      //     totalAmount: 50386.25041249344,\n      //     totalPosition: 41354540149,\n      //   }\n      // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN,\n    //     apr: 8.36,\n    //     apy: 8.72,\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","gitHead":"69961194b438a05717644db59ffe65a6fcb22ef8","_id":"francium-sdk@1.4.9-beta2","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-izIySqa1uE/rsjjLmo7CpN+dFonR6de/5y64QFL/R+uGJNtbonDRYyio7By63YvZEF4PNrKC262z7yIS447/ig==","shasum":"141958d686eb8b63aa82196d63a5d4c71391ee61","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.4.9-beta2.tgz","fileCount":161,"unpackedSize":3203239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEQW0TZsS4Yu8afqp++hYiYRikus/HQszUro6XWRD+h9AiAUsE2qLaHyurnFUzeAPLNU39xtGGXW79uQWRLz/Ge+vw=="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.4.9-beta2_1704207615883_0.04587440192904357"},"_hasShrinkwrap":false},"1.4.9-beta3":{"name":"francium-sdk","version":"1.4.9-beta3","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"1.63.1","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21","@snowflake-so/wallet-adapter-snowflake":"^1.0.16","@solana/wallet-adapter-strike":"^0.1.12"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"readme":"# Francium SDK\n\nJavascript sdk of Francium lending pools and farming pools. [Learn more about Francium.](https://docs.francium.io/)\n\n[NPM package](https://www.npmjs.com/package/francium-sdk)\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\n// Will fetch the LP price info on chain and return equity value.\nfr.getUserFormattedFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }],\n    //   totalPositionValue: 10,\n    //   debtValue: 6,\n    //   equityValue: 4\n    // }]\n  });\n\n// Only return the amount.\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Farm Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function farm() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getFarmTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      depositPcAmount: new BN(1000000),\n      depositCoinAmount: new BN(0),\n      borrowPcAmount: new BN(1000000),\n      borrowCoinAmount: new BN(0),\n      // Needed when adjust\n      currentUserInfoAccount?: PublicKey\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n```\n\n### Get Farm Versioned Transactions\n```javascript\nasync function oneTxfarm() {\n  // supply 1 USDC, borrow 1 USDC\n  const versionedTrx = await fr.getOneFarmTransaction(\n    'RAY-USDC',\n    'raydium',\n    new PublicKey('23xxxxxxx'),\n    {\n      depositPcAmount: new BN(1000000),\n      depositCoinAmount: new BN(0),\n      borrowPcAmount: new BN(1000000),\n      borrowCoinAmount: new BN(0),\n      // Needed when adjust\n      currentUserInfoAccount?: PublicKey\n    }\n  );\n\n  // If there is Keypair\n  versionedTrx.sign([payer]);\n  fr.connection.sendTransaction(versionedTrx);\n\n  // if the wallet supports Versioned Transaction\n  await fr.sendVersionedTransaction(versionedTrx, wallet);\n}\n```\n### getRepayTransactions\n```\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function getRepayTransactions() {\n  const trxs = await fr.getRepayTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    configs: {\n      amount0: BN;\n      amount1: BN;\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey;\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n```\n\n### Get Close Position Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function close() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getClosePositionTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      // 0: swap to PC token\n      // 1: swap to Coin Token\n      // 2: minimize trading \n      withdrawType: 2,\n\n      // userPosition.lpShares\n      lpShares: BN,\n\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey \n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n\n```\n### Get Farm Close Versioned Transactions\n```javascript\nasync function oneTxClose() {\n  // supply 1 USDC, borrow 1 USDC\n  const versionedTrx = await fr.getOneFarmClosedTransaction(\n    'RAY-USDC',\n    'raydium',\n    new PublicKey('23xxxxxxx'),\n    {\n      // 0: swap to PC token\n      // 1: swap to Coin Token\n      // 2: minimize trading \n      withdrawType: 2,\n\n      // userPosition.lpShares\n      lpShares: BN,\n\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey \n    }\n  );\n\n  // If there is Keypair\n  versionedTrx.sign([payer]);\n  fr.connection.sendTransaction(versionedTrx);\n\n  // if the wallet supports Versioned Transaction\n  await fr.sendVersionedTransaction(versionedTrx, wallet);\n}\n```\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n### Get Farm LP Info\n```javascript\nfr.getFarmLPPriceInfo();\n```\n\n### PDN Rebalance\n```js\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function rebalance() {\n  await fr.sendRebalanceTransactions(\n    new PublicKey('23xxxxxxx'),\n    targetPosition.userInfoPublicKey.toBase58(), // the userInfoPublicKey string of the target positio, which could be accessible from fr.getUserFarmPosition\n    wallet,\n  );\n}\n\n// get rebalance Info\nasync function getRebalanceInfo() {\n  const rebalanceInfo = await fr.getRebalanceInfo(\n    new PublicKey('23xxxxxxx'),\n    targetPosition.userInfoPublicKey.toBase58(), // the userInfoPublicKey string of the target positio, which could be accessible from fr.getUserFarmPosition\n  );\n  console.log('rebalanceInfo: ', rebalanceInfo);\n}\n\n```\n\n\n## Lend\n\n### Get Lending Transaction\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function deposit() {\n  const { trx, signers }  = await fr.getLendingDepositTransaction('USDC', new BN(1000000), new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\nasync function withdraw() {\n  // You can get this value by getUserLendingPosition method\n  const rewardAmount = 1002232;\n  const tokenAmount = 0;\n  const { trx, signers }  = await fr.getLendWithdrawTransaction('USDC', rewardAmount, tokenAmount, new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\n```\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n      // [\n      //   {   \n      //     balancePosition: 0,\n      //     pool: \"USDC\",\n      //     rewardPosition: 41354540149,\n      //     scale: 6,\n      //     totalAmount: 50386.25041249344,\n      //     totalPosition: 41354540149,\n      //   }\n      // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN,\n    //     apr: 8.36,\n    //     apy: 8.72,\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","gitHead":"69961194b438a05717644db59ffe65a6fcb22ef8","_id":"francium-sdk@1.4.9-beta3","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-M5VSq/eYbOBqVTCkKYEcYFN+khb0p2FFkRu1vnPKcthFLU2GoYXi3apWmI3ciW5dVbrt+ybDS0uDHjthze2fOA==","shasum":"8ff45b8c8f3d37f9fb96eca3444ba727133ea9df","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.4.9-beta3.tgz","fileCount":161,"unpackedSize":3203817,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDjmYQ7BAXeN17nWUuFT1jWZ0WRo/y6De9BFzzA2PS1OAiAZ8K43fiUmNuS14R9ybuSj/LiUVWt1rD7aCzyYh0fcnQ=="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.4.9-beta3_1704256891850_0.12428251140549995"},"_hasShrinkwrap":false},"1.4.9":{"name":"francium-sdk","version":"1.4.9","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"1.63.1","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"gitHead":"2994427ff01fceb8d5d483022d93a94203b2980d","_id":"francium-sdk@1.4.9","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-W0SwcXphqlENK0jW4dYAAQzjuXgfW3syWyTL+ZwHpdQIhyl/c7o4yO7wYGufh4rmAFq/z+Ca6kuqRKbbIe9xKA==","shasum":"e1f920e204b58a3c25b15ab3ab5c48e236988627","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.4.9.tgz","fileCount":119,"unpackedSize":2762338,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDQJKvoA793XlFd/SIBQYelsiuYXtjId3s2JA0ggyjjGwIgaDdOR6fyp/JbdRyyChE+ZflmSG2RdQmcY/Tymi8CArE="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.4.9_1704691581441_0.2973820764008317"},"_hasShrinkwrap":false},"1.4.10-beta":{"name":"francium-sdk","version":"1.4.10-beta","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"1.63.1","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"readme":"# Francium SDK\n\nJavascript sdk of Francium lending pools and farming pools. [Learn more about Francium.](https://docs.francium.io/)\n\n[NPM package](https://www.npmjs.com/package/francium-sdk)\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\n// Will fetch the LP price info on chain and return equity value.\nfr.getUserFormattedFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }],\n    //   totalPositionValue: 10,\n    //   debtValue: 6,\n    //   equityValue: 4\n    // }]\n  });\n\n// Only return the amount.\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Farm Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function farm() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getFarmTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      depositPcAmount: new BN(1000000),\n      depositCoinAmount: new BN(0),\n      borrowPcAmount: new BN(1000000),\n      borrowCoinAmount: new BN(0),\n      // Needed when adjust\n      currentUserInfoAccount?: PublicKey\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n```\n\n### Get Farm Versioned Transactions\n```javascript\nasync function oneTxfarm() {\n  // supply 1 USDC, borrow 1 USDC\n  const versionedTrx = await fr.getOneFarmTransaction(\n    'RAY-USDC',\n    'raydium',\n    new PublicKey('23xxxxxxx'),\n    {\n      depositPcAmount: new BN(1000000),\n      depositCoinAmount: new BN(0),\n      borrowPcAmount: new BN(1000000),\n      borrowCoinAmount: new BN(0),\n      // Needed when adjust\n      currentUserInfoAccount?: PublicKey\n    }\n  );\n\n  // If there is Keypair\n  versionedTrx.sign([payer]);\n  fr.connection.sendTransaction(versionedTrx);\n\n  // if the wallet supports Versioned Transaction\n  await fr.sendVersionedTransaction(versionedTrx, wallet);\n}\n```\n### getRepayTransactions\n```\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function getRepayTransactions() {\n  const trxs = await fr.getRepayTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    configs: {\n      amount0: BN;\n      amount1: BN;\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey;\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n```\n\n### Get Close Position Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function close() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getClosePositionTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      // 0: swap to PC token\n      // 1: swap to Coin Token\n      // 2: minimize trading \n      withdrawType: 2,\n\n      // userPosition.lpShares\n      lpShares: BN,\n\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey \n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n\n```\n### Get Farm Close Versioned Transactions\n```javascript\nasync function oneTxClose() {\n  // supply 1 USDC, borrow 1 USDC\n  const versionedTrx = await fr.getOneFarmClosedTransaction(\n    'RAY-USDC',\n    'raydium',\n    new PublicKey('23xxxxxxx'),\n    {\n      // 0: swap to PC token\n      // 1: swap to Coin Token\n      // 2: minimize trading \n      withdrawType: 2,\n\n      // userPosition.lpShares\n      lpShares: BN,\n\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey \n    }\n  );\n\n  // If there is Keypair\n  versionedTrx.sign([payer]);\n  fr.connection.sendTransaction(versionedTrx);\n\n  // if the wallet supports Versioned Transaction\n  await fr.sendVersionedTransaction(versionedTrx, wallet);\n}\n```\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n### Get Farm LP Info\n```javascript\nfr.getFarmLPPriceInfo();\n```\n\n### PDN Rebalance\n```js\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function rebalance() {\n  await fr.sendRebalanceTransactions(\n    new PublicKey('23xxxxxxx'),\n    targetPosition.userInfoPublicKey.toBase58(), // the userInfoPublicKey string of the target positio, which could be accessible from fr.getUserFarmPosition\n    wallet,\n  );\n}\n\n// get rebalance Info\nasync function getRebalanceInfo() {\n  const rebalanceInfo = await fr.getRebalanceInfo(\n    new PublicKey('23xxxxxxx'),\n    targetPosition.userInfoPublicKey.toBase58(), // the userInfoPublicKey string of the target positio, which could be accessible from fr.getUserFarmPosition\n  );\n  console.log('rebalanceInfo: ', rebalanceInfo);\n}\n\n```\n\n\n## Lend\n\n### Get Lending Transaction\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function deposit() {\n  const { trx, signers }  = await fr.getLendingDepositTransaction('USDC', new BN(1000000), new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\nasync function withdraw() {\n  // You can get this value by getUserLendingPosition method\n  const rewardAmount = 1002232;\n  const tokenAmount = 0;\n  const { trx, signers }  = await fr.getLendWithdrawTransaction('USDC', rewardAmount, tokenAmount, new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\n```\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n      // [\n      //   {   \n      //     balancePosition: 0,\n      //     pool: \"USDC\",\n      //     rewardPosition: 41354540149,\n      //     scale: 6,\n      //     totalAmount: 50386.25041249344,\n      //     totalPosition: 41354540149,\n      //   }\n      // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN,\n    //     apr: 8.36,\n    //     apy: 8.72,\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","gitHead":"3e927c412fd56bc69898e5946897d2c2c62dcd20","_id":"francium-sdk@1.4.10-beta","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-8+HcPllo+eVKb8qTGWM8YTnpsDxtxAbsBz0YJtVV2ZgBxESCKk3Bgquw1XlhOOiTz0kMjQe+zhyubKMVNn/GKw==","shasum":"4553845b402bf58b190a651517414155abfa0bf6","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.4.10-beta.tgz","fileCount":119,"unpackedSize":2897051,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDAWJl9g8sm502rMIRxllh2YoUPuVYndWEzR05vFywwtwIhALuTSclU0Pw+o2Y43Ne5LraeoeuyThOlfZhl1jrnSO+V"}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.4.10-beta_1704901078108_0.3805748276161238"},"_hasShrinkwrap":false},"1.4.11-beta":{"name":"francium-sdk","version":"1.4.11-beta","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"1.63.1","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"readme":"# Francium SDK\n\nJavascript sdk of Francium lending pools and farming pools. [Learn more about Francium.](https://docs.francium.io/)\n\n[NPM package](https://www.npmjs.com/package/francium-sdk)\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\n// Will fetch the LP price info on chain and return equity value.\nfr.getUserFormattedFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }],\n    //   totalPositionValue: 10,\n    //   debtValue: 6,\n    //   equityValue: 4\n    // }]\n  });\n\n// Only return the amount.\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Farm Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function farm() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getFarmTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      depositPcAmount: new BN(1000000),\n      depositCoinAmount: new BN(0),\n      borrowPcAmount: new BN(1000000),\n      borrowCoinAmount: new BN(0),\n      // Needed when adjust\n      currentUserInfoAccount?: PublicKey\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n```\n\n### Get Farm Versioned Transactions\n```javascript\nasync function oneTxfarm() {\n  // supply 1 USDC, borrow 1 USDC\n  const versionedTrx = await fr.getOneFarmTransaction(\n    'RAY-USDC',\n    'raydium',\n    new PublicKey('23xxxxxxx'),\n    {\n      depositPcAmount: new BN(1000000),\n      depositCoinAmount: new BN(0),\n      borrowPcAmount: new BN(1000000),\n      borrowCoinAmount: new BN(0),\n      // Needed when adjust\n      currentUserInfoAccount?: PublicKey\n    }\n  );\n\n  // If there is Keypair\n  versionedTrx.sign([payer]);\n  fr.connection.sendTransaction(versionedTrx);\n\n  // if the wallet supports Versioned Transaction\n  await fr.sendVersionedTransaction(versionedTrx, wallet);\n}\n```\n### getRepayTransactions\n```\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function getRepayTransactions() {\n  const trxs = await fr.getRepayTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    configs: {\n      amount0: BN;\n      amount1: BN;\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey;\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n```\n\n### Get Close Position Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function close() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getClosePositionTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      // 0: swap to PC token\n      // 1: swap to Coin Token\n      // 2: minimize trading \n      withdrawType: 2,\n\n      // userPosition.lpShares\n      lpShares: BN,\n\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey \n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n\n```\n### Get Farm Close Versioned Transactions\n```javascript\nasync function oneTxClose() {\n  // supply 1 USDC, borrow 1 USDC\n  const versionedTrx = await fr.getOneFarmClosedTransaction(\n    'RAY-USDC',\n    'raydium',\n    new PublicKey('23xxxxxxx'),\n    {\n      // 0: swap to PC token\n      // 1: swap to Coin Token\n      // 2: minimize trading \n      withdrawType: 2,\n\n      // userPosition.lpShares\n      lpShares: BN,\n\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey \n    }\n  );\n\n  // If there is Keypair\n  versionedTrx.sign([payer]);\n  fr.connection.sendTransaction(versionedTrx);\n\n  // if the wallet supports Versioned Transaction\n  await fr.sendVersionedTransaction(versionedTrx, wallet);\n}\n```\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n### Get Farm LP Info\n```javascript\nfr.getFarmLPPriceInfo();\n```\n\n### PDN Rebalance\n```js\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function rebalance() {\n  await fr.sendRebalanceTransactions(\n    new PublicKey('23xxxxxxx'),\n    targetPosition.userInfoPublicKey.toBase58(), // the userInfoPublicKey string of the target positio, which could be accessible from fr.getUserFarmPosition\n    wallet,\n  );\n}\n\n// get rebalance Info\nasync function getRebalanceInfo() {\n  const rebalanceInfo = await fr.getRebalanceInfo(\n    new PublicKey('23xxxxxxx'),\n    targetPosition.userInfoPublicKey.toBase58(), // the userInfoPublicKey string of the target positio, which could be accessible from fr.getUserFarmPosition\n  );\n  console.log('rebalanceInfo: ', rebalanceInfo);\n}\n\n```\n\n\n## Lend\n\n### Get Lending Transaction\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function deposit() {\n  const { trx, signers }  = await fr.getLendingDepositTransaction('USDC', new BN(1000000), new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\nasync function withdraw() {\n  // You can get this value by getUserLendingPosition method\n  const rewardAmount = 1002232;\n  const tokenAmount = 0;\n  const { trx, signers }  = await fr.getLendWithdrawTransaction('USDC', rewardAmount, tokenAmount, new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\n```\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n      // [\n      //   {   \n      //     balancePosition: 0,\n      //     pool: \"USDC\",\n      //     rewardPosition: 41354540149,\n      //     scale: 6,\n      //     totalAmount: 50386.25041249344,\n      //     totalPosition: 41354540149,\n      //   }\n      // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN,\n    //     apr: 8.36,\n    //     apy: 8.72,\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","gitHead":"869b03cc4ae4102247da8be58d29a9ef35a7a5a7","_id":"francium-sdk@1.4.11-beta","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-wgspXVQUVe2qUno8Cqa1+jhzinF1eCgLAcQKltZnlrPLqov8jXx346nrBd5i4/YRVeqskx2Y2dWzJkYccfTYNA==","shasum":"784988e05742225ce518392c97486a0731210ac6","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.4.11-beta.tgz","fileCount":119,"unpackedSize":2928326,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDyALCj/0IXws1sPXMARC6La7VmENzO7fRlFTdXNf40YQIgetf8XKSCHhLSzBK3qUBfmgzYMMNyRBxI2BIewzUxZe0="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.4.11-beta_1705887523282_0.4493570326535308"},"_hasShrinkwrap":false},"1.4.11-beta2":{"name":"francium-sdk","version":"1.4.11-beta2","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"1.63.1","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"readme":"# Francium SDK\n\nJavascript sdk of Francium lending pools and farming pools. [Learn more about Francium.](https://docs.francium.io/)\n\n[NPM package](https://www.npmjs.com/package/francium-sdk)\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\n// Will fetch the LP price info on chain and return equity value.\nfr.getUserFormattedFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }],\n    //   totalPositionValue: 10,\n    //   debtValue: 6,\n    //   equityValue: 4\n    // }]\n  });\n\n// Only return the amount.\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Farm Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function farm() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getFarmTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      depositPcAmount: new BN(1000000),\n      depositCoinAmount: new BN(0),\n      borrowPcAmount: new BN(1000000),\n      borrowCoinAmount: new BN(0),\n      // Needed when adjust\n      currentUserInfoAccount?: PublicKey\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n```\n\n### Get Farm Versioned Transactions\n```javascript\nasync function oneTxfarm() {\n  // supply 1 USDC, borrow 1 USDC\n  const versionedTrx = await fr.getOneFarmTransaction(\n    'RAY-USDC',\n    'raydium',\n    new PublicKey('23xxxxxxx'),\n    {\n      depositPcAmount: new BN(1000000),\n      depositCoinAmount: new BN(0),\n      borrowPcAmount: new BN(1000000),\n      borrowCoinAmount: new BN(0),\n      // Needed when adjust\n      currentUserInfoAccount?: PublicKey\n    }\n  );\n\n  // If there is Keypair\n  versionedTrx.sign([payer]);\n  fr.connection.sendTransaction(versionedTrx);\n\n  // if the wallet supports Versioned Transaction\n  await fr.sendVersionedTransaction(versionedTrx, wallet);\n}\n```\n### getRepayTransactions\n```\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function getRepayTransactions() {\n  const trxs = await fr.getRepayTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    configs: {\n      amount0: BN;\n      amount1: BN;\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey;\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n```\n\n### Get Close Position Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function close() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getClosePositionTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      // 0: swap to PC token\n      // 1: swap to Coin Token\n      // 2: minimize trading \n      withdrawType: 2,\n\n      // userPosition.lpShares\n      lpShares: BN,\n\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey \n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n\n```\n### Get Farm Close Versioned Transactions\n```javascript\nasync function oneTxClose() {\n  // supply 1 USDC, borrow 1 USDC\n  const versionedTrx = await fr.getOneFarmClosedTransaction(\n    'RAY-USDC',\n    'raydium',\n    new PublicKey('23xxxxxxx'),\n    {\n      // 0: swap to PC token\n      // 1: swap to Coin Token\n      // 2: minimize trading \n      withdrawType: 2,\n\n      // userPosition.lpShares\n      lpShares: BN,\n\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey \n    }\n  );\n\n  // If there is Keypair\n  versionedTrx.sign([payer]);\n  fr.connection.sendTransaction(versionedTrx);\n\n  // if the wallet supports Versioned Transaction\n  await fr.sendVersionedTransaction(versionedTrx, wallet);\n}\n```\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n### Get Farm LP Info\n```javascript\nfr.getFarmLPPriceInfo();\n```\n\n### PDN Rebalance\n```js\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function rebalance() {\n  await fr.sendRebalanceTransactions(\n    new PublicKey('23xxxxxxx'),\n    targetPosition.userInfoPublicKey.toBase58(), // the userInfoPublicKey string of the target positio, which could be accessible from fr.getUserFarmPosition\n    wallet,\n  );\n}\n\n// get rebalance Info\nasync function getRebalanceInfo() {\n  const rebalanceInfo = await fr.getRebalanceInfo(\n    new PublicKey('23xxxxxxx'),\n    targetPosition.userInfoPublicKey.toBase58(), // the userInfoPublicKey string of the target positio, which could be accessible from fr.getUserFarmPosition\n  );\n  console.log('rebalanceInfo: ', rebalanceInfo);\n}\n\n```\n\n\n## Lend\n\n### Get Lending Transaction\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function deposit() {\n  const { trx, signers }  = await fr.getLendingDepositTransaction('USDC', new BN(1000000), new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\nasync function withdraw() {\n  // You can get this value by getUserLendingPosition method\n  const rewardAmount = 1002232;\n  const tokenAmount = 0;\n  const { trx, signers }  = await fr.getLendWithdrawTransaction('USDC', rewardAmount, tokenAmount, new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\n```\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n      // [\n      //   {   \n      //     balancePosition: 0,\n      //     pool: \"USDC\",\n      //     rewardPosition: 41354540149,\n      //     scale: 6,\n      //     totalAmount: 50386.25041249344,\n      //     totalPosition: 41354540149,\n      //   }\n      // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN,\n    //     apr: 8.36,\n    //     apy: 8.72,\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","gitHead":"869b03cc4ae4102247da8be58d29a9ef35a7a5a7","_id":"francium-sdk@1.4.11-beta2","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-drjOfrt7u0TTVlGynY2kAyf3CYxfpdU+QMS9fMJYABzDeU+XIIkuuAAsLvj3pUetBWTHOrsb4/KpKVYfY7/k5w==","shasum":"358db6c96b240b7db610726ca586ace983a96783","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.4.11-beta2.tgz","fileCount":119,"unpackedSize":2928354,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHqgO6iL99P44w27nyKOGR0EMHg6aYSeZk4A8noKHl0fAiBKuBKF9uQDotUZMOWgLS97RQdaA6CwgmKRpMwF99CGlw=="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.4.11-beta2_1705894588955_0.38025381710716877"},"_hasShrinkwrap":false},"1.4.11-beta3":{"name":"francium-sdk","version":"1.4.11-beta3","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"1.63.1","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"readme":"# Francium SDK\n\nJavascript sdk of Francium lending pools and farming pools. [Learn more about Francium.](https://docs.francium.io/)\n\n[NPM package](https://www.npmjs.com/package/francium-sdk)\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\n// Will fetch the LP price info on chain and return equity value.\nfr.getUserFormattedFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }],\n    //   totalPositionValue: 10,\n    //   debtValue: 6,\n    //   equityValue: 4\n    // }]\n  });\n\n// Only return the amount.\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Farm Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function farm() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getFarmTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      depositPcAmount: new BN(1000000),\n      depositCoinAmount: new BN(0),\n      borrowPcAmount: new BN(1000000),\n      borrowCoinAmount: new BN(0),\n      // Needed when adjust\n      currentUserInfoAccount?: PublicKey\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n```\n\n### Get Farm Versioned Transactions\n```javascript\nasync function oneTxfarm() {\n  // supply 1 USDC, borrow 1 USDC\n  const versionedTrx = await fr.getOneFarmTransaction(\n    'RAY-USDC',\n    'raydium',\n    new PublicKey('23xxxxxxx'),\n    {\n      depositPcAmount: new BN(1000000),\n      depositCoinAmount: new BN(0),\n      borrowPcAmount: new BN(1000000),\n      borrowCoinAmount: new BN(0),\n      // Needed when adjust\n      currentUserInfoAccount?: PublicKey\n    }\n  );\n\n  // If there is Keypair\n  versionedTrx.sign([payer]);\n  fr.connection.sendTransaction(versionedTrx);\n\n  // if the wallet supports Versioned Transaction\n  await fr.sendVersionedTransaction(versionedTrx, wallet);\n}\n```\n### getRepayTransactions\n```\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function getRepayTransactions() {\n  const trxs = await fr.getRepayTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    configs: {\n      amount0: BN;\n      amount1: BN;\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey;\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n```\n\n### Get Close Position Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function close() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getClosePositionTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      // 0: swap to PC token\n      // 1: swap to Coin Token\n      // 2: minimize trading \n      withdrawType: 2,\n\n      // userPosition.lpShares\n      lpShares: BN,\n\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey \n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n\n```\n### Get Farm Close Versioned Transactions\n```javascript\nasync function oneTxClose() {\n  // supply 1 USDC, borrow 1 USDC\n  const versionedTrx = await fr.getOneFarmClosedTransaction(\n    'RAY-USDC',\n    'raydium',\n    new PublicKey('23xxxxxxx'),\n    {\n      // 0: swap to PC token\n      // 1: swap to Coin Token\n      // 2: minimize trading \n      withdrawType: 2,\n\n      // userPosition.lpShares\n      lpShares: BN,\n\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey \n    }\n  );\n\n  // If there is Keypair\n  versionedTrx.sign([payer]);\n  fr.connection.sendTransaction(versionedTrx);\n\n  // if the wallet supports Versioned Transaction\n  await fr.sendVersionedTransaction(versionedTrx, wallet);\n}\n```\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n### Get Farm LP Info\n```javascript\nfr.getFarmLPPriceInfo();\n```\n\n### PDN Rebalance\n```js\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function rebalance() {\n  await fr.sendRebalanceTransactions(\n    new PublicKey('23xxxxxxx'),\n    targetPosition.userInfoPublicKey.toBase58(), // the userInfoPublicKey string of the target positio, which could be accessible from fr.getUserFarmPosition\n    wallet,\n  );\n}\n\n// get rebalance Info\nasync function getRebalanceInfo() {\n  const rebalanceInfo = await fr.getRebalanceInfo(\n    new PublicKey('23xxxxxxx'),\n    targetPosition.userInfoPublicKey.toBase58(), // the userInfoPublicKey string of the target positio, which could be accessible from fr.getUserFarmPosition\n  );\n  console.log('rebalanceInfo: ', rebalanceInfo);\n}\n\n```\n\n\n## Lend\n\n### Get Lending Transaction\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function deposit() {\n  const { trx, signers }  = await fr.getLendingDepositTransaction('USDC', new BN(1000000), new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\nasync function withdraw() {\n  // You can get this value by getUserLendingPosition method\n  const rewardAmount = 1002232;\n  const tokenAmount = 0;\n  const { trx, signers }  = await fr.getLendWithdrawTransaction('USDC', rewardAmount, tokenAmount, new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\n```\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n      // [\n      //   {   \n      //     balancePosition: 0,\n      //     pool: \"USDC\",\n      //     rewardPosition: 41354540149,\n      //     scale: 6,\n      //     totalAmount: 50386.25041249344,\n      //     totalPosition: 41354540149,\n      //   }\n      // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN,\n    //     apr: 8.36,\n    //     apy: 8.72,\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","gitHead":"869b03cc4ae4102247da8be58d29a9ef35a7a5a7","_id":"francium-sdk@1.4.11-beta3","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-1OjneCkekIyvFdxK07HoQeKRWfg4CsyWgxV61ayjvljLvuLPmz1KzI9JMdHvjwK5nByBGkMAUNIXKUJ3CRWHxA==","shasum":"19fc7297349c9b0c446be3df0d371e4a24419707","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.4.11-beta3.tgz","fileCount":119,"unpackedSize":2929948,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICPvVLAbAgiMUMkvBviFmn7fYUkz3dMBjUkqCLfmSZ1vAiBfihFLswZtPR9DKNGKBlNgt/KzTAEXnVCDphqXxpaqmw=="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.4.11-beta3_1705913068676_0.13270741472635872"},"_hasShrinkwrap":false},"1.4.11-beta4":{"name":"francium-sdk","version":"1.4.11-beta4","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"1.63.1","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"readme":"# Francium SDK\n\nJavascript sdk of Francium lending pools and farming pools. [Learn more about Francium.](https://docs.francium.io/)\n\n[NPM package](https://www.npmjs.com/package/francium-sdk)\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\n// Will fetch the LP price info on chain and return equity value.\nfr.getUserFormattedFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }],\n    //   totalPositionValue: 10,\n    //   debtValue: 6,\n    //   equityValue: 4\n    // }]\n  });\n\n// Only return the amount.\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Farm Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function farm() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getFarmTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      depositPcAmount: new BN(1000000),\n      depositCoinAmount: new BN(0),\n      borrowPcAmount: new BN(1000000),\n      borrowCoinAmount: new BN(0),\n      // Needed when adjust\n      currentUserInfoAccount?: PublicKey\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n```\n\n### Get Farm Versioned Transactions\n```javascript\nasync function oneTxfarm() {\n  // supply 1 USDC, borrow 1 USDC\n  const versionedTrx = await fr.getOneFarmTransaction(\n    'RAY-USDC',\n    'raydium',\n    new PublicKey('23xxxxxxx'),\n    {\n      depositPcAmount: new BN(1000000),\n      depositCoinAmount: new BN(0),\n      borrowPcAmount: new BN(1000000),\n      borrowCoinAmount: new BN(0),\n      // Needed when adjust\n      currentUserInfoAccount?: PublicKey\n    }\n  );\n\n  // If there is Keypair\n  versionedTrx.sign([payer]);\n  fr.connection.sendTransaction(versionedTrx);\n\n  // if the wallet supports Versioned Transaction\n  await fr.sendVersionedTransaction(versionedTrx, wallet);\n}\n```\n### getRepayTransactions\n```\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function getRepayTransactions() {\n  const trxs = await fr.getRepayTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    configs: {\n      amount0: BN;\n      amount1: BN;\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey;\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n```\n\n### Get Close Position Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function close() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getClosePositionTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      // 0: swap to PC token\n      // 1: swap to Coin Token\n      // 2: minimize trading \n      withdrawType: 2,\n\n      // userPosition.lpShares\n      lpShares: BN,\n\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey \n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n\n```\n### Get Farm Close Versioned Transactions\n```javascript\nasync function oneTxClose() {\n  // supply 1 USDC, borrow 1 USDC\n  const versionedTrx = await fr.getOneFarmClosedTransaction(\n    'RAY-USDC',\n    'raydium',\n    new PublicKey('23xxxxxxx'),\n    {\n      // 0: swap to PC token\n      // 1: swap to Coin Token\n      // 2: minimize trading \n      withdrawType: 2,\n\n      // userPosition.lpShares\n      lpShares: BN,\n\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey \n    }\n  );\n\n  // If there is Keypair\n  versionedTrx.sign([payer]);\n  fr.connection.sendTransaction(versionedTrx);\n\n  // if the wallet supports Versioned Transaction\n  await fr.sendVersionedTransaction(versionedTrx, wallet);\n}\n```\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n### Get Farm LP Info\n```javascript\nfr.getFarmLPPriceInfo();\n```\n\n### PDN Rebalance\n```js\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function rebalance() {\n  await fr.sendRebalanceTransactions(\n    new PublicKey('23xxxxxxx'),\n    targetPosition.userInfoPublicKey.toBase58(), // the userInfoPublicKey string of the target positio, which could be accessible from fr.getUserFarmPosition\n    wallet,\n  );\n}\n\n// get rebalance Info\nasync function getRebalanceInfo() {\n  const rebalanceInfo = await fr.getRebalanceInfo(\n    new PublicKey('23xxxxxxx'),\n    targetPosition.userInfoPublicKey.toBase58(), // the userInfoPublicKey string of the target positio, which could be accessible from fr.getUserFarmPosition\n  );\n  console.log('rebalanceInfo: ', rebalanceInfo);\n}\n\n```\n\n\n## Lend\n\n### Get Lending Transaction\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function deposit() {\n  const { trx, signers }  = await fr.getLendingDepositTransaction('USDC', new BN(1000000), new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\nasync function withdraw() {\n  // You can get this value by getUserLendingPosition method\n  const rewardAmount = 1002232;\n  const tokenAmount = 0;\n  const { trx, signers }  = await fr.getLendWithdrawTransaction('USDC', rewardAmount, tokenAmount, new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\n```\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n      // [\n      //   {   \n      //     balancePosition: 0,\n      //     pool: \"USDC\",\n      //     rewardPosition: 41354540149,\n      //     scale: 6,\n      //     totalAmount: 50386.25041249344,\n      //     totalPosition: 41354540149,\n      //   }\n      // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN,\n    //     apr: 8.36,\n    //     apy: 8.72,\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","gitHead":"e5bef3213a462a40e9ac2314760632fdb47dd73e","_id":"francium-sdk@1.4.11-beta4","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-bFO/O/jIv4UZ+XCqTvqtpYNcxRl04TjQ+YiiOVf4WfkIxIRn0A+DwcYb5x+4qTQ4Qg1IXHDw4kOdCLmAEO7UUA==","shasum":"bab639b92c085b276b3f65b6733ad1df0a639f7f","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.4.11-beta4.tgz","fileCount":119,"unpackedSize":2937102,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCNF8wd1eBCIfVcBtrSCuddQKKVxN2bZHV8J8DwEo0lAgIhAOWPbgxugiX2GkX9cFc3ZQshOSCUFunsVWXvxQuMQfra"}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.4.11-beta4_1706008534260_0.5753530455001863"},"_hasShrinkwrap":false},"1.4.11-beta5":{"name":"francium-sdk","version":"1.4.11-beta5","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"1.63.1","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"readme":"# Francium SDK\n\nJavascript sdk of Francium lending pools and farming pools. [Learn more about Francium.](https://docs.francium.io/)\n\n[NPM package](https://www.npmjs.com/package/francium-sdk)\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\n// Will fetch the LP price info on chain and return equity value.\nfr.getUserFormattedFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }],\n    //   totalPositionValue: 10,\n    //   debtValue: 6,\n    //   equityValue: 4\n    // }]\n  });\n\n// Only return the amount.\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Farm Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function farm() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getFarmTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      depositPcAmount: new BN(1000000),\n      depositCoinAmount: new BN(0),\n      borrowPcAmount: new BN(1000000),\n      borrowCoinAmount: new BN(0),\n      // Needed when adjust\n      currentUserInfoAccount?: PublicKey\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n```\n\n### Get Farm Versioned Transactions\n```javascript\nasync function oneTxfarm() {\n  // supply 1 USDC, borrow 1 USDC\n  const versionedTrx = await fr.getOneFarmTransaction(\n    'RAY-USDC',\n    'raydium',\n    new PublicKey('23xxxxxxx'),\n    {\n      depositPcAmount: new BN(1000000),\n      depositCoinAmount: new BN(0),\n      borrowPcAmount: new BN(1000000),\n      borrowCoinAmount: new BN(0),\n      // Needed when adjust\n      currentUserInfoAccount?: PublicKey\n    }\n  );\n\n  // If there is Keypair\n  versionedTrx.sign([payer]);\n  fr.connection.sendTransaction(versionedTrx);\n\n  // if the wallet supports Versioned Transaction\n  await fr.sendVersionedTransaction(versionedTrx, wallet);\n}\n```\n### getRepayTransactions\n```\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function getRepayTransactions() {\n  const trxs = await fr.getRepayTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    configs: {\n      amount0: BN;\n      amount1: BN;\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey;\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n```\n\n### Get Close Position Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function close() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getClosePositionTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      // 0: swap to PC token\n      // 1: swap to Coin Token\n      // 2: minimize trading \n      withdrawType: 2,\n\n      // userPosition.lpShares\n      lpShares: BN,\n\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey \n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n\n```\n### Get Farm Close Versioned Transactions\n```javascript\nasync function oneTxClose() {\n  // supply 1 USDC, borrow 1 USDC\n  const versionedTrx = await fr.getOneFarmClosedTransaction(\n    'RAY-USDC',\n    'raydium',\n    new PublicKey('23xxxxxxx'),\n    {\n      // 0: swap to PC token\n      // 1: swap to Coin Token\n      // 2: minimize trading \n      withdrawType: 2,\n\n      // userPosition.lpShares\n      lpShares: BN,\n\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey \n    }\n  );\n\n  // If there is Keypair\n  versionedTrx.sign([payer]);\n  fr.connection.sendTransaction(versionedTrx);\n\n  // if the wallet supports Versioned Transaction\n  await fr.sendVersionedTransaction(versionedTrx, wallet);\n}\n```\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n### Get Farm LP Info\n```javascript\nfr.getFarmLPPriceInfo();\n```\n\n### PDN Rebalance\n```js\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function rebalance() {\n  await fr.sendRebalanceTransactions(\n    new PublicKey('23xxxxxxx'),\n    targetPosition.userInfoPublicKey.toBase58(), // the userInfoPublicKey string of the target positio, which could be accessible from fr.getUserFarmPosition\n    wallet,\n  );\n}\n\n// get rebalance Info\nasync function getRebalanceInfo() {\n  const rebalanceInfo = await fr.getRebalanceInfo(\n    new PublicKey('23xxxxxxx'),\n    targetPosition.userInfoPublicKey.toBase58(), // the userInfoPublicKey string of the target positio, which could be accessible from fr.getUserFarmPosition\n  );\n  console.log('rebalanceInfo: ', rebalanceInfo);\n}\n\n```\n\n\n## Lend\n\n### Get Lending Transaction\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function deposit() {\n  const { trx, signers }  = await fr.getLendingDepositTransaction('USDC', new BN(1000000), new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\nasync function withdraw() {\n  // You can get this value by getUserLendingPosition method\n  const rewardAmount = 1002232;\n  const tokenAmount = 0;\n  const { trx, signers }  = await fr.getLendWithdrawTransaction('USDC', rewardAmount, tokenAmount, new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\n```\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n      // [\n      //   {   \n      //     balancePosition: 0,\n      //     pool: \"USDC\",\n      //     rewardPosition: 41354540149,\n      //     scale: 6,\n      //     totalAmount: 50386.25041249344,\n      //     totalPosition: 41354540149,\n      //   }\n      // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN,\n    //     apr: 8.36,\n    //     apy: 8.72,\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","gitHead":"e5bef3213a462a40e9ac2314760632fdb47dd73e","_id":"francium-sdk@1.4.11-beta5","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-O0f+cQCdSNcpQQOtqT1z2kOtbhCjghgAn2ds0rkPg3YJvKOdwlhb9nRQ5WJqYP+/5Tw/0pB3B4rfUBd+HnOFPg==","shasum":"af2af39cd58eb828e5241c3a90cfdaf59a7146b8","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.4.11-beta5.tgz","fileCount":119,"unpackedSize":2937102,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAqIRvvzu9UP5umuCH8SvLHReZLFXsVqtJPga4ulFOcHAiEAvfPfNTzT7gaY0am0VHVoHMtCRRkj2ItTUEqjPIj7VsY="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.4.11-beta5_1706017696361_0.8227581399372248"},"_hasShrinkwrap":false},"1.4.11-beta6":{"name":"francium-sdk","version":"1.4.11-beta6","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"1.63.1","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"readme":"# Francium SDK\n\nJavascript sdk of Francium lending pools and farming pools. [Learn more about Francium.](https://docs.francium.io/)\n\n[NPM package](https://www.npmjs.com/package/francium-sdk)\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\n// Will fetch the LP price info on chain and return equity value.\nfr.getUserFormattedFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }],\n    //   totalPositionValue: 10,\n    //   debtValue: 6,\n    //   equityValue: 4\n    // }]\n  });\n\n// Only return the amount.\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Farm Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function farm() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getFarmTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      depositPcAmount: new BN(1000000),\n      depositCoinAmount: new BN(0),\n      borrowPcAmount: new BN(1000000),\n      borrowCoinAmount: new BN(0),\n      // Needed when adjust\n      currentUserInfoAccount?: PublicKey\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n```\n\n### Get Farm Versioned Transactions\n```javascript\nasync function oneTxfarm() {\n  // supply 1 USDC, borrow 1 USDC\n  const versionedTrx = await fr.getOneFarmTransaction(\n    'RAY-USDC',\n    'raydium',\n    new PublicKey('23xxxxxxx'),\n    {\n      depositPcAmount: new BN(1000000),\n      depositCoinAmount: new BN(0),\n      borrowPcAmount: new BN(1000000),\n      borrowCoinAmount: new BN(0),\n      // Needed when adjust\n      currentUserInfoAccount?: PublicKey\n    }\n  );\n\n  // If there is Keypair\n  versionedTrx.sign([payer]);\n  fr.connection.sendTransaction(versionedTrx);\n\n  // if the wallet supports Versioned Transaction\n  await fr.sendVersionedTransaction(versionedTrx, wallet);\n}\n```\n### getRepayTransactions\n```\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function getRepayTransactions() {\n  const trxs = await fr.getRepayTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    configs: {\n      amount0: BN;\n      amount1: BN;\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey;\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n```\n\n### Get Close Position Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function close() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getClosePositionTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      // 0: swap to PC token\n      // 1: swap to Coin Token\n      // 2: minimize trading \n      withdrawType: 2,\n\n      // userPosition.lpShares\n      lpShares: BN,\n\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey \n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n\n```\n### Get Farm Close Versioned Transactions\n```javascript\nasync function oneTxClose() {\n  // supply 1 USDC, borrow 1 USDC\n  const versionedTrx = await fr.getOneFarmClosedTransaction(\n    'RAY-USDC',\n    'raydium',\n    new PublicKey('23xxxxxxx'),\n    {\n      // 0: swap to PC token\n      // 1: swap to Coin Token\n      // 2: minimize trading \n      withdrawType: 2,\n\n      // userPosition.lpShares\n      lpShares: BN,\n\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey \n    }\n  );\n\n  // If there is Keypair\n  versionedTrx.sign([payer]);\n  fr.connection.sendTransaction(versionedTrx);\n\n  // if the wallet supports Versioned Transaction\n  await fr.sendVersionedTransaction(versionedTrx, wallet);\n}\n```\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n### Get Farm LP Info\n```javascript\nfr.getFarmLPPriceInfo();\n```\n\n### PDN Rebalance\n```js\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function rebalance() {\n  await fr.sendRebalanceTransactions(\n    new PublicKey('23xxxxxxx'),\n    targetPosition.userInfoPublicKey.toBase58(), // the userInfoPublicKey string of the target positio, which could be accessible from fr.getUserFarmPosition\n    wallet,\n  );\n}\n\n// get rebalance Info\nasync function getRebalanceInfo() {\n  const rebalanceInfo = await fr.getRebalanceInfo(\n    new PublicKey('23xxxxxxx'),\n    targetPosition.userInfoPublicKey.toBase58(), // the userInfoPublicKey string of the target positio, which could be accessible from fr.getUserFarmPosition\n  );\n  console.log('rebalanceInfo: ', rebalanceInfo);\n}\n\n```\n\n\n## Lend\n\n### Get Lending Transaction\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function deposit() {\n  const { trx, signers }  = await fr.getLendingDepositTransaction('USDC', new BN(1000000), new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\nasync function withdraw() {\n  // You can get this value by getUserLendingPosition method\n  const rewardAmount = 1002232;\n  const tokenAmount = 0;\n  const { trx, signers }  = await fr.getLendWithdrawTransaction('USDC', rewardAmount, tokenAmount, new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\n```\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n      // [\n      //   {   \n      //     balancePosition: 0,\n      //     pool: \"USDC\",\n      //     rewardPosition: 41354540149,\n      //     scale: 6,\n      //     totalAmount: 50386.25041249344,\n      //     totalPosition: 41354540149,\n      //   }\n      // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN,\n    //     apr: 8.36,\n    //     apy: 8.72,\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","gitHead":"e5bef3213a462a40e9ac2314760632fdb47dd73e","_id":"francium-sdk@1.4.11-beta6","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-qvBfX2pJ6FOHSIeIb0RwTE9ZXwEfOIT7HX+n8dn6Kc1B7OKFtPJLPkcb+qvzeX3OqcvmnvKqgelZlAx1/BNK7Q==","shasum":"a7d157d20e47a667391d050cd12990885d970cc9","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.4.11-beta6.tgz","fileCount":119,"unpackedSize":2937336,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDDgHnVHWD4WLRXZ4YtmD23GPDuqem+pn3tzayiuWIiMwIhANy16+4rSxSr5faamIAW/D8GFVyIzjEboyJZQIR8vBGh"}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.4.11-beta6_1706017994246_0.6063362266190448"},"_hasShrinkwrap":false},"1.4.11-beta7":{"name":"francium-sdk","version":"1.4.11-beta7","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"1.63.1","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"readme":"# Francium SDK\n\nJavascript sdk of Francium lending pools and farming pools. [Learn more about Francium.](https://docs.francium.io/)\n\n[NPM package](https://www.npmjs.com/package/francium-sdk)\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\n// Will fetch the LP price info on chain and return equity value.\nfr.getUserFormattedFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }],\n    //   totalPositionValue: 10,\n    //   debtValue: 6,\n    //   equityValue: 4\n    // }]\n  });\n\n// Only return the amount.\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Farm Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function farm() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getFarmTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      depositPcAmount: new BN(1000000),\n      depositCoinAmount: new BN(0),\n      borrowPcAmount: new BN(1000000),\n      borrowCoinAmount: new BN(0),\n      // Needed when adjust\n      currentUserInfoAccount?: PublicKey\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n```\n\n### Get Farm Versioned Transactions\n```javascript\nasync function oneTxfarm() {\n  // supply 1 USDC, borrow 1 USDC\n  const versionedTrx = await fr.getOneFarmTransaction(\n    'RAY-USDC',\n    'raydium',\n    new PublicKey('23xxxxxxx'),\n    {\n      depositPcAmount: new BN(1000000),\n      depositCoinAmount: new BN(0),\n      borrowPcAmount: new BN(1000000),\n      borrowCoinAmount: new BN(0),\n      // Needed when adjust\n      currentUserInfoAccount?: PublicKey\n    }\n  );\n\n  // If there is Keypair\n  versionedTrx.sign([payer]);\n  fr.connection.sendTransaction(versionedTrx);\n\n  // if the wallet supports Versioned Transaction\n  await fr.sendVersionedTransaction(versionedTrx, wallet);\n}\n```\n### getRepayTransactions\n```\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function getRepayTransactions() {\n  const trxs = await fr.getRepayTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    configs: {\n      amount0: BN;\n      amount1: BN;\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey;\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n```\n\n### Get Close Position Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function close() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getClosePositionTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      // 0: swap to PC token\n      // 1: swap to Coin Token\n      // 2: minimize trading \n      withdrawType: 2,\n\n      // userPosition.lpShares\n      lpShares: BN,\n\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey \n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n\n```\n### Get Farm Close Versioned Transactions\n```javascript\nasync function oneTxClose() {\n  // supply 1 USDC, borrow 1 USDC\n  const versionedTrx = await fr.getOneFarmClosedTransaction(\n    'RAY-USDC',\n    'raydium',\n    new PublicKey('23xxxxxxx'),\n    {\n      // 0: swap to PC token\n      // 1: swap to Coin Token\n      // 2: minimize trading \n      withdrawType: 2,\n\n      // userPosition.lpShares\n      lpShares: BN,\n\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey \n    }\n  );\n\n  // If there is Keypair\n  versionedTrx.sign([payer]);\n  fr.connection.sendTransaction(versionedTrx);\n\n  // if the wallet supports Versioned Transaction\n  await fr.sendVersionedTransaction(versionedTrx, wallet);\n}\n```\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n### Get Farm LP Info\n```javascript\nfr.getFarmLPPriceInfo();\n```\n\n### PDN Rebalance\n```js\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function rebalance() {\n  await fr.sendRebalanceTransactions(\n    new PublicKey('23xxxxxxx'),\n    targetPosition.userInfoPublicKey.toBase58(), // the userInfoPublicKey string of the target positio, which could be accessible from fr.getUserFarmPosition\n    wallet,\n  );\n}\n\n// get rebalance Info\nasync function getRebalanceInfo() {\n  const rebalanceInfo = await fr.getRebalanceInfo(\n    new PublicKey('23xxxxxxx'),\n    targetPosition.userInfoPublicKey.toBase58(), // the userInfoPublicKey string of the target positio, which could be accessible from fr.getUserFarmPosition\n  );\n  console.log('rebalanceInfo: ', rebalanceInfo);\n}\n\n```\n\n\n## Lend\n\n### Get Lending Transaction\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function deposit() {\n  const { trx, signers }  = await fr.getLendingDepositTransaction('USDC', new BN(1000000), new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\nasync function withdraw() {\n  // You can get this value by getUserLendingPosition method\n  const rewardAmount = 1002232;\n  const tokenAmount = 0;\n  const { trx, signers }  = await fr.getLendWithdrawTransaction('USDC', rewardAmount, tokenAmount, new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\n```\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n      // [\n      //   {   \n      //     balancePosition: 0,\n      //     pool: \"USDC\",\n      //     rewardPosition: 41354540149,\n      //     scale: 6,\n      //     totalAmount: 50386.25041249344,\n      //     totalPosition: 41354540149,\n      //   }\n      // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN,\n    //     apr: 8.36,\n    //     apy: 8.72,\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","gitHead":"e5bef3213a462a40e9ac2314760632fdb47dd73e","_id":"francium-sdk@1.4.11-beta7","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-zVHCS8800nb1A/fBkXULsTc7h6S49q8CJZViz2p0pFa6LNPtdi12g0qhdZymrhTznGEuk4HFPbi6wbnWzq0KjA==","shasum":"051fad06a986b3d8b67a42883b4a7022682fcff5","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.4.11-beta7.tgz","fileCount":119,"unpackedSize":2937338,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICxeuj+8Ud13ow8v3IVZV4RFBA3Kk/Ep2iKzSKBGyGZ1AiBYC8x+2NwARflRPhdNFP7E0GNbM2NzD3J8WtBOtKxUzA=="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.4.11-beta7_1706018128844_0.09561196109504455"},"_hasShrinkwrap":false},"1.4.11-beta8":{"name":"francium-sdk","version":"1.4.11-beta8","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"1.63.1","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"readme":"# Francium SDK\n\nJavascript sdk of Francium lending pools and farming pools. [Learn more about Francium.](https://docs.francium.io/)\n\n[NPM package](https://www.npmjs.com/package/francium-sdk)\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\n// Will fetch the LP price info on chain and return equity value.\nfr.getUserFormattedFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }],\n    //   totalPositionValue: 10,\n    //   debtValue: 6,\n    //   equityValue: 4\n    // }]\n  });\n\n// Only return the amount.\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Farm Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function farm() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getFarmTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      depositPcAmount: new BN(1000000),\n      depositCoinAmount: new BN(0),\n      borrowPcAmount: new BN(1000000),\n      borrowCoinAmount: new BN(0),\n      // Needed when adjust\n      currentUserInfoAccount?: PublicKey\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n```\n\n### Get Farm Versioned Transactions\n```javascript\nasync function oneTxfarm() {\n  // supply 1 USDC, borrow 1 USDC\n  const versionedTrx = await fr.getOneFarmTransaction(\n    'RAY-USDC',\n    'raydium',\n    new PublicKey('23xxxxxxx'),\n    {\n      depositPcAmount: new BN(1000000),\n      depositCoinAmount: new BN(0),\n      borrowPcAmount: new BN(1000000),\n      borrowCoinAmount: new BN(0),\n      // Needed when adjust\n      currentUserInfoAccount?: PublicKey\n    }\n  );\n\n  // If there is Keypair\n  versionedTrx.sign([payer]);\n  fr.connection.sendTransaction(versionedTrx);\n\n  // if the wallet supports Versioned Transaction\n  await fr.sendVersionedTransaction(versionedTrx, wallet);\n}\n```\n### getRepayTransactions\n```\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function getRepayTransactions() {\n  const trxs = await fr.getRepayTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    configs: {\n      amount0: BN;\n      amount1: BN;\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey;\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n```\n\n### Get Close Position Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function close() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getClosePositionTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      // 0: swap to PC token\n      // 1: swap to Coin Token\n      // 2: minimize trading \n      withdrawType: 2,\n\n      // userPosition.lpShares\n      lpShares: BN,\n\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey \n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n\n```\n### Get Farm Close Versioned Transactions\n```javascript\nasync function oneTxClose() {\n  // supply 1 USDC, borrow 1 USDC\n  const versionedTrx = await fr.getOneFarmClosedTransaction(\n    'RAY-USDC',\n    'raydium',\n    new PublicKey('23xxxxxxx'),\n    {\n      // 0: swap to PC token\n      // 1: swap to Coin Token\n      // 2: minimize trading \n      withdrawType: 2,\n\n      // userPosition.lpShares\n      lpShares: BN,\n\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey \n    }\n  );\n\n  // If there is Keypair\n  versionedTrx.sign([payer]);\n  fr.connection.sendTransaction(versionedTrx);\n\n  // if the wallet supports Versioned Transaction\n  await fr.sendVersionedTransaction(versionedTrx, wallet);\n}\n```\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n### Get Farm LP Info\n```javascript\nfr.getFarmLPPriceInfo();\n```\n\n### PDN Rebalance\n```js\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function rebalance() {\n  await fr.sendRebalanceTransactions(\n    new PublicKey('23xxxxxxx'),\n    targetPosition.userInfoPublicKey.toBase58(), // the userInfoPublicKey string of the target positio, which could be accessible from fr.getUserFarmPosition\n    wallet,\n  );\n}\n\n// get rebalance Info\nasync function getRebalanceInfo() {\n  const rebalanceInfo = await fr.getRebalanceInfo(\n    new PublicKey('23xxxxxxx'),\n    targetPosition.userInfoPublicKey.toBase58(), // the userInfoPublicKey string of the target positio, which could be accessible from fr.getUserFarmPosition\n  );\n  console.log('rebalanceInfo: ', rebalanceInfo);\n}\n\n```\n\n\n## Lend\n\n### Get Lending Transaction\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function deposit() {\n  const { trx, signers }  = await fr.getLendingDepositTransaction('USDC', new BN(1000000), new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\nasync function withdraw() {\n  // You can get this value by getUserLendingPosition method\n  const rewardAmount = 1002232;\n  const tokenAmount = 0;\n  const { trx, signers }  = await fr.getLendWithdrawTransaction('USDC', rewardAmount, tokenAmount, new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\n```\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n      // [\n      //   {   \n      //     balancePosition: 0,\n      //     pool: \"USDC\",\n      //     rewardPosition: 41354540149,\n      //     scale: 6,\n      //     totalAmount: 50386.25041249344,\n      //     totalPosition: 41354540149,\n      //   }\n      // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN,\n    //     apr: 8.36,\n    //     apy: 8.72,\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","gitHead":"e5bef3213a462a40e9ac2314760632fdb47dd73e","_id":"francium-sdk@1.4.11-beta8","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-SKIwfMA5EseHFdNAoSW5lM17RLogq2KQ2/p/hatzNoan7mt5Y2EJ2+2a8hUKFC2nR1Vcb//KrxvGczWaH7MVQg==","shasum":"46a81e6c813786b1e99e95367e14ef7f22e7c4e3","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.4.11-beta8.tgz","fileCount":119,"unpackedSize":2937338,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF0FK66o7J/1bk74/TNm+mg19+Fjf1AerQ0GKQbTalSyAiAiYmPsIwOgnnuXR4ogsHDGNm19w89jQAOw0J/p7bOrbg=="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.4.11-beta8_1706018191890_0.5607253157017562"},"_hasShrinkwrap":false},"1.4.11-beta9":{"name":"francium-sdk","version":"1.4.11-beta9","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"1.63.1","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"readme":"# Francium SDK\n\nJavascript sdk of Francium lending pools and farming pools. [Learn more about Francium.](https://docs.francium.io/)\n\n[NPM package](https://www.npmjs.com/package/francium-sdk)\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\n// Will fetch the LP price info on chain and return equity value.\nfr.getUserFormattedFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }],\n    //   totalPositionValue: 10,\n    //   debtValue: 6,\n    //   equityValue: 4\n    // }]\n  });\n\n// Only return the amount.\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Farm Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function farm() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getFarmTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      depositPcAmount: new BN(1000000),\n      depositCoinAmount: new BN(0),\n      borrowPcAmount: new BN(1000000),\n      borrowCoinAmount: new BN(0),\n      // Needed when adjust\n      currentUserInfoAccount?: PublicKey\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n```\n\n### Get Farm Versioned Transactions\n```javascript\nasync function oneTxfarm() {\n  // supply 1 USDC, borrow 1 USDC\n  const versionedTrx = await fr.getOneFarmTransaction(\n    'RAY-USDC',\n    'raydium',\n    new PublicKey('23xxxxxxx'),\n    {\n      depositPcAmount: new BN(1000000),\n      depositCoinAmount: new BN(0),\n      borrowPcAmount: new BN(1000000),\n      borrowCoinAmount: new BN(0),\n      // Needed when adjust\n      currentUserInfoAccount?: PublicKey\n    }\n  );\n\n  // If there is Keypair\n  versionedTrx.sign([payer]);\n  fr.connection.sendTransaction(versionedTrx);\n\n  // if the wallet supports Versioned Transaction\n  await fr.sendVersionedTransaction(versionedTrx, wallet);\n}\n```\n### getRepayTransactions\n```\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function getRepayTransactions() {\n  const trxs = await fr.getRepayTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    configs: {\n      amount0: BN;\n      amount1: BN;\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey;\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n```\n\n### Get Close Position Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function close() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getClosePositionTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      // 0: swap to PC token\n      // 1: swap to Coin Token\n      // 2: minimize trading \n      withdrawType: 2,\n\n      // userPosition.lpShares\n      lpShares: BN,\n\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey \n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n\n```\n### Get Farm Close Versioned Transactions\n```javascript\nasync function oneTxClose() {\n  // supply 1 USDC, borrow 1 USDC\n  const versionedTrx = await fr.getOneFarmClosedTransaction(\n    'RAY-USDC',\n    'raydium',\n    new PublicKey('23xxxxxxx'),\n    {\n      // 0: swap to PC token\n      // 1: swap to Coin Token\n      // 2: minimize trading \n      withdrawType: 2,\n\n      // userPosition.lpShares\n      lpShares: BN,\n\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey \n    }\n  );\n\n  // If there is Keypair\n  versionedTrx.sign([payer]);\n  fr.connection.sendTransaction(versionedTrx);\n\n  // if the wallet supports Versioned Transaction\n  await fr.sendVersionedTransaction(versionedTrx, wallet);\n}\n```\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n### Get Farm LP Info\n```javascript\nfr.getFarmLPPriceInfo();\n```\n\n### PDN Rebalance\n```js\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function rebalance() {\n  await fr.sendRebalanceTransactions(\n    new PublicKey('23xxxxxxx'),\n    targetPosition.userInfoPublicKey.toBase58(), // the userInfoPublicKey string of the target positio, which could be accessible from fr.getUserFarmPosition\n    wallet,\n  );\n}\n\n// get rebalance Info\nasync function getRebalanceInfo() {\n  const rebalanceInfo = await fr.getRebalanceInfo(\n    new PublicKey('23xxxxxxx'),\n    targetPosition.userInfoPublicKey.toBase58(), // the userInfoPublicKey string of the target positio, which could be accessible from fr.getUserFarmPosition\n  );\n  console.log('rebalanceInfo: ', rebalanceInfo);\n}\n\n```\n\n\n## Lend\n\n### Get Lending Transaction\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function deposit() {\n  const { trx, signers }  = await fr.getLendingDepositTransaction('USDC', new BN(1000000), new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\nasync function withdraw() {\n  // You can get this value by getUserLendingPosition method\n  const rewardAmount = 1002232;\n  const tokenAmount = 0;\n  const { trx, signers }  = await fr.getLendWithdrawTransaction('USDC', rewardAmount, tokenAmount, new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\n```\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n      // [\n      //   {   \n      //     balancePosition: 0,\n      //     pool: \"USDC\",\n      //     rewardPosition: 41354540149,\n      //     scale: 6,\n      //     totalAmount: 50386.25041249344,\n      //     totalPosition: 41354540149,\n      //   }\n      // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN,\n    //     apr: 8.36,\n    //     apy: 8.72,\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","gitHead":"e5bef3213a462a40e9ac2314760632fdb47dd73e","_id":"francium-sdk@1.4.11-beta9","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-6PzbbaaoLDtKwxAkLOziV8c7pFG+jAy1PdAJRGcJ28e1m16/8EYPbcGAfWBynWgUFGCLjw5Api1lQVlcg9imQw==","shasum":"436bb51f4173c73e2f20ecf87a1b461cbe076146","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.4.11-beta9.tgz","fileCount":119,"unpackedSize":2937415,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHW6n3HpxwJlVAav8Uzgu4nRCcU6SFM1pIa3DPpceMp/AiEAtgKU0lnn7vQM7WXGkxLJHHTIwQfSowxOqJm8RX6KsWc="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.4.11-beta9_1706018435567_0.4419265307230711"},"_hasShrinkwrap":false},"1.4.11":{"name":"francium-sdk","version":"1.4.11","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"1.63.1","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"gitHead":"745dd02ef74c1b66eb0e2069746fa512d5f4cd34","_id":"francium-sdk@1.4.11","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-4YHWGV7F0J1yZ8O7s0tvWwWfH4nkRGG0jxLocdszWJWezBl8uNMprDOI/PGq6oJlnCoanEg7RlokqqG9sp21Xg==","shasum":"a46e65bcbc8975d7b31e49b912d36d67eb4714a6","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.4.11.tgz","fileCount":119,"unpackedSize":2937409,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG6rhY5jcqBSuIvs3aG9ATokWr6eiXdyE+nKackzm/SmAiACmtOvnpBKaHrSk2+wuIXfvP77LkngmVAvgTjlNCxuxQ=="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.4.11_1706875931595_0.179319268962"},"_hasShrinkwrap":false},"1.4.12-beta":{"name":"francium-sdk","version":"1.4.12-beta","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"1.63.1","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"readme":"# Francium SDK\n\nJavascript sdk of Francium lending pools and farming pools. [Learn more about Francium.](https://docs.francium.io/)\n\n[NPM package](https://www.npmjs.com/package/francium-sdk)\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\n// Will fetch the LP price info on chain and return equity value.\nfr.getUserFormattedFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }],\n    //   totalPositionValue: 10,\n    //   debtValue: 6,\n    //   equityValue: 4\n    // }]\n  });\n\n// Only return the amount.\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Farm Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function farm() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getFarmTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      depositPcAmount: new BN(1000000),\n      depositCoinAmount: new BN(0),\n      borrowPcAmount: new BN(1000000),\n      borrowCoinAmount: new BN(0),\n      // Needed when adjust\n      currentUserInfoAccount?: PublicKey\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n```\n\n### Get Farm Versioned Transactions\n```javascript\nasync function oneTxfarm() {\n  // supply 1 USDC, borrow 1 USDC\n  const versionedTrx = await fr.getOneFarmTransaction(\n    'RAY-USDC',\n    'raydium',\n    new PublicKey('23xxxxxxx'),\n    {\n      depositPcAmount: new BN(1000000),\n      depositCoinAmount: new BN(0),\n      borrowPcAmount: new BN(1000000),\n      borrowCoinAmount: new BN(0),\n      // Needed when adjust\n      currentUserInfoAccount?: PublicKey\n    }\n  );\n\n  // If there is Keypair\n  versionedTrx.sign([payer]);\n  fr.connection.sendTransaction(versionedTrx);\n\n  // if the wallet supports Versioned Transaction\n  await fr.sendVersionedTransaction(versionedTrx, wallet);\n}\n```\n### getRepayTransactions\n```\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function getRepayTransactions() {\n  const trxs = await fr.getRepayTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    configs: {\n      amount0: BN;\n      amount1: BN;\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey;\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n```\n\n### Get Close Position Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function close() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getClosePositionTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      // 0: swap to PC token\n      // 1: swap to Coin Token\n      // 2: minimize trading \n      withdrawType: 2,\n\n      // userPosition.lpShares\n      lpShares: BN,\n\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey \n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n\n```\n### Get Farm Close Versioned Transactions\n```javascript\nasync function oneTxClose() {\n  // supply 1 USDC, borrow 1 USDC\n  const versionedTrx = await fr.getOneFarmClosedTransaction(\n    'RAY-USDC',\n    'raydium',\n    new PublicKey('23xxxxxxx'),\n    {\n      // 0: swap to PC token\n      // 1: swap to Coin Token\n      // 2: minimize trading \n      withdrawType: 2,\n\n      // userPosition.lpShares\n      lpShares: BN,\n\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey \n    }\n  );\n\n  // If there is Keypair\n  versionedTrx.sign([payer]);\n  fr.connection.sendTransaction(versionedTrx);\n\n  // if the wallet supports Versioned Transaction\n  await fr.sendVersionedTransaction(versionedTrx, wallet);\n}\n```\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n### Get Farm LP Info\n```javascript\nfr.getFarmLPPriceInfo();\n```\n\n### PDN Rebalance\n```js\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function rebalance() {\n  await fr.sendRebalanceTransactions(\n    new PublicKey('23xxxxxxx'),\n    targetPosition.userInfoPublicKey.toBase58(), // the userInfoPublicKey string of the target positio, which could be accessible from fr.getUserFarmPosition\n    wallet,\n  );\n}\n\n// get rebalance Info\nasync function getRebalanceInfo() {\n  const rebalanceInfo = await fr.getRebalanceInfo(\n    new PublicKey('23xxxxxxx'),\n    targetPosition.userInfoPublicKey.toBase58(), // the userInfoPublicKey string of the target positio, which could be accessible from fr.getUserFarmPosition\n  );\n  console.log('rebalanceInfo: ', rebalanceInfo);\n}\n\n```\n\n\n## Lend\n\n### Get Lending Transaction\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function deposit() {\n  const { trx, signers }  = await fr.getLendingDepositTransaction('USDC', new BN(1000000), new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\nasync function withdraw() {\n  // You can get this value by getUserLendingPosition method\n  const rewardAmount = 1002232;\n  const tokenAmount = 0;\n  const { trx, signers }  = await fr.getLendWithdrawTransaction('USDC', rewardAmount, tokenAmount, new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\n```\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n      // [\n      //   {   \n      //     balancePosition: 0,\n      //     pool: \"USDC\",\n      //     rewardPosition: 41354540149,\n      //     scale: 6,\n      //     totalAmount: 50386.25041249344,\n      //     totalPosition: 41354540149,\n      //   }\n      // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN,\n    //     apr: 8.36,\n    //     apy: 8.72,\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","gitHead":"151e7d08c57250ce9f3cc40ba2cef9a5ebc090c6","_id":"francium-sdk@1.4.12-beta","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-elVyBlXxJDeJmVeYCYy9OqQgv6ILEFqLV9XW77zZ96ZfRVBkT5mK/yPWAHfJx/Cj0gd1FzWYfl09HdomGEqSKw==","shasum":"67620a1faea9f13384387525d2aaff0575f8e026","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.4.12-beta.tgz","fileCount":119,"unpackedSize":2985634,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAxrmD8IP2/vewrZ4fgetiNp7nSbwmmISSNnwQyA4JGqAiBkyspfip8+/4w1G8gvRm5ijrjH83E6ctpESx5BazGiXg=="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.4.12-beta_1710519265642_0.36625399592179453"},"_hasShrinkwrap":false},"1.4.12":{"name":"francium-sdk","version":"1.4.12","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"1.63.1","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"gitHead":"3a85b0da01fb588bc1c6e4dec32f49310f37b9c1","_id":"francium-sdk@1.4.12","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-508+Viey1qWbwBrAEtx4fK9aAtJBlcIofuNEFyUbNttqcfF2EFc0MAnoCgKm2k34932c05Q5CArVut8wkR+ZMg==","shasum":"872653723c2732bf4b79406fd46d41ae75b255ce","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.4.12.tgz","fileCount":122,"unpackedSize":3007059,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCoTFt6MOzv6Dlcn/jHuRSPqHQWJ+IR77LZgWa3/4DzOwIhALSDe97GP6b0psT1lBm1ooYpqdnJEOIPp1K1yZv8WOuf"}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.4.12_1710684909481_0.18192374242060216"},"_hasShrinkwrap":false},"1.4.13-beta":{"name":"francium-sdk","version":"1.4.13-beta","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"1.63.1","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"readme":"# Francium SDK\n\nJavascript sdk of Francium lending pools and farming pools. [Learn more about Francium.](https://docs.francium.io/)\n\n[NPM package](https://www.npmjs.com/package/francium-sdk)\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\n// Will fetch the LP price info on chain and return equity value.\nfr.getUserFormattedFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }],\n    //   totalPositionValue: 10,\n    //   debtValue: 6,\n    //   equityValue: 4\n    // }]\n  });\n\n// Only return the amount.\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Farm Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function farm() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getFarmTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      depositPcAmount: new BN(1000000),\n      depositCoinAmount: new BN(0),\n      borrowPcAmount: new BN(1000000),\n      borrowCoinAmount: new BN(0),\n      // Needed when adjust\n      currentUserInfoAccount?: PublicKey\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n```\n\n### Get Farm Versioned Transactions\n```javascript\nasync function oneTxfarm() {\n  // supply 1 USDC, borrow 1 USDC\n  const versionedTrx = await fr.getOneFarmTransaction(\n    'RAY-USDC',\n    'raydium',\n    new PublicKey('23xxxxxxx'),\n    {\n      depositPcAmount: new BN(1000000),\n      depositCoinAmount: new BN(0),\n      borrowPcAmount: new BN(1000000),\n      borrowCoinAmount: new BN(0),\n      // Needed when adjust\n      currentUserInfoAccount?: PublicKey\n    }\n  );\n\n  // If there is Keypair\n  versionedTrx.sign([payer]);\n  fr.connection.sendTransaction(versionedTrx);\n\n  // if the wallet supports Versioned Transaction\n  await fr.sendVersionedTransaction(versionedTrx, wallet);\n}\n```\n### getRepayTransactions\n```\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function getRepayTransactions() {\n  const trxs = await fr.getRepayTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    configs: {\n      amount0: BN;\n      amount1: BN;\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey;\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n```\n\n### Get Close Position Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function close() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getClosePositionTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      // 0: swap to PC token\n      // 1: swap to Coin Token\n      // 2: minimize trading \n      withdrawType: 2,\n\n      // userPosition.lpShares\n      lpShares: BN,\n\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey \n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n\n```\n### Get Farm Close Versioned Transactions\n```javascript\nasync function oneTxClose() {\n  // supply 1 USDC, borrow 1 USDC\n  const versionedTrx = await fr.getOneFarmClosedTransaction(\n    'RAY-USDC',\n    'raydium',\n    new PublicKey('23xxxxxxx'),\n    {\n      // 0: swap to PC token\n      // 1: swap to Coin Token\n      // 2: minimize trading \n      withdrawType: 2,\n\n      // userPosition.lpShares\n      lpShares: BN,\n\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey \n    }\n  );\n\n  // If there is Keypair\n  versionedTrx.sign([payer]);\n  fr.connection.sendTransaction(versionedTrx);\n\n  // if the wallet supports Versioned Transaction\n  await fr.sendVersionedTransaction(versionedTrx, wallet);\n}\n```\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n### Get Farm LP Info\n```javascript\nfr.getFarmLPPriceInfo();\n```\n\n### PDN Rebalance\n```js\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function rebalance() {\n  await fr.sendRebalanceTransactions(\n    new PublicKey('23xxxxxxx'),\n    targetPosition.userInfoPublicKey.toBase58(), // the userInfoPublicKey string of the target positio, which could be accessible from fr.getUserFarmPosition\n    wallet,\n  );\n}\n\n// get rebalance Info\nasync function getRebalanceInfo() {\n  const rebalanceInfo = await fr.getRebalanceInfo(\n    new PublicKey('23xxxxxxx'),\n    targetPosition.userInfoPublicKey.toBase58(), // the userInfoPublicKey string of the target positio, which could be accessible from fr.getUserFarmPosition\n  );\n  console.log('rebalanceInfo: ', rebalanceInfo);\n}\n\n```\n\n\n## Lend\n\n### Get Lending Transaction\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function deposit() {\n  const { trx, signers }  = await fr.getLendingDepositTransaction('USDC', new BN(1000000), new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\nasync function withdraw() {\n  // You can get this value by getUserLendingPosition method\n  const rewardAmount = 1002232;\n  const tokenAmount = 0;\n  const { trx, signers }  = await fr.getLendWithdrawTransaction('USDC', rewardAmount, tokenAmount, new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\n```\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n      // [\n      //   {   \n      //     balancePosition: 0,\n      //     pool: \"USDC\",\n      //     rewardPosition: 41354540149,\n      //     scale: 6,\n      //     totalAmount: 50386.25041249344,\n      //     totalPosition: 41354540149,\n      //   }\n      // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN,\n    //     apr: 8.36,\n    //     apy: 8.72,\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","gitHead":"aef8ad15a6a45fff003074024b24281fd17259b9","_id":"francium-sdk@1.4.13-beta","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-NigMFss8r1T9mBH0Sb60bHoHKZlJqsFtHZ56K6E2ZT1+GC0oVP7+KyOpT6Mu44dKKsOS/DqoxkINouiaaGKpCg==","shasum":"39b9b1b56d9bbd633c8da64f4277972d90c0bf47","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.4.13-beta.tgz","fileCount":122,"unpackedSize":3007129,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGqZ6Hyf9KmBpOhe/AHFefApZDNeJgSaLvIT2b3+G4SUAiEAwl0D6pY/mix0yHFgq8NWlmkWTxxq3fDjSL2hh+xou1A="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.4.13-beta_1710686583886_0.7040027144952543"},"_hasShrinkwrap":false},"1.4.13-beta2":{"name":"francium-sdk","version":"1.4.13-beta2","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"1.63.1","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"readme":"# Francium SDK\n\nJavascript sdk of Francium lending pools and farming pools. [Learn more about Francium.](https://docs.francium.io/)\n\n[NPM package](https://www.npmjs.com/package/francium-sdk)\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\n// Will fetch the LP price info on chain and return equity value.\nfr.getUserFormattedFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }],\n    //   totalPositionValue: 10,\n    //   debtValue: 6,\n    //   equityValue: 4\n    // }]\n  });\n\n// Only return the amount.\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Farm Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function farm() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getFarmTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      depositPcAmount: new BN(1000000),\n      depositCoinAmount: new BN(0),\n      borrowPcAmount: new BN(1000000),\n      borrowCoinAmount: new BN(0),\n      // Needed when adjust\n      currentUserInfoAccount?: PublicKey\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n```\n\n### Get Farm Versioned Transactions\n```javascript\nasync function oneTxfarm() {\n  // supply 1 USDC, borrow 1 USDC\n  const versionedTrx = await fr.getOneFarmTransaction(\n    'RAY-USDC',\n    'raydium',\n    new PublicKey('23xxxxxxx'),\n    {\n      depositPcAmount: new BN(1000000),\n      depositCoinAmount: new BN(0),\n      borrowPcAmount: new BN(1000000),\n      borrowCoinAmount: new BN(0),\n      // Needed when adjust\n      currentUserInfoAccount?: PublicKey\n    }\n  );\n\n  // If there is Keypair\n  versionedTrx.sign([payer]);\n  fr.connection.sendTransaction(versionedTrx);\n\n  // if the wallet supports Versioned Transaction\n  await fr.sendVersionedTransaction(versionedTrx, wallet);\n}\n```\n### getRepayTransactions\n```\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function getRepayTransactions() {\n  const trxs = await fr.getRepayTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    configs: {\n      amount0: BN;\n      amount1: BN;\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey;\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n```\n\n### Get Close Position Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function close() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getClosePositionTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      // 0: swap to PC token\n      // 1: swap to Coin Token\n      // 2: minimize trading \n      withdrawType: 2,\n\n      // userPosition.lpShares\n      lpShares: BN,\n\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey \n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n\n```\n### Get Farm Close Versioned Transactions\n```javascript\nasync function oneTxClose() {\n  // supply 1 USDC, borrow 1 USDC\n  const versionedTrx = await fr.getOneFarmClosedTransaction(\n    'RAY-USDC',\n    'raydium',\n    new PublicKey('23xxxxxxx'),\n    {\n      // 0: swap to PC token\n      // 1: swap to Coin Token\n      // 2: minimize trading \n      withdrawType: 2,\n\n      // userPosition.lpShares\n      lpShares: BN,\n\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey \n    }\n  );\n\n  // If there is Keypair\n  versionedTrx.sign([payer]);\n  fr.connection.sendTransaction(versionedTrx);\n\n  // if the wallet supports Versioned Transaction\n  await fr.sendVersionedTransaction(versionedTrx, wallet);\n}\n```\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n### Get Farm LP Info\n```javascript\nfr.getFarmLPPriceInfo();\n```\n\n### PDN Rebalance\n```js\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function rebalance() {\n  await fr.sendRebalanceTransactions(\n    new PublicKey('23xxxxxxx'),\n    targetPosition.userInfoPublicKey.toBase58(), // the userInfoPublicKey string of the target positio, which could be accessible from fr.getUserFarmPosition\n    wallet,\n  );\n}\n\n// get rebalance Info\nasync function getRebalanceInfo() {\n  const rebalanceInfo = await fr.getRebalanceInfo(\n    new PublicKey('23xxxxxxx'),\n    targetPosition.userInfoPublicKey.toBase58(), // the userInfoPublicKey string of the target positio, which could be accessible from fr.getUserFarmPosition\n  );\n  console.log('rebalanceInfo: ', rebalanceInfo);\n}\n\n```\n\n\n## Lend\n\n### Get Lending Transaction\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function deposit() {\n  const { trx, signers }  = await fr.getLendingDepositTransaction('USDC', new BN(1000000), new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\nasync function withdraw() {\n  // You can get this value by getUserLendingPosition method\n  const rewardAmount = 1002232;\n  const tokenAmount = 0;\n  const { trx, signers }  = await fr.getLendWithdrawTransaction('USDC', rewardAmount, tokenAmount, new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\n```\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n      // [\n      //   {   \n      //     balancePosition: 0,\n      //     pool: \"USDC\",\n      //     rewardPosition: 41354540149,\n      //     scale: 6,\n      //     totalAmount: 50386.25041249344,\n      //     totalPosition: 41354540149,\n      //   }\n      // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN,\n    //     apr: 8.36,\n    //     apy: 8.72,\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","gitHead":"aef8ad15a6a45fff003074024b24281fd17259b9","_id":"francium-sdk@1.4.13-beta2","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-hEfR+lJt6WHSURM7djzVruZrNJZGjM/BrNfa1/8OGflXDcKJuWLd/jzPjnztJ7p0DWh1siH4PwmCr/IYOXUJsg==","shasum":"2c35b7101ca2216acd9b26d6cc0c5b6f38f2a69a","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.4.13-beta2.tgz","fileCount":122,"unpackedSize":3007749,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHqaSgjh1NEAsY5ljWpnlQexJrsxOo+kQO1/w4J2rFK2AiA34ppU5+ryXZPru7NgX86I8c5w9b+ZCZe2ihX5tS3wfg=="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.4.13-beta2_1710688054975_0.39243991383107946"},"_hasShrinkwrap":false},"1.4.13-beta3":{"name":"francium-sdk","version":"1.4.13-beta3","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"1.63.1","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"readme":"# Francium SDK\n\nJavascript sdk of Francium lending pools and farming pools. [Learn more about Francium.](https://docs.francium.io/)\n\n[NPM package](https://www.npmjs.com/package/francium-sdk)\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\n// Will fetch the LP price info on chain and return equity value.\nfr.getUserFormattedFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }],\n    //   totalPositionValue: 10,\n    //   debtValue: 6,\n    //   equityValue: 4\n    // }]\n  });\n\n// Only return the amount.\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Farm Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function farm() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getFarmTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      depositPcAmount: new BN(1000000),\n      depositCoinAmount: new BN(0),\n      borrowPcAmount: new BN(1000000),\n      borrowCoinAmount: new BN(0),\n      // Needed when adjust\n      currentUserInfoAccount?: PublicKey\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n```\n\n### Get Farm Versioned Transactions\n```javascript\nasync function oneTxfarm() {\n  // supply 1 USDC, borrow 1 USDC\n  const versionedTrx = await fr.getOneFarmTransaction(\n    'RAY-USDC',\n    'raydium',\n    new PublicKey('23xxxxxxx'),\n    {\n      depositPcAmount: new BN(1000000),\n      depositCoinAmount: new BN(0),\n      borrowPcAmount: new BN(1000000),\n      borrowCoinAmount: new BN(0),\n      // Needed when adjust\n      currentUserInfoAccount?: PublicKey\n    }\n  );\n\n  // If there is Keypair\n  versionedTrx.sign([payer]);\n  fr.connection.sendTransaction(versionedTrx);\n\n  // if the wallet supports Versioned Transaction\n  await fr.sendVersionedTransaction(versionedTrx, wallet);\n}\n```\n### getRepayTransactions\n```\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function getRepayTransactions() {\n  const trxs = await fr.getRepayTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    configs: {\n      amount0: BN;\n      amount1: BN;\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey;\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n```\n\n### Get Close Position Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function close() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getClosePositionTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      // 0: swap to PC token\n      // 1: swap to Coin Token\n      // 2: minimize trading \n      withdrawType: 2,\n\n      // userPosition.lpShares\n      lpShares: BN,\n\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey \n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n\n```\n### Get Farm Close Versioned Transactions\n```javascript\nasync function oneTxClose() {\n  // supply 1 USDC, borrow 1 USDC\n  const versionedTrx = await fr.getOneFarmClosedTransaction(\n    'RAY-USDC',\n    'raydium',\n    new PublicKey('23xxxxxxx'),\n    {\n      // 0: swap to PC token\n      // 1: swap to Coin Token\n      // 2: minimize trading \n      withdrawType: 2,\n\n      // userPosition.lpShares\n      lpShares: BN,\n\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey \n    }\n  );\n\n  // If there is Keypair\n  versionedTrx.sign([payer]);\n  fr.connection.sendTransaction(versionedTrx);\n\n  // if the wallet supports Versioned Transaction\n  await fr.sendVersionedTransaction(versionedTrx, wallet);\n}\n```\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n### Get Farm LP Info\n```javascript\nfr.getFarmLPPriceInfo();\n```\n\n### PDN Rebalance\n```js\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function rebalance() {\n  await fr.sendRebalanceTransactions(\n    new PublicKey('23xxxxxxx'),\n    targetPosition.userInfoPublicKey.toBase58(), // the userInfoPublicKey string of the target positio, which could be accessible from fr.getUserFarmPosition\n    wallet,\n  );\n}\n\n// get rebalance Info\nasync function getRebalanceInfo() {\n  const rebalanceInfo = await fr.getRebalanceInfo(\n    new PublicKey('23xxxxxxx'),\n    targetPosition.userInfoPublicKey.toBase58(), // the userInfoPublicKey string of the target positio, which could be accessible from fr.getUserFarmPosition\n  );\n  console.log('rebalanceInfo: ', rebalanceInfo);\n}\n\n```\n\n\n## Lend\n\n### Get Lending Transaction\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function deposit() {\n  const { trx, signers }  = await fr.getLendingDepositTransaction('USDC', new BN(1000000), new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\nasync function withdraw() {\n  // You can get this value by getUserLendingPosition method\n  const rewardAmount = 1002232;\n  const tokenAmount = 0;\n  const { trx, signers }  = await fr.getLendWithdrawTransaction('USDC', rewardAmount, tokenAmount, new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\n```\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n      // [\n      //   {   \n      //     balancePosition: 0,\n      //     pool: \"USDC\",\n      //     rewardPosition: 41354540149,\n      //     scale: 6,\n      //     totalAmount: 50386.25041249344,\n      //     totalPosition: 41354540149,\n      //   }\n      // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN,\n    //     apr: 8.36,\n    //     apy: 8.72,\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","gitHead":"aef8ad15a6a45fff003074024b24281fd17259b9","_id":"francium-sdk@1.4.13-beta3","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-drPqdIyVOoLARJzVdwAigqEeH04C/+CxgYsvNUwrtrzVc/EpGHEn82+NDV8BoS4mNYAHO1fakSoQuCNZ8TkSuQ==","shasum":"b0da3544413470329fa5faeb5288ee3c236e675c","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.4.13-beta3.tgz","fileCount":122,"unpackedSize":3007841,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAfKxaBiEn5Bj+fMQQGmwHI4vxLFXrbRozj5IQXTHSZPAiEAk2giKpmsdbvn+WVxRuU8g6c9WgPTlFAuOp/ZSdZeM0E="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.4.13-beta3_1710691330914_0.4054928844521095"},"_hasShrinkwrap":false},"1.4.14-beta":{"name":"francium-sdk","version":"1.4.14-beta","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"1.63.1","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"readme":"# Francium SDK\n\nJavascript sdk of Francium lending pools and farming pools. [Learn more about Francium.](https://docs.francium.io/)\n\n[NPM package](https://www.npmjs.com/package/francium-sdk)\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\n// Will fetch the LP price info on chain and return equity value.\nfr.getUserFormattedFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }],\n    //   totalPositionValue: 10,\n    //   debtValue: 6,\n    //   equityValue: 4\n    // }]\n  });\n\n// Only return the amount.\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Farm Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function farm() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getFarmTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      depositPcAmount: new BN(1000000),\n      depositCoinAmount: new BN(0),\n      borrowPcAmount: new BN(1000000),\n      borrowCoinAmount: new BN(0),\n      // Needed when adjust\n      currentUserInfoAccount?: PublicKey\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n```\n\n### Get Farm Versioned Transactions\n```javascript\nasync function oneTxfarm() {\n  // supply 1 USDC, borrow 1 USDC\n  const versionedTrx = await fr.getOneFarmTransaction(\n    'RAY-USDC',\n    'raydium',\n    new PublicKey('23xxxxxxx'),\n    {\n      depositPcAmount: new BN(1000000),\n      depositCoinAmount: new BN(0),\n      borrowPcAmount: new BN(1000000),\n      borrowCoinAmount: new BN(0),\n      // Needed when adjust\n      currentUserInfoAccount?: PublicKey\n    }\n  );\n\n  // If there is Keypair\n  versionedTrx.sign([payer]);\n  fr.connection.sendTransaction(versionedTrx);\n\n  // if the wallet supports Versioned Transaction\n  await fr.sendVersionedTransaction(versionedTrx, wallet);\n}\n```\n### getRepayTransactions\n```\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function getRepayTransactions() {\n  const trxs = await fr.getRepayTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    configs: {\n      amount0: BN;\n      amount1: BN;\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey;\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n```\n\n### Get Close Position Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function close() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getClosePositionTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      // 0: swap to PC token\n      // 1: swap to Coin Token\n      // 2: minimize trading \n      withdrawType: 2,\n\n      // userPosition.lpShares\n      lpShares: BN,\n\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey \n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n\n```\n### Get Farm Close Versioned Transactions\n```javascript\nasync function oneTxClose() {\n  // supply 1 USDC, borrow 1 USDC\n  const versionedTrx = await fr.getOneFarmClosedTransaction(\n    'RAY-USDC',\n    'raydium',\n    new PublicKey('23xxxxxxx'),\n    {\n      // 0: swap to PC token\n      // 1: swap to Coin Token\n      // 2: minimize trading \n      withdrawType: 2,\n\n      // userPosition.lpShares\n      lpShares: BN,\n\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey \n    }\n  );\n\n  // If there is Keypair\n  versionedTrx.sign([payer]);\n  fr.connection.sendTransaction(versionedTrx);\n\n  // if the wallet supports Versioned Transaction\n  await fr.sendVersionedTransaction(versionedTrx, wallet);\n}\n```\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n### Get Farm LP Info\n```javascript\nfr.getFarmLPPriceInfo();\n```\n\n### PDN Rebalance\n```js\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function rebalance() {\n  await fr.sendRebalanceTransactions(\n    new PublicKey('23xxxxxxx'),\n    targetPosition.userInfoPublicKey.toBase58(), // the userInfoPublicKey string of the target positio, which could be accessible from fr.getUserFarmPosition\n    wallet,\n  );\n}\n\n// get rebalance Info\nasync function getRebalanceInfo() {\n  const rebalanceInfo = await fr.getRebalanceInfo(\n    new PublicKey('23xxxxxxx'),\n    targetPosition.userInfoPublicKey.toBase58(), // the userInfoPublicKey string of the target positio, which could be accessible from fr.getUserFarmPosition\n  );\n  console.log('rebalanceInfo: ', rebalanceInfo);\n}\n\n```\n\n\n## Lend\n\n### Get Lending Transaction\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function deposit() {\n  const { trx, signers }  = await fr.getLendingDepositTransaction('USDC', new BN(1000000), new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\nasync function withdraw() {\n  // You can get this value by getUserLendingPosition method\n  const rewardAmount = 1002232;\n  const tokenAmount = 0;\n  const { trx, signers }  = await fr.getLendWithdrawTransaction('USDC', rewardAmount, tokenAmount, new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\n```\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n      // [\n      //   {   \n      //     balancePosition: 0,\n      //     pool: \"USDC\",\n      //     rewardPosition: 41354540149,\n      //     scale: 6,\n      //     totalAmount: 50386.25041249344,\n      //     totalPosition: 41354540149,\n      //   }\n      // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN,\n    //     apr: 8.36,\n    //     apy: 8.72,\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","gitHead":"2683d5d9d1f948bda1c987a1ba1698021de51334","_id":"francium-sdk@1.4.14-beta","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-mIdFBPXeBCOYPdxHGb87I6xJEw68ujbzXOMd9rh+7ivEtsN52Z3FTBEZPHr0cmQiIpctuFZbU3GulPnf+QD5gw==","shasum":"388be2c7ca4f451ea46c8cd248d37d6056ca1296","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.4.14-beta.tgz","fileCount":122,"unpackedSize":3049881,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD7UtOxnWHUr1ZCgJvO9MgqLgi0XM8t+E25Pj1nG2G9AAIhAMoaDANlj4w1q3fHTw+7lgYWs8yKvwrkSVTGGnZAo/lZ"}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.4.14-beta_1710808454111_0.2287201413322686"},"_hasShrinkwrap":false},"1.4.14-beta2":{"name":"francium-sdk","version":"1.4.14-beta2","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"1.63.1","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"readme":"# Francium SDK\n\nJavascript sdk of Francium lending pools and farming pools. [Learn more about Francium.](https://docs.francium.io/)\n\n[NPM package](https://www.npmjs.com/package/francium-sdk)\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\n// Will fetch the LP price info on chain and return equity value.\nfr.getUserFormattedFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }],\n    //   totalPositionValue: 10,\n    //   debtValue: 6,\n    //   equityValue: 4\n    // }]\n  });\n\n// Only return the amount.\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Farm Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function farm() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getFarmTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      depositPcAmount: new BN(1000000),\n      depositCoinAmount: new BN(0),\n      borrowPcAmount: new BN(1000000),\n      borrowCoinAmount: new BN(0),\n      // Needed when adjust\n      currentUserInfoAccount?: PublicKey\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n```\n\n### Get Farm Versioned Transactions\n```javascript\nasync function oneTxfarm() {\n  // supply 1 USDC, borrow 1 USDC\n  const versionedTrx = await fr.getOneFarmTransaction(\n    'RAY-USDC',\n    'raydium',\n    new PublicKey('23xxxxxxx'),\n    {\n      depositPcAmount: new BN(1000000),\n      depositCoinAmount: new BN(0),\n      borrowPcAmount: new BN(1000000),\n      borrowCoinAmount: new BN(0),\n      // Needed when adjust\n      currentUserInfoAccount?: PublicKey\n    }\n  );\n\n  // If there is Keypair\n  versionedTrx.sign([payer]);\n  fr.connection.sendTransaction(versionedTrx);\n\n  // if the wallet supports Versioned Transaction\n  await fr.sendVersionedTransaction(versionedTrx, wallet);\n}\n```\n### getRepayTransactions\n```\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function getRepayTransactions() {\n  const trxs = await fr.getRepayTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    configs: {\n      amount0: BN;\n      amount1: BN;\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey;\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n```\n\n### Get Close Position Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function close() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getClosePositionTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      // 0: swap to PC token\n      // 1: swap to Coin Token\n      // 2: minimize trading \n      withdrawType: 2,\n\n      // userPosition.lpShares\n      lpShares: BN,\n\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey \n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n\n```\n### Get Farm Close Versioned Transactions\n```javascript\nasync function oneTxClose() {\n  // supply 1 USDC, borrow 1 USDC\n  const versionedTrx = await fr.getOneFarmClosedTransaction(\n    'RAY-USDC',\n    'raydium',\n    new PublicKey('23xxxxxxx'),\n    {\n      // 0: swap to PC token\n      // 1: swap to Coin Token\n      // 2: minimize trading \n      withdrawType: 2,\n\n      // userPosition.lpShares\n      lpShares: BN,\n\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey \n    }\n  );\n\n  // If there is Keypair\n  versionedTrx.sign([payer]);\n  fr.connection.sendTransaction(versionedTrx);\n\n  // if the wallet supports Versioned Transaction\n  await fr.sendVersionedTransaction(versionedTrx, wallet);\n}\n```\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n### Get Farm LP Info\n```javascript\nfr.getFarmLPPriceInfo();\n```\n\n### PDN Rebalance\n```js\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function rebalance() {\n  await fr.sendRebalanceTransactions(\n    new PublicKey('23xxxxxxx'),\n    targetPosition.userInfoPublicKey.toBase58(), // the userInfoPublicKey string of the target positio, which could be accessible from fr.getUserFarmPosition\n    wallet,\n  );\n}\n\n// get rebalance Info\nasync function getRebalanceInfo() {\n  const rebalanceInfo = await fr.getRebalanceInfo(\n    new PublicKey('23xxxxxxx'),\n    targetPosition.userInfoPublicKey.toBase58(), // the userInfoPublicKey string of the target positio, which could be accessible from fr.getUserFarmPosition\n  );\n  console.log('rebalanceInfo: ', rebalanceInfo);\n}\n\n```\n\n\n## Lend\n\n### Get Lending Transaction\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function deposit() {\n  const { trx, signers }  = await fr.getLendingDepositTransaction('USDC', new BN(1000000), new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\nasync function withdraw() {\n  // You can get this value by getUserLendingPosition method\n  const rewardAmount = 1002232;\n  const tokenAmount = 0;\n  const { trx, signers }  = await fr.getLendWithdrawTransaction('USDC', rewardAmount, tokenAmount, new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\n```\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n      // [\n      //   {   \n      //     balancePosition: 0,\n      //     pool: \"USDC\",\n      //     rewardPosition: 41354540149,\n      //     scale: 6,\n      //     totalAmount: 50386.25041249344,\n      //     totalPosition: 41354540149,\n      //   }\n      // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN,\n    //     apr: 8.36,\n    //     apy: 8.72,\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","gitHead":"1968c430d80d7aa27a6ff4fee558825b96f577eb","_id":"francium-sdk@1.4.14-beta2","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-wBb7WfUkMCDb4nB5m2YfyPpurEPsZ3Z+KLP44dcUHFw0SPpMK4oWUgjt8bkkBuAsjDy/RvqlkiakrQQ6LQooMw==","shasum":"6f412913bb8e3a2b8bdc520880e19c5ee50924c8","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.4.14-beta2.tgz","fileCount":122,"unpackedSize":3049878,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCE+w+VlV+CiUWyi7CgZoisKnoN0yVPSWDUkZHRRP87/gIgAR8CQfWzvLFxwfSkOGPvZADEfPH+/oMimMM9irwxsFg="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.4.14-beta2_1710810952254_0.3834024758608072"},"_hasShrinkwrap":false},"1.4.14-beta3":{"name":"francium-sdk","version":"1.4.14-beta3","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"1.63.1","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"readme":"# Francium SDK\n\nJavascript sdk of Francium lending pools and farming pools. [Learn more about Francium.](https://docs.francium.io/)\n\n[NPM package](https://www.npmjs.com/package/francium-sdk)\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\n// Will fetch the LP price info on chain and return equity value.\nfr.getUserFormattedFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }],\n    //   totalPositionValue: 10,\n    //   debtValue: 6,\n    //   equityValue: 4\n    // }]\n  });\n\n// Only return the amount.\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Farm Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function farm() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getFarmTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      depositPcAmount: new BN(1000000),\n      depositCoinAmount: new BN(0),\n      borrowPcAmount: new BN(1000000),\n      borrowCoinAmount: new BN(0),\n      // Needed when adjust\n      currentUserInfoAccount?: PublicKey\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n```\n\n### Get Farm Versioned Transactions\n```javascript\nasync function oneTxfarm() {\n  // supply 1 USDC, borrow 1 USDC\n  const versionedTrx = await fr.getOneFarmTransaction(\n    'RAY-USDC',\n    'raydium',\n    new PublicKey('23xxxxxxx'),\n    {\n      depositPcAmount: new BN(1000000),\n      depositCoinAmount: new BN(0),\n      borrowPcAmount: new BN(1000000),\n      borrowCoinAmount: new BN(0),\n      // Needed when adjust\n      currentUserInfoAccount?: PublicKey\n    }\n  );\n\n  // If there is Keypair\n  versionedTrx.sign([payer]);\n  fr.connection.sendTransaction(versionedTrx);\n\n  // if the wallet supports Versioned Transaction\n  await fr.sendVersionedTransaction(versionedTrx, wallet);\n}\n```\n### getRepayTransactions\n```\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function getRepayTransactions() {\n  const trxs = await fr.getRepayTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    configs: {\n      amount0: BN;\n      amount1: BN;\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey;\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n```\n\n### Get Close Position Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function close() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getClosePositionTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      // 0: swap to PC token\n      // 1: swap to Coin Token\n      // 2: minimize trading \n      withdrawType: 2,\n\n      // userPosition.lpShares\n      lpShares: BN,\n\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey \n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n\n```\n### Get Farm Close Versioned Transactions\n```javascript\nasync function oneTxClose() {\n  // supply 1 USDC, borrow 1 USDC\n  const versionedTrx = await fr.getOneFarmClosedTransaction(\n    'RAY-USDC',\n    'raydium',\n    new PublicKey('23xxxxxxx'),\n    {\n      // 0: swap to PC token\n      // 1: swap to Coin Token\n      // 2: minimize trading \n      withdrawType: 2,\n\n      // userPosition.lpShares\n      lpShares: BN,\n\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey \n    }\n  );\n\n  // If there is Keypair\n  versionedTrx.sign([payer]);\n  fr.connection.sendTransaction(versionedTrx);\n\n  // if the wallet supports Versioned Transaction\n  await fr.sendVersionedTransaction(versionedTrx, wallet);\n}\n```\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n### Get Farm LP Info\n```javascript\nfr.getFarmLPPriceInfo();\n```\n\n### PDN Rebalance\n```js\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function rebalance() {\n  await fr.sendRebalanceTransactions(\n    new PublicKey('23xxxxxxx'),\n    targetPosition.userInfoPublicKey.toBase58(), // the userInfoPublicKey string of the target positio, which could be accessible from fr.getUserFarmPosition\n    wallet,\n  );\n}\n\n// get rebalance Info\nasync function getRebalanceInfo() {\n  const rebalanceInfo = await fr.getRebalanceInfo(\n    new PublicKey('23xxxxxxx'),\n    targetPosition.userInfoPublicKey.toBase58(), // the userInfoPublicKey string of the target positio, which could be accessible from fr.getUserFarmPosition\n  );\n  console.log('rebalanceInfo: ', rebalanceInfo);\n}\n\n```\n\n\n## Lend\n\n### Get Lending Transaction\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function deposit() {\n  const { trx, signers }  = await fr.getLendingDepositTransaction('USDC', new BN(1000000), new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\nasync function withdraw() {\n  // You can get this value by getUserLendingPosition method\n  const rewardAmount = 1002232;\n  const tokenAmount = 0;\n  const { trx, signers }  = await fr.getLendWithdrawTransaction('USDC', rewardAmount, tokenAmount, new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\n```\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n      // [\n      //   {   \n      //     balancePosition: 0,\n      //     pool: \"USDC\",\n      //     rewardPosition: 41354540149,\n      //     scale: 6,\n      //     totalAmount: 50386.25041249344,\n      //     totalPosition: 41354540149,\n      //   }\n      // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN,\n    //     apr: 8.36,\n    //     apy: 8.72,\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","gitHead":"1968c430d80d7aa27a6ff4fee558825b96f577eb","_id":"francium-sdk@1.4.14-beta3","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-sdbzO+0mmRm0LtYkZmv+pzB5rcRgPubWdVcEb+uWIYpsfAAJiOHoqWwairwaEPb1gMwptcxvcVbUsb2XGHD0tw==","shasum":"92d8b5abbd49928c2f077f0095b37c6f316ff851","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.4.14-beta3.tgz","fileCount":122,"unpackedSize":3049878,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCSnP1B+gmiVOm5QJpv55xd8z+yT775kBQAhAgROpy0lQIgEMV+gO7rUW92vTAmAtFZq0mr829nv8J7u4381VpQAU8="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.4.14-beta3_1710812283831_0.2699881345451072"},"_hasShrinkwrap":false},"1.4.15-beta":{"name":"francium-sdk","version":"1.4.15-beta","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"1.63.1","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"readme":"# Francium SDK\n\nJavascript sdk of Francium lending pools and farming pools. [Learn more about Francium.](https://docs.francium.io/)\n\n[NPM package](https://www.npmjs.com/package/francium-sdk)\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\n// Will fetch the LP price info on chain and return equity value.\nfr.getUserFormattedFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }],\n    //   totalPositionValue: 10,\n    //   debtValue: 6,\n    //   equityValue: 4\n    // }]\n  });\n\n// Only return the amount.\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Farm Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function farm() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getFarmTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      depositPcAmount: new BN(1000000),\n      depositCoinAmount: new BN(0),\n      borrowPcAmount: new BN(1000000),\n      borrowCoinAmount: new BN(0),\n      // Needed when adjust\n      currentUserInfoAccount?: PublicKey\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n```\n\n### Get Farm Versioned Transactions\n```javascript\nasync function oneTxfarm() {\n  // supply 1 USDC, borrow 1 USDC\n  const versionedTrx = await fr.getOneFarmTransaction(\n    'RAY-USDC',\n    'raydium',\n    new PublicKey('23xxxxxxx'),\n    {\n      depositPcAmount: new BN(1000000),\n      depositCoinAmount: new BN(0),\n      borrowPcAmount: new BN(1000000),\n      borrowCoinAmount: new BN(0),\n      // Needed when adjust\n      currentUserInfoAccount?: PublicKey\n    }\n  );\n\n  // If there is Keypair\n  versionedTrx.sign([payer]);\n  fr.connection.sendTransaction(versionedTrx);\n\n  // if the wallet supports Versioned Transaction\n  await fr.sendVersionedTransaction(versionedTrx, wallet);\n}\n```\n### getRepayTransactions\n```\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function getRepayTransactions() {\n  const trxs = await fr.getRepayTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    configs: {\n      amount0: BN;\n      amount1: BN;\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey;\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n```\n\n### Get Close Position Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function close() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getClosePositionTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      // 0: swap to PC token\n      // 1: swap to Coin Token\n      // 2: minimize trading \n      withdrawType: 2,\n\n      // userPosition.lpShares\n      lpShares: BN,\n\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey \n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n\n```\n### Get Farm Close Versioned Transactions\n```javascript\nasync function oneTxClose() {\n  // supply 1 USDC, borrow 1 USDC\n  const versionedTrx = await fr.getOneFarmClosedTransaction(\n    'RAY-USDC',\n    'raydium',\n    new PublicKey('23xxxxxxx'),\n    {\n      // 0: swap to PC token\n      // 1: swap to Coin Token\n      // 2: minimize trading \n      withdrawType: 2,\n\n      // userPosition.lpShares\n      lpShares: BN,\n\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey \n    }\n  );\n\n  // If there is Keypair\n  versionedTrx.sign([payer]);\n  fr.connection.sendTransaction(versionedTrx);\n\n  // if the wallet supports Versioned Transaction\n  await fr.sendVersionedTransaction(versionedTrx, wallet);\n}\n```\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n### Get Farm LP Info\n```javascript\nfr.getFarmLPPriceInfo();\n```\n\n### PDN Rebalance\n```js\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function rebalance() {\n  await fr.sendRebalanceTransactions(\n    new PublicKey('23xxxxxxx'),\n    targetPosition.userInfoPublicKey.toBase58(), // the userInfoPublicKey string of the target positio, which could be accessible from fr.getUserFarmPosition\n    wallet,\n  );\n}\n\n// get rebalance Info\nasync function getRebalanceInfo() {\n  const rebalanceInfo = await fr.getRebalanceInfo(\n    new PublicKey('23xxxxxxx'),\n    targetPosition.userInfoPublicKey.toBase58(), // the userInfoPublicKey string of the target positio, which could be accessible from fr.getUserFarmPosition\n  );\n  console.log('rebalanceInfo: ', rebalanceInfo);\n}\n\n```\n\n\n## Lend\n\n### Get Lending Transaction\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function deposit() {\n  const { trx, signers }  = await fr.getLendingDepositTransaction('USDC', new BN(1000000), new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\nasync function withdraw() {\n  // You can get this value by getUserLendingPosition method\n  const rewardAmount = 1002232;\n  const tokenAmount = 0;\n  const { trx, signers }  = await fr.getLendWithdrawTransaction('USDC', rewardAmount, tokenAmount, new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\n```\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n      // [\n      //   {   \n      //     balancePosition: 0,\n      //     pool: \"USDC\",\n      //     rewardPosition: 41354540149,\n      //     scale: 6,\n      //     totalAmount: 50386.25041249344,\n      //     totalPosition: 41354540149,\n      //   }\n      // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN,\n    //     apr: 8.36,\n    //     apy: 8.72,\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","gitHead":"57e7afd173d249b118d97449337c1f4eb99970e4","_id":"francium-sdk@1.4.15-beta","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-VcVHgdGhflhNl3kdm2xSg3Hn9uzbeVNaqafKXbKvq1ax4/y8hbJsCYxyiIQb6fQhicg0t356I6YXbLPbCJLZPw==","shasum":"d39a9a36d872b63ec9c0b1414fff71c13f09957a","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.4.15-beta.tgz","fileCount":122,"unpackedSize":3134270,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFpjYM1Bb5o/8u+7cftuoS8Yt/visJNZYYnYPTdXDAq+AiEAvzJxUYW/dj9B4mhunUrjcaTBr7y2BLlTH+7c7eo1iWk="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.4.15-beta_1711028911073_0.2605379764377451"},"_hasShrinkwrap":false},"1.4.16-beta":{"name":"francium-sdk","version":"1.4.16-beta","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"1.63.1","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"readme":"# Francium SDK\n\nJavascript sdk of Francium lending pools and farming pools. [Learn more about Francium.](https://docs.francium.io/)\n\n[NPM package](https://www.npmjs.com/package/francium-sdk)\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\n// Will fetch the LP price info on chain and return equity value.\nfr.getUserFormattedFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }],\n    //   totalPositionValue: 10,\n    //   debtValue: 6,\n    //   equityValue: 4\n    // }]\n  });\n\n// Only return the amount.\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Farm Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function farm() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getFarmTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      depositPcAmount: new BN(1000000),\n      depositCoinAmount: new BN(0),\n      borrowPcAmount: new BN(1000000),\n      borrowCoinAmount: new BN(0),\n      // Needed when adjust\n      currentUserInfoAccount?: PublicKey\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n```\n\n### Get Farm Versioned Transactions\n```javascript\nasync function oneTxfarm() {\n  // supply 1 USDC, borrow 1 USDC\n  const versionedTrx = await fr.getOneFarmTransaction(\n    'RAY-USDC',\n    'raydium',\n    new PublicKey('23xxxxxxx'),\n    {\n      depositPcAmount: new BN(1000000),\n      depositCoinAmount: new BN(0),\n      borrowPcAmount: new BN(1000000),\n      borrowCoinAmount: new BN(0),\n      // Needed when adjust\n      currentUserInfoAccount?: PublicKey\n    }\n  );\n\n  // If there is Keypair\n  versionedTrx.sign([payer]);\n  fr.connection.sendTransaction(versionedTrx);\n\n  // if the wallet supports Versioned Transaction\n  await fr.sendVersionedTransaction(versionedTrx, wallet);\n}\n```\n### getRepayTransactions\n```\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function getRepayTransactions() {\n  const trxs = await fr.getRepayTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    configs: {\n      amount0: BN;\n      amount1: BN;\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey;\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n```\n\n### Get Close Position Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function close() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getClosePositionTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      // 0: swap to PC token\n      // 1: swap to Coin Token\n      // 2: minimize trading \n      withdrawType: 2,\n\n      // userPosition.lpShares\n      lpShares: BN,\n\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey \n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n\n```\n### Get Farm Close Versioned Transactions\n```javascript\nasync function oneTxClose() {\n  // supply 1 USDC, borrow 1 USDC\n  const versionedTrx = await fr.getOneFarmClosedTransaction(\n    'RAY-USDC',\n    'raydium',\n    new PublicKey('23xxxxxxx'),\n    {\n      // 0: swap to PC token\n      // 1: swap to Coin Token\n      // 2: minimize trading \n      withdrawType: 2,\n\n      // userPosition.lpShares\n      lpShares: BN,\n\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey \n    }\n  );\n\n  // If there is Keypair\n  versionedTrx.sign([payer]);\n  fr.connection.sendTransaction(versionedTrx);\n\n  // if the wallet supports Versioned Transaction\n  await fr.sendVersionedTransaction(versionedTrx, wallet);\n}\n```\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n### Get Farm LP Info\n```javascript\nfr.getFarmLPPriceInfo();\n```\n\n### PDN Rebalance\n```js\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function rebalance() {\n  await fr.sendRebalanceTransactions(\n    new PublicKey('23xxxxxxx'),\n    targetPosition.userInfoPublicKey.toBase58(), // the userInfoPublicKey string of the target positio, which could be accessible from fr.getUserFarmPosition\n    wallet,\n  );\n}\n\n// get rebalance Info\nasync function getRebalanceInfo() {\n  const rebalanceInfo = await fr.getRebalanceInfo(\n    new PublicKey('23xxxxxxx'),\n    targetPosition.userInfoPublicKey.toBase58(), // the userInfoPublicKey string of the target positio, which could be accessible from fr.getUserFarmPosition\n  );\n  console.log('rebalanceInfo: ', rebalanceInfo);\n}\n\n```\n\n\n## Lend\n\n### Get Lending Transaction\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function deposit() {\n  const { trx, signers }  = await fr.getLendingDepositTransaction('USDC', new BN(1000000), new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\nasync function withdraw() {\n  // You can get this value by getUserLendingPosition method\n  const rewardAmount = 1002232;\n  const tokenAmount = 0;\n  const { trx, signers }  = await fr.getLendWithdrawTransaction('USDC', rewardAmount, tokenAmount, new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\n```\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n      // [\n      //   {   \n      //     balancePosition: 0,\n      //     pool: \"USDC\",\n      //     rewardPosition: 41354540149,\n      //     scale: 6,\n      //     totalAmount: 50386.25041249344,\n      //     totalPosition: 41354540149,\n      //   }\n      // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN,\n    //     apr: 8.36,\n    //     apy: 8.72,\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","gitHead":"473c2a1a8f509a2371793b1f72ab3b21beaf7b02","_id":"francium-sdk@1.4.16-beta","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-HEiZdtrC6L1SsbuAUg2D2yWhFCnUowG/zUO6WVweGrWYSRpaH8N2uYH+cxSZmMQBXKk/FjOYefiMOaX6EiWaPg==","shasum":"5ac43045303a7aa47851ed78ee31103b94b6c06f","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.4.16-beta.tgz","fileCount":122,"unpackedSize":3178116,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICxZRAI1BxNjSSgWDTO3rpPSbrMuVFwM4jwMjH92eLKyAiEA3c6HL56nEQ1xt34v2ZgtQYzn/FAhMT0KFRJJfrWK4TQ="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.4.16-beta_1711621285066_0.532230037155824"},"_hasShrinkwrap":false},"1.4.16":{"name":"francium-sdk","version":"1.4.16","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"1.63.1","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"gitHead":"ad7e84e9e7e031c35f83ad885002398a142c62d9","_id":"francium-sdk@1.4.16","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-UPeIuKhOzrV61wdnRKybdoFGoGcryIEk/4xdGMrn6MX3we63KCsff8t0KtVVsf65TztV4+hNbjAqwjoqsjLvxw==","shasum":"345aefd1cadbbd8b4ee1fee9433bfe7b126b7b4d","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.4.16.tgz","fileCount":122,"unpackedSize":3146214,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDIg1B9+cEuQIDDV+PnFTGjnJuKqTBEhD3Mwu/XxB6fuQIgfAOAfJzHxKM9P2AYvbMt+dFTGKs/jCyEO2samawpc98="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.4.16_1711712971446_0.48657341404570187"},"_hasShrinkwrap":false},"1.4.17-beta":{"name":"francium-sdk","version":"1.4.17-beta","description":"francium sdk","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"node --inspect -r ts-node/register ./test/index.ts","build":"tsc"},"author":"","license":"ISC","dependencies":{"@project-serum/anchor":"0.16.2","@project-serum/borsh":"^0.2.2","@project-serum/serum":"^0.13.60","@solana/spl-token":"^0.1.8","@solana/web3.js":"1.63.1","axios":"^0.24.0","bigint-buffer":"^1.1.5","bn.js":"^5.2.0","bignumber.js":"^9.0.1","lodash":"^4.17.21"},"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.4.4"},"readme":"# Francium SDK\n\nJavascript sdk of Francium lending pools and farming pools. [Learn more about Francium.](https://docs.francium.io/)\n\n[NPM package](https://www.npmjs.com/package/francium-sdk)\n\n## Farm\n\n### Get User Farm Positions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\n\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\n// Will fetch the LP price info on chain and return equity value.\nfr.getUserFormattedFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }],\n    //   totalPositionValue: 10,\n    //   debtValue: 6,\n    //   equityValue: 4\n    // }]\n  });\n\n// Only return the amount.\nfr.getUserFarmPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then(result => {\n    console.log(result);\n    // [{\n    //   id: 'ORCA-USDC[Orca Aquafarm]',\n    //   lpAmount: BN,\n    //   lpShares: BN,\n    //   lpDecimals: 6,\n    //   userInfoPublicKey: PublicKey,\n    //   borrowed: [{\n    //     symbol: 'USDC',\n    //     amount: BN\n    //   }]\n    // }]\n  });\n```\n\n### Get Farm Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function farm() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getFarmTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      depositPcAmount: new BN(1000000),\n      depositCoinAmount: new BN(0),\n      borrowPcAmount: new BN(1000000),\n      borrowCoinAmount: new BN(0),\n      // Needed when adjust\n      currentUserInfoAccount?: PublicKey\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n```\n\n### Get Farm Versioned Transactions\n```javascript\nasync function oneTxfarm() {\n  // supply 1 USDC, borrow 1 USDC\n  const versionedTrx = await fr.getOneFarmTransaction(\n    'RAY-USDC',\n    'raydium',\n    new PublicKey('23xxxxxxx'),\n    {\n      depositPcAmount: new BN(1000000),\n      depositCoinAmount: new BN(0),\n      borrowPcAmount: new BN(1000000),\n      borrowCoinAmount: new BN(0),\n      // Needed when adjust\n      currentUserInfoAccount?: PublicKey\n    }\n  );\n\n  // If there is Keypair\n  versionedTrx.sign([payer]);\n  fr.connection.sendTransaction(versionedTrx);\n\n  // if the wallet supports Versioned Transaction\n  await fr.sendVersionedTransaction(versionedTrx, wallet);\n}\n```\n### getRepayTransactions\n```\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function getRepayTransactions() {\n  const trxs = await fr.getRepayTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    configs: {\n      amount0: BN;\n      amount1: BN;\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey;\n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n```\n\n### Get Close Position Transactions\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function close() {\n  // supply 1 USDC, borrow 1 USDC\n  const trxs = await fr.getClosePositionTransactions(\n    'SHDW-USDC',\n    'orca',\n    new PublicKey('23xxxxxxx'),\n    {\n      // 0: swap to PC token\n      // 1: swap to Coin Token\n      // 2: minimize trading \n      withdrawType: 2,\n\n      // userPosition.lpShares\n      lpShares: BN,\n\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey \n    }\n  );\n\n  // sign and send trxs\n  await fr.sendMultipleTransactions(trxs, wallet);\n}\n\n```\n### Get Farm Close Versioned Transactions\n```javascript\nasync function oneTxClose() {\n  // supply 1 USDC, borrow 1 USDC\n  const versionedTrx = await fr.getOneFarmClosedTransaction(\n    'RAY-USDC',\n    'raydium',\n    new PublicKey('23xxxxxxx'),\n    {\n      // 0: swap to PC token\n      // 1: swap to Coin Token\n      // 2: minimize trading \n      withdrawType: 2,\n\n      // userPosition.lpShares\n      lpShares: BN,\n\n      // userPosition.userInfoPublicKey\n      currentUserInfoAccount: PublicKey \n    }\n  );\n\n  // If there is Keypair\n  versionedTrx.sign([payer]);\n  fr.connection.sendTransaction(versionedTrx);\n\n  // if the wallet supports Versioned Transaction\n  await fr.sendVersionedTransaction(versionedTrx, wallet);\n}\n```\n### Get Pool Info\n```javascript\nasync function getInfo() {\n  const farmPool = await fr.getFarmPoolTVL();\n  const lendingPool = await fr.getLendingPoolTVL();\n}\n\n```\n\n### Get Farm LP Info\n```javascript\nfr.getFarmLPPriceInfo();\n```\n\n### PDN Rebalance\n```js\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function rebalance() {\n  await fr.sendRebalanceTransactions(\n    new PublicKey('23xxxxxxx'),\n    targetPosition.userInfoPublicKey.toBase58(), // the userInfoPublicKey string of the target positio, which could be accessible from fr.getUserFarmPosition\n    wallet,\n  );\n}\n\n// get rebalance Info\nasync function getRebalanceInfo() {\n  const rebalanceInfo = await fr.getRebalanceInfo(\n    new PublicKey('23xxxxxxx'),\n    targetPosition.userInfoPublicKey.toBase58(), // the userInfoPublicKey string of the target positio, which could be accessible from fr.getUserFarmPosition\n  );\n  console.log('rebalanceInfo: ', rebalanceInfo);\n}\n\n```\n\n\n## Lend\n\n### Get Lending Transaction\n```javascript\nimport { Connection, PublicKey } from '@solana/web3.js';\nimport FranciumSDK from 'francium-sdk';\nconst fr = new FranciumSDK({\n  connection: new Connection('https://free.rpcpool.com')\n});\n\nasync function deposit() {\n  const { trx, signers }  = await fr.getLendingDepositTransaction('USDC', new BN(1000000), new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\nasync function withdraw() {\n  // You can get this value by getUserLendingPosition method\n  const rewardAmount = 1002232;\n  const tokenAmount = 0;\n  const { trx, signers }  = await fr.getLendWithdrawTransaction('USDC', rewardAmount, tokenAmount, new PublicKey('23fxxxxxxxxxxxxxxxxxxx'));\n  const { txid, response } = await fr.sendSingleTransaction(trx, wallet, signers);\n  console.log(txid, response);\n}\n\n```\n### Get User Lending Pool\n\nuser lending position, the `totalAmount` is the token amount.\n\n```javascript\nfr.getUserLendingPosition(new PublicKey('23fxxxxxxxxxxxxxxxxxxx'))\n  .then((res) => {\n    console.log(res);\n      // [\n      //   {   \n      //     balancePosition: 0,\n      //     pool: \"USDC\",\n      //     rewardPosition: 41354540149,\n      //     scale: 6,\n      //     totalAmount: 50386.25041249344,\n      //     totalPosition: 41354540149,\n      //   }\n      // ]\n  })\n```\n\n### Get Pool Info\n```javascript\nfr.getLendingPoolInfo()\n  .then((res) => {\n    console.log(res);\n    // [\n    //   {\n    //     pool: 'USDC',\n    //     scale: 6,\n    //     avaliableAmount: BN,\n    //     borrowedAmount: BN,\n    //     totalAmount: BN,\n    //     utilization: 0.9,\n    //     totalShareMintSupply: BN,\n    //     apr: 8.36,\n    //     apy: 8.72,\n    //   }\n    // ]\n  });\n```\n\n\nadd this to your webpack configuration\n```\nnode: {\n  fs: \"empty\",\n  net: \"empty\",\n  tls: \"empty\",\n}\n```","readmeFilename":"README.md","gitHead":"8860c1f56966e2a07dd9eeedd6b3d4d9ac4f8fac","_id":"francium-sdk@1.4.17-beta","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-gBXqNc5DLur1PCA4Uq49prFFlrgcvCy3pibfpzzlmiQeSttx4cYEX5RiygIY+a8V6JDKkYPSB4Bir8KE3NfMOA==","shasum":"51578e796c110a1832fd7f6a4497de957e9ed4e1","tarball":"https://registry.npmjs.org/francium-sdk/-/francium-sdk-1.4.17-beta.tgz","fileCount":122,"unpackedSize":3167350,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAfVLLvvP33xISozvnyf+zRJM3xO2b3MVuy+LLVetT+tAiEA1U6hU2cosMR6keAVahK3zFG1jKQmzq/QTwV3PylQ/dM="}]},"_npmUser":{"name":"francium-io","email":"priscillakyneruab50@gmail.com"},"directories":{},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/francium-sdk_1.4.17-beta_1714302838029_0.7504546777089902"},"_hasShrinkwrap":false}},"time":{"created":"2021-09-15T09:07:27.522Z","0.0.1":"2021-09-15T09:07:27.667Z","modified":"2024-04-28T11:13:58.448Z","0.0.2":"2021-09-15T10:16:53.713Z","0.1.0":"2021-09-15T10:26:03.923Z","0.1.1":"2021-09-15T10:57:23.757Z","0.1.2":"2021-09-16T04:23:23.782Z","0.2.0":"2021-09-16T04:24:47.801Z","1.0.0-beta":"2021-10-08T09:12:41.942Z","1.0.0-beta1":"2021-10-08T09:31:08.769Z","1.1.0":"2021-10-09T07:33:55.178Z","1.1.1":"2021-10-11T06:01:26.463Z","1.1.2":"2021-10-11T10:02:47.632Z","1.1.3":"2021-10-12T09:29:53.134Z","1.2.0":"2021-10-16T09:16:27.771Z","1.2.1":"2021-10-16T09:26:23.592Z","1.2.2":"2021-10-20T08:58:37.178Z","1.2.3":"2021-10-22T05:52:30.350Z","1.2.4":"2021-10-23T07:29:59.966Z","1.2.5":"2021-10-25T09:05:46.398Z","1.2.6-beta":"2021-10-27T11:31:30.609Z","1.2.6":"2021-10-28T06:39:11.830Z","1.2.7-beta":"2021-11-03T03:57:33.798Z","1.2.7-beta2":"2021-11-03T07:18:03.252Z","1.2.7":"2021-11-03T07:59:57.681Z","1.2.8-beta":"2021-11-03T10:02:33.484Z","1.2.8":"2021-11-05T08:48:45.773Z","1.2.9-beta":"2021-11-06T06:27:11.622Z","1.2.9-beta2":"2021-11-06T08:41:50.345Z","1.2.10-beta":"2021-11-09T04:34:20.392Z","1.2.10":"2021-11-09T06:33:24.017Z","1.2.11-beta":"2021-11-09T09:59:01.102Z","1.2.11-beta2":"2021-11-09T10:33:24.005Z","1.2.12-beta":"2021-11-10T04:14:49.085Z","1.2.12":"2021-11-10T05:32:19.630Z","1.2.13-beta":"2021-11-10T11:28:13.351Z","1.2.14-beta":"2021-11-12T03:48:04.579Z","1.2.14-beta2":"2021-11-12T04:28:45.145Z","1.2.14-beta3":"2021-11-12T06:25:32.327Z","1.2.14":"2021-11-12T08:29:42.781Z","1.2.14-beta4":"2021-11-13T07:39:58.467Z","1.2.15-beta":"2021-11-16T05:27:00.722Z","1.2.15-beta2":"2021-11-16T05:43:33.563Z","1.2.15":"2021-11-17T02:03:21.572Z","1.2.16-beta":"2021-11-17T06:41:23.394Z","1.2.16-beta2":"2021-11-17T08:26:32.226Z","1.2.16":"2021-11-17T15:03:30.187Z","1.2.17-beta":"2021-11-18T08:44:54.137Z","1.2.17-beta2":"2021-11-19T09:27:46.124Z","1.2.17-beta3":"2021-11-19T09:32:24.520Z","1.2.18-beta":"2021-11-20T08:35:20.444Z","1.2.18-beta2":"2021-11-20T08:57:57.663Z","1.2.18":"2021-11-20T09:20:43.615Z","1.2.19-beta":"2021-11-23T05:32:18.164Z","1.2.19-beta2":"2021-11-23T05:39:44.252Z","1.2.19":"2021-11-23T06:28:58.024Z","1.2.20-beta":"2021-11-25T04:08:47.465Z","1.2.20":"2021-11-25T04:44:47.577Z","1.2.21":"2021-11-25T04:47:00.694Z","1.2.22":"2021-11-25T04:47:17.982Z","1.2.23-beta":"2021-11-26T04:04:02.717Z","1.2.23":"2021-11-26T08:15:42.262Z","1.2.24-beta":"2021-12-01T06:10:17.494Z","1.2.24-beta2":"2021-12-01T06:10:34.632Z","1.2.24":"2021-12-01T06:57:45.504Z","1.2.25-beta":"2021-12-06T03:56:01.158Z","1.2.25":"2021-12-06T08:42:11.098Z","1.2.26-beta":"2021-12-07T05:44:30.428Z","1.2.26":"2021-12-10T06:35:30.393Z","1.2.27":"2021-12-10T06:40:45.714Z","1.2.28-beta":"2021-12-11T12:28:50.106Z","1.2.28":"2021-12-11T14:47:43.661Z","1.2.29-beta":"2021-12-13T09:11:57.532Z","1.2.29":"2021-12-15T08:37:26.905Z","1.2.30":"2021-12-16T07:22:41.563Z","1.2.31-beta":"2021-12-17T06:56:26.534Z","1.2.31-beta2":"2021-12-23T08:33:00.510Z","1.3.0":"2021-12-24T06:07:06.388Z","1.3.1-beta":"2021-12-29T04:23:08.630Z","1.3.1":"2021-12-30T03:13:01.388Z","1.3.2":"2021-12-30T05:05:32.433Z","1.3.3-beta":"2021-12-31T09:11:54.079Z","1.3.3":"2021-12-31T09:33:19.866Z","1.3.4-beta":"2022-01-05T04:10:49.768Z","1.3.4":"2022-01-05T05:39:29.286Z","1.3.5":"2022-01-11T07:17:27.816Z","1.3.6-beta":"2022-01-14T09:05:27.315Z","1.3.6":"2022-01-14T09:26:03.943Z","1.3.7":"2022-01-14T15:41:15.011Z","1.3.8":"2022-01-14T16:28:26.211Z","1.3.9":"2022-01-25T07:33:55.638Z","1.3.9-beta":"2022-01-28T09:05:08.727Z","1.3.10":"2022-01-30T14:30:49.541Z","1.3.11":"2022-01-30T14:41:17.365Z","1.3.12":"2022-02-09T09:34:43.323Z","1.3.13":"2022-02-23T09:31:52.959Z","1.3.14-beta":"2022-02-23T09:51:37.434Z","1.3.14":"2022-02-25T06:44:30.747Z","1.3.15-beta":"2022-03-13T02:13:52.275Z","1.3.15-beta2":"2022-03-13T06:06:31.074Z","1.3.15":"2022-03-14T06:08:18.058Z","1.3.16-beta":"2022-03-17T08:08:14.243Z","1.3.16":"2022-03-17T08:10:02.245Z","1.3.17-beta2":"2022-03-31T07:25:38.976Z","1.3.17":"2022-03-31T09:45:44.908Z","1.3.18":"2022-03-31T09:49:07.671Z","1.3.19":"2022-03-31T09:53:28.284Z","1.3.20":"2022-03-31T10:02:11.942Z","1.3.21-beta":"2022-04-01T06:50:32.619Z","1.3.21-beta2":"2022-04-01T10:01:16.612Z","1.3.22-beta":"2022-04-15T09:23:01.059Z","1.3.22":"2022-04-16T06:41:59.704Z","1.3.23-beta":"2022-04-27T03:05:27.316Z","1.3.23":"2022-04-27T06:27:31.867Z","1.3.24":"2022-04-27T06:50:09.464Z","1.3.25":"2022-05-04T12:07:52.425Z","1.3.26-beta":"2022-05-07T11:45:00.808Z","1.3.26":"2022-05-07T12:35:31.947Z","1.3.27":"2022-05-19T07:38:57.601Z","1.3.28-beta":"2022-05-20T11:26:39.961Z","1.3.28":"2022-05-22T10:51:05.733Z","1.3.29-beta":"2022-06-02T02:56:07.580Z","1.3.29-beta2":"2022-06-02T03:08:15.974Z","1.3.29":"2022-06-06T09:02:06.591Z","1.3.30":"2022-06-16T02:51:25.845Z","1.3.31":"2022-06-16T06:18:46.949Z","1.3.32":"2022-06-17T01:52:30.541Z","1.3.33":"2022-06-29T09:59:58.892Z","1.3.34":"2022-07-01T10:08:51.823Z","1.3.35":"2022-07-21T06:05:26.357Z","1.3.36":"2022-07-28T08:40:56.221Z","1.3.37":"2022-07-28T09:52:19.694Z","1.3.38":"2022-08-04T09:36:37.384Z","1.3.39":"2022-08-08T01:57:10.297Z","1.3.40":"2022-08-08T08:58:26.099Z","1.3.41":"2022-08-19T09:55:11.338Z","1.3.42":"2022-09-14T03:16:00.327Z","1.3.43-beta":"2022-09-26T07:48:52.172Z","1.3.43-beta2":"2022-09-26T07:58:52.640Z","1.3.43":"2022-09-27T09:05:28.524Z","1.3.44":"2022-09-27T09:11:08.926Z","1.3.45":"2022-09-30T08:58:48.119Z","1.3.46":"2022-10-05T01:34:48.622Z","1.3.47":"2022-10-06T07:06:16.116Z","1.4.0":"2022-10-19T06:51:37.981Z","1.4.1":"2022-10-25T06:26:15.616Z","1.4.2":"2022-10-27T08:54:37.370Z","1.4.3":"2022-11-22T02:29:03.015Z","1.4.4":"2023-01-20T05:49:06.709Z","1.4.5":"2023-02-01T03:03:24.182Z","1.4.6":"2023-12-10T07:31:20.152Z","1.4.7":"2023-12-10T07:39:20.475Z","1.4.8":"2023-12-10T07:53:09.101Z","1.4.9-beta":"2024-01-02T12:29:42.643Z","1.4.9-beta2":"2024-01-02T15:00:16.159Z","1.4.9-beta3":"2024-01-03T04:41:32.115Z","1.4.9":"2024-01-08T05:26:21.666Z","1.4.10-beta":"2024-01-10T15:37:58.333Z","1.4.11-beta":"2024-01-22T01:38:43.479Z","1.4.11-beta2":"2024-01-22T03:36:29.202Z","1.4.11-beta3":"2024-01-22T08:44:28.865Z","1.4.11-beta4":"2024-01-23T11:15:34.524Z","1.4.11-beta5":"2024-01-23T13:48:16.546Z","1.4.11-beta6":"2024-01-23T13:53:14.441Z","1.4.11-beta7":"2024-01-23T13:55:29.040Z","1.4.11-beta8":"2024-01-23T13:56:32.033Z","1.4.11-beta9":"2024-01-23T14:00:35.783Z","1.4.11":"2024-02-02T12:12:11.800Z","1.4.12-beta":"2024-03-15T16:14:26.051Z","1.4.12":"2024-03-17T14:15:09.748Z","1.4.13-beta":"2024-03-17T14:43:04.151Z","1.4.13-beta2":"2024-03-17T15:07:35.183Z","1.4.13-beta3":"2024-03-17T16:02:11.204Z","1.4.14-beta":"2024-03-19T00:34:14.339Z","1.4.14-beta2":"2024-03-19T01:15:52.562Z","1.4.14-beta3":"2024-03-19T01:38:04.288Z","1.4.15-beta":"2024-03-21T13:48:31.288Z","1.4.16-beta":"2024-03-28T10:21:25.328Z","1.4.16":"2024-03-29T11:49:31.674Z","1.4.17-beta":"2024-04-28T11:13:58.253Z"},"maintainers":[{"name":"francium-io","email":"priscillakyneruab50@gmail.com"}],"description":"francium sdk","license":"ISC","readme":"","readmeFilename":""}