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 0.0.18 to 0.0.19

lib/generated/UniswapConsecutiveSlotsMedianRAIUSD.d.ts

8

lib/contract-apis.d.ts

@@ -1,2 +0,2 @@

import { AccountingEngine, TaxCollector, LiquidationEngine, OracleRelayer, GlobalSettlement, DebtAuctionHouse, PreSettlementSurplusAuctionHouse, PostSettlementSurplusAuctionHouse, SettlementSurplusAuctioneer, Coin, GebSafeManager, GetSafes, BasicCollateralJoin, CoinJoin, GebProxyRegistry, EnglishCollateralAuctionHouse, FixedDiscountCollateralAuctionHouse, DsToken, Weth, SafeEngine, ChainlinkMedianEthusd, UniswapMedian, DsValue, Osm } from '.';
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 { GebProviderInterface, GebDeployment } from '@reflexer-finance/geb-contract-base';

@@ -24,9 +24,7 @@ export declare class ContractApis {

medianizerEth: ChainlinkMedianEthusd | DsValue;
medianizerCoin: UniswapMedian | DsValue;
medianizerProt: UniswapMedian | DsValue;
medianizerCoin: UniswapConsecutiveSlotsMedianRaiusd | DsValue;
fsmEth: Osm | DsValue;
fsmCoin: Osm | DsValue;
fsmProt: Osm | DsValue;
weth: Weth;
weth: Weth9;
constructor(network: GebDeployment, chainProvider: GebProviderInterface);
}

@@ -31,10 +31,6 @@ "use strict";

this.medianizerEth = new _1.ChainlinkMedianEthusd(addressList.MEDIANIZER_ETH, this.chainProvider);
this.medianizerCoin = new _1.UniswapMedian(addressList.MEDIANIZER_PRAI, this.chainProvider);
this.medianizerCoin = new _1.UniswapConsecutiveSlotsMedianRaiusd(addressList.MEDIANIZER_PRAI, this.chainProvider);
this.fsmEth = new _1.Osm(addressList.FEED_SECURITY_MODULE_ETH, this.chainProvider);
this.fsmCoin = new _1.Osm(addressList.FEED_SECURITY_MODULE_PRAI, this.chainProvider);
this.weth = new _1.Weth(addressList.ETH, this.chainProvider);
// Contracts removed for the beta testnet
// this.protocolToken = new DsToken(addressList.GEB_PROT, this.chainProvider)
// this.medianizerProt = new UniswapMedian(addressList.MEDIANIZER_FLX, this.chainProvider)
// this.fsmProt = new Osm(addressList.FEED_SECURITY_MODULE_FLX, this.chainProvider)
this.weth = new _1.Weth9(addressList.ETH, this.chainProvider);
}

@@ -41,0 +37,0 @@ return ContractApis;

@@ -8,23 +8,7 @@ import { BaseContractAPI } from '@reflexer-finance/geb-contract-base';

export declare class AccountingEngine extends BaseContractAPI {
/**
* Add auth to an account
* @param account Account to add auth to
*/
addAuthorization(account: string): TransactionRequest;
/**
* We can only auction debt that is not already being auctioned and is not locked in the debt queue*
* Start a debt auction (print protocol tokens in exchange for coins so that the system can accumulate surplus)
*/
auctionDebt(): TransactionRequest;
/**
* We can only auction surplus if we wait at least 'surplusAuctionDelay' seconds since the last auction trigger, if we keep enough surplus in the buffer and if there is no bad debt to settle*
* Start a surplus auction
*/
auctionSurplus(): TransactionRequest;
authorizedAccounts(address: string): Promise<BigNumber>;
authorizedAccounts(address: string, multicall: true): MulticallRequest<BigNumber>;
/**
* Use surplus coins to destroy debt that is/was in a debt auction
* @param rad Amount of coins/debt to destroy (number with 45 decimals)*
*/
cancelAuctionedDebtWithSurplus(rad: BigNumberish): TransactionRequest;

@@ -39,6 +23,2 @@ contractEnabled(): Promise<BigNumber>;

debtQueue(uinteger: BigNumberish, multicall: true): MulticallRequest<BigNumber>;
/**
* When we disable, the contract tries to settle as much debt as possible (if there's any) with any surplus that's left in the system. After erasing debt, the contract will either transfer any remaining surplus right away (if disableCooldown == 0) or will only record the timestamp when it was disabled*
* Disable this contract (normally called by Global Settlement)
*/
disableContract(): TransactionRequest;

@@ -53,20 +33,6 @@ disableCooldown(): Promise<BigNumber>;

lastSurplusAuctionTime(multicall: true): MulticallRequest<BigNumber>;
/**
* Modify dependency addresses
* @param data New address for the auction
* @param parameter The name of the auction type we want to change the address for
*/
modifyParameters1(parameter: BytesLike, data: string): TransactionRequest;
/**
* Modify general uint params for auctions
* @param data New value for the parameter
* @param parameter The name of the parameter modified
*/
modifyParameters2(parameter: BytesLike, data: BigNumberish): TransactionRequest;
popDebtDelay(): Promise<BigNumber>;
popDebtDelay(multicall: true): MulticallRequest<BigNumber>;
/**
* A block of debt can be popped from the queue after popDebtDelay seconds passed since it was added there
* @param debtBlockTimestamp Timestamp of the block of debt that should be popped out
*/
popDebtFromQueue(debtBlockTimestamp: BigNumberish): TransactionRequest;

@@ -77,20 +43,6 @@ postSettlementSurplusDrain(): Promise<string>;

protocolTokenAuthority(multicall: true): MulticallRequest<string>;
/**
* Debt is locked in a queue to give the system enough time to auction collateral and gather surplus
* Push debt (that the system tries to cover with collateral auctions) to a queue
* @param debtBlock Amount of debt to push
*/
pushDebtToQueue(debtBlock: BigNumberish): TransactionRequest;
/**
* Remove auth from an account
* @param account Account to remove auth from
*/
removeAuthorization(account: string): TransactionRequest;
safeEngine(): Promise<string>;
safeEngine(multicall: true): MulticallRequest<string>;
/**
* We can only destroy debt that is not locked in the queue and also not in a debt auction
* Destroy an equal amount of coins and debt
* @param rad Amount of coins/debt to destroy (number with 45 decimals)*
*/
settleDebt(rad: BigNumberish): TransactionRequest;

@@ -109,6 +61,2 @@ surplusAuctionAmountToSell(): Promise<BigNumber>;

totalQueuedDebt(multicall: true): MulticallRequest<BigNumber>;
/**
* Transfer any remaining surplus after disableCooldown seconds have passed since disabling the contract*
* Transfer any remaining surplus after the disable cooldown has passed
*/
transferPostSettlementSurplus(): TransactionRequest;

@@ -115,0 +63,0 @@ unqueuedUnauctionedDebt(): Promise<BigNumber>;

@@ -25,6 +25,2 @@ "use strict";

}
/**
* Add auth to an account
* @param account Account to add auth to
*/
AccountingEngine.prototype.addAuthorization = function (account) {

@@ -36,6 +32,2 @@ // prettier-ignore

};
/**
* We can only auction debt that is not already being auctioned and is not locked in the debt queue*
* Start a debt auction (print protocol tokens in exchange for coins so that the system can accumulate surplus)
*/
AccountingEngine.prototype.auctionDebt = function () {

@@ -47,6 +39,2 @@ // prettier-ignore

};
/**
* We can only auction surplus if we wait at least 'surplusAuctionDelay' seconds since the last auction trigger, if we keep enough surplus in the buffer and if there is no bad debt to settle*
* Start a surplus auction
*/
AccountingEngine.prototype.auctionSurplus = function () {

@@ -64,6 +52,2 @@ // prettier-ignore

};
/**
* Use surplus coins to destroy debt that is/was in a debt auction
* @param rad Amount of coins/debt to destroy (number with 45 decimals)*
*/
AccountingEngine.prototype.cancelAuctionedDebtWithSurplus = function (rad) {

@@ -99,6 +83,2 @@ // prettier-ignore

};
/**
* When we disable, the contract tries to settle as much debt as possible (if there's any) with any surplus that's left in the system. After erasing debt, the contract will either transfer any remaining surplus right away (if disableCooldown == 0) or will only record the timestamp when it was disabled*
* Disable this contract (normally called by Global Settlement)
*/
AccountingEngine.prototype.disableContract = function () {

@@ -134,7 +114,2 @@ // prettier-ignore

};
/**
* Modify dependency addresses
* @param data New address for the auction
* @param parameter The name of the auction type we want to change the address for
*/
AccountingEngine.prototype.modifyParameters1 = function (parameter, data) {

@@ -146,7 +121,2 @@ // prettier-ignore

};
/**
* Modify general uint params for auctions
* @param data New value for the parameter
* @param parameter The name of the parameter modified
*/
AccountingEngine.prototype.modifyParameters2 = function (parameter, data) {

@@ -164,6 +134,2 @@ // prettier-ignore

};
/**
* A block of debt can be popped from the queue after popDebtDelay seconds passed since it was added there
* @param debtBlockTimestamp Timestamp of the block of debt that should be popped out
*/
AccountingEngine.prototype.popDebtFromQueue = function (debtBlockTimestamp) {

@@ -187,7 +153,2 @@ // prettier-ignore

};
/**
* Debt is locked in a queue to give the system enough time to auction collateral and gather surplus
* Push debt (that the system tries to cover with collateral auctions) to a queue
* @param debtBlock Amount of debt to push
*/
AccountingEngine.prototype.pushDebtToQueue = function (debtBlock) {

@@ -199,6 +160,2 @@ // prettier-ignore

};
/**
* Remove auth from an account
* @param account Account to remove auth from
*/
AccountingEngine.prototype.removeAuthorization = function (account) {

@@ -216,7 +173,2 @@ // prettier-ignore

};
/**
* We can only destroy debt that is not locked in the queue and also not in a debt auction
* Destroy an equal amount of coins and debt
* @param rad Amount of coins/debt to destroy (number with 45 decimals)*
*/
AccountingEngine.prototype.settleDebt = function (rad) {

@@ -264,6 +216,2 @@ // prettier-ignore

};
/**
* Transfer any remaining surplus after disableCooldown seconds have passed since disabling the contract*
* Transfer any remaining surplus after the disable cooldown has passed
*/
AccountingEngine.prototype.transferPostSettlementSurplus = function () {

@@ -270,0 +218,0 @@ // prettier-ignore

@@ -8,14 +8,6 @@ import { BaseContractAPI } from '@reflexer-finance/geb-contract-base';

addAuthorization(account: string): TransactionRequest;
allowance(address: string): Promise<BigNumber>;
allowance(address: string, multicall: true): MulticallRequest<BigNumber>;
allowed(): Promise<BigNumber>;
allowed(multicall: true): MulticallRequest<BigNumber>;
authorizedAccounts(address: string): Promise<BigNumber>;
authorizedAccounts(address: string, multicall: true): MulticallRequest<BigNumber>;
canJoin(amount: BigNumberish): Promise<boolean>;
canJoin(amount: BigNumberish, multicall: true): MulticallRequest<boolean>;
collateral(): Promise<string>;
collateral(multicall: true): MulticallRequest<string>;
collateralJoined(address: string): Promise<BigNumber>;
collateralJoined(address: string, multicall: true): MulticallRequest<BigNumber>;
collateralType(): Promise<string>;

@@ -28,8 +20,7 @@ collateralType(multicall: true): MulticallRequest<string>;

disableContract(): TransactionRequest;
exit(usr: string, wad: BigNumberish): TransactionRequest;
join(usr: string, wad: BigNumberish): TransactionRequest;
exit(account: string, wad: BigNumberish): TransactionRequest;
join(account: string, wad: BigNumberish): TransactionRequest;
removeAuthorization(account: string): TransactionRequest;
safeEngine(): Promise<string>;
safeEngine(multicall: true): MulticallRequest<string>;
setAllowance(account: string, amount: BigNumberish): TransactionRequest;
}

@@ -31,14 +31,2 @@ "use strict";

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

@@ -50,8 +38,2 @@ // prettier-ignore

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

@@ -63,8 +45,2 @@ // prettier-ignore

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

@@ -94,13 +70,13 @@ // prettier-ignore

};
BasicCollateralJoin.prototype.exit = function (usr, wad) {
BasicCollateralJoin.prototype.exit = function (account, wad) {
// prettier-ignore
// @ts-ignore
var abi = { "inputs": [{ "internalType": "address", "name": "usr", "type": "address" }, { "internalType": "uint256", "name": "wad", "type": "uint256" }], "name": "exit", "outputs": [], "stateMutability": "nonpayable", "type": "function" };
return this.getTransactionRequest(abi, [usr, wad]);
var abi = { "inputs": [{ "internalType": "address", "name": "account", "type": "address" }, { "internalType": "uint256", "name": "wad", "type": "uint256" }], "name": "exit", "outputs": [], "stateMutability": "nonpayable", "type": "function" };
return this.getTransactionRequest(abi, [account, wad]);
};
BasicCollateralJoin.prototype.join = function (usr, wad) {
BasicCollateralJoin.prototype.join = function (account, wad) {
// prettier-ignore
// @ts-ignore
var abi = { "inputs": [{ "internalType": "address", "name": "usr", "type": "address" }, { "internalType": "uint256", "name": "wad", "type": "uint256" }], "name": "join", "outputs": [], "stateMutability": "nonpayable", "type": "function" };
return this.getTransactionRequest(abi, [usr, wad]);
var abi = { "inputs": [{ "internalType": "address", "name": "account", "type": "address" }, { "internalType": "uint256", "name": "wad", "type": "uint256" }], "name": "join", "outputs": [], "stateMutability": "nonpayable", "type": "function" };
return this.getTransactionRequest(abi, [account, wad]);
};

@@ -119,10 +95,4 @@ BasicCollateralJoin.prototype.removeAuthorization = function (account) {

};
BasicCollateralJoin.prototype.setAllowance = function (account, amount) {
// prettier-ignore
// @ts-ignore
var abi = { "inputs": [{ "internalType": "address", "name": "account", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "setAllowance", "outputs": [], "stateMutability": "nonpayable", "type": "function" };
return this.getTransactionRequest(abi, [account, amount]);
};
return BasicCollateralJoin;
}(geb_contract_base_1.BaseContractAPI));
exports.BasicCollateralJoin = BasicCollateralJoin;

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

removeAuthorization(account: string): TransactionRequest;
staleThreshold(): Promise<BigNumber>;
staleThreshold(multicall: true): MulticallRequest<BigNumber>;
symbol(): Promise<string>;

@@ -46,0 +48,0 @@ symbol(multicall: true): MulticallRequest<string>;

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

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

@@ -129,0 +135,0 @@ // prettier-ignore

import { BaseContractAPI } from '@reflexer-finance/geb-contract-base';
import { MulticallRequest } from '@reflexer-finance/geb-contract-base';
import { TransactionRequest } from '@reflexer-finance/geb-contract-base';
import { ERC20 } from '@reflexer-finance/geb-contract-base';
import { BytesLike } from '@ethersproject/bytes';
import { BigNumberish } from '@ethersproject/bignumber';
import { BigNumber } from '@ethersproject/bignumber';
export declare class Coin extends BaseContractAPI implements ERC20 {
export declare class Coin extends BaseContractAPI {
DOMAIN_SEPARATOR(): Promise<string>;

@@ -10,0 +9,0 @@ DOMAIN_SEPARATOR(multicall: true): MulticallRequest<string>;

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

export declare class CoinJoin extends BaseContractAPI {
/**
* Add auth to an account
* @param account Account to add auth to
*/
addAuthorization(account: string): TransactionRequest;

@@ -19,24 +15,5 @@ authorizedAccounts(address: string): Promise<BigNumber>;

decimals(multicall: true): MulticallRequest<BigNumber>;
/**
* Disable this contract
*/
disableContract(): TransactionRequest;
/**
* Inside the system, coins have 45 (rad) decimals but outside they have 18 decimals (wad). When we exit, we specify a wad amount of coins and then the contract automatically multiplies wad by 10**27 to move the correct 45 decimal coin amount to this adapter
* Exit system coins from the system and inside 'Coin.sol'
* @param account Account that will receive the exited coins
* @param wad Amount of internal coins to join (18 decimal number that will be multiplied by ray)*
*/
exit(account: string, wad: BigNumberish): TransactionRequest;
/**
* Exited coins have 18 decimals but inside the system they have 45 (rad) decimals. When we join, the amount (wad) is multiplied by 10**27 (ray)
* Join system coins in the system
* @param account Account that will receive the joined coins
* @param wad Amount of external coins to join (18 decimal number)*
*/
join(account: string, wad: BigNumberish): TransactionRequest;
/**
* Remove auth from an account
* @param account Account to remove auth from
*/
removeAuthorization(account: string): TransactionRequest;

@@ -43,0 +20,0 @@ safeEngine(): Promise<string>;

@@ -25,6 +25,2 @@ "use strict";

}
/**
* Add auth to an account
* @param account Account to add auth to
*/
CoinJoin.prototype.addAuthorization = function (account) {

@@ -54,5 +50,2 @@ // prettier-ignore

};
/**
* Disable this contract
*/
CoinJoin.prototype.disableContract = function () {

@@ -64,8 +57,2 @@ // prettier-ignore

};
/**
* Inside the system, coins have 45 (rad) decimals but outside they have 18 decimals (wad). When we exit, we specify a wad amount of coins and then the contract automatically multiplies wad by 10**27 to move the correct 45 decimal coin amount to this adapter
* Exit system coins from the system and inside 'Coin.sol'
* @param account Account that will receive the exited coins
* @param wad Amount of internal coins to join (18 decimal number that will be multiplied by ray)*
*/
CoinJoin.prototype.exit = function (account, wad) {

@@ -77,8 +64,2 @@ // prettier-ignore

};
/**
* Exited coins have 18 decimals but inside the system they have 45 (rad) decimals. When we join, the amount (wad) is multiplied by 10**27 (ray)
* Join system coins in the system
* @param account Account that will receive the joined coins
* @param wad Amount of external coins to join (18 decimal number)*
*/
CoinJoin.prototype.join = function (account, wad) {

@@ -90,6 +71,2 @@ // prettier-ignore

};
/**
* Remove auth from an account
* @param account Account to remove auth from
*/
CoinJoin.prototype.removeAuthorization = function (account) {

@@ -96,0 +73,0 @@ // prettier-ignore

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

accumulatedRate(multicall: true): MulticallRequest<BigNumber>;
/**
* Add auth to an account
* @param account Account to add auth to
*/
addAuthorization(account: string): TransactionRequest;

@@ -22,34 +18,10 @@ authorizedAccounts(address: string): Promise<BigNumber>;

contractEnabled(multicall: true): MulticallRequest<BigNumber>;
/**
* Deposit coins in the savings account
* @param wad Amount of coins to deposit (expressed as an 18 decimal number). 'wad' will be multiplied by 'accumulatedRate' (27 decimals) to result in a correct amount of internal coins transferred
*/
deposit(wad: BigNumberish): TransactionRequest;
/**
* Disable this contract (usually called by Global Settlement)
*/
disableContract(): TransactionRequest;
latestUpdateTime(): Promise<BigNumber>;
latestUpdateTime(multicall: true): MulticallRequest<BigNumber>;
/**
* Modify address of the accounting engine
* @param addr New value for the parameter
* @param parameter The name of the parameter modified
*/
modifyParameters1(parameter: BytesLike, addr: string): TransactionRequest;
/**
* Modify savings rate
* @param data New value for the parameter
* @param parameter The name of the parameter modified
*/
modifyParameters2(parameter: BytesLike, data: BigNumberish): TransactionRequest;
/**
* Get the next value of 'accumulatedRate' without actually updating the variable
*/
nextAccumulatedRate(): Promise<BigNumber>;
nextAccumulatedRate(multicall: true): MulticallRequest<BigNumber>;
/**
* Remove auth from an account
* @param account Account to remove auth from
*/
removeAuthorization(account: string): TransactionRequest;

@@ -64,12 +36,4 @@ safeEngine(): Promise<string>;

totalSavings(multicall: true): MulticallRequest<BigNumber>;
/**
* We return early if 'latestUpdateTime' is smaller or equal to block.timestamp. When the savings rate is positive, we create unbacked debt for the accounting engine and issue new coins for this contract
* Update the accumulated rates index
*/
updateAccumulatedRate(): TransactionRequest;
/**
* Withdraw coins (alongside any interest accrued) from the savings account
* @param wad Amount of coins to withdraw (expressed as an 18 decimal number). 'wad' will be multiplied by 'accumulatedRate' (27 decimals) to result in a correct amount of internal coins transferred
*/
withdraw(wad: BigNumberish): TransactionRequest;
}

@@ -37,6 +37,2 @@ "use strict";

};
/**
* Add auth to an account
* @param account Account to add auth to
*/
CoinSavingsAccount.prototype.addAuthorization = function (account) {

@@ -60,6 +56,2 @@ // prettier-ignore

};
/**
* Deposit coins in the savings account
* @param wad Amount of coins to deposit (expressed as an 18 decimal number). 'wad' will be multiplied by 'accumulatedRate' (27 decimals) to result in a correct amount of internal coins transferred
*/
CoinSavingsAccount.prototype.deposit = function (wad) {

@@ -71,5 +63,2 @@ // prettier-ignore

};
/**
* Disable this contract (usually called by Global Settlement)
*/
CoinSavingsAccount.prototype.disableContract = function () {

@@ -87,7 +76,2 @@ // prettier-ignore

};
/**
* Modify address of the accounting engine
* @param addr New value for the parameter
* @param parameter The name of the parameter modified
*/
CoinSavingsAccount.prototype.modifyParameters1 = function (parameter, addr) {

@@ -99,7 +83,2 @@ // prettier-ignore

};
/**
* Modify savings rate
* @param data New value for the parameter
* @param parameter The name of the parameter modified
*/
CoinSavingsAccount.prototype.modifyParameters2 = function (parameter, data) {

@@ -117,6 +96,2 @@ // prettier-ignore

};
/**
* Remove auth from an account
* @param account Account to remove auth from
*/
CoinSavingsAccount.prototype.removeAuthorization = function (account) {

@@ -152,6 +127,2 @@ // prettier-ignore

};
/**
* We return early if 'latestUpdateTime' is smaller or equal to block.timestamp. When the savings rate is positive, we create unbacked debt for the accounting engine and issue new coins for this contract
* Update the accumulated rates index
*/
CoinSavingsAccount.prototype.updateAccumulatedRate = function () {

@@ -163,6 +134,2 @@ // prettier-ignore

};
/**
* Withdraw coins (alongside any interest accrued) from the savings account
* @param wad Amount of coins to withdraw (expressed as an 18 decimal number). 'wad' will be multiplied by 'accumulatedRate' (27 decimals) to result in a correct amount of internal coins transferred
*/
CoinSavingsAccount.prototype.withdraw = function (wad) {

@@ -169,0 +136,0 @@ // prettier-ignore

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

activeDebtAuctions(multicall: true): MulticallRequest<BigNumber>;
/**
* Add auth to an account
* @param account Account to add auth to
*/
addAuthorization(account: string): TransactionRequest;

@@ -46,55 +42,14 @@ amountSoldIncrease(): Promise<BigNumber>;

contractEnabled(multicall: true): MulticallRequest<BigNumber>;
/**
* Decrease the protocol token amount you're willing to receive in exchange for providing the same amount of system coins being raised by the auction
* @param amountToBuy Amount of protocol tokens to buy (must be smaller than the previous proposed amount) (wad)
* @param bid New system coin bid (must always equal the total amount raised by the auction) (rad)
* @param id ID of the auction for which you want to submit a new bid
*/
decreaseSoldAmount(id: BigNumberish, amountToBuy: BigNumberish, bid: BigNumberish): TransactionRequest;
/**
* Disable the auction house (usually called by the AccountingEngine)
*/
disableContract(): TransactionRequest;
/**
* Change addresses of integrated contracts
* @param addr New contract address
* @param parameter The name of the oracle contract modified
*/
modifyParameters1(parameter: BytesLike, addr: string): TransactionRequest;
/**
* Modify auction parameters
* @param data New value for the parameter
* @param parameter The name of the parameter modified
*/
modifyParameters2(parameter: BytesLike, data: BigNumberish): TransactionRequest;
protocolToken(): Promise<string>;
protocolToken(multicall: true): MulticallRequest<string>;
/**
* Remove auth from an account
* @param account Account to remove auth from
*/
removeAuthorization(account: string): TransactionRequest;
/**
* Restart an auction if no bids were submitted for it
* @param id ID of the auction to restart
*/
restartAuction(id: BigNumberish): TransactionRequest;
safeEngine(): Promise<string>;
safeEngine(multicall: true): MulticallRequest<string>;
/**
* Settle/finish an auction
* @param id ID of the auction to settle
*/
settleAuction(id: BigNumberish): TransactionRequest;
/**
* Start a new debt auction
* @param amountToSell Amount of protocol tokens to sell (wad)
* @param incomeReceiver Who receives the auction proceeds
* @param initialBid Initial bid size (rad)
*/
startAuction(incomeReceiver: string, amountToSell: BigNumberish, initialBid: BigNumberish): TransactionRequest;
/**
* Terminate an auction prematurely.
* @param id ID of the auction to terminate
*/
terminateAuctionPrematurely(id: BigNumberish): TransactionRequest;

@@ -101,0 +56,0 @@ totalAuctionLength(): Promise<number>;

@@ -43,6 +43,2 @@ "use strict";

};
/**
* Add auth to an account
* @param account Account to add auth to
*/
DebtAuctionHouse.prototype.addAuthorization = function (account) {

@@ -96,8 +92,2 @@ // prettier-ignore

};
/**
* Decrease the protocol token amount you're willing to receive in exchange for providing the same amount of system coins being raised by the auction
* @param amountToBuy Amount of protocol tokens to buy (must be smaller than the previous proposed amount) (wad)
* @param bid New system coin bid (must always equal the total amount raised by the auction) (rad)
* @param id ID of the auction for which you want to submit a new bid
*/
DebtAuctionHouse.prototype.decreaseSoldAmount = function (id, amountToBuy, bid) {

@@ -109,5 +99,2 @@ // prettier-ignore

};
/**
* Disable the auction house (usually called by the AccountingEngine)
*/
DebtAuctionHouse.prototype.disableContract = function () {

@@ -119,7 +106,2 @@ // prettier-ignore

};
/**
* Change addresses of integrated contracts
* @param addr New contract address
* @param parameter The name of the oracle contract modified
*/
DebtAuctionHouse.prototype.modifyParameters1 = function (parameter, addr) {

@@ -131,7 +113,2 @@ // prettier-ignore

};
/**
* Modify auction parameters
* @param data New value for the parameter
* @param parameter The name of the parameter modified
*/
DebtAuctionHouse.prototype.modifyParameters2 = function (parameter, data) {

@@ -149,6 +126,2 @@ // prettier-ignore

};
/**
* Remove auth from an account
* @param account Account to remove auth from
*/
DebtAuctionHouse.prototype.removeAuthorization = function (account) {

@@ -160,6 +133,2 @@ // prettier-ignore

};
/**
* Restart an auction if no bids were submitted for it
* @param id ID of the auction to restart
*/
DebtAuctionHouse.prototype.restartAuction = function (id) {

@@ -177,6 +146,2 @@ // prettier-ignore

};
/**
* Settle/finish an auction
* @param id ID of the auction to settle
*/
DebtAuctionHouse.prototype.settleAuction = function (id) {

@@ -188,8 +153,2 @@ // prettier-ignore

};
/**
* Start a new debt auction
* @param amountToSell Amount of protocol tokens to sell (wad)
* @param incomeReceiver Who receives the auction proceeds
* @param initialBid Initial bid size (rad)
*/
DebtAuctionHouse.prototype.startAuction = function (incomeReceiver, amountToSell, initialBid) {

@@ -205,6 +164,2 @@ // prettier-ignore

};
/**
* Terminate an auction prematurely.
* @param id ID of the auction to terminate
*/
DebtAuctionHouse.prototype.terminateAuctionPrematurely = function (id) {

@@ -211,0 +166,0 @@ // prettier-ignore

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

AUCTION_TYPE(multicall: true): MulticallRequest<string>;
/**
* Add auth to an account
* @param account Account to add auth to
*/
addAuthorization(account: string): TransactionRequest;

@@ -52,68 +48,18 @@ amountToRaise(id: BigNumberish): Promise<BigNumber>;

collateralType(multicall: true): MulticallRequest<string>;
/**
* Second auction phase: decrease the collateral amount you're willing to receive in exchange for providing the same amount of coins as the winning bid
* @param amountToBuy Amount of collateral to buy (must be smaller than the previous proposed amount) (wad)
* @param id ID of the auction for which you want to submit a new amount of collateral to buy
* @param rad New bid submitted; must be equal to the winning bid from the increaseBidSize phase (rad)
*/
decreaseSoldAmount(id: BigNumberish, amountToBuy: BigNumberish, rad: BigNumberish): TransactionRequest;
forgoneCollateralReceiver(id: BigNumberish): Promise<string>;
forgoneCollateralReceiver(id: BigNumberish, multicall: true): MulticallRequest<string>;
/**
* First auction phase: submit a higher bid for the same amount of collateral
* @param amountToBuy Amount of collateral to buy (wad)
* @param id ID of the auction you want to submit the bid for
* @param rad New bid submitted (rad)
*/
increaseBidSize(id: BigNumberish, amountToBuy: BigNumberish, rad: BigNumberish): TransactionRequest;
liquidationEngine(): Promise<string>;
liquidationEngine(multicall: true): MulticallRequest<string>;
/**
* Modify oracle related integrations
* @param data New address for the oracle contract
* @param parameter The name of the oracle contract modified
*/
modifyParameters1(parameter: BytesLike, data: string): TransactionRequest;
/**
* Modify auction parameters
* @param data New value for the parameter
* @param parameter The name of the parameter modified
*/
modifyParameters2(parameter: BytesLike, data: BigNumberish): TransactionRequest;
oracleRelayer(): Promise<string>;
oracleRelayer(multicall: true): MulticallRequest<string>;
osm(): Promise<string>;
osm(multicall: true): MulticallRequest<string>;
remainingAmountToSell(id: BigNumberish): Promise<BigNumber>;
remainingAmountToSell(id: BigNumberish, multicall: true): MulticallRequest<BigNumber>;
/**
* Remove auth from an account
* @param account Account to remove auth from
*/
removeAuthorization(account: string): TransactionRequest;
/**
* Restart an auction if no bids were submitted for it
* @param id ID of the auction to restart
*/
restartAuction(id: BigNumberish): TransactionRequest;
safeEngine(): Promise<string>;
safeEngine(multicall: true): MulticallRequest<string>;
/**
* Settle/finish an auction
* @param id ID of the auction to settle
*/
settleAuction(id: BigNumberish): TransactionRequest;
/**
* Start a new collateral auction
* @param amountToRaise Total amount of coins to raise (rad)
* @param amountToSell Total amount of collateral available to sell (wad)
* @param auctionIncomeRecipient Who receives the amount raised in the auction
* @param forgoneCollateralReceiver Who receives leftover collateral that is not auctioned
* @param initialBid Initial bid size (usually zero in this implementation) (rad)
*/
startAuction(forgoneCollateralReceiver: string, auctionIncomeRecipient: string, amountToRaise: BigNumberish, amountToSell: BigNumberish, initialBid: BigNumberish): TransactionRequest;
/**
* Terminate an auction prematurely (if it's still in the first phase). Usually called by Global Settlement.
* @param id ID of the auction to settle
*/
terminateAuctionPrematurely(id: BigNumberish): TransactionRequest;

@@ -120,0 +66,0 @@ totalAuctionLength(): Promise<number>;

@@ -37,6 +37,2 @@ "use strict";

};
/**
* Add auth to an account
* @param account Account to add auth to
*/
EnglishCollateralAuctionHouse.prototype.addAuthorization = function (account) {

@@ -96,8 +92,2 @@ // prettier-ignore

};
/**
* Second auction phase: decrease the collateral amount you're willing to receive in exchange for providing the same amount of coins as the winning bid
* @param amountToBuy Amount of collateral to buy (must be smaller than the previous proposed amount) (wad)
* @param id ID of the auction for which you want to submit a new amount of collateral to buy
* @param rad New bid submitted; must be equal to the winning bid from the increaseBidSize phase (rad)
*/
EnglishCollateralAuctionHouse.prototype.decreaseSoldAmount = function (id, amountToBuy, rad) {

@@ -115,8 +105,2 @@ // prettier-ignore

};
/**
* First auction phase: submit a higher bid for the same amount of collateral
* @param amountToBuy Amount of collateral to buy (wad)
* @param id ID of the auction you want to submit the bid for
* @param rad New bid submitted (rad)
*/
EnglishCollateralAuctionHouse.prototype.increaseBidSize = function (id, amountToBuy, rad) {

@@ -134,7 +118,2 @@ // prettier-ignore

};
/**
* Modify oracle related integrations
* @param data New address for the oracle contract
* @param parameter The name of the oracle contract modified
*/
EnglishCollateralAuctionHouse.prototype.modifyParameters1 = function (parameter, data) {

@@ -146,7 +125,2 @@ // prettier-ignore

};
/**
* Modify auction parameters
* @param data New value for the parameter
* @param parameter The name of the parameter modified
*/
EnglishCollateralAuctionHouse.prototype.modifyParameters2 = function (parameter, data) {

@@ -158,14 +132,2 @@ // prettier-ignore

};
EnglishCollateralAuctionHouse.prototype.oracleRelayer = function (multicall) {
// prettier-ignore
// @ts-ignore
var abi = { "inputs": [], "name": "oracleRelayer", "outputs": [{ "internalType": "contract OracleRelayerLike", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" };
return this.ethCallOrMulticall(abi, [], multicall);
};
EnglishCollateralAuctionHouse.prototype.osm = function (multicall) {
// prettier-ignore
// @ts-ignore
var abi = { "inputs": [], "name": "osm", "outputs": [{ "internalType": "contract OracleLike", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" };
return this.ethCallOrMulticall(abi, [], multicall);
};
EnglishCollateralAuctionHouse.prototype.remainingAmountToSell = function (id, multicall) {

@@ -177,6 +139,2 @@ // prettier-ignore

};
/**
* Remove auth from an account
* @param account Account to remove auth from
*/
EnglishCollateralAuctionHouse.prototype.removeAuthorization = function (account) {

@@ -188,6 +146,2 @@ // prettier-ignore

};
/**
* Restart an auction if no bids were submitted for it
* @param id ID of the auction to restart
*/
EnglishCollateralAuctionHouse.prototype.restartAuction = function (id) {

@@ -205,6 +159,2 @@ // prettier-ignore

};
/**
* Settle/finish an auction
* @param id ID of the auction to settle
*/
EnglishCollateralAuctionHouse.prototype.settleAuction = function (id) {

@@ -216,10 +166,2 @@ // prettier-ignore

};
/**
* Start a new collateral auction
* @param amountToRaise Total amount of coins to raise (rad)
* @param amountToSell Total amount of collateral available to sell (wad)
* @param auctionIncomeRecipient Who receives the amount raised in the auction
* @param forgoneCollateralReceiver Who receives leftover collateral that is not auctioned
* @param initialBid Initial bid size (usually zero in this implementation) (rad)
*/
EnglishCollateralAuctionHouse.prototype.startAuction = function (forgoneCollateralReceiver, auctionIncomeRecipient, amountToRaise, amountToSell, initialBid) {

@@ -237,6 +179,2 @@ // prettier-ignore

};
/**
* Terminate an auction prematurely (if it's still in the first phase). Usually called by Global Settlement.
* @param id ID of the auction to settle
*/
EnglishCollateralAuctionHouse.prototype.terminateAuctionPrematurely = function (id) {

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

import { BaseContractAPI } from '@reflexer-finance/geb-contract-base';
import { MulticallRequest } from '@reflexer-finance/geb-contract-base';
import { TransactionRequest } from '@reflexer-finance/geb-contract-base';
import { ERC20 } from '@reflexer-finance/geb-contract-base';
import { BigNumberish } from '@ethersproject/bignumber';
import { BigNumber } from '@ethersproject/bignumber';
export declare class Erc20 extends BaseContractAPI implements ERC20 {
name(): Promise<string>;
name(multicall: true): MulticallRequest<string>;
approve(_spender: string, _value: BigNumberish): TransactionRequest;
export declare class Erc20 extends BaseContractAPI {
allowance(src: string, guy: string): Promise<BigNumber>;
allowance(src: string, guy: string, multicall: true): MulticallRequest<BigNumber>;
approve(guy: string, wad: BigNumberish): TransactionRequest;
balanceOf(guy: string): Promise<BigNumber>;
balanceOf(guy: string, multicall: true): MulticallRequest<BigNumber>;
totalSupply(): Promise<BigNumber>;
totalSupply(multicall: true): MulticallRequest<BigNumber>;
transferFrom(_from: string, _to: string, _value: BigNumberish): TransactionRequest;
decimals(): Promise<number>;
decimals(multicall: true): MulticallRequest<number>;
balanceOf(_owner: string): Promise<BigNumber>;
balanceOf(_owner: string, multicall: true): MulticallRequest<BigNumber>;
symbol(): Promise<string>;
symbol(multicall: true): MulticallRequest<string>;
transfer(_to: string, _value: BigNumberish): TransactionRequest;
allowance(_owner: string, _spender: string): Promise<BigNumber>;
allowance(_owner: string, _spender: string, multicall: true): MulticallRequest<BigNumber>;
transfer(dst: string, wad: BigNumberish): TransactionRequest;
transferFrom(src: string, dst: string, wad: BigNumberish): TransactionRequest;
}

@@ -25,58 +25,40 @@ "use strict";

}
Erc20.prototype.name = function (multicall) {
Erc20.prototype.allowance = function (src, guy, multicall) {
// prettier-ignore
// @ts-ignore
var abi = { "constant": true, "inputs": [], "name": "name", "outputs": [{ "name": "", "type": "string" }], "payable": false, "stateMutability": "view", "type": "function" };
return this.ethCallOrMulticall(abi, [], multicall);
var abi = { "inputs": [{ "internalType": "address", "name": "src", "type": "address" }, { "internalType": "address", "name": "guy", "type": "address" }], "name": "allowance", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" };
return this.ethCallOrMulticall(abi, [src, guy], multicall);
};
Erc20.prototype.approve = function (_spender, _value) {
Erc20.prototype.approve = function (guy, wad) {
// prettier-ignore
// @ts-ignore
var abi = { "constant": false, "inputs": [{ "name": "_spender", "type": "address" }, { "name": "_value", "type": "uint256" }], "name": "approve", "outputs": [{ "name": "", "type": "bool" }], "payable": false, "stateMutability": "nonpayable", "type": "function" };
return this.getTransactionRequest(abi, [_spender, _value]);
var abi = { "inputs": [{ "internalType": "address", "name": "guy", "type": "address" }, { "internalType": "uint256", "name": "wad", "type": "uint256" }], "name": "approve", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "nonpayable", "type": "function" };
return this.getTransactionRequest(abi, [guy, wad]);
};
Erc20.prototype.totalSupply = function (multicall) {
Erc20.prototype.balanceOf = function (guy, multicall) {
// prettier-ignore
// @ts-ignore
var abi = { "constant": true, "inputs": [], "name": "totalSupply", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" };
return this.ethCallOrMulticall(abi, [], multicall);
var abi = { "inputs": [{ "internalType": "address", "name": "guy", "type": "address" }], "name": "balanceOf", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" };
return this.ethCallOrMulticall(abi, [guy], multicall);
};
Erc20.prototype.transferFrom = function (_from, _to, _value) {
Erc20.prototype.totalSupply = function (multicall) {
// prettier-ignore
// @ts-ignore
var abi = { "constant": false, "inputs": [{ "name": "_from", "type": "address" }, { "name": "_to", "type": "address" }, { "name": "_value", "type": "uint256" }], "name": "transferFrom", "outputs": [{ "name": "", "type": "bool" }], "payable": false, "stateMutability": "nonpayable", "type": "function" };
return this.getTransactionRequest(abi, [_from, _to, _value]);
};
Erc20.prototype.decimals = function (multicall) {
// prettier-ignore
// @ts-ignore
var abi = { "constant": true, "inputs": [], "name": "decimals", "outputs": [{ "name": "", "type": "uint8" }], "payable": false, "stateMutability": "view", "type": "function" };
var abi = { "inputs": [], "name": "totalSupply", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" };
return this.ethCallOrMulticall(abi, [], multicall);
};
Erc20.prototype.balanceOf = function (_owner, multicall) {
Erc20.prototype.transfer = function (dst, wad) {
// prettier-ignore
// @ts-ignore
var abi = { "constant": true, "inputs": [{ "name": "_owner", "type": "address" }], "name": "balanceOf", "outputs": [{ "name": "balance", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" };
return this.ethCallOrMulticall(abi, [_owner], multicall);
var abi = { "inputs": [{ "internalType": "address", "name": "dst", "type": "address" }, { "internalType": "uint256", "name": "wad", "type": "uint256" }], "name": "transfer", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "nonpayable", "type": "function" };
return this.getTransactionRequest(abi, [dst, wad]);
};
Erc20.prototype.symbol = function (multicall) {
Erc20.prototype.transferFrom = function (src, dst, wad) {
// prettier-ignore
// @ts-ignore
var abi = { "constant": true, "inputs": [], "name": "symbol", "outputs": [{ "name": "", "type": "string" }], "payable": false, "stateMutability": "view", "type": "function" };
return this.ethCallOrMulticall(abi, [], multicall);
var abi = { "inputs": [{ "internalType": "address", "name": "src", "type": "address" }, { "internalType": "address", "name": "dst", "type": "address" }, { "internalType": "uint256", "name": "wad", "type": "uint256" }], "name": "transferFrom", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "nonpayable", "type": "function" };
return this.getTransactionRequest(abi, [src, dst, wad]);
};
Erc20.prototype.transfer = function (_to, _value) {
// prettier-ignore
// @ts-ignore
var abi = { "constant": false, "inputs": [{ "name": "_to", "type": "address" }, { "name": "_value", "type": "uint256" }], "name": "transfer", "outputs": [{ "name": "", "type": "bool" }], "payable": false, "stateMutability": "nonpayable", "type": "function" };
return this.getTransactionRequest(abi, [_to, _value]);
};
Erc20.prototype.allowance = function (_owner, _spender, multicall) {
// prettier-ignore
// @ts-ignore
var abi = { "constant": true, "inputs": [{ "name": "_owner", "type": "address" }, { "name": "_spender", "type": "address" }], "name": "allowance", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" };
return this.ethCallOrMulticall(abi, [_owner, _spender], multicall);
};
return Erc20;
}(geb_contract_base_1.BaseContractAPI));
exports.Erc20 = Erc20;

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

export declare class EthJoin extends BaseContractAPI {
/**
* Add auth to an account
* @param account Account to add auth to
*/
addAuthorization(account: string): TransactionRequest;

@@ -21,20 +17,5 @@ authorizedAccounts(address: string): Promise<BigNumber>;

decimals(multicall: true): MulticallRequest<BigNumber>;
/**
* Disable this contract
*/
disableContract(): TransactionRequest;
/**
* Exit ETH from the system
* @param account Account that will receive the ETH representation inside the system*
*/
exit(account: string, wad: BigNumberish): TransactionRequest;
/**
* Join ETH in the system
* @param account Account that will receive the ETH representation inside the system*
*/
join(ethValue: BigNumberish, account: string): TransactionRequest;
/**
* Remove auth from an account
* @param account Account to remove auth from
*/
removeAuthorization(account: string): TransactionRequest;

@@ -41,0 +22,0 @@ safeEngine(): Promise<string>;

@@ -26,6 +26,2 @@ "use strict";

}
/**
* Add auth to an account
* @param account Account to add auth to
*/
EthJoin.prototype.addAuthorization = function (account) {

@@ -61,5 +57,2 @@ // prettier-ignore

};
/**
* Disable this contract
*/
EthJoin.prototype.disableContract = function () {

@@ -71,6 +64,2 @@ // prettier-ignore

};
/**
* Exit ETH from the system
* @param account Account that will receive the ETH representation inside the system*
*/
EthJoin.prototype.exit = function (account, wad) {

@@ -82,6 +71,2 @@ // prettier-ignore

};
/**
* Join ETH in the system
* @param account Account that will receive the ETH representation inside the system*
*/
EthJoin.prototype.join = function (ethValue, account) {

@@ -93,6 +78,2 @@ // prettier-ignore

};
/**
* Remove auth from an account
* @param account Account to remove auth from
*/
EthJoin.prototype.removeAuthorization = function (account) {

@@ -99,0 +80,0 @@ // prettier-ignore

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

AUCTION_TYPE(multicall: true): MulticallRequest<string>;
/**
* Add auth to an account
* @param account Account to add auth to
*/
addAuthorization(account: string): TransactionRequest;

@@ -44,12 +40,7 @@ amountToRaise(id: BigNumberish): Promise<BigNumber>;

}>;
/**
* Buy collateral from an auction at a fixed discount
* @param id ID of the auction to buy collateral from
* @param wad New bid submitted
*/
buyCollateral(id: BigNumberish, wad: BigNumberish): TransactionRequest;
collateralFSM(): Promise<string>;
collateralFSM(multicall: true): MulticallRequest<string>;
collateralMedian(): Promise<string>;
collateralMedian(multicall: true): MulticallRequest<string>;
collateralOSM(): Promise<string>;
collateralOSM(multicall: true): MulticallRequest<string>;
collateralType(): Promise<string>;

@@ -61,9 +52,4 @@ collateralType(multicall: true): MulticallRequest<string>;

forgoneCollateralReceiver(id: BigNumberish, multicall: true): MulticallRequest<string>;
/**
* Calculate how much collateral someone would buy from an auction
* @param id ID of the auction to buy collateral from
* @param wad New bid submitted
*/
getCollateralBought(id: BigNumberish, wad: BigNumberish): TransactionRequest;
getDiscountedCollateralPrice(collateralOSMPriceFeedValue: BigNumberish, collateralMedianPriceFeedValue: BigNumberish, systemCoinPriceFeedValue: BigNumberish, customDiscount: BigNumberish): TransactionRequest;
getDiscountedCollateralPrice(collateralFsmPriceFeedValue: BigNumberish, collateralMedianPriceFeedValue: BigNumberish, systemCoinPriceFeedValue: BigNumberish, customDiscount: BigNumberish): TransactionRequest;
liquidationEngine(): Promise<string>;

@@ -79,13 +65,3 @@ liquidationEngine(multicall: true): MulticallRequest<string>;

minimumBid(multicall: true): MulticallRequest<BigNumber>;
/**
* Modify oracle related integrations
* @param data New address for the oracle contract
* @param parameter The name of the contract address being updated
*/
modifyParameters1(parameter: BytesLike, data: string): TransactionRequest;
/**
* Modify auction parameters
* @param data New value for the parameter
* @param parameter The name of the parameter modified
*/
modifyParameters2(parameter: BytesLike, data: BigNumberish): TransactionRequest;

@@ -96,29 +72,9 @@ oracleRelayer(): Promise<string>;

remainingAmountToSell(id: BigNumberish, multicall: true): MulticallRequest<BigNumber>;
/**
* Remove auth from an account
* @param account Account to remove auth from
*/
removeAuthorization(account: string): TransactionRequest;
safeEngine(): Promise<string>;
safeEngine(multicall: true): MulticallRequest<string>;
/**
* Settle/finish an auction
* @param id ID of the auction to settle
*/
settleAuction(id: BigNumberish): TransactionRequest;
/**
* Start a new collateral auction
* @param amountToRaise Total amount of coins to raise (rad)
* @param amountToSell Total amount of collateral available to sell (wad)
* @param auctionIncomeRecipient Who receives the amount raised in the auction
* @param forgoneCollateralReceiver Who receives leftover collateral that is not auctioned
* @param initialBid Unused
*/
startAuction(forgoneCollateralReceiver: string, auctionIncomeRecipient: string, amountToRaise: BigNumberish, amountToSell: BigNumberish, initialBid: BigNumberish): TransactionRequest;
systemCoinOracle(): Promise<string>;
systemCoinOracle(multicall: true): MulticallRequest<string>;
/**
* Terminate an auction prematurely. Usually called by Global Settlement.
* @param id ID of the auction to settle
*/
terminateAuctionPrematurely(id: BigNumberish): TransactionRequest;

@@ -125,0 +81,0 @@ totalAuctionLength(): Promise<number>;

@@ -37,6 +37,2 @@ "use strict";

};
/**
* Add auth to an account
* @param account Account to add auth to
*/
FixedDiscountCollateralAuctionHouse.prototype.addAuthorization = function (account) {

@@ -78,7 +74,2 @@ // prettier-ignore

};
/**
* Buy collateral from an auction at a fixed discount
* @param id ID of the auction to buy collateral from
* @param wad New bid submitted
*/
FixedDiscountCollateralAuctionHouse.prototype.buyCollateral = function (id, wad) {

@@ -90,12 +81,12 @@ // prettier-ignore

};
FixedDiscountCollateralAuctionHouse.prototype.collateralMedian = function (multicall) {
FixedDiscountCollateralAuctionHouse.prototype.collateralFSM = function (multicall) {
// prettier-ignore
// @ts-ignore
var abi = { "inputs": [], "name": "collateralMedian", "outputs": [{ "internalType": "contract OracleLike", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" };
var abi = { "inputs": [], "name": "collateralFSM", "outputs": [{ "internalType": "contract OracleLike", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" };
return this.ethCallOrMulticall(abi, [], multicall);
};
FixedDiscountCollateralAuctionHouse.prototype.collateralOSM = function (multicall) {
FixedDiscountCollateralAuctionHouse.prototype.collateralMedian = function (multicall) {
// prettier-ignore
// @ts-ignore
var abi = { "inputs": [], "name": "collateralOSM", "outputs": [{ "internalType": "contract OracleLike", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" };
var abi = { "inputs": [], "name": "collateralMedian", "outputs": [{ "internalType": "contract OracleLike", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" };
return this.ethCallOrMulticall(abi, [], multicall);

@@ -121,7 +112,2 @@ };

};
/**
* Calculate how much collateral someone would buy from an auction
* @param id ID of the auction to buy collateral from
* @param wad New bid submitted
*/
FixedDiscountCollateralAuctionHouse.prototype.getCollateralBought = function (id, wad) {

@@ -133,8 +119,8 @@ // prettier-ignore

};
FixedDiscountCollateralAuctionHouse.prototype.getDiscountedCollateralPrice = function (collateralOSMPriceFeedValue, collateralMedianPriceFeedValue, systemCoinPriceFeedValue, customDiscount) {
FixedDiscountCollateralAuctionHouse.prototype.getDiscountedCollateralPrice = function (collateralFsmPriceFeedValue, collateralMedianPriceFeedValue, systemCoinPriceFeedValue, customDiscount) {
// prettier-ignore
// @ts-ignore
var abi = { "inputs": [{ "internalType": "uint256", "name": "collateralOSMPriceFeedValue", "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" };
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, [
collateralOSMPriceFeedValue,
collateralFsmPriceFeedValue,
collateralMedianPriceFeedValue,

@@ -175,7 +161,2 @@ systemCoinPriceFeedValue,

};
/**
* Modify oracle related integrations
* @param data New address for the oracle contract
* @param parameter The name of the contract address being updated
*/
FixedDiscountCollateralAuctionHouse.prototype.modifyParameters1 = function (parameter, data) {

@@ -187,7 +168,2 @@ // prettier-ignore

};
/**
* Modify auction parameters
* @param data New value for the parameter
* @param parameter The name of the parameter modified
*/
FixedDiscountCollateralAuctionHouse.prototype.modifyParameters2 = function (parameter, data) {

@@ -211,6 +187,2 @@ // prettier-ignore

};
/**
* Remove auth from an account
* @param account Account to remove auth from
*/
FixedDiscountCollateralAuctionHouse.prototype.removeAuthorization = function (account) {

@@ -228,6 +200,2 @@ // prettier-ignore

};
/**
* Settle/finish an auction
* @param id ID of the auction to settle
*/
FixedDiscountCollateralAuctionHouse.prototype.settleAuction = function (id) {

@@ -239,10 +207,2 @@ // prettier-ignore

};
/**
* Start a new collateral auction
* @param amountToRaise Total amount of coins to raise (rad)
* @param amountToSell Total amount of collateral available to sell (wad)
* @param auctionIncomeRecipient Who receives the amount raised in the auction
* @param forgoneCollateralReceiver Who receives leftover collateral that is not auctioned
* @param initialBid Unused
*/
FixedDiscountCollateralAuctionHouse.prototype.startAuction = function (forgoneCollateralReceiver, auctionIncomeRecipient, amountToRaise, amountToSell, initialBid) {

@@ -266,6 +226,2 @@ // prettier-ignore

};
/**
* Terminate an auction prematurely. Usually called by Global Settlement.
* @param id ID of the auction to settle
*/
FixedDiscountCollateralAuctionHouse.prototype.terminateAuctionPrematurely = function (id) {

@@ -272,0 +228,0 @@ // prettier-ignore

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

accountingEngine(multicall: true): MulticallRequest<string>;
/**
* Add auth to an account
* @param account Account to add auth to
*/
addAuthorization(account: string): TransactionRequest;

@@ -30,6 +26,2 @@ authorizedAccounts(address: string): Promise<BigNumber>;

}>;
/**
* Authed function to add contracts that can save SAFEs from liquidation
* @param saviour SAFE saviour contract to be whitelisted*
*/
connectSAFESaviour(saviour: string): TransactionRequest;

@@ -40,36 +32,7 @@ contractEnabled(): Promise<BigNumber>;

currentOnAuctionSystemCoins(multicall: true): MulticallRequest<BigNumber>;
/**
* Disable this contract (normally called by GlobalSettlement)
*/
disableContract(): TransactionRequest;
/**
* Governance used function to remove contracts that can save SAFEs from liquidation
* @param saviour SAFE saviour contract to be removed*
*/
disconnectSAFESaviour(saviour: string): TransactionRequest;
/**
* Liquidate a SAFE
* @param collateralType The SAFE's collateral type
* @param safe The SAFE's address
*/
liquidateSAFE(collateralType: BytesLike, safe: string): TransactionRequest;
/**
* Modify collateral auction integration
* @param collateralType The collateral type we change parameters for
* @param data New address for the integration contract
* @param parameter The name of the integration modified
*/
modifyParameters1(collateralType: BytesLike, parameter: BytesLike, data: string): TransactionRequest;
/**
* Modify contract integrations
* @param data New address for the parameter
* @param parameter The name of the parameter modified
*/
modifyParameters2(parameter: BytesLike, data: string): TransactionRequest;
/**
* Modify liquidation params
* @param collateralType The collateral type we change parameters for
* @param data New value for the parameter
* @param parameter The name of the parameter modified
*/
modifyParameters3(collateralType: BytesLike, parameter: BytesLike, data: BigNumberish): TransactionRequest;

@@ -81,13 +44,3 @@ modifyParameters4(parameter: BytesLike, data: BigNumberish): TransactionRequest;

onAuctionSystemCoinLimit(multicall: true): MulticallRequest<BigNumber>;
/**
* Choose a saviour contract for your SAFE
* @param collateralType The SAFE's collateral type
* @param safe The SAFE's address
* @param saviour The chosen saviour
*/
protectSAFE(collateralType: BytesLike, safe: string, saviour: string): TransactionRequest;
/**
* Remove auth from an account
* @param account Account to remove auth from
*/
removeAuthorization(account: string): TransactionRequest;

@@ -94,0 +47,0 @@ removeCoinsFromAuction(rad: BigNumberish): TransactionRequest;

@@ -31,6 +31,2 @@ "use strict";

};
/**
* Add auth to an account
* @param account Account to add auth to
*/
LiquidationEngine.prototype.addAuthorization = function (account) {

@@ -60,6 +56,2 @@ // prettier-ignore

};
/**
* Authed function to add contracts that can save SAFEs from liquidation
* @param saviour SAFE saviour contract to be whitelisted*
*/
LiquidationEngine.prototype.connectSAFESaviour = function (saviour) {

@@ -83,5 +75,2 @@ // prettier-ignore

};
/**
* Disable this contract (normally called by GlobalSettlement)
*/
LiquidationEngine.prototype.disableContract = function () {

@@ -93,6 +82,2 @@ // prettier-ignore

};
/**
* Governance used function to remove contracts that can save SAFEs from liquidation
* @param saviour SAFE saviour contract to be removed*
*/
LiquidationEngine.prototype.disconnectSAFESaviour = function (saviour) {

@@ -104,7 +89,2 @@ // prettier-ignore

};
/**
* Liquidate a SAFE
* @param collateralType The SAFE's collateral type
* @param safe The SAFE's address
*/
LiquidationEngine.prototype.liquidateSAFE = function (collateralType, safe) {

@@ -116,8 +96,2 @@ // prettier-ignore

};
/**
* Modify collateral auction integration
* @param collateralType The collateral type we change parameters for
* @param data New address for the integration contract
* @param parameter The name of the integration modified
*/
LiquidationEngine.prototype.modifyParameters1 = function (collateralType, parameter, data) {

@@ -133,7 +107,2 @@ // prettier-ignore

};
/**
* Modify contract integrations
* @param data New address for the parameter
* @param parameter The name of the parameter modified
*/
LiquidationEngine.prototype.modifyParameters2 = function (parameter, data) {

@@ -145,8 +114,2 @@ // prettier-ignore

};
/**
* Modify liquidation params
* @param collateralType The collateral type we change parameters for
* @param data New value for the parameter
* @param parameter The name of the parameter modified
*/
LiquidationEngine.prototype.modifyParameters3 = function (collateralType, parameter, data) {

@@ -180,8 +143,2 @@ // prettier-ignore

};
/**
* Choose a saviour contract for your SAFE
* @param collateralType The SAFE's collateral type
* @param safe The SAFE's address
* @param saviour The chosen saviour
*/
LiquidationEngine.prototype.protectSAFE = function (collateralType, safe, saviour) {

@@ -193,6 +150,2 @@ // prettier-ignore

};
/**
* Remove auth from an account
* @param account Account to remove auth from
*/
LiquidationEngine.prototype.removeAuthorization = function (account) {

@@ -199,0 +152,0 @@ // prettier-ignore

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

export declare class Multicall extends BaseContractAPI {
getCurrentBlockTimestamp(): Promise<BigNumber>;
getCurrentBlockTimestamp(multicall: true): MulticallRequest<BigNumber>;
aggregate(calls: {

@@ -29,6 +27,6 @@ target: string;

}>;
getLastBlockHash(): Promise<string>;
getLastBlockHash(multicall: true): MulticallRequest<string>;
getEthBalance(addr: string): Promise<BigNumber>;
getEthBalance(addr: string, multicall: true): MulticallRequest<BigNumber>;
getBlockHash(blockNumber: BigNumberish): Promise<string>;
getBlockHash(blockNumber: BigNumberish, multicall: true): MulticallRequest<string>;
getCurrentBlockCoinbase(): Promise<string>;
getCurrentBlockCoinbase(multicall: true): MulticallRequest<string>;
getCurrentBlockDifficulty(): Promise<BigNumber>;

@@ -38,6 +36,8 @@ getCurrentBlockDifficulty(multicall: true): MulticallRequest<BigNumber>;

getCurrentBlockGasLimit(multicall: true): MulticallRequest<BigNumber>;
getCurrentBlockCoinbase(): Promise<string>;
getCurrentBlockCoinbase(multicall: true): MulticallRequest<string>;
getBlockHash(blockNumber: BigNumberish): Promise<string>;
getBlockHash(blockNumber: BigNumberish, multicall: true): MulticallRequest<string>;
getCurrentBlockTimestamp(): Promise<BigNumber>;
getCurrentBlockTimestamp(multicall: true): MulticallRequest<BigNumber>;
getEthBalance(addr: string): Promise<BigNumber>;
getEthBalance(addr: string, multicall: true): MulticallRequest<BigNumber>;
getLastBlockHash(): Promise<string>;
getLastBlockHash(multicall: true): MulticallRequest<string>;
}

@@ -25,12 +25,6 @@ "use strict";

}
Multicall.prototype.getCurrentBlockTimestamp = function (multicall) {
// prettier-ignore
// @ts-ignore
var abi = { "constant": true, "inputs": [], "name": "getCurrentBlockTimestamp", "outputs": [{ "name": "timestamp", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" };
return this.ethCallOrMulticall(abi, [], multicall);
};
Multicall.prototype.aggregate = function (calls) {
// prettier-ignore
// @ts-ignore
var abi = { "constant": false, "inputs": [{ "components": [{ "name": "target", "type": "address" }, { "name": "callData", "type": "bytes" }], "name": "calls", "type": "tuple[]" }], "name": "aggregate", "outputs": [{ "name": "blockNumber", "type": "uint256" }, { "name": "returnData", "type": "bytes[]" }], "payable": false, "stateMutability": "nonpayable", "type": "function" };
var abi = { "inputs": [{ "components": [{ "internalType": "address", "name": "target", "type": "address" }, { "internalType": "bytes", "name": "callData", "type": "bytes" }], "internalType": "struct Multicall.Call[]", "name": "calls", "type": "tuple[]" }], "name": "aggregate", "outputs": [{ "internalType": "uint256", "name": "blockNumber", "type": "uint256" }, { "internalType": "bytes[]", "name": "returnData", "type": "bytes[]" }], "stateMutability": "nonpayable", "type": "function" };
return this.getTransactionRequest(abi, [calls]);

@@ -44,13 +38,13 @@ };

};
Multicall.prototype.getLastBlockHash = function (multicall) {
Multicall.prototype.getBlockHash = function (blockNumber, multicall) {
// prettier-ignore
// @ts-ignore
var abi = { "constant": true, "inputs": [], "name": "getLastBlockHash", "outputs": [{ "name": "blockHash", "type": "bytes32" }], "payable": false, "stateMutability": "view", "type": "function" };
return this.ethCallOrMulticall(abi, [], multicall);
var abi = { "inputs": [{ "internalType": "uint256", "name": "blockNumber", "type": "uint256" }], "name": "getBlockHash", "outputs": [{ "internalType": "bytes32", "name": "blockHash", "type": "bytes32" }], "stateMutability": "view", "type": "function" };
return this.ethCallOrMulticall(abi, [blockNumber], multicall);
};
Multicall.prototype.getEthBalance = function (addr, multicall) {
Multicall.prototype.getCurrentBlockCoinbase = function (multicall) {
// prettier-ignore
// @ts-ignore
var abi = { "constant": true, "inputs": [{ "name": "addr", "type": "address" }], "name": "getEthBalance", "outputs": [{ "name": "balance", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" };
return this.ethCallOrMulticall(abi, [addr], multicall);
var abi = { "inputs": [], "name": "getCurrentBlockCoinbase", "outputs": [{ "internalType": "address", "name": "coinbase", "type": "address" }], "stateMutability": "view", "type": "function" };
return this.ethCallOrMulticall(abi, [], multicall);
};

@@ -60,3 +54,3 @@ Multicall.prototype.getCurrentBlockDifficulty = function (multicall) {

// @ts-ignore
var abi = { "constant": true, "inputs": [], "name": "getCurrentBlockDifficulty", "outputs": [{ "name": "difficulty", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" };
var abi = { "inputs": [], "name": "getCurrentBlockDifficulty", "outputs": [{ "internalType": "uint256", "name": "difficulty", "type": "uint256" }], "stateMutability": "view", "type": "function" };
return this.ethCallOrMulticall(abi, [], multicall);

@@ -67,19 +61,25 @@ };

// @ts-ignore
var abi = { "constant": true, "inputs": [], "name": "getCurrentBlockGasLimit", "outputs": [{ "name": "gaslimit", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" };
var abi = { "inputs": [], "name": "getCurrentBlockGasLimit", "outputs": [{ "internalType": "uint256", "name": "gaslimit", "type": "uint256" }], "stateMutability": "view", "type": "function" };
return this.ethCallOrMulticall(abi, [], multicall);
};
Multicall.prototype.getCurrentBlockCoinbase = function (multicall) {
Multicall.prototype.getCurrentBlockTimestamp = function (multicall) {
// prettier-ignore
// @ts-ignore
var abi = { "constant": true, "inputs": [], "name": "getCurrentBlockCoinbase", "outputs": [{ "name": "coinbase", "type": "address" }], "payable": false, "stateMutability": "view", "type": "function" };
var abi = { "inputs": [], "name": "getCurrentBlockTimestamp", "outputs": [{ "internalType": "uint256", "name": "timestamp", "type": "uint256" }], "stateMutability": "view", "type": "function" };
return this.ethCallOrMulticall(abi, [], multicall);
};
Multicall.prototype.getBlockHash = function (blockNumber, multicall) {
Multicall.prototype.getEthBalance = function (addr, multicall) {
// prettier-ignore
// @ts-ignore
var abi = { "constant": true, "inputs": [{ "name": "blockNumber", "type": "uint256" }], "name": "getBlockHash", "outputs": [{ "name": "blockHash", "type": "bytes32" }], "payable": false, "stateMutability": "view", "type": "function" };
return this.ethCallOrMulticall(abi, [blockNumber], multicall);
var abi = { "inputs": [{ "internalType": "address", "name": "addr", "type": "address" }], "name": "getEthBalance", "outputs": [{ "internalType": "uint256", "name": "balance", "type": "uint256" }], "stateMutability": "view", "type": "function" };
return this.ethCallOrMulticall(abi, [addr], multicall);
};
Multicall.prototype.getLastBlockHash = function (multicall) {
// prettier-ignore
// @ts-ignore
var abi = { "inputs": [], "name": "getLastBlockHash", "outputs": [{ "internalType": "bytes32", "name": "blockHash", "type": "bytes32" }], "stateMutability": "view", "type": "function" };
return this.ethCallOrMulticall(abi, [], multicall);
};
return Multicall;
}(geb_contract_base_1.BaseContractAPI));
exports.Multicall = Multicall;

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

export declare class OracleRelayer extends BaseContractAPI {
/**
* Add auth to an account
* @param account Account to add auth to
*/
addAuthorization(account: string): TransactionRequest;

@@ -28,41 +24,10 @@ authorizedAccounts(address: string): Promise<BigNumber>;

contractEnabled(multicall: true): MulticallRequest<BigNumber>;
/**
* Disable this contract (normally called by GlobalSettlement)
*/
disableContract(): TransactionRequest;
/**
* Fetch the liquidation CRatio of a specific collateral type
* @param collateralType The collateral price we want the liquidation CRatio for
*/
liquidationCRatio(collateralType: BytesLike): Promise<BigNumber>;
liquidationCRatio(collateralType: BytesLike, multicall: true): MulticallRequest<BigNumber>;
/**
* Modify oracle price feed addresses
* @param addr New oracle address
* @param collateralType Collateral who's oracle we change
* @param parameter Name of the parameter
*/
modifyParameters1(collateralType: BytesLike, parameter: BytesLike, addr: string): TransactionRequest;
/**
* Modify CRatio related parameters
* @param collateralType Collateral who's parameters we change
* @param data New param value
* @param parameter Name of the parameter
*/
modifyParameters2(collateralType: BytesLike, parameter: BytesLike, data: BigNumberish): TransactionRequest;
/**
* Modify redemption related parameters
* @param data New param value
* @param parameter Name of the parameter
*/
modifyParameters3(parameter: BytesLike, data: BigNumberish): TransactionRequest;
/**
* Fetch the oracle price feed of a specific collateral type
* @param collateralType The collateral price we want the oracle price feed for
*/
orcl(collateralType: BytesLike): Promise<string>;
orcl(collateralType: BytesLike, multicall: true): MulticallRequest<string>;
/**
* Fetch the latest redemption price by first updating it
*/
redemptionPrice(): TransactionRequest;

@@ -79,20 +44,8 @@ redemptionPrice_readOnly(): Promise<BigNumber>;

redemptionRateUpperBound(multicall: true): MulticallRequest<BigNumber>;
/**
* Remove auth from an account
* @param account Account to remove auth from
*/
removeAuthorization(account: string): TransactionRequest;
safeEngine(): Promise<string>;
safeEngine(multicall: true): MulticallRequest<string>;
/**
* Fetch the safety CRatio of a specific collateral type
* @param collateralType The collateral price we want the safety CRatio for
*/
safetyCRatio(collateralType: BytesLike): Promise<BigNumber>;
safetyCRatio(collateralType: BytesLike, multicall: true): MulticallRequest<BigNumber>;
/**
* Update the collateral price inside the system (inside SAFEEngine)
* @param collateralType The collateral we want to update prices (safety and liquidation prices) for
*/
updateCollateralPrice(collateralType: BytesLike): TransactionRequest;
}

@@ -25,6 +25,2 @@ "use strict";

}
/**
* Add auth to an account
* @param account Account to add auth to
*/
OracleRelayer.prototype.addAuthorization = function (account) {

@@ -54,5 +50,2 @@ // prettier-ignore

};
/**
* Disable this contract (normally called by GlobalSettlement)
*/
OracleRelayer.prototype.disableContract = function () {

@@ -70,8 +63,2 @@ // prettier-ignore

};
/**
* Modify oracle price feed addresses
* @param addr New oracle address
* @param collateralType Collateral who's oracle we change
* @param parameter Name of the parameter
*/
OracleRelayer.prototype.modifyParameters1 = function (collateralType, parameter, addr) {

@@ -87,8 +74,2 @@ // prettier-ignore

};
/**
* Modify CRatio related parameters
* @param collateralType Collateral who's parameters we change
* @param data New param value
* @param parameter Name of the parameter
*/
OracleRelayer.prototype.modifyParameters2 = function (collateralType, parameter, data) {

@@ -104,7 +85,2 @@ // prettier-ignore

};
/**
* Modify redemption related parameters
* @param data New param value
* @param parameter Name of the parameter
*/
OracleRelayer.prototype.modifyParameters3 = function (parameter, data) {

@@ -122,5 +98,2 @@ // prettier-ignore

};
/**
* Fetch the latest redemption price by first updating it
*/
OracleRelayer.prototype.redemptionPrice = function () {

@@ -162,6 +135,2 @@ // prettier-ignore

};
/**
* Remove auth from an account
* @param account Account to remove auth from
*/
OracleRelayer.prototype.removeAuthorization = function (account) {

@@ -185,6 +154,2 @@ // prettier-ignore

};
/**
* Update the collateral price inside the system (inside SAFEEngine)
* @param collateralType The collateral we want to update prices (safety and liquidation prices) for
*/
OracleRelayer.prototype.updateCollateralPrice = function (collateralType) {

@@ -191,0 +156,0 @@ // prettier-ignore

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

AUCTION_HOUSE_TYPE(multicall: true): MulticallRequest<string>;
/**
* Add auth to an account
* @param account Account to add auth to
*/
addAuthorization(account: string): TransactionRequest;

@@ -38,39 +34,11 @@ auctionsStarted(): Promise<BigNumber>;

}>;
/**
* Submit a higher protocol token bid for the same amount of system coins
* @param amountToBuy Amount of system coins to buy (wad)
* @param bid New bid submitted (rad)
* @param id ID of the auction you want to submit the bid for
*/
increaseBidSize(id: BigNumberish, amountToBuy: BigNumberish, bid: BigNumberish): TransactionRequest;
/**
* Modify auction parameters
* @param data New value for the parameter
* @param parameter The name of the parameter modified
*/
modifyParameters(parameter: BytesLike, data: BigNumberish): TransactionRequest;
protocolToken(): Promise<string>;
protocolToken(multicall: true): MulticallRequest<string>;
/**
* Remove auth from an account
* @param account Account to remove auth from
*/
removeAuthorization(account: string): TransactionRequest;
/**
* Restart an auction if no bids were submitted for it
* @param id ID of the auction to restart
*/
restartAuction(id: BigNumberish): TransactionRequest;
safeEngine(): Promise<string>;
safeEngine(multicall: true): MulticallRequest<string>;
/**
* Settle/finish an auction
* @param id ID of the auction to settle
*/
settleAuction(id: BigNumberish): TransactionRequest;
/**
* Start a new surplus auction
* @param amountToSell Total amount of system coins to sell (wad)
* @param initialBid Initial protocol token bid (rad)
*/
startAuction(amountToSell: BigNumberish, initialBid: BigNumberish): TransactionRequest;

@@ -77,0 +45,0 @@ totalAuctionLength(): Promise<number>;

@@ -31,6 +31,2 @@ "use strict";

};
/**
* Add auth to an account
* @param account Account to add auth to
*/
PostSettlementSurplusAuctionHouse.prototype.addAuthorization = function (account) {

@@ -72,8 +68,2 @@ // prettier-ignore

};
/**
* Submit a higher protocol token bid for the same amount of system coins
* @param amountToBuy Amount of system coins to buy (wad)
* @param bid New bid submitted (rad)
* @param id ID of the auction you want to submit the bid for
*/
PostSettlementSurplusAuctionHouse.prototype.increaseBidSize = function (id, amountToBuy, bid) {

@@ -85,7 +75,2 @@ // prettier-ignore

};
/**
* Modify auction parameters
* @param data New value for the parameter
* @param parameter The name of the parameter modified
*/
PostSettlementSurplusAuctionHouse.prototype.modifyParameters = function (parameter, data) {

@@ -103,6 +88,2 @@ // prettier-ignore

};
/**
* Remove auth from an account
* @param account Account to remove auth from
*/
PostSettlementSurplusAuctionHouse.prototype.removeAuthorization = function (account) {

@@ -114,6 +95,2 @@ // prettier-ignore

};
/**
* Restart an auction if no bids were submitted for it
* @param id ID of the auction to restart
*/
PostSettlementSurplusAuctionHouse.prototype.restartAuction = function (id) {

@@ -131,6 +108,2 @@ // prettier-ignore

};
/**
* Settle/finish an auction
* @param id ID of the auction to settle
*/
PostSettlementSurplusAuctionHouse.prototype.settleAuction = function (id) {

@@ -142,7 +115,2 @@ // prettier-ignore

};
/**
* Start a new surplus auction
* @param amountToSell Total amount of system coins to sell (wad)
* @param initialBid Initial protocol token bid (rad)
*/
PostSettlementSurplusAuctionHouse.prototype.startAuction = function (amountToSell, initialBid) {

@@ -149,0 +117,0 @@ // prettier-ignore

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

AUCTION_HOUSE_TYPE(multicall: true): MulticallRequest<string>;
/**
* Add auth to an account
* @param account Account to add auth to
*/
addAuthorization(account: string): TransactionRequest;

@@ -40,48 +36,13 @@ auctionsStarted(): Promise<BigNumber>;

contractEnabled(multicall: true): MulticallRequest<BigNumber>;
/**
* Disable the auction house (usually called by AccountingEngine)*
*/
disableContract(): TransactionRequest;
/**
* Submit a higher protocol token bid for the same amount of system coins
* @param amountToBuy Amount of system coins to buy (wad)
* @param bid New bid submitted (rad)
* @param id ID of the auction you want to submit the bid for
*/
increaseBidSize(id: BigNumberish, amountToBuy: BigNumberish, bid: BigNumberish): TransactionRequest;
/**
* Modify auction parameters
* @param data New value for the parameter
* @param parameter The name of the parameter modified
*/
modifyParameters(parameter: BytesLike, data: BigNumberish): TransactionRequest;
protocolToken(): Promise<string>;
protocolToken(multicall: true): MulticallRequest<string>;
/**
* Remove auth from an account
* @param account Account to remove auth from
*/
removeAuthorization(account: string): TransactionRequest;
/**
* Restart an auction if no bids were submitted for it
* @param id ID of the auction to restart
*/
restartAuction(id: BigNumberish): TransactionRequest;
safeEngine(): Promise<string>;
safeEngine(multicall: true): MulticallRequest<string>;
/**
* Settle/finish an auction
* @param id ID of the auction to settle
*/
settleAuction(id: BigNumberish): TransactionRequest;
/**
* Start a new surplus auction
* @param amountToSell Total amount of system coins to sell (wad)
* @param initialBid Initial protocol token bid (rad)
*/
startAuction(amountToSell: BigNumberish, initialBid: BigNumberish): TransactionRequest;
/**
* Terminate an auction prematurely.
* @param id ID of the auction to settle/terminate
*/
terminateAuctionPrematurely(id: BigNumberish): TransactionRequest;

@@ -88,0 +49,0 @@ totalAuctionLength(): Promise<number>;

@@ -31,6 +31,2 @@ "use strict";

};
/**
* Add auth to an account
* @param account Account to add auth to
*/
PreSettlementSurplusAuctionHouse.prototype.addAuthorization = function (account) {

@@ -78,5 +74,2 @@ // prettier-ignore

};
/**
* Disable the auction house (usually called by AccountingEngine)*
*/
PreSettlementSurplusAuctionHouse.prototype.disableContract = function () {

@@ -88,8 +81,2 @@ // prettier-ignore

};
/**
* Submit a higher protocol token bid for the same amount of system coins
* @param amountToBuy Amount of system coins to buy (wad)
* @param bid New bid submitted (rad)
* @param id ID of the auction you want to submit the bid for
*/
PreSettlementSurplusAuctionHouse.prototype.increaseBidSize = function (id, amountToBuy, bid) {

@@ -101,7 +88,2 @@ // prettier-ignore

};
/**
* Modify auction parameters
* @param data New value for the parameter
* @param parameter The name of the parameter modified
*/
PreSettlementSurplusAuctionHouse.prototype.modifyParameters = function (parameter, data) {

@@ -119,6 +101,2 @@ // prettier-ignore

};
/**
* Remove auth from an account
* @param account Account to remove auth from
*/
PreSettlementSurplusAuctionHouse.prototype.removeAuthorization = function (account) {

@@ -130,6 +108,2 @@ // prettier-ignore

};
/**
* Restart an auction if no bids were submitted for it
* @param id ID of the auction to restart
*/
PreSettlementSurplusAuctionHouse.prototype.restartAuction = function (id) {

@@ -147,6 +121,2 @@ // prettier-ignore

};
/**
* Settle/finish an auction
* @param id ID of the auction to settle
*/
PreSettlementSurplusAuctionHouse.prototype.settleAuction = function (id) {

@@ -158,7 +128,2 @@ // prettier-ignore

};
/**
* Start a new surplus auction
* @param amountToSell Total amount of system coins to sell (wad)
* @param initialBid Initial protocol token bid (rad)
*/
PreSettlementSurplusAuctionHouse.prototype.startAuction = function (amountToSell, initialBid) {

@@ -170,6 +135,2 @@ // prettier-ignore

};
/**
* Terminate an auction prematurely.
* @param id ID of the auction to settle/terminate
*/
PreSettlementSurplusAuctionHouse.prototype.terminateAuctionPrematurely = function (id) {

@@ -176,0 +137,0 @@ // prettier-ignore

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

export declare class SafeEngine extends BaseContractAPI {
/**
* Add auth to an account
* @param account Account to add auth to
*/
addAuthorization(account: string): TransactionRequest;
/**
* Allow an address to modify your SAFE
* @param account Account to give SAFE permissions to
*/
approveSAFEModification(account: string): TransactionRequest;
authorizedAccounts(address: string): Promise<BigNumber>;
authorizedAccounts(address: string, multicall: true): MulticallRequest<BigNumber>;
/**
* Checks whether msg.sender has the right to modify a SAFE*
*/
canModifySAFE(safe: string, account: string): Promise<boolean>;

@@ -44,31 +33,9 @@ canModifySAFE(safe: string, account: string, multicall: true): MulticallRequest<boolean>;

}>;
/**
* Normally used by the LiquidationEngine in order to confiscate collateral and debt from a SAFE and give them to someone else
* @param collateralCounterparty Who we take/give collateral to
* @param collateralType Collateral type the SAFE has locked inside
* @param debtCounterparty Who we take/give debt to
* @param deltaCollateral Amount of collateral taken/added into the SAFE (wad)
* @param deltaDebt Amount of collateral taken/added into the SAFE (wad)
* @param safe Target SAFE
*/
confiscateSAFECollateralAndDebt(collateralType: BytesLike, safe: string, collateralCounterparty: string, debtCounterparty: string, deltaCollateral: BigNumberish, deltaDebt: BigNumberish): TransactionRequest;
contractEnabled(): Promise<BigNumber>;
contractEnabled(multicall: true): MulticallRequest<BigNumber>;
/**
* Usually called by CoinSavingsAccount in order to create unbacked debt
* @param coinDestination Usually CoinSavingsAccount who passes the new coins to depositors
* @param debtDestination Usually AccountingEngine that can settle dent with surplus
* @param rad Amount of debt to create
*/
createUnbackedDebt(debtDestination: string, coinDestination: string, rad: BigNumberish): TransactionRequest;
debtBalance(address: string): Promise<BigNumber>;
debtBalance(address: string, multicall: true): MulticallRequest<BigNumber>;
/**
* Deny an address the rights to modify your SAFE
* @param account Account to give SAFE permissions to
*/
denySAFEModification(account: string): TransactionRequest;
/**
* Disable this contract (normally called by GlobalSettlement)
*/
disableContract(): TransactionRequest;

@@ -81,41 +48,7 @@ globalDebt(): Promise<BigNumber>;

globalUnbackedDebt(multicall: true): MulticallRequest<BigNumber>;
/**
* Creates a brand new collateral type
* @param collateralType Collateral type name (e.g ETH-A, TBTC-B)
*/
initializeCollateralType(collateralType: BytesLike): TransactionRequest;
/**
* Join/exit collateral into and and out of the system
* @param account Account that gets credited/debited
* @param collateralType Collateral type we join/exit
* @param wad Amount of collateral
*/
modifyCollateralBalance(collateralType: BytesLike, account: string, wad: BigNumberish): TransactionRequest;
/**
* Modify collateral specific params
* @param collateralType Collateral type we modify params for
* @param data New value for the parameter
* @param parameter The name of the parameter modified
*/
modifyParameters1(collateralType: BytesLike, parameter: BytesLike, data: BigNumberish): TransactionRequest;
/**
* Modify general uint params
* @param data New value for the parameter
* @param parameter The name of the parameter modified
*/
modifyParameters2(parameter: BytesLike, data: BigNumberish): TransactionRequest;
/**
* Add/remove collateral or put back/generate more debt in a SAFE
* @param collateralSource Account we take collateral from/put collateral into
* @param collateralType Type of collateral to withdraw/deposit in and from the SAFE
* @param debtDestination Account from which we credit/debit coins and debt
* @param deltaCollateral Amount of collateral added/extract from the SAFE (wad)
* @param deltaDebt Amount of debt to generate/repay (wad)
* @param safe Target SAFE
*/
modifySAFECollateralization(collateralType: BytesLike, safe: string, collateralSource: string, debtDestination: string, deltaCollateral: BigNumberish, deltaDebt: BigNumberish): TransactionRequest;
/**
* Remove auth from an account
* @param account Account to remove auth from
*/
removeAuthorization(account: string): TransactionRequest;

@@ -132,40 +65,9 @@ safeRights(address1: string, address2: string): Promise<BigNumber>;

}>;
/**
* Nullify an amount of coins with an equal amount of debt
* @param rad Amount of debt & coins to destroy
*/
settleDebt(rad: BigNumberish): TransactionRequest;
tokenCollateral(bytes: BytesLike, address: string): Promise<BigNumber>;
tokenCollateral(bytes: BytesLike, address: string, multicall: true): MulticallRequest<BigNumber>;
/**
* Transfer collateral between accounts
* @param collateralType Collateral type transferred
* @param dst Collateral destination
* @param src Collateral source
* @param wad Amount of collateral transferred
*/
transferCollateral(collateralType: BytesLike, src: string, dst: string, wad: BigNumberish): TransactionRequest;
/**
* Transfer internal coins (does not affect external balances from Coin.sol)
* @param dst Coins destination
* @param rad Amount of coins transferred
* @param src Coins source
*/
transferInternalCoins(src: string, dst: string, rad: BigNumberish): TransactionRequest;
/**
* Transfer collateral and/or debt between SAFEs
* @param collateralType Collateral type transferred between SAFEs
* @param deltaCollateral Amount of collateral to take/add into src and give/take from dst (wad)
* @param deltaDebt Amount of debt to take/add into src and give/take from dst (wad)
* @param dst Destination SAFE
* @param src Source SAFE
*/
transferSAFECollateralAndDebt(collateralType: BytesLike, src: string, dst: string, deltaCollateral: BigNumberish, deltaDebt: BigNumberish): TransactionRequest;
/**
* Usually called by TaxCollector in order to accrue interest on a specific collateral type
* @param collateralType Collateral type we accrue interest for
* @param rateMultiplier Multiplier applied to the debtAmount in order to calculate the surplus [ray]
* @param surplusDst Destination for amount of surplus created by applying the interest rate to debt created by SAFEs with 'collateralType'
*/
updateAccumulatedRate(collateralType: BytesLike, surplusDst: string, rateMultiplier: BigNumberish): TransactionRequest;
}

@@ -25,6 +25,2 @@ "use strict";

}
/**
* Add auth to an account
* @param account Account to add auth to
*/
SafeEngine.prototype.addAuthorization = function (account) {

@@ -36,6 +32,2 @@ // prettier-ignore

};
/**
* Allow an address to modify your SAFE
* @param account Account to give SAFE permissions to
*/
SafeEngine.prototype.approveSAFEModification = function (account) {

@@ -71,11 +63,2 @@ // prettier-ignore

};
/**
* Normally used by the LiquidationEngine in order to confiscate collateral and debt from a SAFE and give them to someone else
* @param collateralCounterparty Who we take/give collateral to
* @param collateralType Collateral type the SAFE has locked inside
* @param debtCounterparty Who we take/give debt to
* @param deltaCollateral Amount of collateral taken/added into the SAFE (wad)
* @param deltaDebt Amount of collateral taken/added into the SAFE (wad)
* @param safe Target SAFE
*/
SafeEngine.prototype.confiscateSAFECollateralAndDebt = function (collateralType, safe, collateralCounterparty, debtCounterparty, deltaCollateral, deltaDebt) {

@@ -100,8 +83,2 @@ // prettier-ignore

};
/**
* Usually called by CoinSavingsAccount in order to create unbacked debt
* @param coinDestination Usually CoinSavingsAccount who passes the new coins to depositors
* @param debtDestination Usually AccountingEngine that can settle dent with surplus
* @param rad Amount of debt to create
*/
SafeEngine.prototype.createUnbackedDebt = function (debtDestination, coinDestination, rad) {

@@ -123,6 +100,2 @@ // prettier-ignore

};
/**
* Deny an address the rights to modify your SAFE
* @param account Account to give SAFE permissions to
*/
SafeEngine.prototype.denySAFEModification = function (account) {

@@ -134,5 +107,2 @@ // prettier-ignore

};
/**
* Disable this contract (normally called by GlobalSettlement)
*/
SafeEngine.prototype.disableContract = function () {

@@ -162,6 +132,2 @@ // prettier-ignore

};
/**
* Creates a brand new collateral type
* @param collateralType Collateral type name (e.g ETH-A, TBTC-B)
*/
SafeEngine.prototype.initializeCollateralType = function (collateralType) {

@@ -173,8 +139,2 @@ // prettier-ignore

};
/**
* Join/exit collateral into and and out of the system
* @param account Account that gets credited/debited
* @param collateralType Collateral type we join/exit
* @param wad Amount of collateral
*/
SafeEngine.prototype.modifyCollateralBalance = function (collateralType, account, wad) {

@@ -186,8 +146,2 @@ // prettier-ignore

};
/**
* Modify collateral specific params
* @param collateralType Collateral type we modify params for
* @param data New value for the parameter
* @param parameter The name of the parameter modified
*/
SafeEngine.prototype.modifyParameters1 = function (collateralType, parameter, data) {

@@ -203,7 +157,2 @@ // prettier-ignore

};
/**
* Modify general uint params
* @param data New value for the parameter
* @param parameter The name of the parameter modified
*/
SafeEngine.prototype.modifyParameters2 = function (parameter, data) {

@@ -215,11 +164,2 @@ // prettier-ignore

};
/**
* Add/remove collateral or put back/generate more debt in a SAFE
* @param collateralSource Account we take collateral from/put collateral into
* @param collateralType Type of collateral to withdraw/deposit in and from the SAFE
* @param debtDestination Account from which we credit/debit coins and debt
* @param deltaCollateral Amount of collateral added/extract from the SAFE (wad)
* @param deltaDebt Amount of debt to generate/repay (wad)
* @param safe Target SAFE
*/
SafeEngine.prototype.modifySAFECollateralization = function (collateralType, safe, collateralSource, debtDestination, deltaCollateral, deltaDebt) {

@@ -238,6 +178,2 @@ // prettier-ignore

};
/**
* Remove auth from an account
* @param account Account to remove auth from
*/
SafeEngine.prototype.removeAuthorization = function (account) {

@@ -261,6 +197,2 @@ // prettier-ignore

};
/**
* Nullify an amount of coins with an equal amount of debt
* @param rad Amount of debt & coins to destroy
*/
SafeEngine.prototype.settleDebt = function (rad) {

@@ -278,9 +210,2 @@ // prettier-ignore

};
/**
* Transfer collateral between accounts
* @param collateralType Collateral type transferred
* @param dst Collateral destination
* @param src Collateral source
* @param wad Amount of collateral transferred
*/
SafeEngine.prototype.transferCollateral = function (collateralType, src, dst, wad) {

@@ -292,8 +217,2 @@ // prettier-ignore

};
/**
* Transfer internal coins (does not affect external balances from Coin.sol)
* @param dst Coins destination
* @param rad Amount of coins transferred
* @param src Coins source
*/
SafeEngine.prototype.transferInternalCoins = function (src, dst, rad) {

@@ -305,10 +224,2 @@ // prettier-ignore

};
/**
* Transfer collateral and/or debt between SAFEs
* @param collateralType Collateral type transferred between SAFEs
* @param deltaCollateral Amount of collateral to take/add into src and give/take from dst (wad)
* @param deltaDebt Amount of debt to take/add into src and give/take from dst (wad)
* @param dst Destination SAFE
* @param src Source SAFE
*/
SafeEngine.prototype.transferSAFECollateralAndDebt = function (collateralType, src, dst, deltaCollateral, deltaDebt) {

@@ -326,8 +237,2 @@ // prettier-ignore

};
/**
* Usually called by TaxCollector in order to accrue interest on a specific collateral type
* @param collateralType Collateral type we accrue interest for
* @param rateMultiplier Multiplier applied to the debtAmount in order to calculate the surplus [ray]
* @param surplusDst Destination for amount of surplus created by applying the interest rate to debt created by SAFEs with 'collateralType'
*/
SafeEngine.prototype.updateAccumulatedRate = function (collateralType, surplusDst, rateMultiplier) {

@@ -334,0 +239,0 @@ // prettier-ignore

@@ -9,10 +9,3 @@ import { BaseContractAPI } from '@reflexer-finance/geb-contract-base';

accountingEngine(multicall: true): MulticallRequest<string>;
/**
* Add auth to an account
* @param account Account to add auth to
*/
addAuthorization(account: string): TransactionRequest;
/**
* Auction stability fees. The process is very similar to how the AccountingEngine would do it. The contract even reads surplus auction parameters from the AccountingEngine and uses them to start a new auction.
*/
auctionSurplus(): TransactionRequest;

@@ -23,12 +16,3 @@ authorizedAccounts(address: string): Promise<BigNumber>;

lastSurplusAuctionTime(multicall: true): MulticallRequest<BigNumber>;
/**
* Modify contract addresses
* @param addr New address for the contract
* @param parameter The name of the contract whose address will be changed
*/
modifyParameters(parameter: BytesLike, addr: string): TransactionRequest;
/**
* Remove auth from an account
* @param account Account to remove auth from
*/
removeAuthorization(account: string): TransactionRequest;

@@ -35,0 +19,0 @@ safeEngine(): Promise<string>;

@@ -31,6 +31,2 @@ "use strict";

};
/**
* Add auth to an account
* @param account Account to add auth to
*/
SettlementSurplusAuctioneer.prototype.addAuthorization = function (account) {

@@ -42,5 +38,2 @@ // prettier-ignore

};
/**
* Auction stability fees. The process is very similar to how the AccountingEngine would do it. The contract even reads surplus auction parameters from the AccountingEngine and uses them to start a new auction.
*/
SettlementSurplusAuctioneer.prototype.auctionSurplus = function () {

@@ -64,7 +57,2 @@ // prettier-ignore

};
/**
* Modify contract addresses
* @param addr New address for the contract
* @param parameter The name of the contract whose address will be changed
*/
SettlementSurplusAuctioneer.prototype.modifyParameters = function (parameter, addr) {

@@ -76,6 +64,2 @@ // prettier-ignore

};
/**
* Remove auth from an account
* @param account Account to remove auth from
*/
SettlementSurplusAuctioneer.prototype.removeAuthorization = function (account) {

@@ -82,0 +66,0 @@ // prettier-ignore

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

accumulatorTag(multicall: true): MulticallRequest<BigNumber>;
/**
* Add auth to an account
* @param account Account to add auth to
*/
addAuthorization(account: string): TransactionRequest;

@@ -24,5 +20,2 @@ authorizedAccounts(address: string): Promise<BigNumber>;

contractEnabled(multicall: true): MulticallRequest<BigNumber>;
/**
* Disable this contract (normally called by GlobalSettlement)
*/
disableContract(): TransactionRequest;

@@ -41,7 +34,2 @@ expensesAccumulator(): Promise<BigNumber>;

}>;
/**
* Governance transfers SF to an address
* @param account Address to transfer SF to
* @param rad Amount of internal system coins to transfer (a number with 45 decimals)
*/
giveFunds(account: string, rad: BigNumberish): TransactionRequest;

@@ -52,41 +40,11 @@ latestSurplusTransferTime(): Promise<BigNumber>;

minimumFundsRequired(multicall: true): MulticallRequest<BigNumber>;
/**
* Modify contract addresses
* @param addr New address for the contract
* @param parameter The name of the contract whose address will be changed
*/
modifyParameters1(parameter: BytesLike, addr: string): TransactionRequest;
/**
* Modify uint256 parameters
* @param parameter The name of the parameter to modify
* @param val New parameter value
*/
modifyParameters2(parameter: BytesLike, val: BigNumberish): TransactionRequest;
/**
* Pull stability fees from the treasury (if your allowance permits)
* @param dstAccount Address to transfer funds to
* @param token Address of the token to transfer (in this case it must be the address of the ERC20 system coin). Used only to adhere to a standard for automated, on-chain treasuries
* @param wad Amount of system coins (SF) to transfer (expressed as an 18 decimal number but the contract will transfer internal system coins that have 45 decimals)
*/
pullFunds(dstAccount: string, token: string, wad: BigNumberish): TransactionRequest;
pulledPerBlock(address: string, uinteger: BigNumberish): Promise<BigNumber>;
pulledPerBlock(address: string, uinteger: BigNumberish, multicall: true): MulticallRequest<BigNumber>;
/**
* Remove auth from an account
* @param account Account to remove auth from
*/
removeAuthorization(account: string): TransactionRequest;
safeEngine(): Promise<string>;
safeEngine(multicall: true): MulticallRequest<string>;
/**
* Modify an address' per block allowance in order to withdraw SF from the treasury
* @param account The approved address
* @param rad The per block approved amount of SF to withdraw (number with 45 decimals)
*/
setPerBlockAllowance(account: string, rad: BigNumberish): TransactionRequest;
/**
* Modify an address' total allowance in order to withdraw SF from the treasury
* @param account The approved address
* @param rad The total approved amount of SF to withdraw (number with 45 decimals)
*/
setTotalAllowance(account: string, rad: BigNumberish): TransactionRequest;

@@ -97,11 +55,3 @@ surplusTransferDelay(): Promise<BigNumber>;

systemCoin(multicall: true): MulticallRequest<string>;
/**
* Governance takes funds from an address
* @param account Address to take system coins from
* @param rad Amount of internal system coins to take from the account (a number with 45 decimals)
*/
takeFunds(account: string, rad: BigNumberish): TransactionRequest;
/**
* Transfer surplus stability fees to the AccountingEngine. This is here to make sure that the treasury doesn't accumulate too many fees that it doesn't even need in order to pay for allowances. It ensures that there are enough funds left in the treasury to account for projected expenses (latest expenses multiplied by an expense multiplier)
*/
transferSurplusFunds(): TransactionRequest;

@@ -108,0 +58,0 @@ treasuryCapacity(): Promise<BigNumber>;

@@ -37,6 +37,2 @@ "use strict";

};
/**
* Add auth to an account
* @param account Account to add auth to
*/
StabilityFeeTreasury.prototype.addAuthorization = function (account) {

@@ -66,5 +62,2 @@ // prettier-ignore

};
/**
* Disable this contract (normally called by GlobalSettlement)
*/
StabilityFeeTreasury.prototype.disableContract = function () {

@@ -94,7 +87,2 @@ // prettier-ignore

};
/**
* Governance transfers SF to an address
* @param account Address to transfer SF to
* @param rad Amount of internal system coins to transfer (a number with 45 decimals)
*/
StabilityFeeTreasury.prototype.giveFunds = function (account, rad) {

@@ -118,7 +106,2 @@ // prettier-ignore

};
/**
* Modify contract addresses
* @param addr New address for the contract
* @param parameter The name of the contract whose address will be changed
*/
StabilityFeeTreasury.prototype.modifyParameters1 = function (parameter, addr) {

@@ -130,7 +113,2 @@ // prettier-ignore

};
/**
* Modify uint256 parameters
* @param parameter The name of the parameter to modify
* @param val New parameter value
*/
StabilityFeeTreasury.prototype.modifyParameters2 = function (parameter, val) {

@@ -142,8 +120,2 @@ // prettier-ignore

};
/**
* Pull stability fees from the treasury (if your allowance permits)
* @param dstAccount Address to transfer funds to
* @param token Address of the token to transfer (in this case it must be the address of the ERC20 system coin). Used only to adhere to a standard for automated, on-chain treasuries
* @param wad Amount of system coins (SF) to transfer (expressed as an 18 decimal number but the contract will transfer internal system coins that have 45 decimals)
*/
StabilityFeeTreasury.prototype.pullFunds = function (dstAccount, token, wad) {

@@ -161,6 +133,2 @@ // prettier-ignore

};
/**
* Remove auth from an account
* @param account Account to remove auth from
*/
StabilityFeeTreasury.prototype.removeAuthorization = function (account) {

@@ -178,7 +146,2 @@ // prettier-ignore

};
/**
* Modify an address' per block allowance in order to withdraw SF from the treasury
* @param account The approved address
* @param rad The per block approved amount of SF to withdraw (number with 45 decimals)
*/
StabilityFeeTreasury.prototype.setPerBlockAllowance = function (account, rad) {

@@ -190,7 +153,2 @@ // prettier-ignore

};
/**
* Modify an address' total allowance in order to withdraw SF from the treasury
* @param account The approved address
* @param rad The total approved amount of SF to withdraw (number with 45 decimals)
*/
StabilityFeeTreasury.prototype.setTotalAllowance = function (account, rad) {

@@ -214,7 +172,2 @@ // prettier-ignore

};
/**
* Governance takes funds from an address
* @param account Address to take system coins from
* @param rad Amount of internal system coins to take from the account (a number with 45 decimals)
*/
StabilityFeeTreasury.prototype.takeFunds = function (account, rad) {

@@ -226,5 +179,2 @@ // prettier-ignore

};
/**
* Transfer surplus stability fees to the AccountingEngine. This is here to make sure that the treasury doesn't accumulate too many fees that it doesn't even need in order to pay for allowances. It ensures that there are enough funds left in the treasury to account for projected expenses (latest expenses multiplied by an expense multiplier)
*/
StabilityFeeTreasury.prototype.transferSurplusFunds = function () {

@@ -231,0 +181,0 @@ // prettier-ignore

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

export declare class TaxCollector extends BaseContractAPI {
/**
* Add auth to an account
* @param account Account to add auth to
*/
addAuthorization(account: string): TransactionRequest;

@@ -18,5 +14,2 @@ authorizedAccounts(address: string): Promise<BigNumber>;

collateralList(uinteger: BigNumberish, multicall: true): MulticallRequest<string>;
/**
* Get the collateralList length
*/
collateralListLength(): Promise<BigNumber>;

@@ -32,5 +25,2 @@ collateralListLength(multicall: true): MulticallRequest<BigNumber>;

}>;
/**
* Check if multiple collateral types are up to date with taxation
*/
collectedManyTax(start: BigNumberish, end: BigNumberish): Promise<boolean>;

@@ -40,10 +30,3 @@ collectedManyTax(start: BigNumberish, end: BigNumberish, multicall: true): MulticallRequest<boolean>;

globalStabilityFee(multicall: true): MulticallRequest<BigNumber>;
/**
* Initialize a brand new collateral type
* @param collateralType Collateral type name (e.g ETH-A, TBTC-B)
*/
initializeCollateralType(collateralType: BytesLike): TransactionRequest;
/**
* Check if a tax receiver is at a certain position in the list
*/
isSecondaryReceiver(_receiver: BigNumberish): Promise<boolean>;

@@ -55,42 +38,9 @@ isSecondaryReceiver(_receiver: BigNumberish, multicall: true): MulticallRequest<boolean>;

maxSecondaryReceivers(multicall: true): MulticallRequest<BigNumber>;
/**
* Create or modify a secondary tax receiver's data
* @param collateralType Collateral type that will give SF to the tax receiver
* @param position Receiver position in the list. Used to determine whether a new tax receiver is created or an existing one is edited
* @param receiverAccount Receiver address
* @param taxPercentage Percentage of SF offered to the tax receiver
*/
modifyParameters1(collateralType: BytesLike, position: BigNumberish, taxPercentage: BigNumberish, receiverAccount: string): TransactionRequest;
/**
* Set whether a tax receiver can incur negative fees
* @param collateralType Collateral type giving fees to the tax receiver
* @param position Receiver position in the list
* @param val Value that specifies whether a tax receiver can incur negative rates
*/
modifyParameters2(collateralType: BytesLike, position: BigNumberish, val: BigNumberish): TransactionRequest;
/**
* Modify general address params
* @param data New value for the parameter
* @param parameter The name of the parameter modified
*/
modifyParameters3(parameter: BytesLike, data: string): TransactionRequest;
/**
* Modify collateral specific uint params
* @param collateralType Collateral type who's parameter is modified
* @param data New value for the parameter
* @param parameter The name of the parameter modified
*/
modifyParameters4(collateralType: BytesLike, parameter: BytesLike, data: BigNumberish): TransactionRequest;
/**
* Modify general uint params
* @param data New value for the parameter
* @param parameter The name of the parameter modified
*/
modifyParameters5(parameter: BytesLike, data: BigNumberish): TransactionRequest;
primaryTaxReceiver(): Promise<string>;
primaryTaxReceiver(multicall: true): MulticallRequest<string>;
/**
* Remove auth from an account
* @param account Account to remove auth from
*/
removeAuthorization(account: string): TransactionRequest;

@@ -107,5 +57,2 @@ safeEngine(): Promise<string>;

secondaryReceiverRevenueSources(address: string, multicall: true): MulticallRequest<BigNumber>;
/**
* Get the secondary tax receiver list length
*/
secondaryReceiversAmount(): Promise<BigNumber>;

@@ -121,13 +68,3 @@ secondaryReceiversAmount(multicall: true): MulticallRequest<BigNumber>;

}>;
/**
* Collect tax from multiple collateral types at once
* @param end Index in collateralList at which we stop looping and calculating the tax outcome
* @param start Index in collateralList from which to start looping and calculating the tax outcome
*/
taxMany(start: BigNumberish, end: BigNumberish): TransactionRequest;
/**
* Check how much SF will be charged (to collateral types between indexes 'start' and 'end' in the collateralList) during the next taxation
* @param end Index in collateralList at which we stop looping and calculating the tax outcome
* @param start Index in collateralList from which to start looping and calculating the tax outcome
*/
taxManyOutcome(start: BigNumberish, end: BigNumberish): Promise<{

@@ -141,11 +78,3 @@ ok: boolean;

}>;
/**
* Collect tax from a single collateral type
* @param collateralType Collateral type to tax
*/
taxSingle(collateralType: BytesLike): TransactionRequest;
/**
* Get how much SF will be distributed after taxing a specific collateral type
* @param collateralType Collateral type to compute the taxation outcome for
*/
taxSingleOutcome(collateralType: BytesLike): Promise<{

@@ -152,0 +81,0 @@ 0: BigNumber;

@@ -25,6 +25,2 @@ "use strict";

}
/**
* Add auth to an account
* @param account Account to add auth to
*/
TaxCollector.prototype.addAuthorization = function (account) {

@@ -72,6 +68,2 @@ // prettier-ignore

};
/**
* Initialize a brand new collateral type
* @param collateralType Collateral type name (e.g ETH-A, TBTC-B)
*/
TaxCollector.prototype.initializeCollateralType = function (collateralType) {

@@ -101,9 +93,2 @@ // prettier-ignore

};
/**
* Create or modify a secondary tax receiver's data
* @param collateralType Collateral type that will give SF to the tax receiver
* @param position Receiver position in the list. Used to determine whether a new tax receiver is created or an existing one is edited
* @param receiverAccount Receiver address
* @param taxPercentage Percentage of SF offered to the tax receiver
*/
TaxCollector.prototype.modifyParameters1 = function (collateralType, position, taxPercentage, receiverAccount) {

@@ -120,8 +105,2 @@ // prettier-ignore

};
/**
* Set whether a tax receiver can incur negative fees
* @param collateralType Collateral type giving fees to the tax receiver
* @param position Receiver position in the list
* @param val Value that specifies whether a tax receiver can incur negative rates
*/
TaxCollector.prototype.modifyParameters2 = function (collateralType, position, val) {

@@ -133,7 +112,2 @@ // prettier-ignore

};
/**
* Modify general address params
* @param data New value for the parameter
* @param parameter The name of the parameter modified
*/
TaxCollector.prototype.modifyParameters3 = function (parameter, data) {

@@ -145,8 +119,2 @@ // prettier-ignore

};
/**
* Modify collateral specific uint params
* @param collateralType Collateral type who's parameter is modified
* @param data New value for the parameter
* @param parameter The name of the parameter modified
*/
TaxCollector.prototype.modifyParameters4 = function (collateralType, parameter, data) {

@@ -162,7 +130,2 @@ // prettier-ignore

};
/**
* Modify general uint params
* @param data New value for the parameter
* @param parameter The name of the parameter modified
*/
TaxCollector.prototype.modifyParameters5 = function (parameter, data) {

@@ -180,6 +143,2 @@ // prettier-ignore

};
/**
* Remove auth from an account
* @param account Account to remove auth from
*/
TaxCollector.prototype.removeAuthorization = function (account) {

@@ -233,7 +192,2 @@ // prettier-ignore

};
/**
* Collect tax from multiple collateral types at once
* @param end Index in collateralList at which we stop looping and calculating the tax outcome
* @param start Index in collateralList from which to start looping and calculating the tax outcome
*/
TaxCollector.prototype.taxMany = function (start, end) {

@@ -251,6 +205,2 @@ // prettier-ignore

};
/**
* Collect tax from a single collateral type
* @param collateralType Collateral type to tax
*/
TaxCollector.prototype.taxSingle = function (collateralType) {

@@ -257,0 +207,0 @@ // prettier-ignore

@@ -23,3 +23,2 @@ import { AccountingEngine } from './generated/AccountingEngine';

import { TaxCollector } from './generated/TaxCollector';
import { Weth } from './generated/WETH';
import { GebProxyActions } from './generated/GebProxyActions';

@@ -30,2 +29,3 @@ import { GebProxyActionsGlobalSettlement } from './generated/GebProxyActionsGlobalSettlement';

import { Erc20 } from './generated/ERC20';
import { UniswapConsecutiveSlotsMedianRaiusd } from './generated/UniswapConsecutiveSlotsMedianRAIUSD';
import { ContractApis } from './contract-apis';

@@ -35,3 +35,3 @@ import { Multicall } from './generated/Multicall';

import { Osm } from './generated/OSM';
import { UniswapMedian } from './generated/UniswapMedian';
export { ContractApis, AccountingEngine, BasicCollateralJoin, CoinJoin, CoinSavingsAccount, Coin, DebtAuctionHouse, DsProxy, EnglishCollateralAuctionHouse, EthJoin, FixedDiscountCollateralAuctionHouse, GebProxyRegistry, GebSafeManager, GetSafes, GlobalSettlement, LiquidationEngine, OracleRelayer, PostSettlementSurplusAuctionHouse, PreSettlementSurplusAuctionHouse, SafeEngine, SettlementSurplusAuctioneer, StabilityFeeTreasury, TaxCollector, Weth, GebProxyActions, GebProxyActionsGlobalSettlement, Multicall, DsToken, Erc20, Osm, DsValue, ChainlinkMedianEthusd, UniswapMedian, };
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, };
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.UniswapMedian = exports.ChainlinkMedianEthusd = exports.DsValue = exports.Osm = exports.Erc20 = exports.DsToken = exports.Multicall = exports.GebProxyActionsGlobalSettlement = exports.GebProxyActions = exports.Weth = 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.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;
var AccountingEngine_1 = require("./generated/AccountingEngine");

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

Object.defineProperty(exports, "TaxCollector", { enumerable: true, get: function () { return TaxCollector_1.TaxCollector; } });
var WETH_1 = require("./generated/WETH");
Object.defineProperty(exports, "Weth", { enumerable: true, get: function () { return WETH_1.Weth; } });
var GebProxyActions_1 = require("./generated/GebProxyActions");

@@ -61,2 +59,4 @@ Object.defineProperty(exports, "GebProxyActions", { enumerable: true, get: function () { return GebProxyActions_1.GebProxyActions; } });

Object.defineProperty(exports, "Erc20", { enumerable: true, get: function () { return ERC20_1.Erc20; } });
var UniswapConsecutiveSlotsMedianRAIUSD_1 = require("./generated/UniswapConsecutiveSlotsMedianRAIUSD");
Object.defineProperty(exports, "UniswapConsecutiveSlotsMedianRaiusd", { enumerable: true, get: function () { return UniswapConsecutiveSlotsMedianRAIUSD_1.UniswapConsecutiveSlotsMedianRaiusd; } });
var contract_apis_1 = require("./contract-apis");

@@ -70,3 +70,3 @@ Object.defineProperty(exports, "ContractApis", { enumerable: true, get: function () { return contract_apis_1.ContractApis; } });

Object.defineProperty(exports, "Osm", { enumerable: true, get: function () { return OSM_1.Osm; } });
var UniswapMedian_1 = require("./generated/UniswapMedian");
Object.defineProperty(exports, "UniswapMedian", { enumerable: true, get: function () { return UniswapMedian_1.UniswapMedian; } });
var WETH9_1 = require("./generated/WETH9_");
Object.defineProperty(exports, "Weth9", { enumerable: true, get: function () { return WETH9_1.Weth9; } });
{
"name": "@reflexer-finance/geb-contract-api",
"version": "0.0.18",
"version": "0.0.19",
"description": "",

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

"@ethersproject/bignumber": "5.x",
"@reflexer-finance/geb-contract-base": "^0.0.10"
"@reflexer-finance/geb-contract-base": "^0.0.11"
},
"devDependencies": {
"@reflexer-finance/geb-typechain": "^0.0.7",
"@reflexer-finance/geb-typechain": "^0.0.8",
"typechain": "^2.0.0"
},
"gitHead": "b2e8ba46b163912f5abef17f804d1a1a78c01878"
"gitHead": "3746bb58364983fd43985281433e9a64f2049923"
}
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