Socket
Socket
Sign inDemoInstall

@reflexer-finance/geb-contract-api

Package Overview
Dependencies
Maintainers
4
Versions
112
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@reflexer-finance/geb-contract-api - npm Package Compare versions

Comparing version 1.0.20 to 1.1.0

lib/generated/PIRateSetter.d.ts

11

lib/contract-apis.d.ts
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 } from '.';
import { GebProviderInterface, GebDeployment } from '@reflexer-finance/geb-contract-base';
import { RateSetter } from './generated/RateSetter';
import { PiRawPerSecondCalculator } from './generated/PIRawPerSecondCalculator';
import { PiRateSetter } from './generated/PIRateSetter';
import { PRawPerSecondCalculator } from './generated/PRawPerSecondCalculator';
import { MerkleDistributorFactory } from './generated/MerkleDistributorFactory';

@@ -27,8 +27,7 @@ export declare class ContractApis {

medianizerCoin: UniswapConsecutiveSlotsMedianRaiusd;
rateSetter: RateSetter;
piCalculator: PiRawPerSecondCalculator;
rateSetter: PiRateSetter;
piCalculator: PRawPerSecondCalculator;
fsmEth: Osm;
weth: Weth9;
stakingRewardFactory: StakingRewardsFactory;
medianizerCoinSpot: UniswapConsecutiveSlotsMedianRaiusd;
uniswapPairCoinEth: UniswapV2Pair;

@@ -38,4 +37,4 @@ merkleDistributorFactory: MerkleDistributorFactory;

saviourCRatioSetter: SaviourCRatioSetter;
saviourUniswapLiquidaityManager: UniswapLiquidityManagerLike;
saviourUniswapLiquidityManager: UniswapLiquidityManagerLike;
constructor(network: GebDeployment, chainProvider: GebProviderInterface);
}

@@ -6,4 +6,4 @@ "use strict";

var geb_contract_base_1 = require("@reflexer-finance/geb-contract-base");
var RateSetter_1 = require("./generated/RateSetter");
var PIRawPerSecondCalculator_1 = require("./generated/PIRawPerSecondCalculator");
var PIRateSetter_1 = require("./generated/PIRateSetter");
var PRawPerSecondCalculator_1 = require("./generated/PRawPerSecondCalculator");
var MerkleDistributorFactory_1 = require("./generated/MerkleDistributorFactory");

@@ -35,4 +35,4 @@ // Container class used to instantiate most GEB contracts

this.medianizerCoin = new _1.UniswapConsecutiveSlotsMedianRaiusd(addressList.MEDIANIZER_RAI, this.chainProvider);
this.rateSetter = new RateSetter_1.RateSetter(addressList.GEB_RRFM_SETTER, this.chainProvider);
this.piCalculator = new PIRawPerSecondCalculator_1.PiRawPerSecondCalculator(addressList.GEB_RRFM_CALCULATOR, this.chainProvider);
this.rateSetter = new PIRateSetter_1.PiRateSetter(addressList.GEB_RRFM_SETTER, this.chainProvider);
this.piCalculator = new PRawPerSecondCalculator_1.PRawPerSecondCalculator(addressList.GEB_RRFM_CALCULATOR, this.chainProvider);
this.fsmEth = new _1.Osm(addressList.FEED_SECURITY_MODULE_ETH, this.chainProvider);

@@ -43,7 +43,6 @@ this.weth = new _1.Weth9(addressList.ETH, this.chainProvider);

this.uniswapPairCoinEth = new _1.UniswapV2Pair(addressList.GEB_COIN_UNISWAP_POOL, this.chainProvider);
this.medianizerCoinSpot = new _1.UniswapConsecutiveSlotsMedianRaiusd(addressList.SPOT_RAI, this.chainProvider);
this.merkleDistributorFactory = new MerkleDistributorFactory_1.MerkleDistributorFactory(addressList.MERKLE_DISTRIBUTOR_FACTORY, this.chainProvider);
this.coinNativeUniswapSaviour = new _1.NativeUnderlyingUniswapSafeSaviour(addressList.GEB_COIN_ETH_UNISWAP_V2_POOL_SAVIOUR, this.chainProvider);
this.saviourCRatioSetter = new _1.SaviourCRatioSetter(addressList.GEB_SAVIOUR_CRATIO_SETTER, this.chainProvider);
this.saviourUniswapLiquidaityManager = new _1.UniswapLiquidityManagerLike(addressList.GEB_UNISWAP_SAVIOUR_LIQUIDITY_MANAGER, this.chainProvider);
this.saviourUniswapLiquidityManager = new _1.UniswapLiquidityManagerLike(addressList.GEB_UNISWAP_SAVIOUR_LIQUIDITY_MANAGER, this.chainProvider);
}

@@ -50,0 +49,0 @@ return ContractApis;

@@ -17,4 +17,2 @@ import { BaseContractAPI } from '@reflexer-finance/geb-contract-base';

authorizedAccounts(address: string, multicall: true): MulticallRequest<BigNumber>;
baseUpdateCallerReward(): Promise<BigNumber>;
baseUpdateCallerReward(multicall: true): MulticallRequest<BigNumber>;
converterComputeAmountOut(timeElapsed: BigNumberish, amountIn: BigNumberish): Promise<BigNumber>;

@@ -42,4 +40,2 @@ converterComputeAmountOut(timeElapsed: BigNumberish, amountIn: BigNumberish, multicall: true): MulticallRequest<BigNumber>;

earliestObservationIndex(multicall: true): MulticallRequest<BigNumber>;
getCallerReward(timeOfLastUpdate: BigNumberish, defaultDelayBetweenCalls: BigNumberish): Promise<BigNumber>;
getCallerReward(timeOfLastUpdate: BigNumberish, defaultDelayBetweenCalls: BigNumberish, multicall: true): MulticallRequest<BigNumber>;
getObservationListLength(): Promise<{

@@ -65,6 +61,2 @@ 0: BigNumber;

lastUpdateTime(multicall: true): MulticallRequest<BigNumber>;
maxRewardIncreaseDelay(): Promise<BigNumber>;
maxRewardIncreaseDelay(multicall: true): MulticallRequest<BigNumber>;
maxUpdateCallerReward(): Promise<BigNumber>;
maxUpdateCallerReward(multicall: true): MulticallRequest<BigNumber>;
maxWindowSize(): Promise<BigNumber>;

@@ -78,4 +70,2 @@ maxWindowSize(multicall: true): MulticallRequest<BigNumber>;

multiply(x: BigNumberish, y: BigNumberish, multicall: true): MulticallRequest<BigNumber>;
perSecondCallerRewardIncrease(): Promise<BigNumber>;
perSecondCallerRewardIncrease(multicall: true): MulticallRequest<BigNumber>;
periodSize(): Promise<BigNumber>;

@@ -91,2 +81,4 @@ periodSize(multicall: true): MulticallRequest<BigNumber>;

read(multicall: true): MulticallRequest<BigNumber>;
relayer(): Promise<string>;
relayer(multicall: true): MulticallRequest<string>;
removeAuthorization(account: string): TransactionRequest;

@@ -105,6 +97,2 @@ rmultiply(x: BigNumberish, y: BigNumberish): Promise<BigNumber>;

timeElapsedSinceFirstObservation(multicall: true): MulticallRequest<BigNumber>;
treasury(): Promise<string>;
treasury(multicall: true): MulticallRequest<string>;
treasuryAllowance(): Promise<BigNumber>;
treasuryAllowance(multicall: true): MulticallRequest<BigNumber>;
uniswapComputeAmountOut(priceCumulativeStart: BigNumberish, priceCumulativeEnd: BigNumberish, timeElapsed: BigNumberish, amountIn: BigNumberish): Promise<BigNumber>;

@@ -111,0 +99,0 @@ uniswapComputeAmountOut(priceCumulativeStart: BigNumberish, priceCumulativeEnd: BigNumberish, timeElapsed: BigNumberish, amountIn: BigNumberish, multicall: true): MulticallRequest<BigNumber>;

@@ -55,8 +55,2 @@ "use strict";

};
UniswapConsecutiveSlotsMedianRaiusd.prototype.baseUpdateCallerReward = function (multicall) {
// prettier-ignore
// @ts-ignore
var abi = { "inputs": [], "name": "baseUpdateCallerReward", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" };
return this.ethCallOrMulticall(abi, [], multicall);
};
UniswapConsecutiveSlotsMedianRaiusd.prototype.converterComputeAmountOut = function (timeElapsed, amountIn, multicall) {

@@ -71,3 +65,3 @@ // prettier-ignore

// @ts-ignore
var abi = { "inputs": [], "name": "converterFeed", "outputs": [{ "internalType": "contract ConverterFeedLike", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" };
var abi = { "inputs": [], "name": "converterFeed", "outputs": [{ "internalType": "contract ConverterFeedLike_1", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" };
return this.ethCallOrMulticall(abi, [], multicall);

@@ -111,8 +105,2 @@ };

};
UniswapConsecutiveSlotsMedianRaiusd.prototype.getCallerReward = function (timeOfLastUpdate, defaultDelayBetweenCalls, multicall) {
// prettier-ignore
// @ts-ignore
var abi = { "inputs": [{ "internalType": "uint256", "name": "timeOfLastUpdate", "type": "uint256" }, { "internalType": "uint256", "name": "defaultDelayBetweenCalls", "type": "uint256" }], "name": "getCallerReward", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" };
return this.ethCallOrMulticall(abi, [timeOfLastUpdate, defaultDelayBetweenCalls], multicall);
};
UniswapConsecutiveSlotsMedianRaiusd.prototype.getObservationListLength = function (multicall) {

@@ -142,14 +130,2 @@ // prettier-ignore

};
UniswapConsecutiveSlotsMedianRaiusd.prototype.maxRewardIncreaseDelay = function (multicall) {
// prettier-ignore
// @ts-ignore
var abi = { "inputs": [], "name": "maxRewardIncreaseDelay", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" };
return this.ethCallOrMulticall(abi, [], multicall);
};
UniswapConsecutiveSlotsMedianRaiusd.prototype.maxUpdateCallerReward = function (multicall) {
// prettier-ignore
// @ts-ignore
var abi = { "inputs": [], "name": "maxUpdateCallerReward", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" };
return this.ethCallOrMulticall(abi, [], multicall);
};
UniswapConsecutiveSlotsMedianRaiusd.prototype.maxWindowSize = function (multicall) {

@@ -185,8 +161,2 @@ // prettier-ignore

};
UniswapConsecutiveSlotsMedianRaiusd.prototype.perSecondCallerRewardIncrease = function (multicall) {
// prettier-ignore
// @ts-ignore
var abi = { "inputs": [], "name": "perSecondCallerRewardIncrease", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" };
return this.ethCallOrMulticall(abi, [], multicall);
};
UniswapConsecutiveSlotsMedianRaiusd.prototype.periodSize = function (multicall) {

@@ -222,2 +192,8 @@ // prettier-ignore

};
UniswapConsecutiveSlotsMedianRaiusd.prototype.relayer = function (multicall) {
// prettier-ignore
// @ts-ignore
var abi = { "inputs": [], "name": "relayer", "outputs": [{ "internalType": "contract IncreasingRewardRelayerLike_1", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" };
return this.ethCallOrMulticall(abi, [], multicall);
};
UniswapConsecutiveSlotsMedianRaiusd.prototype.removeAuthorization = function (account) {

@@ -265,14 +241,2 @@ // prettier-ignore

};
UniswapConsecutiveSlotsMedianRaiusd.prototype.treasury = function (multicall) {
// prettier-ignore
// @ts-ignore
var abi = { "inputs": [], "name": "treasury", "outputs": [{ "internalType": "contract StabilityFeeTreasuryLike", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" };
return this.ethCallOrMulticall(abi, [], multicall);
};
UniswapConsecutiveSlotsMedianRaiusd.prototype.treasuryAllowance = function (multicall) {
// prettier-ignore
// @ts-ignore
var abi = { "inputs": [], "name": "treasuryAllowance", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" };
return this.ethCallOrMulticall(abi, [], multicall);
};
UniswapConsecutiveSlotsMedianRaiusd.prototype.uniswapComputeAmountOut = function (priceCumulativeStart, priceCumulativeEnd, timeElapsed, amountIn, multicall) {

@@ -279,0 +243,0 @@ // prettier-ignore

@@ -25,4 +25,4 @@ import { AccountingEngine } from './generated/AccountingEngine';

import { Weth9 } from './generated/WETH9_';
import { RateSetter } from './generated/RateSetter';
import { PiRawPerSecondCalculator } from './generated/PIRawPerSecondCalculator';
import { PiRateSetter } from './generated/PIRateSetter';
import { PRawPerSecondCalculator } from './generated/PRawPerSecondCalculator';
import { GebProxyLeverageActions } from './generated/GebProxyLeverageActions';

@@ -45,2 +45,2 @@ import { GebProxyIncentivesActions } from './generated/GebProxyIncentivesActions';

import { GebProxySaviourActions } from './generated/GebProxySaviourActions';
export { ContractApis, AccountingEngine, BasicCollateralJoin, CoinJoin, Coin, DebtAuctionHouse, DsProxy, FixedDiscountCollateralAuctionHouse, GebProxyRegistry, GebSafeManager, GetSafes, GlobalSettlement, LiquidationEngine, OracleRelayer, SafeEngine, StabilityFeeTreasury, TaxCollector, GebProxyActions, GebProxyActionsGlobalSettlement, Multicall, Erc20, Osm, PiRawPerSecondCalculator, RateSetter, UniswapConsecutiveSlotsMedianRaiusd, Weth9, GebProxyLeverageActions, GebProxyIncentivesActions, BurningSurplusAuctionHouse, RecyclingSurplusAuctionHouse, DsDelegateToken, StakingRewards, StakingRewardsFactory, UniswapV2Pair, GebProxyDebtAuctionActions, GebProxySurplusAuctionActions, MerkleDistributorFactory, MerkleDistributor, ChainlinkRelayer, NativeUnderlyingUniswapSafeSaviour, SaviourCRatioSetter, UniswapLiquidityManagerLike, GebProxySaviourActions, };
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, MerkleDistributorFactory, MerkleDistributor, ChainlinkRelayer, NativeUnderlyingUniswapSafeSaviour, SaviourCRatioSetter, UniswapLiquidityManagerLike, GebProxySaviourActions, };
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.GebProxySaviourActions = exports.UniswapLiquidityManagerLike = exports.SaviourCRatioSetter = exports.NativeUnderlyingUniswapSafeSaviour = exports.ChainlinkRelayer = exports.MerkleDistributor = exports.MerkleDistributorFactory = 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.RateSetter = exports.PiRawPerSecondCalculator = 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.GebProxySaviourActions = exports.UniswapLiquidityManagerLike = exports.SaviourCRatioSetter = exports.NativeUnderlyingUniswapSafeSaviour = exports.ChainlinkRelayer = exports.MerkleDistributor = exports.MerkleDistributorFactory = 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");

@@ -52,6 +52,6 @@ Object.defineProperty(exports, "AccountingEngine", { enumerable: true, get: function () { return AccountingEngine_1.AccountingEngine; } });

Object.defineProperty(exports, "Weth9", { enumerable: true, get: function () { return WETH9_1.Weth9; } });
var RateSetter_1 = require("./generated/RateSetter");
Object.defineProperty(exports, "RateSetter", { enumerable: true, get: function () { return RateSetter_1.RateSetter; } });
var PIRawPerSecondCalculator_1 = require("./generated/PIRawPerSecondCalculator");
Object.defineProperty(exports, "PiRawPerSecondCalculator", { enumerable: true, get: function () { return PIRawPerSecondCalculator_1.PiRawPerSecondCalculator; } });
var PIRateSetter_1 = require("./generated/PIRateSetter");
Object.defineProperty(exports, "PiRateSetter", { enumerable: true, get: function () { return PIRateSetter_1.PiRateSetter; } });
var PRawPerSecondCalculator_1 = require("./generated/PRawPerSecondCalculator");
Object.defineProperty(exports, "PRawPerSecondCalculator", { enumerable: true, get: function () { return PRawPerSecondCalculator_1.PRawPerSecondCalculator; } });
var GebProxyLeverageActions_1 = require("./generated/GebProxyLeverageActions");

@@ -58,0 +58,0 @@ Object.defineProperty(exports, "GebProxyLeverageActions", { enumerable: true, get: function () { return GebProxyLeverageActions_1.GebProxyLeverageActions; } });

{
"name": "@reflexer-finance/geb-contract-api",
"version": "1.0.20",
"version": "1.1.0",
"description": "",

@@ -13,3 +13,3 @@ "main": "./lib/index.js",

"@ethersproject/bignumber": "5.x",
"@reflexer-finance/geb-contract-base": "^1.0.19"
"@reflexer-finance/geb-contract-base": "^1.1.0"
},

@@ -20,3 +20,3 @@ "devDependencies": {

},
"gitHead": "1e00c2d50060db991a1b1e201332383c481ed1af"
"gitHead": "a5be676d80ecf56fd4fc7286a54f80985bc65b7f"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc