Skip to content

Commit

Permalink
feat: Bump moon-api and moon-sdk versions; add PoolAddressProvider an…
Browse files Browse the repository at this point in the history
…d Pooladdressproviderregistry routes
  • Loading branch information
ewhal committed Sep 23, 2024
1 parent 67b6298 commit 3129a80
Show file tree
Hide file tree
Showing 14 changed files with 2,471 additions and 16 deletions.
2 changes: 1 addition & 1 deletion packages/moon-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@moonup/moon-api",
"version": "0.0.38",
"version": "0.0.40",
"type": "commonjs",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
Expand Down
8 changes: 4 additions & 4 deletions packages/moon-api/src/lib/LendingPool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import {
BorrowResult,
DepositResult,
FlashLoanData,
GetAddressesProviderData,
GetAddressesProviderParams,
GetAddressesProviderParams2,
GetAddressesProviderResult,
GetFlashLoanPremiumTotalData,
GetFlashLoanPremiumTotalParams,
GetLendingPoolRevisionData,
Expand Down Expand Up @@ -121,10 +121,10 @@ export class LendingPool<SecurityDataType = unknown> {
* @secure
*/
getAddressesProvider = (
query: GetAddressesProviderParams,
query: GetAddressesProviderParams2,
params: RequestParams = {}
) =>
this.http.request<GetAddressesProviderData, any>({
this.http.request<GetAddressesProviderResult, any>({
path: `/lending-pool/addresses-provider`,
method: 'GET',
query: query,
Expand Down
4 changes: 2 additions & 2 deletions packages/moon-api/src/lib/LendingPoolRoute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
BorrowResult,
DepositResult,
FlashLoanData,
GetAddressesProviderData,
GetAddressesProviderResult,
GetFlashLoanPremiumTotalData,
GetLendingPoolRevisionData,
GetMaxNumberReservesData,
Expand Down Expand Up @@ -104,7 +104,7 @@ export namespace LendingPool {
export type RequestHeaders = {
Authorization: string;
};
export type ResponseBody = GetAddressesProviderData;
export type ResponseBody = GetAddressesProviderResult;
}

/**
Expand Down
8 changes: 4 additions & 4 deletions packages/moon-api/src/lib/Leverager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import {
DeleverageErc20Data,
DeleverageNativeData,
ExecuteOperationData,
GetAddressesProviderParams2,
GetAddressesProviderResult,
GetAddressesProviderOutput,
GetAddressesProviderParams4,
GetDefaultAdminRoleData,
GetDefaultAdminRoleParams,
GetLendingPoolData,
Expand Down Expand Up @@ -124,10 +124,10 @@ export class Leverager<SecurityDataType = unknown> {
* @secure
*/
getAddressesProvider = (
query: GetAddressesProviderParams2,
query: GetAddressesProviderParams4,
params: RequestParams = {}
) =>
this.http.request<GetAddressesProviderResult, any>({
this.http.request<GetAddressesProviderOutput, any>({
path: `/leverager/addresses-provider`,
method: 'GET',
query: query,
Expand Down
4 changes: 2 additions & 2 deletions packages/moon-api/src/lib/LeveragerRoute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
DeleverageErc20Data,
DeleverageNativeData,
ExecuteOperationData,
GetAddressesProviderResult,
GetAddressesProviderOutput,
GetDefaultAdminRoleData,
GetLendingPoolData,
GetMinHfData,
Expand Down Expand Up @@ -107,7 +107,7 @@ export namespace Leverager {
export type RequestHeaders = {
Authorization: string;
};
export type ResponseBody = GetAddressesProviderResult;
export type ResponseBody = GetAddressesProviderOutput;
}

/**
Expand Down
Loading

0 comments on commit 3129a80

Please sign in to comment.