@reflexer-finance/geb-contract-api
Advanced tools
Comparing version 1.1.24 to 1.1.25
@@ -1,2 +0,2 @@ | ||
import { AccountingEngine, TaxCollector, LiquidationEngine, OracleRelayer, GlobalSettlement, DebtAuctionHouse, Coin, GebSafeManager, GetSafes, BasicCollateralJoin, CoinJoin, GebProxyRegistry, FixedDiscountCollateralAuctionHouse, Weth9, SafeEngine, ChainlinkRelayer, UniswapConsecutiveSlotsMedianRaiusd, Osm, StabilityFeeTreasury, DsDelegateToken, StakingRewardsFactory, UniswapV2Pair, BurningSurplusAuctionHouse, UniswapLiquidityManagerLike, NativeUnderlyingUniswapSafeSaviour, SaviourCRatioSetter, UniswapV3Pool, GebUniswapV3TwoTrancheManager, GebLenderFirstResort, StakedTokenAuctionHouse, DsDelegateTokenNoTransfer, StakingRewardsEscrow } from '.'; | ||
import { AccountingEngine, TaxCollector, LiquidationEngine, OracleRelayer, GlobalSettlement, DebtAuctionHouse, Coin, GebSafeManager, GetSafes, BasicCollateralJoin, CoinJoin, GebProxyRegistry, FixedDiscountCollateralAuctionHouse, Weth9, SafeEngine, ChainlinkRelayer, UniswapConsecutiveSlotsMedianRaiusd, Osm, StabilityFeeTreasury, DsDelegateToken, StakingRewardsFactory, UniswapV2Pair, BurningSurplusAuctionHouse, UniswapLiquidityManagerLike, NativeUnderlyingUniswapSafeSaviour, SaviourCRatioSetter, UniswapV3Pool, GebUniswapV3TwoTrancheManager, GebLenderFirstResort, StakedTokenAuctionHouse, DsDelegateTokenNoTransfer, StakingRewardsEscrow, CurveV1MaxSafeSaviour } from '.'; | ||
import { GebProviderInterface, GebDeployment } from '@reflexer-finance/geb-contract-base'; | ||
@@ -36,2 +36,3 @@ import { PiRateSetter } from './generated/PIRateSetter'; | ||
coinNativeUniswapSaviour: NativeUnderlyingUniswapSafeSaviour; | ||
curveV1MaxSafeSaviour: CurveV1MaxSafeSaviour; | ||
saviourCRatioSetter: SaviourCRatioSetter; | ||
@@ -38,0 +39,0 @@ saviourUniswapLiquidityManager: UniswapLiquidityManagerLike; |
@@ -44,2 +44,3 @@ "use strict"; | ||
this.coinNativeUniswapSaviour = new _1.NativeUnderlyingUniswapSafeSaviour(addressList.GEB_COIN_ETH_UNISWAP_V2_POOL_SAVIOUR, this.chainProvider); | ||
this.curveV1MaxSafeSaviour = new _1.CurveV1MaxSafeSaviour(addressList.GEB_COIN_CURVE_V1_MAX_SAVIOUR, this.chainProvider); | ||
this.saviourCRatioSetter = new _1.SaviourCRatioSetter(addressList.GEB_SAVIOUR_CRATIO_SETTER, this.chainProvider); | ||
@@ -46,0 +47,0 @@ this.saviourUniswapLiquidityManager = new _1.UniswapLiquidityManagerLike(addressList.GEB_UNISWAP_SAVIOUR_LIQUIDITY_MANAGER, this.chainProvider); |
@@ -5,3 +5,2 @@ import { BaseContractAPI } from '@reflexer-finance/geb-contract-base'; | ||
import { BytesLike } from '@ethersproject/bytes'; | ||
import { BigNumberish } from '@ethersproject/bignumber'; | ||
import { BigNumber } from '@ethersproject/bignumber'; | ||
@@ -23,53 +22,4 @@ export declare class NativeUnderlyingUniswapSafeSaviour extends BaseContractAPI { | ||
WAD_COMPLEMENT(multicall: true): MulticallRequest<BigNumber>; | ||
addAuthorization(account: string): TransactionRequest; | ||
allowUser(usr: string): TransactionRequest; | ||
allowedUsers(address: string): Promise<BigNumber>; | ||
allowedUsers(address: string, multicall: true): MulticallRequest<BigNumber>; | ||
authorizedAccounts(address: string): Promise<BigNumber>; | ||
authorizedAccounts(address: string, multicall: true): MulticallRequest<BigNumber>; | ||
cRatioSetter(): Promise<string>; | ||
cRatioSetter(multicall: true): MulticallRequest<string>; | ||
canSave(bytes: BytesLike, safeHandler: string): TransactionRequest; | ||
coinJoin(): Promise<string>; | ||
coinJoin(multicall: true): MulticallRequest<string>; | ||
collateralJoin(): Promise<string>; | ||
collateralJoin(multicall: true): MulticallRequest<string>; | ||
collateralToken(): Promise<string>; | ||
collateralToken(multicall: true): MulticallRequest<string>; | ||
deposit(safeID: BigNumberish, lpTokenAmount: BigNumberish): TransactionRequest; | ||
disallowUser(usr: string): TransactionRequest; | ||
getCollateralPrice(): Promise<BigNumber>; | ||
getCollateralPrice(multicall: true): MulticallRequest<BigNumber>; | ||
getKeeperPayoutTokens(safeHandler: string, redemptionPrice: BigNumberish, safeDebtRepaid: BigNumberish, safeCollateralAdded: BigNumberish): Promise<{ | ||
0: BigNumber; | ||
1: BigNumber; | ||
}>; | ||
getKeeperPayoutTokens(safeHandler: string, redemptionPrice: BigNumberish, safeDebtRepaid: BigNumberish, safeCollateralAdded: BigNumberish, multicall: true): MulticallRequest<{ | ||
0: BigNumber; | ||
1: BigNumber; | ||
}>; | ||
canSave(bytes: BytesLike, address: string): TransactionRequest; | ||
getKeeperPayoutValue(): TransactionRequest; | ||
getLPUnderlying(safeHandler: string): Promise<{ | ||
0: BigNumber; | ||
1: BigNumber; | ||
}>; | ||
getLPUnderlying(safeHandler: string, multicall: true): MulticallRequest<{ | ||
0: BigNumber; | ||
1: BigNumber; | ||
}>; | ||
getReserves(safeID: BigNumberish, dst: string): TransactionRequest; | ||
getSystemCoinMarketPrice(): Promise<BigNumber>; | ||
getSystemCoinMarketPrice(multicall: true): MulticallRequest<BigNumber>; | ||
getTargetCRatio(safeHandler: string): Promise<BigNumber>; | ||
getTargetCRatio(safeHandler: string, multicall: true): MulticallRequest<BigNumber>; | ||
getTokensForSaving(safeHandler: string, redemptionPrice: BigNumberish): Promise<{ | ||
0: BigNumber; | ||
1: BigNumber; | ||
}>; | ||
getTokensForSaving(safeHandler: string, redemptionPrice: BigNumberish, multicall: true): MulticallRequest<{ | ||
0: BigNumber; | ||
1: BigNumber; | ||
}>; | ||
isSystemCoinToken0(): Promise<boolean>; | ||
isSystemCoinToken0(multicall: true): MulticallRequest<boolean>; | ||
keeperPayout(): Promise<BigNumber>; | ||
@@ -80,12 +30,4 @@ keeperPayout(multicall: true): MulticallRequest<BigNumber>; | ||
liquidationEngine(multicall: true): MulticallRequest<string>; | ||
liquidityManager(): Promise<string>; | ||
liquidityManager(multicall: true): MulticallRequest<string>; | ||
lpToken(): Promise<string>; | ||
lpToken(multicall: true): MulticallRequest<string>; | ||
lpTokenCover(address: string): Promise<BigNumber>; | ||
lpTokenCover(address: string, multicall: true): MulticallRequest<BigNumber>; | ||
minKeeperPayoutValue(): Promise<BigNumber>; | ||
minKeeperPayoutValue(multicall: true): MulticallRequest<BigNumber>; | ||
modifyParameters__Bytes32Address(parameter: BytesLike, data: string): TransactionRequest; | ||
modifyParameters__Bytes32Uint256(parameter: BytesLike, val: BigNumberish): TransactionRequest; | ||
oracleRelayer(): Promise<string>; | ||
@@ -95,5 +37,2 @@ oracleRelayer(multicall: true): MulticallRequest<string>; | ||
payoutToSAFESize(multicall: true): MulticallRequest<BigNumber>; | ||
removeAuthorization(account: string): TransactionRequest; | ||
restrictUsage(): Promise<BigNumber>; | ||
restrictUsage(multicall: true): MulticallRequest<BigNumber>; | ||
safeEngine(): Promise<string>; | ||
@@ -103,19 +42,8 @@ safeEngine(multicall: true): MulticallRequest<string>; | ||
safeManager(multicall: true): MulticallRequest<string>; | ||
saveSAFE(keeper: string, collateralType: BytesLike, safeHandler: string): TransactionRequest; | ||
saveSAFE(address1: string, bytes: BytesLike, address2: string): TransactionRequest; | ||
saviourRegistry(): Promise<string>; | ||
saviourRegistry(multicall: true): MulticallRequest<string>; | ||
systemCoin(): Promise<string>; | ||
systemCoin(multicall: true): MulticallRequest<string>; | ||
systemCoinOrcl(): Promise<string>; | ||
systemCoinOrcl(multicall: true): MulticallRequest<string>; | ||
tokenAmountUsedToSave(bytes: BytesLike, safeHandler: string): TransactionRequest; | ||
underlyingReserves(address: string): Promise<{ | ||
systemCoins: BigNumber; | ||
collateralCoins: BigNumber; | ||
}>; | ||
underlyingReserves(address: string, multicall: true): MulticallRequest<{ | ||
systemCoins: BigNumber; | ||
collateralCoins: BigNumber; | ||
}>; | ||
withdraw(safeID: BigNumberish, lpTokenAmount: BigNumberish, dst: string): TransactionRequest; | ||
taxCollector(): Promise<string>; | ||
taxCollector(multicall: true): MulticallRequest<string>; | ||
tokenAmountUsedToSave(bytes: BytesLike, address: string): TransactionRequest; | ||
} |
@@ -67,80 +67,8 @@ "use strict"; | ||
}; | ||
NativeUnderlyingUniswapSafeSaviour.prototype.addAuthorization = function (account) { | ||
NativeUnderlyingUniswapSafeSaviour.prototype.canSave = function (bytes, address) { | ||
// prettier-ignore | ||
// @ts-ignore | ||
var abi = { "inputs": [{ "internalType": "address", "name": "account", "type": "address" }], "name": "addAuthorization", "outputs": [], "stateMutability": "nonpayable", "type": "function" }; | ||
return this.getTransactionRequest(abi, [account]); | ||
var abi = { "inputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }, { "internalType": "address", "name": "", "type": "address" }], "name": "canSave", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "nonpayable", "type": "function" }; | ||
return this.getTransactionRequest(abi, [bytes, address]); | ||
}; | ||
NativeUnderlyingUniswapSafeSaviour.prototype.allowUser = function (usr) { | ||
// prettier-ignore | ||
// @ts-ignore | ||
var abi = { "inputs": [{ "internalType": "address", "name": "usr", "type": "address" }], "name": "allowUser", "outputs": [], "stateMutability": "nonpayable", "type": "function" }; | ||
return this.getTransactionRequest(abi, [usr]); | ||
}; | ||
NativeUnderlyingUniswapSafeSaviour.prototype.allowedUsers = function (address, multicall) { | ||
// prettier-ignore | ||
// @ts-ignore | ||
var abi = { "inputs": [{ "internalType": "address", "name": "", "type": "address" }], "name": "allowedUsers", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }; | ||
return this.ethCallOrMulticall(abi, [address], multicall); | ||
}; | ||
NativeUnderlyingUniswapSafeSaviour.prototype.authorizedAccounts = function (address, multicall) { | ||
// prettier-ignore | ||
// @ts-ignore | ||
var abi = { "inputs": [{ "internalType": "address", "name": "", "type": "address" }], "name": "authorizedAccounts", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }; | ||
return this.ethCallOrMulticall(abi, [address], multicall); | ||
}; | ||
NativeUnderlyingUniswapSafeSaviour.prototype.cRatioSetter = function (multicall) { | ||
// prettier-ignore | ||
// @ts-ignore | ||
var abi = { "inputs": [], "name": "cRatioSetter", "outputs": [{ "internalType": "contract SaviourCRatioSetterLike", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }; | ||
return this.ethCallOrMulticall(abi, [], multicall); | ||
}; | ||
NativeUnderlyingUniswapSafeSaviour.prototype.canSave = function (bytes, safeHandler) { | ||
// prettier-ignore | ||
// @ts-ignore | ||
var abi = { "inputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }, { "internalType": "address", "name": "safeHandler", "type": "address" }], "name": "canSave", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "nonpayable", "type": "function" }; | ||
return this.getTransactionRequest(abi, [bytes, safeHandler]); | ||
}; | ||
NativeUnderlyingUniswapSafeSaviour.prototype.coinJoin = function (multicall) { | ||
// prettier-ignore | ||
// @ts-ignore | ||
var abi = { "inputs": [], "name": "coinJoin", "outputs": [{ "internalType": "contract CoinJoinLike", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }; | ||
return this.ethCallOrMulticall(abi, [], multicall); | ||
}; | ||
NativeUnderlyingUniswapSafeSaviour.prototype.collateralJoin = function (multicall) { | ||
// prettier-ignore | ||
// @ts-ignore | ||
var abi = { "inputs": [], "name": "collateralJoin", "outputs": [{ "internalType": "contract CollateralJoinLike", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }; | ||
return this.ethCallOrMulticall(abi, [], multicall); | ||
}; | ||
NativeUnderlyingUniswapSafeSaviour.prototype.collateralToken = function (multicall) { | ||
// prettier-ignore | ||
// @ts-ignore | ||
var abi = { "inputs": [], "name": "collateralToken", "outputs": [{ "internalType": "contract ERC20Like", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }; | ||
return this.ethCallOrMulticall(abi, [], multicall); | ||
}; | ||
NativeUnderlyingUniswapSafeSaviour.prototype.deposit = function (safeID, lpTokenAmount) { | ||
// prettier-ignore | ||
// @ts-ignore | ||
var abi = { "inputs": [{ "internalType": "uint256", "name": "safeID", "type": "uint256" }, { "internalType": "uint256", "name": "lpTokenAmount", "type": "uint256" }], "name": "deposit", "outputs": [], "stateMutability": "nonpayable", "type": "function" }; | ||
return this.getTransactionRequest(abi, [safeID, lpTokenAmount]); | ||
}; | ||
NativeUnderlyingUniswapSafeSaviour.prototype.disallowUser = function (usr) { | ||
// prettier-ignore | ||
// @ts-ignore | ||
var abi = { "inputs": [{ "internalType": "address", "name": "usr", "type": "address" }], "name": "disallowUser", "outputs": [], "stateMutability": "nonpayable", "type": "function" }; | ||
return this.getTransactionRequest(abi, [usr]); | ||
}; | ||
NativeUnderlyingUniswapSafeSaviour.prototype.getCollateralPrice = function (multicall) { | ||
// prettier-ignore | ||
// @ts-ignore | ||
var abi = { "inputs": [], "name": "getCollateralPrice", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }; | ||
return this.ethCallOrMulticall(abi, [], multicall); | ||
}; | ||
NativeUnderlyingUniswapSafeSaviour.prototype.getKeeperPayoutTokens = function (safeHandler, redemptionPrice, safeDebtRepaid, safeCollateralAdded, multicall) { | ||
// prettier-ignore | ||
// @ts-ignore | ||
var abi = { "inputs": [{ "internalType": "address", "name": "safeHandler", "type": "address" }, { "internalType": "uint256", "name": "redemptionPrice", "type": "uint256" }, { "internalType": "uint256", "name": "safeDebtRepaid", "type": "uint256" }, { "internalType": "uint256", "name": "safeCollateralAdded", "type": "uint256" }], "name": "getKeeperPayoutTokens", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }; | ||
return this.ethCallOrMulticall(abi, [safeHandler, redemptionPrice, safeDebtRepaid, safeCollateralAdded], multicall); | ||
}; | ||
NativeUnderlyingUniswapSafeSaviour.prototype.getKeeperPayoutValue = function () { | ||
@@ -152,38 +80,2 @@ // prettier-ignore | ||
}; | ||
NativeUnderlyingUniswapSafeSaviour.prototype.getLPUnderlying = function (safeHandler, multicall) { | ||
// prettier-ignore | ||
// @ts-ignore | ||
var abi = { "inputs": [{ "internalType": "address", "name": "safeHandler", "type": "address" }], "name": "getLPUnderlying", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }; | ||
return this.ethCallOrMulticall(abi, [safeHandler], multicall); | ||
}; | ||
NativeUnderlyingUniswapSafeSaviour.prototype.getReserves = function (safeID, dst) { | ||
// prettier-ignore | ||
// @ts-ignore | ||
var abi = { "inputs": [{ "internalType": "uint256", "name": "safeID", "type": "uint256" }, { "internalType": "address", "name": "dst", "type": "address" }], "name": "getReserves", "outputs": [], "stateMutability": "nonpayable", "type": "function" }; | ||
return this.getTransactionRequest(abi, [safeID, dst]); | ||
}; | ||
NativeUnderlyingUniswapSafeSaviour.prototype.getSystemCoinMarketPrice = function (multicall) { | ||
// prettier-ignore | ||
// @ts-ignore | ||
var abi = { "inputs": [], "name": "getSystemCoinMarketPrice", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }; | ||
return this.ethCallOrMulticall(abi, [], multicall); | ||
}; | ||
NativeUnderlyingUniswapSafeSaviour.prototype.getTargetCRatio = function (safeHandler, multicall) { | ||
// prettier-ignore | ||
// @ts-ignore | ||
var abi = { "inputs": [{ "internalType": "address", "name": "safeHandler", "type": "address" }], "name": "getTargetCRatio", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }; | ||
return this.ethCallOrMulticall(abi, [safeHandler], multicall); | ||
}; | ||
NativeUnderlyingUniswapSafeSaviour.prototype.getTokensForSaving = function (safeHandler, redemptionPrice, multicall) { | ||
// prettier-ignore | ||
// @ts-ignore | ||
var abi = { "inputs": [{ "internalType": "address", "name": "safeHandler", "type": "address" }, { "internalType": "uint256", "name": "redemptionPrice", "type": "uint256" }], "name": "getTokensForSaving", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }; | ||
return this.ethCallOrMulticall(abi, [safeHandler, redemptionPrice], multicall); | ||
}; | ||
NativeUnderlyingUniswapSafeSaviour.prototype.isSystemCoinToken0 = function (multicall) { | ||
// prettier-ignore | ||
// @ts-ignore | ||
var abi = { "inputs": [], "name": "isSystemCoinToken0", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }; | ||
return this.ethCallOrMulticall(abi, [], multicall); | ||
}; | ||
NativeUnderlyingUniswapSafeSaviour.prototype.keeperPayout = function (multicall) { | ||
@@ -207,20 +99,2 @@ // prettier-ignore | ||
}; | ||
NativeUnderlyingUniswapSafeSaviour.prototype.liquidityManager = function (multicall) { | ||
// prettier-ignore | ||
// @ts-ignore | ||
var abi = { "inputs": [], "name": "liquidityManager", "outputs": [{ "internalType": "contract UniswapLiquidityManagerLike", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }; | ||
return this.ethCallOrMulticall(abi, [], multicall); | ||
}; | ||
NativeUnderlyingUniswapSafeSaviour.prototype.lpToken = function (multicall) { | ||
// prettier-ignore | ||
// @ts-ignore | ||
var abi = { "inputs": [], "name": "lpToken", "outputs": [{ "internalType": "contract ERC20Like", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }; | ||
return this.ethCallOrMulticall(abi, [], multicall); | ||
}; | ||
NativeUnderlyingUniswapSafeSaviour.prototype.lpTokenCover = function (address, multicall) { | ||
// prettier-ignore | ||
// @ts-ignore | ||
var abi = { "inputs": [{ "internalType": "address", "name": "", "type": "address" }], "name": "lpTokenCover", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }; | ||
return this.ethCallOrMulticall(abi, [address], multicall); | ||
}; | ||
NativeUnderlyingUniswapSafeSaviour.prototype.minKeeperPayoutValue = function (multicall) { | ||
@@ -232,14 +106,2 @@ // prettier-ignore | ||
}; | ||
NativeUnderlyingUniswapSafeSaviour.prototype.modifyParameters__Bytes32Address = function (parameter, data) { | ||
// prettier-ignore | ||
// @ts-ignore | ||
var abi = { "inputs": [{ "internalType": "bytes32", "name": "parameter", "type": "bytes32" }, { "internalType": "address", "name": "data", "type": "address" }], "name": "modifyParameters", "outputs": [], "stateMutability": "nonpayable", "type": "function" }; | ||
return this.getTransactionRequest(abi, [parameter, data]); | ||
}; | ||
NativeUnderlyingUniswapSafeSaviour.prototype.modifyParameters__Bytes32Uint256 = function (parameter, val) { | ||
// prettier-ignore | ||
// @ts-ignore | ||
var abi = { "inputs": [{ "internalType": "bytes32", "name": "parameter", "type": "bytes32" }, { "internalType": "uint256", "name": "val", "type": "uint256" }], "name": "modifyParameters", "outputs": [], "stateMutability": "nonpayable", "type": "function" }; | ||
return this.getTransactionRequest(abi, [parameter, val]); | ||
}; | ||
NativeUnderlyingUniswapSafeSaviour.prototype.oracleRelayer = function (multicall) { | ||
@@ -257,14 +119,2 @@ // prettier-ignore | ||
}; | ||
NativeUnderlyingUniswapSafeSaviour.prototype.removeAuthorization = function (account) { | ||
// prettier-ignore | ||
// @ts-ignore | ||
var abi = { "inputs": [{ "internalType": "address", "name": "account", "type": "address" }], "name": "removeAuthorization", "outputs": [], "stateMutability": "nonpayable", "type": "function" }; | ||
return this.getTransactionRequest(abi, [account]); | ||
}; | ||
NativeUnderlyingUniswapSafeSaviour.prototype.restrictUsage = function (multicall) { | ||
// prettier-ignore | ||
// @ts-ignore | ||
var abi = { "inputs": [], "name": "restrictUsage", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }; | ||
return this.ethCallOrMulticall(abi, [], multicall); | ||
}; | ||
NativeUnderlyingUniswapSafeSaviour.prototype.safeEngine = function (multicall) { | ||
@@ -282,11 +132,7 @@ // prettier-ignore | ||
}; | ||
NativeUnderlyingUniswapSafeSaviour.prototype.saveSAFE = function (keeper, collateralType, safeHandler) { | ||
NativeUnderlyingUniswapSafeSaviour.prototype.saveSAFE = function (address1, bytes, address2) { | ||
// prettier-ignore | ||
// @ts-ignore | ||
var abi = { "inputs": [{ "internalType": "address", "name": "keeper", "type": "address" }, { "internalType": "bytes32", "name": "collateralType", "type": "bytes32" }, { "internalType": "address", "name": "safeHandler", "type": "address" }], "name": "saveSAFE", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }, { "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "nonpayable", "type": "function" }; | ||
return this.getTransactionRequest(abi, [ | ||
keeper, | ||
collateralType, | ||
safeHandler, | ||
]); | ||
var abi = { "inputs": [{ "internalType": "address", "name": "", "type": "address" }, { "internalType": "bytes32", "name": "", "type": "bytes32" }, { "internalType": "address", "name": "", "type": "address" }], "name": "saveSAFE", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }, { "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "nonpayable", "type": "function" }; | ||
return this.getTransactionRequest(abi, [address1, bytes, address2]); | ||
}; | ||
@@ -299,34 +145,16 @@ NativeUnderlyingUniswapSafeSaviour.prototype.saviourRegistry = function (multicall) { | ||
}; | ||
NativeUnderlyingUniswapSafeSaviour.prototype.systemCoin = function (multicall) { | ||
NativeUnderlyingUniswapSafeSaviour.prototype.taxCollector = function (multicall) { | ||
// prettier-ignore | ||
// @ts-ignore | ||
var abi = { "inputs": [], "name": "systemCoin", "outputs": [{ "internalType": "contract ERC20Like", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }; | ||
var abi = { "inputs": [], "name": "taxCollector", "outputs": [{ "internalType": "contract TaxCollectorLike", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }; | ||
return this.ethCallOrMulticall(abi, [], multicall); | ||
}; | ||
NativeUnderlyingUniswapSafeSaviour.prototype.systemCoinOrcl = function (multicall) { | ||
NativeUnderlyingUniswapSafeSaviour.prototype.tokenAmountUsedToSave = function (bytes, address) { | ||
// prettier-ignore | ||
// @ts-ignore | ||
var abi = { "inputs": [], "name": "systemCoinOrcl", "outputs": [{ "internalType": "contract PriceFeedLike", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }; | ||
return this.ethCallOrMulticall(abi, [], multicall); | ||
var abi = { "inputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }, { "internalType": "address", "name": "", "type": "address" }], "name": "tokenAmountUsedToSave", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "nonpayable", "type": "function" }; | ||
return this.getTransactionRequest(abi, [bytes, address]); | ||
}; | ||
NativeUnderlyingUniswapSafeSaviour.prototype.tokenAmountUsedToSave = function (bytes, safeHandler) { | ||
// prettier-ignore | ||
// @ts-ignore | ||
var abi = { "inputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }, { "internalType": "address", "name": "safeHandler", "type": "address" }], "name": "tokenAmountUsedToSave", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "nonpayable", "type": "function" }; | ||
return this.getTransactionRequest(abi, [bytes, safeHandler]); | ||
}; | ||
NativeUnderlyingUniswapSafeSaviour.prototype.underlyingReserves = function (address, multicall) { | ||
// prettier-ignore | ||
// @ts-ignore | ||
var abi = { "inputs": [{ "internalType": "address", "name": "", "type": "address" }], "name": "underlyingReserves", "outputs": [{ "internalType": "uint256", "name": "systemCoins", "type": "uint256" }, { "internalType": "uint256", "name": "collateralCoins", "type": "uint256" }], "stateMutability": "view", "type": "function" }; | ||
return this.ethCallOrMulticall(abi, [address], multicall); | ||
}; | ||
NativeUnderlyingUniswapSafeSaviour.prototype.withdraw = function (safeID, lpTokenAmount, dst) { | ||
// prettier-ignore | ||
// @ts-ignore | ||
var abi = { "inputs": [{ "internalType": "uint256", "name": "safeID", "type": "uint256" }, { "internalType": "uint256", "name": "lpTokenAmount", "type": "uint256" }, { "internalType": "address", "name": "dst", "type": "address" }], "name": "withdraw", "outputs": [], "stateMutability": "nonpayable", "type": "function" }; | ||
return this.getTransactionRequest(abi, [safeID, lpTokenAmount, dst]); | ||
}; | ||
return NativeUnderlyingUniswapSafeSaviour; | ||
}(geb_contract_base_1.BaseContractAPI)); | ||
exports.NativeUnderlyingUniswapSafeSaviour = NativeUnderlyingUniswapSafeSaviour; |
@@ -51,2 +51,3 @@ import { AccountingEngine } from './generated/AccountingEngine'; | ||
import { StakingRewardsEscrow } from './generated/StakingRewardsEscrow'; | ||
export { ContractApis, AccountingEngine, BasicCollateralJoin, CoinJoin, Coin, DebtAuctionHouse, DsProxy, FixedDiscountCollateralAuctionHouse, GebProxyRegistry, GebSafeManager, GetSafes, GlobalSettlement, LiquidationEngine, OracleRelayer, SafeEngine, StabilityFeeTreasury, TaxCollector, GebProxyActions, GebProxyActionsGlobalSettlement, Multicall, Erc20, Osm, PRawPerSecondCalculator, PiRateSetter, UniswapConsecutiveSlotsMedianRaiusd, Weth9, GebProxyLeverageActions, GebProxyIncentivesActions, BurningSurplusAuctionHouse, RecyclingSurplusAuctionHouse, DsDelegateToken, StakingRewards, StakingRewardsFactory, UniswapV2Pair, GebProxyDebtAuctionActions, GebProxySurplusAuctionActions, GebProxyStakedTokenAuctionActions, MerkleDistributorFactory, MerkleDistributor, ChainlinkRelayer, NativeUnderlyingUniswapSafeSaviour, SaviourCRatioSetter, UniswapLiquidityManagerLike, GebProxySaviourActions, UniswapV3Pool, GebUniswapV3TwoTrancheManager, GebLenderFirstResort, StakedTokenAuctionHouse, DsDelegateTokenNoTransfer, StakingRewardsEscrow, }; | ||
import { CurveV1MaxSafeSaviour } from './generated/CurveV1MaxSafeSaviour'; | ||
export { ContractApis, AccountingEngine, BasicCollateralJoin, CoinJoin, Coin, DebtAuctionHouse, DsProxy, FixedDiscountCollateralAuctionHouse, GebProxyRegistry, GebSafeManager, GetSafes, GlobalSettlement, LiquidationEngine, OracleRelayer, SafeEngine, StabilityFeeTreasury, TaxCollector, GebProxyActions, GebProxyActionsGlobalSettlement, Multicall, Erc20, Osm, PRawPerSecondCalculator, PiRateSetter, UniswapConsecutiveSlotsMedianRaiusd, Weth9, GebProxyLeverageActions, GebProxyIncentivesActions, BurningSurplusAuctionHouse, RecyclingSurplusAuctionHouse, DsDelegateToken, StakingRewards, StakingRewardsFactory, UniswapV2Pair, GebProxyDebtAuctionActions, GebProxySurplusAuctionActions, GebProxyStakedTokenAuctionActions, MerkleDistributorFactory, MerkleDistributor, ChainlinkRelayer, NativeUnderlyingUniswapSafeSaviour, SaviourCRatioSetter, UniswapLiquidityManagerLike, GebProxySaviourActions, UniswapV3Pool, GebUniswapV3TwoTrancheManager, GebLenderFirstResort, StakedTokenAuctionHouse, DsDelegateTokenNoTransfer, StakingRewardsEscrow, CurveV1MaxSafeSaviour, }; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.StakingRewardsEscrow = exports.DsDelegateTokenNoTransfer = exports.StakedTokenAuctionHouse = exports.GebLenderFirstResort = exports.GebUniswapV3TwoTrancheManager = exports.UniswapV3Pool = exports.GebProxySaviourActions = exports.UniswapLiquidityManagerLike = exports.SaviourCRatioSetter = exports.NativeUnderlyingUniswapSafeSaviour = exports.ChainlinkRelayer = exports.MerkleDistributor = exports.MerkleDistributorFactory = exports.GebProxyStakedTokenAuctionActions = exports.GebProxySurplusAuctionActions = exports.GebProxyDebtAuctionActions = exports.UniswapV2Pair = exports.StakingRewardsFactory = exports.StakingRewards = exports.DsDelegateToken = exports.RecyclingSurplusAuctionHouse = exports.BurningSurplusAuctionHouse = exports.GebProxyIncentivesActions = exports.GebProxyLeverageActions = exports.Weth9 = exports.UniswapConsecutiveSlotsMedianRaiusd = exports.PiRateSetter = exports.PRawPerSecondCalculator = exports.Osm = exports.Erc20 = exports.Multicall = exports.GebProxyActionsGlobalSettlement = exports.GebProxyActions = exports.TaxCollector = exports.StabilityFeeTreasury = exports.SafeEngine = exports.OracleRelayer = exports.LiquidationEngine = exports.GlobalSettlement = exports.GetSafes = exports.GebSafeManager = exports.GebProxyRegistry = exports.FixedDiscountCollateralAuctionHouse = exports.DsProxy = exports.DebtAuctionHouse = exports.Coin = exports.CoinJoin = exports.BasicCollateralJoin = exports.AccountingEngine = exports.ContractApis = void 0; | ||
exports.CurveV1MaxSafeSaviour = exports.StakingRewardsEscrow = exports.DsDelegateTokenNoTransfer = exports.StakedTokenAuctionHouse = exports.GebLenderFirstResort = exports.GebUniswapV3TwoTrancheManager = exports.UniswapV3Pool = exports.GebProxySaviourActions = exports.UniswapLiquidityManagerLike = exports.SaviourCRatioSetter = exports.NativeUnderlyingUniswapSafeSaviour = exports.ChainlinkRelayer = exports.MerkleDistributor = exports.MerkleDistributorFactory = exports.GebProxyStakedTokenAuctionActions = exports.GebProxySurplusAuctionActions = exports.GebProxyDebtAuctionActions = exports.UniswapV2Pair = exports.StakingRewardsFactory = exports.StakingRewards = exports.DsDelegateToken = exports.RecyclingSurplusAuctionHouse = exports.BurningSurplusAuctionHouse = exports.GebProxyIncentivesActions = exports.GebProxyLeverageActions = exports.Weth9 = exports.UniswapConsecutiveSlotsMedianRaiusd = exports.PiRateSetter = exports.PRawPerSecondCalculator = exports.Osm = exports.Erc20 = exports.Multicall = exports.GebProxyActionsGlobalSettlement = exports.GebProxyActions = exports.TaxCollector = exports.StabilityFeeTreasury = exports.SafeEngine = exports.OracleRelayer = exports.LiquidationEngine = exports.GlobalSettlement = exports.GetSafes = exports.GebSafeManager = exports.GebProxyRegistry = exports.FixedDiscountCollateralAuctionHouse = exports.DsProxy = exports.DebtAuctionHouse = exports.Coin = exports.CoinJoin = exports.BasicCollateralJoin = exports.AccountingEngine = exports.ContractApis = void 0; | ||
var AccountingEngine_1 = require("./generated/AccountingEngine"); | ||
@@ -104,1 +104,3 @@ Object.defineProperty(exports, "AccountingEngine", { enumerable: true, get: function () { return AccountingEngine_1.AccountingEngine; } }); | ||
Object.defineProperty(exports, "StakingRewardsEscrow", { enumerable: true, get: function () { return StakingRewardsEscrow_1.StakingRewardsEscrow; } }); | ||
var CurveV1MaxSafeSaviour_1 = require("./generated/CurveV1MaxSafeSaviour"); | ||
Object.defineProperty(exports, "CurveV1MaxSafeSaviour", { enumerable: true, get: function () { return CurveV1MaxSafeSaviour_1.CurveV1MaxSafeSaviour; } }); |
{ | ||
"name": "@reflexer-finance/geb-contract-api", | ||
"version": "1.1.24", | ||
"version": "1.1.25", | ||
"description": "", | ||
@@ -13,3 +13,3 @@ "main": "./lib/index.js", | ||
"@ethersproject/bignumber": "5.x", | ||
"@reflexer-finance/geb-contract-base": "^1.1.24" | ||
"@reflexer-finance/geb-contract-base": "^1.1.25" | ||
}, | ||
@@ -20,3 +20,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "65ffc808739ff8005203c754db93b8011c3598f3" | ||
"gitHead": "7f2909434b564004b2e8c64b86e0055f30be3d58" | ||
} |
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
993504
134
15227