Skip to content

Commit

Permalink
Add Ironclad plugin (#105)
Browse files Browse the repository at this point in the history
* Add Ironclad.plugin.ts

* Add abis

* Add IronClad.service.ts and revamp parameters.ts

* Remove CtorParams, add index.ts

* Add monitor loop position

* Fix Looped Deposit function

* Fix LoopedWithdraw function

* Test borrowiUSD

* Add borrowerInteractions contract support

* Fix borrow iUSD and monitor iUSD position

* Fix repay iUSD

* Remove console.logs

* Revert changes of example file

* Change params according to PR comments

* Change function names to be imperative

* Re-Install and re-generate pnpm lock file

* Fix a bug in repay iUSD

* Update version

* Break borrow iUSD into separate steps

* Fix all Ironclad functions, removing extra approve calls

* Revert changes in mode example

* Pnpm fix

* Fix lint

* Add changeset

---------

Co-authored-by: Agustin Armellini Fischer <[email protected]>
  • Loading branch information
sunosuporno and 0xaguspunk authored Jan 2, 2025
1 parent 34596ce commit dfd5a63
Show file tree
Hide file tree
Showing 19 changed files with 8,726 additions and 135 deletions.
4 changes: 4 additions & 0 deletions goat.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@
"name": "[Plugin] 🐦‍🔥 renzo",
"path": "./typescript/packages/plugins/renzo"
},
{
"name": "[Plugin] 🗿 ironclad",
"path": "./typescript/packages/plugins/ironclad"
},
{
"name": "[Plugin] 🦄 uniswap",
"path": "./typescript/packages/plugins/uniswap"
Expand Down
5 changes: 5 additions & 0 deletions typescript/.changeset/smooth-boxes-doubt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@goat-sdk/plugin-ironclad": patch
---

Release plugin
34 changes: 34 additions & 0 deletions typescript/packages/plugins/ironclad/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"name": "@goat-sdk/plugin-ironclad",
"version": "0.1.0",
"files": ["dist/**/*", "README.md", "package.json"],
"scripts": {
"build": "tsup",
"clean": "rm -rf dist",
"test": "vitest run --passWithNoTests"
},
"sideEffects": false,
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"dependencies": {
"@goat-sdk/core": "workspace:*",
"@goat-sdk/wallet-evm": "workspace:*",
"viem": "catalog:",
"zod": "catalog:"
},
"peerDependencies": {
"@goat-sdk/core": "workspace:*",
"viem": "catalog:"
},
"homepage": "https://ohmygoat.dev",
"repository": {
"type": "git",
"url": "git+https://github.com/goat-sdk/goat.git"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/goat-sdk/goat/issues"
},
"keywords": ["ai", "agents", "web3", "defi", "lending"]
}
Loading

0 comments on commit dfd5a63

Please sign in to comment.