@reflexer-finance/geb-contract-api
Advanced tools
Comparing version 0.0.21 to 0.0.22
@@ -1,2 +0,2 @@ | ||
import { AccountingEngine, TaxCollector, LiquidationEngine, OracleRelayer, GlobalSettlement, DebtAuctionHouse, PreSettlementSurplusAuctionHouse, PostSettlementSurplusAuctionHouse, SettlementSurplusAuctioneer, Coin, GebSafeManager, GetSafes, BasicCollateralJoin, CoinJoin, GebProxyRegistry, EnglishCollateralAuctionHouse, FixedDiscountCollateralAuctionHouse, DsToken, Weth9, SafeEngine, ChainlinkMedianEthusd, UniswapConsecutiveSlotsMedianRaiusd, DsValue, Osm } from '.'; | ||
import { AccountingEngine, TaxCollector, LiquidationEngine, OracleRelayer, GlobalSettlement, DebtAuctionHouse, PreSettlementSurplusAuctionHouse, Coin, GebSafeManager, GetSafes, BasicCollateralJoin, CoinJoin, GebProxyRegistry, EnglishCollateralAuctionHouse, FixedDiscountCollateralAuctionHouse, DsToken, Weth9, SafeEngine, ChainlinkMedianEthusd, UniswapConsecutiveSlotsMedianRaiusd, DsValue, Osm } from '.'; | ||
import { GebProviderInterface, GebDeployment } from '@reflexer-finance/geb-contract-base'; | ||
@@ -13,4 +13,2 @@ export declare class ContractApis { | ||
preSettlementSurplusAuctionHouse: PreSettlementSurplusAuctionHouse; | ||
postSettlementSurplusAuctionHouse: PostSettlementSurplusAuctionHouse; | ||
settlementSurplusAuctioneer: SettlementSurplusAuctioneer; | ||
safeManager: GebSafeManager; | ||
@@ -17,0 +15,0 @@ getSafes: GetSafes; |
@@ -21,4 +21,2 @@ "use strict"; | ||
this.preSettlementSurplusAuctionHouse = new _1.PreSettlementSurplusAuctionHouse(addressList.GEB_PRE_SETTLEMENT_SURPLUS_AUCTION_HOUSE, this.chainProvider); | ||
this.postSettlementSurplusAuctionHouse = new _1.PostSettlementSurplusAuctionHouse(addressList.GEB_POST_SETTLEMENT_SURPLUS_AUCTION_HOUSE, this.chainProvider); | ||
this.settlementSurplusAuctioneer = new _1.SettlementSurplusAuctioneer(addressList.GEB_SETTLEMENT_SURPLUS_AUCTIONEER, this.chainProvider); | ||
this.safeManager = new _1.GebSafeManager(addressList.SAFE_MANAGER, this.chainProvider); | ||
@@ -25,0 +23,0 @@ this.getSafes = new _1.GetSafes(addressList.GET_SAFES, this.chainProvider); |
@@ -50,4 +50,33 @@ import { BaseContractAPI } from '@reflexer-finance/geb-contract-base'; | ||
forgoneCollateralReceiver(id: BigNumberish, multicall: true): MulticallRequest<string>; | ||
getApproximateCollateralBought(id: BigNumberish, wad: BigNumberish): Promise<{ | ||
0: BigNumber; | ||
1: BigNumber; | ||
}>; | ||
getApproximateCollateralBought(id: BigNumberish, wad: BigNumberish, multicall: true): MulticallRequest<{ | ||
0: BigNumber; | ||
1: BigNumber; | ||
}>; | ||
getCollateralBought(id: BigNumberish, wad: BigNumberish): TransactionRequest; | ||
getDiscountedCollateralPrice(collateralFsmPriceFeedValue: BigNumberish, collateralMedianPriceFeedValue: BigNumberish, systemCoinPriceFeedValue: BigNumberish, customDiscount: BigNumberish): TransactionRequest; | ||
getCollateralMedianPrice(): Promise<BigNumber>; | ||
getCollateralMedianPrice(multicall: true): MulticallRequest<BigNumber>; | ||
getDiscountedCollateralPrice(collateralFsmPriceFeedValue: BigNumberish, collateralMedianPriceFeedValue: BigNumberish, systemCoinPriceFeedValue: BigNumberish, customDiscount: BigNumberish): Promise<BigNumber>; | ||
getDiscountedCollateralPrice(collateralFsmPriceFeedValue: BigNumberish, collateralMedianPriceFeedValue: BigNumberish, systemCoinPriceFeedValue: BigNumberish, customDiscount: BigNumberish, multicall: true): MulticallRequest<BigNumber>; | ||
getFinalBaseCollateralPrice(collateralFsmPriceFeedValue: BigNumberish, collateralMedianPriceFeedValue: BigNumberish): Promise<BigNumber>; | ||
getFinalBaseCollateralPrice(collateralFsmPriceFeedValue: BigNumberish, collateralMedianPriceFeedValue: BigNumberish, multicall: true): MulticallRequest<BigNumber>; | ||
getFinalTokenPrices(systemCoinRedemptionPrice: BigNumberish): Promise<{ | ||
0: BigNumber; | ||
1: BigNumber; | ||
}>; | ||
getFinalTokenPrices(systemCoinRedemptionPrice: BigNumberish, multicall: true): MulticallRequest<{ | ||
0: BigNumber; | ||
1: BigNumber; | ||
}>; | ||
getSystemCoinCeilingDeviatedPrice(redemptionPrice: BigNumberish): Promise<BigNumber>; | ||
getSystemCoinCeilingDeviatedPrice(redemptionPrice: BigNumberish, multicall: true): MulticallRequest<BigNumber>; | ||
getSystemCoinFloorDeviatedPrice(redemptionPrice: BigNumberish): Promise<BigNumber>; | ||
getSystemCoinFloorDeviatedPrice(redemptionPrice: BigNumberish, multicall: true): MulticallRequest<BigNumber>; | ||
getSystemCoinMarketPrice(): Promise<BigNumber>; | ||
getSystemCoinMarketPrice(multicall: true): MulticallRequest<BigNumber>; | ||
lastReadRedemptionPrice(): Promise<BigNumber>; | ||
lastReadRedemptionPrice(multicall: true): MulticallRequest<BigNumber>; | ||
liquidationEngine(): Promise<string>; | ||
@@ -54,0 +83,0 @@ liquidationEngine(multicall: true): MulticallRequest<string>; |
@@ -109,2 +109,8 @@ "use strict"; | ||
}; | ||
FixedDiscountCollateralAuctionHouse.prototype.getApproximateCollateralBought = function (id, wad, multicall) { | ||
// prettier-ignore | ||
// @ts-ignore | ||
var abi = { "inputs": [{ "internalType": "uint256", "name": "id", "type": "uint256" }, { "internalType": "uint256", "name": "wad", "type": "uint256" }], "name": "getApproximateCollateralBought", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }; | ||
return this.ethCallOrMulticall(abi, [id, wad], multicall); | ||
}; | ||
FixedDiscountCollateralAuctionHouse.prototype.getCollateralBought = function (id, wad) { | ||
@@ -116,7 +122,13 @@ // prettier-ignore | ||
}; | ||
FixedDiscountCollateralAuctionHouse.prototype.getDiscountedCollateralPrice = function (collateralFsmPriceFeedValue, collateralMedianPriceFeedValue, systemCoinPriceFeedValue, customDiscount) { | ||
FixedDiscountCollateralAuctionHouse.prototype.getCollateralMedianPrice = function (multicall) { | ||
// prettier-ignore | ||
// @ts-ignore | ||
var abi = { "inputs": [{ "internalType": "uint256", "name": "collateralFsmPriceFeedValue", "type": "uint256" }, { "internalType": "uint256", "name": "collateralMedianPriceFeedValue", "type": "uint256" }, { "internalType": "uint256", "name": "systemCoinPriceFeedValue", "type": "uint256" }, { "internalType": "uint256", "name": "customDiscount", "type": "uint256" }], "name": "getDiscountedCollateralPrice", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "nonpayable", "type": "function" }; | ||
return this.getTransactionRequest(abi, [ | ||
var abi = { "inputs": [], "name": "getCollateralMedianPrice", "outputs": [{ "internalType": "uint256", "name": "priceFeed", "type": "uint256" }], "stateMutability": "view", "type": "function" }; | ||
return this.ethCallOrMulticall(abi, [], multicall); | ||
}; | ||
FixedDiscountCollateralAuctionHouse.prototype.getDiscountedCollateralPrice = function (collateralFsmPriceFeedValue, collateralMedianPriceFeedValue, systemCoinPriceFeedValue, customDiscount, multicall) { | ||
// prettier-ignore | ||
// @ts-ignore | ||
var abi = { "inputs": [{ "internalType": "uint256", "name": "collateralFsmPriceFeedValue", "type": "uint256" }, { "internalType": "uint256", "name": "collateralMedianPriceFeedValue", "type": "uint256" }, { "internalType": "uint256", "name": "systemCoinPriceFeedValue", "type": "uint256" }, { "internalType": "uint256", "name": "customDiscount", "type": "uint256" }], "name": "getDiscountedCollateralPrice", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }; | ||
return this.ethCallOrMulticall(abi, [ | ||
collateralFsmPriceFeedValue, | ||
@@ -126,4 +138,40 @@ collateralMedianPriceFeedValue, | ||
customDiscount, | ||
]); | ||
], multicall); | ||
}; | ||
FixedDiscountCollateralAuctionHouse.prototype.getFinalBaseCollateralPrice = function (collateralFsmPriceFeedValue, collateralMedianPriceFeedValue, multicall) { | ||
// prettier-ignore | ||
// @ts-ignore | ||
var abi = { "inputs": [{ "internalType": "uint256", "name": "collateralFsmPriceFeedValue", "type": "uint256" }, { "internalType": "uint256", "name": "collateralMedianPriceFeedValue", "type": "uint256" }], "name": "getFinalBaseCollateralPrice", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }; | ||
return this.ethCallOrMulticall(abi, [collateralFsmPriceFeedValue, collateralMedianPriceFeedValue], multicall); | ||
}; | ||
FixedDiscountCollateralAuctionHouse.prototype.getFinalTokenPrices = function (systemCoinRedemptionPrice, multicall) { | ||
// prettier-ignore | ||
// @ts-ignore | ||
var abi = { "inputs": [{ "internalType": "uint256", "name": "systemCoinRedemptionPrice", "type": "uint256" }], "name": "getFinalTokenPrices", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }; | ||
return this.ethCallOrMulticall(abi, [systemCoinRedemptionPrice], multicall); | ||
}; | ||
FixedDiscountCollateralAuctionHouse.prototype.getSystemCoinCeilingDeviatedPrice = function (redemptionPrice, multicall) { | ||
// prettier-ignore | ||
// @ts-ignore | ||
var abi = { "inputs": [{ "internalType": "uint256", "name": "redemptionPrice", "type": "uint256" }], "name": "getSystemCoinCeilingDeviatedPrice", "outputs": [{ "internalType": "uint256", "name": "ceilingPrice", "type": "uint256" }], "stateMutability": "view", "type": "function" }; | ||
return this.ethCallOrMulticall(abi, [redemptionPrice], multicall); | ||
}; | ||
FixedDiscountCollateralAuctionHouse.prototype.getSystemCoinFloorDeviatedPrice = function (redemptionPrice, multicall) { | ||
// prettier-ignore | ||
// @ts-ignore | ||
var abi = { "inputs": [{ "internalType": "uint256", "name": "redemptionPrice", "type": "uint256" }], "name": "getSystemCoinFloorDeviatedPrice", "outputs": [{ "internalType": "uint256", "name": "floorPrice", "type": "uint256" }], "stateMutability": "view", "type": "function" }; | ||
return this.ethCallOrMulticall(abi, [redemptionPrice], multicall); | ||
}; | ||
FixedDiscountCollateralAuctionHouse.prototype.getSystemCoinMarketPrice = function (multicall) { | ||
// prettier-ignore | ||
// @ts-ignore | ||
var abi = { "inputs": [], "name": "getSystemCoinMarketPrice", "outputs": [{ "internalType": "uint256", "name": "priceFeed", "type": "uint256" }], "stateMutability": "view", "type": "function" }; | ||
return this.ethCallOrMulticall(abi, [], multicall); | ||
}; | ||
FixedDiscountCollateralAuctionHouse.prototype.lastReadRedemptionPrice = function (multicall) { | ||
// prettier-ignore | ||
// @ts-ignore | ||
var abi = { "inputs": [], "name": "lastReadRedemptionPrice", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }; | ||
return this.ethCallOrMulticall(abi, [], multicall); | ||
}; | ||
FixedDiscountCollateralAuctionHouse.prototype.liquidationEngine = function (multicall) { | ||
@@ -130,0 +178,0 @@ // prettier-ignore |
@@ -17,6 +17,4 @@ import { AccountingEngine } from './generated/AccountingEngine'; | ||
import { OracleRelayer } from './generated/OracleRelayer'; | ||
import { PostSettlementSurplusAuctionHouse } from './generated/PostSettlementSurplusAuctionHouse'; | ||
import { PreSettlementSurplusAuctionHouse } from './generated/PreSettlementSurplusAuctionHouse'; | ||
import { SafeEngine } from './generated/SAFEEngine'; | ||
import { SettlementSurplusAuctioneer } from './generated/SettlementSurplusAuctioneer'; | ||
import { StabilityFeeTreasury } from './generated/StabilityFeeTreasury'; | ||
@@ -35,2 +33,2 @@ import { TaxCollector } from './generated/TaxCollector'; | ||
import { Weth9 } from './generated/WETH9_'; | ||
export { ContractApis, AccountingEngine, BasicCollateralJoin, CoinJoin, CoinSavingsAccount, Coin, DebtAuctionHouse, DsProxy, EnglishCollateralAuctionHouse, EthJoin, FixedDiscountCollateralAuctionHouse, GebProxyRegistry, GebSafeManager, GetSafes, GlobalSettlement, LiquidationEngine, OracleRelayer, PostSettlementSurplusAuctionHouse, PreSettlementSurplusAuctionHouse, SafeEngine, SettlementSurplusAuctioneer, StabilityFeeTreasury, TaxCollector, GebProxyActions, GebProxyActionsGlobalSettlement, Multicall, DsToken, Erc20, Osm, DsValue, ChainlinkMedianEthusd, UniswapConsecutiveSlotsMedianRaiusd, Weth9, }; | ||
export { ContractApis, AccountingEngine, BasicCollateralJoin, CoinJoin, CoinSavingsAccount, Coin, DebtAuctionHouse, DsProxy, EnglishCollateralAuctionHouse, EthJoin, FixedDiscountCollateralAuctionHouse, GebProxyRegistry, GebSafeManager, GetSafes, GlobalSettlement, LiquidationEngine, OracleRelayer, PreSettlementSurplusAuctionHouse, SafeEngine, StabilityFeeTreasury, TaxCollector, GebProxyActions, GebProxyActionsGlobalSettlement, Multicall, DsToken, Erc20, Osm, DsValue, ChainlinkMedianEthusd, UniswapConsecutiveSlotsMedianRaiusd, Weth9, }; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Weth9 = exports.UniswapConsecutiveSlotsMedianRaiusd = exports.ChainlinkMedianEthusd = exports.DsValue = exports.Osm = exports.Erc20 = exports.DsToken = exports.Multicall = exports.GebProxyActionsGlobalSettlement = exports.GebProxyActions = exports.TaxCollector = exports.StabilityFeeTreasury = exports.SettlementSurplusAuctioneer = exports.SafeEngine = exports.PreSettlementSurplusAuctionHouse = exports.PostSettlementSurplusAuctionHouse = exports.OracleRelayer = exports.LiquidationEngine = exports.GlobalSettlement = exports.GetSafes = exports.GebSafeManager = exports.GebProxyRegistry = exports.FixedDiscountCollateralAuctionHouse = exports.EthJoin = exports.EnglishCollateralAuctionHouse = exports.DsProxy = exports.DebtAuctionHouse = exports.Coin = exports.CoinSavingsAccount = exports.CoinJoin = exports.BasicCollateralJoin = exports.AccountingEngine = exports.ContractApis = void 0; | ||
exports.Weth9 = exports.UniswapConsecutiveSlotsMedianRaiusd = exports.ChainlinkMedianEthusd = exports.DsValue = exports.Osm = exports.Erc20 = exports.DsToken = exports.Multicall = exports.GebProxyActionsGlobalSettlement = exports.GebProxyActions = exports.TaxCollector = exports.StabilityFeeTreasury = exports.SafeEngine = exports.PreSettlementSurplusAuctionHouse = exports.OracleRelayer = exports.LiquidationEngine = exports.GlobalSettlement = exports.GetSafes = exports.GebSafeManager = exports.GebProxyRegistry = exports.FixedDiscountCollateralAuctionHouse = exports.EthJoin = exports.EnglishCollateralAuctionHouse = exports.DsProxy = exports.DebtAuctionHouse = exports.Coin = exports.CoinSavingsAccount = exports.CoinJoin = exports.BasicCollateralJoin = exports.AccountingEngine = exports.ContractApis = void 0; | ||
var AccountingEngine_1 = require("./generated/AccountingEngine"); | ||
@@ -36,4 +36,2 @@ Object.defineProperty(exports, "AccountingEngine", { enumerable: true, get: function () { return AccountingEngine_1.AccountingEngine; } }); | ||
Object.defineProperty(exports, "OracleRelayer", { enumerable: true, get: function () { return OracleRelayer_1.OracleRelayer; } }); | ||
var PostSettlementSurplusAuctionHouse_1 = require("./generated/PostSettlementSurplusAuctionHouse"); | ||
Object.defineProperty(exports, "PostSettlementSurplusAuctionHouse", { enumerable: true, get: function () { return PostSettlementSurplusAuctionHouse_1.PostSettlementSurplusAuctionHouse; } }); | ||
var PreSettlementSurplusAuctionHouse_1 = require("./generated/PreSettlementSurplusAuctionHouse"); | ||
@@ -43,4 +41,2 @@ Object.defineProperty(exports, "PreSettlementSurplusAuctionHouse", { enumerable: true, get: function () { return PreSettlementSurplusAuctionHouse_1.PreSettlementSurplusAuctionHouse; } }); | ||
Object.defineProperty(exports, "SafeEngine", { enumerable: true, get: function () { return SAFEEngine_1.SafeEngine; } }); | ||
var SettlementSurplusAuctioneer_1 = require("./generated/SettlementSurplusAuctioneer"); | ||
Object.defineProperty(exports, "SettlementSurplusAuctioneer", { enumerable: true, get: function () { return SettlementSurplusAuctioneer_1.SettlementSurplusAuctioneer; } }); | ||
var StabilityFeeTreasury_1 = require("./generated/StabilityFeeTreasury"); | ||
@@ -47,0 +43,0 @@ Object.defineProperty(exports, "StabilityFeeTreasury", { enumerable: true, get: function () { return StabilityFeeTreasury_1.StabilityFeeTreasury; } }); |
{ | ||
"name": "@reflexer-finance/geb-contract-api", | ||
"version": "0.0.21", | ||
"version": "0.0.22", | ||
"description": "", | ||
@@ -13,3 +13,3 @@ "main": "./lib/index.js", | ||
"@ethersproject/bignumber": "5.x", | ||
"@reflexer-finance/geb-contract-base": "^0.0.13" | ||
"@reflexer-finance/geb-contract-base": "^0.0.14" | ||
}, | ||
@@ -20,3 +20,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "2a802464508a4278872feb11e01a90d862e6cf37" | ||
"gitHead": "baa1394687b693658b2d8658e45385b789835756" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
506179
7985
+ Added@reflexer-finance/geb-contract-base@0.0.14(transitive)
- Removed@reflexer-finance/geb-contract-base@0.0.13(transitive)