Skip to content

Commit

Permalink
Merge pull request #48 from BuiltByMom/feat/update-lender-helper-abi
Browse files Browse the repository at this point in the history
Feat/update lender helper abi
  • Loading branch information
imbaniac authored Feb 16, 2024
2 parents c6d861e + e6ddc75 commit 4b202b7
Show file tree
Hide file tree
Showing 5 changed files with 170 additions and 251 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '3.7'

services:
ajna-testnet:
image: ghcr.io/builtbymom/ajna-testnet:rc10
image: ghcr.io/builtbymom/ajna-testnet:v0.1.0.rc10
ports:
- 8555:8555
container_name: ajna-testnet-sdk
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@ajna-finance/sdk",
"description": "A typescript SDK that can be used to create Dapps in Ajna ecosystem.",
"version": "0.4.0",
"version": "0.4.1",
"repository": {
"type": "git",
"url": "https://github.com/ajna-finance/sdk.git"
Expand Down
198 changes: 53 additions & 145 deletions src/abis/AjnaLenderHelper.json
Original file line number Diff line number Diff line change
@@ -1,176 +1,84 @@
[
{
"inputs": [],
"name": "BucketIndexOutOfBounds",
"type": "error"
},
{
"inputs": [],
"name": "InsufficientLP",
"type": "error"
"type": "function",
"name": "addQuoteToken",
"inputs": [
{ "name": "pool_", "type": "address", "internalType": "address" },
{ "name": "maxAmount_", "type": "uint256", "internalType": "uint256" },
{ "name": "index_", "type": "uint256", "internalType": "uint256" },
{ "name": "expiry_", "type": "uint256", "internalType": "uint256" }
],
"outputs": [
{ "name": "bucketLP_", "type": "uint256", "internalType": "uint256" },
{ "name": "addedAmount_", "type": "uint256", "internalType": "uint256" }
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "moveQuoteToken",
"inputs": [
{ "name": "pool_", "type": "address", "internalType": "address" },
{ "name": "maxAmount_", "type": "uint256", "internalType": "uint256" },
{ "name": "fromIndex_", "type": "uint256", "internalType": "uint256" },
{ "name": "toIndex_", "type": "uint256", "internalType": "uint256" },
{ "name": "expiry_", "type": "uint256", "internalType": "uint256" }
],
"outputs": [
{
"internalType": "int256",
"name": "x",
"type": "int256"
}
"name": "fromBucketRedeemedLP_",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "toBucketAwardedLP_",
"type": "uint256",
"internalType": "uint256"
},
{ "name": "movedAmount_", "type": "uint256", "internalType": "uint256" }
],
"stateMutability": "nonpayable"
},
{ "type": "error", "name": "BucketIndexOutOfBounds", "inputs": [] },
{ "type": "error", "name": "InsufficientLP", "inputs": [] },
{
"type": "error",
"name": "PRBMathSD59x18__Exp2InputTooBig",
"type": "error"
"inputs": [{ "name": "x", "type": "int256", "internalType": "int256" }]
},
{
"inputs": [
{
"internalType": "int256",
"name": "x",
"type": "int256"
}
],
"type": "error",
"name": "PRBMathSD59x18__FromIntOverflow",
"type": "error"
"inputs": [{ "name": "x", "type": "int256", "internalType": "int256" }]
},
{
"inputs": [
{
"internalType": "int256",
"name": "x",
"type": "int256"
}
],
"type": "error",
"name": "PRBMathSD59x18__FromIntUnderflow",
"type": "error"
"inputs": [{ "name": "x", "type": "int256", "internalType": "int256" }]
},
{
"inputs": [
{
"internalType": "int256",
"name": "x",
"type": "int256"
}
],
"type": "error",
"name": "PRBMathSD59x18__LogInputTooSmall",
"type": "error"
"inputs": [{ "name": "x", "type": "int256", "internalType": "int256" }]
},
{
"inputs": [],
"type": "error",
"name": "PRBMathSD59x18__MulInputTooSmall",
"type": "error"
"inputs": []
},
{
"inputs": [
{
"internalType": "uint256",
"name": "rAbs",
"type": "uint256"
}
],
"type": "error",
"name": "PRBMathSD59x18__MulOverflow",
"type": "error"
"inputs": [{ "name": "rAbs", "type": "uint256", "internalType": "uint256" }]
},
{
"inputs": [
{
"internalType": "uint256",
"name": "prod1",
"type": "uint256"
}
],
"type": "error",
"name": "PRBMath__MulDivFixedPointOverflow",
"type": "error"
"inputs": [{ "name": "prod1", "type": "uint256", "internalType": "uint256" }]
},
{
"inputs": [],
"type": "error",
"name": "RoundedAmountExceededRequestedMaximum",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "pool_",
"type": "address"
},
{
"internalType": "uint256",
"name": "maxAmount_",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "index_",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "expiry_",
"type": "uint256"
}
],
"name": "addQuoteToken",
"outputs": [
{
"internalType": "uint256",
"name": "bucketLP_",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "addedAmount_",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "pool_",
"type": "address"
},
{
"internalType": "uint256",
"name": "maxAmount_",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "fromIndex_",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "toIndex_",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "expiry_",
"type": "uint256"
}
],
"name": "moveQuoteToken",
"outputs": [
{
"internalType": "uint256",
"name": "fromBucketRedeemedLP_",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "toBucketAwardedLP_",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "movedAmount_",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
"inputs": []
}
]
Loading

0 comments on commit 4b202b7

Please sign in to comment.