Skip to content

Commit

Permalink
feat: stata-v2
Browse files Browse the repository at this point in the history
  • Loading branch information
sakulstra committed Dec 11, 2024
1 parent e4536d5 commit 8b1442e
Show file tree
Hide file tree
Showing 16 changed files with 2,578 additions and 19 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"dependencies": {
"@0x/utils": "^4.5.2",
"@balancer-labs/sor": "4.1.1-beta.4",
"@bgd-labs/aave-address-book": "2.21.1",
"@bgd-labs/aave-address-book": "4.7.0",
"@ethersproject/abi": "^5.7.0",
"@hashflow/sdk": "^2.2.7",
"@hashflow/taker-js": "^0.3.7",
Expand Down
131 changes: 131 additions & 0 deletions src/abi/aavev3statav2/Factory.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
[
{
"inputs": [
{ "internalType": "contract IPool", "name": "pool", "type": "address" },
{ "internalType": "address", "name": "proxyAdmin", "type": "address" },
{
"internalType": "contract ITransparentProxyFactory",
"name": "transparentProxyFactory",
"type": "address"
},
{ "internalType": "address", "name": "stataTokenImpl", "type": "address" }
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [
{ "internalType": "address", "name": "underlying", "type": "address" }
],
"name": "NotListedUnderlying",
"type": "error"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint8",
"name": "version",
"type": "uint8"
}
],
"name": "Initialized",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "stataToken",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "underlying",
"type": "address"
}
],
"name": "StataTokenCreated",
"type": "event"
},
{
"inputs": [],
"name": "POOL",
"outputs": [
{ "internalType": "contract IPool", "name": "", "type": "address" }
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "PROXY_ADMIN",
"outputs": [{ "internalType": "address", "name": "", "type": "address" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "STATA_TOKEN_IMPL",
"outputs": [{ "internalType": "address", "name": "", "type": "address" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "TRANSPARENT_PROXY_FACTORY",
"outputs": [
{
"internalType": "contract ITransparentProxyFactory",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address[]",
"name": "underlyings",
"type": "address[]"
}
],
"name": "createStataTokens",
"outputs": [
{ "internalType": "address[]", "name": "", "type": "address[]" }
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{ "internalType": "address", "name": "underlying", "type": "address" }
],
"name": "getStataToken",
"outputs": [{ "internalType": "address", "name": "", "type": "address" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getStataTokens",
"outputs": [
{ "internalType": "address[]", "name": "", "type": "address[]" }
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "initialize",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]
Loading

0 comments on commit 8b1442e

Please sign in to comment.