@wildcatfi/wildcat-sdk
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -103,4 +103,4 @@ "use strict"; | ||
let receipt; | ||
const factory = await (0, constants_1.getControllerFactoryContract)(this.signer); | ||
if (!this.isDeployed) { | ||
const factory = await (0, constants_1.getControllerFactoryContract)(this.signer); | ||
(0, utils_1.assert)(this.isRegisteredBorrower, "Borrower is not registered"); | ||
@@ -112,4 +112,4 @@ receipt = await factory | ||
else { | ||
receipt = await factory | ||
.deployControllerAndMarket(params.namePrefix, params.symbolPrefix, params.asset.address, params.maxTotalSupply.raw, params.annualInterestBips, params.delinquencyFeeBips, params.withdrawalBatchDuration, params.reserveRatioBips, params.delinquencyGracePeriod) | ||
receipt = await this.contract | ||
.deployMarket(params.asset.address, params.namePrefix, params.symbolPrefix, params.maxTotalSupply.raw, params.annualInterestBips, params.delinquencyFeeBips, params.withdrawalBatchDuration, params.reserveRatioBips, params.delinquencyGracePeriod) | ||
.then((r) => r.wait()); | ||
@@ -120,3 +120,3 @@ } | ||
const event = this.contract.interface.decodeEventLog("MarketDeployed", log.data, log.topics); | ||
const market = await market_1.Market.getMarket(event.args.market, this.provider); | ||
const market = await market_1.Market.getMarket(event.market, this.provider); | ||
this.markets.push(market); | ||
@@ -123,0 +123,0 @@ this.isDeployed = true; |
@@ -62,3 +62,3 @@ import { Signer } from "ethers"; | ||
readonly internalType: "address"; | ||
readonly name: "lender"; | ||
readonly name: ""; | ||
readonly type: "address"; | ||
@@ -73,3 +73,3 @@ }]; | ||
readonly internalType: "address"; | ||
readonly name: "lender"; | ||
readonly name: ""; | ||
readonly type: "address"; | ||
@@ -82,6 +82,51 @@ }]; | ||
readonly inputs: readonly [{ | ||
readonly indexed: false; | ||
readonly indexed: true; | ||
readonly internalType: "address"; | ||
readonly name: "market"; | ||
readonly type: "address"; | ||
}, { | ||
readonly indexed: false; | ||
readonly internalType: "string"; | ||
readonly name: "name"; | ||
readonly type: "string"; | ||
}, { | ||
readonly indexed: false; | ||
readonly internalType: "string"; | ||
readonly name: "symbol"; | ||
readonly type: "string"; | ||
}, { | ||
readonly indexed: false; | ||
readonly internalType: "address"; | ||
readonly name: "asset"; | ||
readonly type: "address"; | ||
}, { | ||
readonly indexed: false; | ||
readonly internalType: "uint256"; | ||
readonly name: "maxTotalSupply"; | ||
readonly type: "uint256"; | ||
}, { | ||
readonly indexed: false; | ||
readonly internalType: "uint256"; | ||
readonly name: "annualInterestBips"; | ||
readonly type: "uint256"; | ||
}, { | ||
readonly indexed: false; | ||
readonly internalType: "uint256"; | ||
readonly name: "delinquencyFeeBips"; | ||
readonly type: "uint256"; | ||
}, { | ||
readonly indexed: false; | ||
readonly internalType: "uint256"; | ||
readonly name: "withdrawalBatchDuration"; | ||
readonly type: "uint256"; | ||
}, { | ||
readonly indexed: false; | ||
readonly internalType: "uint256"; | ||
readonly name: "reserveRatioBips"; | ||
readonly type: "uint256"; | ||
}, { | ||
readonly indexed: false; | ||
readonly internalType: "uint256"; | ||
readonly name: "delinquencyGracePeriod"; | ||
readonly type: "uint256"; | ||
}]; | ||
@@ -91,2 +136,37 @@ readonly name: "MarketDeployed"; | ||
}, { | ||
readonly anonymous: false; | ||
readonly inputs: readonly [{ | ||
readonly indexed: true; | ||
readonly internalType: "address"; | ||
readonly name: "market"; | ||
readonly type: "address"; | ||
}, { | ||
readonly indexed: false; | ||
readonly internalType: "uint256"; | ||
readonly name: "originalReserveRatioBips"; | ||
readonly type: "uint256"; | ||
}, { | ||
readonly indexed: false; | ||
readonly internalType: "uint256"; | ||
readonly name: "temporaryReserveRatioBips"; | ||
readonly type: "uint256"; | ||
}, { | ||
readonly indexed: false; | ||
readonly internalType: "uint256"; | ||
readonly name: "temporaryReserveRatioExpiry"; | ||
readonly type: "uint256"; | ||
}]; | ||
readonly name: "TemporaryExcessReserveRatioActivated"; | ||
readonly type: "event"; | ||
}, { | ||
readonly anonymous: false; | ||
readonly inputs: readonly [{ | ||
readonly indexed: true; | ||
readonly internalType: "address"; | ||
readonly name: "market"; | ||
readonly type: "address"; | ||
}]; | ||
readonly name: "TemporaryExcessReserveRatioExpired"; | ||
readonly type: "event"; | ||
}, { | ||
readonly inputs: readonly []; | ||
@@ -204,3 +284,3 @@ readonly name: "archController"; | ||
readonly internalType: "address"; | ||
readonly name: "market"; | ||
readonly name: ""; | ||
readonly type: "address"; | ||
@@ -233,3 +313,3 @@ }]; | ||
readonly internalType: "address[]"; | ||
readonly name: "arr"; | ||
readonly name: ""; | ||
readonly type: "address[]"; | ||
@@ -349,3 +429,3 @@ }]; | ||
readonly internalType: "struct MarketParameters"; | ||
readonly name: "parameters"; | ||
readonly name: ""; | ||
readonly type: "tuple"; | ||
@@ -407,2 +487,24 @@ }]; | ||
}, { | ||
readonly inputs: readonly []; | ||
readonly name: "getProtocolFeeConfiguration"; | ||
readonly outputs: readonly [{ | ||
readonly internalType: "address"; | ||
readonly name: "feeRecipient"; | ||
readonly type: "address"; | ||
}, { | ||
readonly internalType: "address"; | ||
readonly name: "originationFeeAsset"; | ||
readonly type: "address"; | ||
}, { | ||
readonly internalType: "uint80"; | ||
readonly name: "originationFeeAmount"; | ||
readonly type: "uint80"; | ||
}, { | ||
readonly internalType: "uint16"; | ||
readonly name: "protocolFeeBips"; | ||
readonly type: "uint16"; | ||
}]; | ||
readonly stateMutability: "view"; | ||
readonly type: "function"; | ||
}, { | ||
readonly inputs: readonly [{ | ||
@@ -409,0 +511,0 @@ readonly internalType: "address"; |
@@ -80,3 +80,3 @@ "use strict"; | ||
internalType: "address", | ||
name: "lender", | ||
name: "", | ||
type: "address", | ||
@@ -94,3 +94,3 @@ }, | ||
internalType: "address", | ||
name: "lender", | ||
name: "", | ||
type: "address", | ||
@@ -106,3 +106,3 @@ }, | ||
{ | ||
indexed: false, | ||
indexed: true, | ||
internalType: "address", | ||
@@ -112,2 +112,56 @@ name: "market", | ||
}, | ||
{ | ||
indexed: false, | ||
internalType: "string", | ||
name: "name", | ||
type: "string", | ||
}, | ||
{ | ||
indexed: false, | ||
internalType: "string", | ||
name: "symbol", | ||
type: "string", | ||
}, | ||
{ | ||
indexed: false, | ||
internalType: "address", | ||
name: "asset", | ||
type: "address", | ||
}, | ||
{ | ||
indexed: false, | ||
internalType: "uint256", | ||
name: "maxTotalSupply", | ||
type: "uint256", | ||
}, | ||
{ | ||
indexed: false, | ||
internalType: "uint256", | ||
name: "annualInterestBips", | ||
type: "uint256", | ||
}, | ||
{ | ||
indexed: false, | ||
internalType: "uint256", | ||
name: "delinquencyFeeBips", | ||
type: "uint256", | ||
}, | ||
{ | ||
indexed: false, | ||
internalType: "uint256", | ||
name: "withdrawalBatchDuration", | ||
type: "uint256", | ||
}, | ||
{ | ||
indexed: false, | ||
internalType: "uint256", | ||
name: "reserveRatioBips", | ||
type: "uint256", | ||
}, | ||
{ | ||
indexed: false, | ||
internalType: "uint256", | ||
name: "delinquencyGracePeriod", | ||
type: "uint256", | ||
}, | ||
], | ||
@@ -118,2 +172,46 @@ name: "MarketDeployed", | ||
{ | ||
anonymous: false, | ||
inputs: [ | ||
{ | ||
indexed: true, | ||
internalType: "address", | ||
name: "market", | ||
type: "address", | ||
}, | ||
{ | ||
indexed: false, | ||
internalType: "uint256", | ||
name: "originalReserveRatioBips", | ||
type: "uint256", | ||
}, | ||
{ | ||
indexed: false, | ||
internalType: "uint256", | ||
name: "temporaryReserveRatioBips", | ||
type: "uint256", | ||
}, | ||
{ | ||
indexed: false, | ||
internalType: "uint256", | ||
name: "temporaryReserveRatioExpiry", | ||
type: "uint256", | ||
}, | ||
], | ||
name: "TemporaryExcessReserveRatioActivated", | ||
type: "event", | ||
}, | ||
{ | ||
anonymous: false, | ||
inputs: [ | ||
{ | ||
indexed: true, | ||
internalType: "address", | ||
name: "market", | ||
type: "address", | ||
}, | ||
], | ||
name: "TemporaryExcessReserveRatioExpired", | ||
type: "event", | ||
}, | ||
{ | ||
inputs: [], | ||
@@ -264,3 +362,3 @@ name: "archController", | ||
internalType: "address", | ||
name: "market", | ||
name: "", | ||
type: "address", | ||
@@ -302,3 +400,3 @@ }, | ||
internalType: "address[]", | ||
name: "arr", | ||
name: "", | ||
type: "address[]", | ||
@@ -451,3 +549,3 @@ }, | ||
internalType: "struct MarketParameters", | ||
name: "parameters", | ||
name: "", | ||
type: "tuple", | ||
@@ -525,2 +623,30 @@ }, | ||
{ | ||
inputs: [], | ||
name: "getProtocolFeeConfiguration", | ||
outputs: [ | ||
{ | ||
internalType: "address", | ||
name: "feeRecipient", | ||
type: "address", | ||
}, | ||
{ | ||
internalType: "address", | ||
name: "originationFeeAsset", | ||
type: "address", | ||
}, | ||
{ | ||
internalType: "uint80", | ||
name: "originationFeeAmount", | ||
type: "uint80", | ||
}, | ||
{ | ||
internalType: "uint16", | ||
name: "protocolFeeBips", | ||
type: "uint16", | ||
}, | ||
], | ||
stateMutability: "view", | ||
type: "function", | ||
}, | ||
{ | ||
inputs: [ | ||
@@ -527,0 +653,0 @@ { |
@@ -30,3 +30,3 @@ import { Signer } from "ethers"; | ||
readonly internalType: "address"; | ||
readonly name: ""; | ||
readonly name: "borrower"; | ||
readonly type: "address"; | ||
@@ -36,14 +36,4 @@ }, { | ||
readonly internalType: "address"; | ||
readonly name: ""; | ||
readonly name: "controller"; | ||
readonly type: "address"; | ||
}, { | ||
readonly indexed: false; | ||
readonly internalType: "string"; | ||
readonly name: ""; | ||
readonly type: "string"; | ||
}, { | ||
readonly indexed: false; | ||
readonly internalType: "string"; | ||
readonly name: ""; | ||
readonly type: "string"; | ||
}]; | ||
@@ -57,3 +47,3 @@ readonly name: "NewController"; | ||
readonly internalType: "address"; | ||
readonly name: ""; | ||
readonly name: "feeRecipient"; | ||
readonly type: "address"; | ||
@@ -63,3 +53,3 @@ }, { | ||
readonly internalType: "uint16"; | ||
readonly name: ""; | ||
readonly name: "protocolFeeBips"; | ||
readonly type: "uint16"; | ||
@@ -69,3 +59,3 @@ }, { | ||
readonly internalType: "address"; | ||
readonly name: ""; | ||
readonly name: "originationFeeAsset"; | ||
readonly type: "address"; | ||
@@ -75,3 +65,3 @@ }, { | ||
readonly internalType: "uint256"; | ||
readonly name: ""; | ||
readonly name: "originationFeeAmount"; | ||
readonly type: "uint256"; | ||
@@ -78,0 +68,0 @@ }]; |
@@ -40,3 +40,3 @@ "use strict"; | ||
internalType: "address", | ||
name: "", | ||
name: "borrower", | ||
type: "address", | ||
@@ -47,17 +47,5 @@ }, | ||
internalType: "address", | ||
name: "", | ||
name: "controller", | ||
type: "address", | ||
}, | ||
{ | ||
indexed: false, | ||
internalType: "string", | ||
name: "", | ||
type: "string", | ||
}, | ||
{ | ||
indexed: false, | ||
internalType: "string", | ||
name: "", | ||
type: "string", | ||
}, | ||
], | ||
@@ -73,3 +61,3 @@ name: "NewController", | ||
internalType: "address", | ||
name: "", | ||
name: "feeRecipient", | ||
type: "address", | ||
@@ -80,3 +68,3 @@ }, | ||
internalType: "uint16", | ||
name: "", | ||
name: "protocolFeeBips", | ||
type: "uint16", | ||
@@ -87,3 +75,3 @@ }, | ||
internalType: "address", | ||
name: "", | ||
name: "originationFeeAsset", | ||
type: "address", | ||
@@ -94,3 +82,3 @@ }, | ||
internalType: "uint256", | ||
name: "", | ||
name: "originationFeeAmount", | ||
type: "uint256", | ||
@@ -97,0 +85,0 @@ }, |
@@ -104,2 +104,3 @@ import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PopulatedTransaction, Signer, utils } from "ethers"; | ||
"getParameterConstraints()": FunctionFragment; | ||
"getProtocolFeeConfiguration()": FunctionFragment; | ||
"isAuthorizedLender(address)": FunctionFragment; | ||
@@ -115,3 +116,3 @@ "isControlledMarket(address)": FunctionFragment; | ||
}; | ||
getFunction(nameOrSignatureOrTopic: "archController" | "authorizeLenders" | "borrower" | "computeMarketAddress" | "controllerFactory" | "deauthorizeLenders" | "deployMarket" | "getAuthorizedLenders()" | "getAuthorizedLenders(uint256,uint256)" | "getAuthorizedLendersCount" | "getControlledMarkets(uint256,uint256)" | "getControlledMarkets()" | "getControlledMarketsCount" | "getMarketParameters" | "getParameterConstraints" | "isAuthorizedLender" | "isControlledMarket" | "marketInitCodeHash" | "marketInitCodeStorage" | "resetReserveRatio" | "sentinel" | "setAnnualInterestBips" | "temporaryExcessReserveRatio" | "updateLenderAuthorization"): FunctionFragment; | ||
getFunction(nameOrSignatureOrTopic: "archController" | "authorizeLenders" | "borrower" | "computeMarketAddress" | "controllerFactory" | "deauthorizeLenders" | "deployMarket" | "getAuthorizedLenders()" | "getAuthorizedLenders(uint256,uint256)" | "getAuthorizedLendersCount" | "getControlledMarkets(uint256,uint256)" | "getControlledMarkets()" | "getControlledMarketsCount" | "getMarketParameters" | "getParameterConstraints" | "getProtocolFeeConfiguration" | "isAuthorizedLender" | "isControlledMarket" | "marketInitCodeHash" | "marketInitCodeStorage" | "resetReserveRatio" | "sentinel" | "setAnnualInterestBips" | "temporaryExcessReserveRatio" | "updateLenderAuthorization"): FunctionFragment; | ||
encodeFunctionData(functionFragment: "archController", values?: undefined): string; | ||
@@ -146,2 +147,3 @@ encodeFunctionData(functionFragment: "authorizeLenders", values: [PromiseOrValue<string>[]]): string; | ||
encodeFunctionData(functionFragment: "getParameterConstraints", values?: undefined): string; | ||
encodeFunctionData(functionFragment: "getProtocolFeeConfiguration", values?: undefined): string; | ||
encodeFunctionData(functionFragment: "isAuthorizedLender", values: [PromiseOrValue<string>]): string; | ||
@@ -171,2 +173,3 @@ encodeFunctionData(functionFragment: "isControlledMarket", values: [PromiseOrValue<string>]): string; | ||
decodeFunctionResult(functionFragment: "getParameterConstraints", data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: "getProtocolFeeConfiguration", data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: "isAuthorizedLender", data: BytesLike): Result; | ||
@@ -184,3 +187,5 @@ decodeFunctionResult(functionFragment: "isControlledMarket", data: BytesLike): Result; | ||
"LenderDeauthorized(address)": EventFragment; | ||
"MarketDeployed(address)": EventFragment; | ||
"MarketDeployed(address,string,string,address,uint256,uint256,uint256,uint256,uint256,uint256)": EventFragment; | ||
"TemporaryExcessReserveRatioActivated(address,uint256,uint256,uint256)": EventFragment; | ||
"TemporaryExcessReserveRatioExpired(address)": EventFragment; | ||
}; | ||
@@ -190,5 +195,7 @@ getEvent(nameOrSignatureOrTopic: "LenderAuthorized"): EventFragment; | ||
getEvent(nameOrSignatureOrTopic: "MarketDeployed"): EventFragment; | ||
getEvent(nameOrSignatureOrTopic: "TemporaryExcessReserveRatioActivated"): EventFragment; | ||
getEvent(nameOrSignatureOrTopic: "TemporaryExcessReserveRatioExpired"): EventFragment; | ||
} | ||
export interface LenderAuthorizedEventObject { | ||
lender: string; | ||
arg0: string; | ||
} | ||
@@ -200,3 +207,3 @@ export type LenderAuthorizedEvent = TypedEvent<[ | ||
export interface LenderDeauthorizedEventObject { | ||
lender: string; | ||
arg0: string; | ||
} | ||
@@ -209,7 +216,45 @@ export type LenderDeauthorizedEvent = TypedEvent<[ | ||
market: string; | ||
name: string; | ||
symbol: string; | ||
asset: string; | ||
maxTotalSupply: BigNumber; | ||
annualInterestBips: BigNumber; | ||
delinquencyFeeBips: BigNumber; | ||
withdrawalBatchDuration: BigNumber; | ||
reserveRatioBips: BigNumber; | ||
delinquencyGracePeriod: BigNumber; | ||
} | ||
export type MarketDeployedEvent = TypedEvent<[ | ||
string | ||
string, | ||
string, | ||
string, | ||
string, | ||
BigNumber, | ||
BigNumber, | ||
BigNumber, | ||
BigNumber, | ||
BigNumber, | ||
BigNumber | ||
], MarketDeployedEventObject>; | ||
export type MarketDeployedEventFilter = TypedEventFilter<MarketDeployedEvent>; | ||
export interface TemporaryExcessReserveRatioActivatedEventObject { | ||
market: string; | ||
originalReserveRatioBips: BigNumber; | ||
temporaryReserveRatioBips: BigNumber; | ||
temporaryReserveRatioExpiry: BigNumber; | ||
} | ||
export type TemporaryExcessReserveRatioActivatedEvent = TypedEvent<[ | ||
string, | ||
BigNumber, | ||
BigNumber, | ||
BigNumber | ||
], TemporaryExcessReserveRatioActivatedEventObject>; | ||
export type TemporaryExcessReserveRatioActivatedEventFilter = TypedEventFilter<TemporaryExcessReserveRatioActivatedEvent>; | ||
export interface TemporaryExcessReserveRatioExpiredEventObject { | ||
market: string; | ||
} | ||
export type TemporaryExcessReserveRatioExpiredEvent = TypedEvent<[ | ||
string | ||
], TemporaryExcessReserveRatioExpiredEventObject>; | ||
export type TemporaryExcessReserveRatioExpiredEventFilter = TypedEventFilter<TemporaryExcessReserveRatioExpiredEvent>; | ||
export interface WildcatMarketController extends BaseContract { | ||
@@ -245,5 +290,3 @@ contractName: "WildcatMarketController"; | ||
"getAuthorizedLenders()"(overrides?: CallOverrides): Promise<[string[]]>; | ||
"getAuthorizedLenders(uint256,uint256)"(start: PromiseOrValue<BigNumberish>, end: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[string[]] & { | ||
arr: string[]; | ||
}>; | ||
"getAuthorizedLenders(uint256,uint256)"(start: PromiseOrValue<BigNumberish>, end: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[string[]]>; | ||
getAuthorizedLendersCount(overrides?: CallOverrides): Promise<[BigNumber]>; | ||
@@ -255,7 +298,3 @@ "getControlledMarkets(uint256,uint256)"(start: PromiseOrValue<BigNumberish>, end: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[string[]] & { | ||
getControlledMarketsCount(overrides?: CallOverrides): Promise<[BigNumber]>; | ||
getMarketParameters(overrides?: CallOverrides): Promise<[ | ||
MarketParametersStructOutput | ||
] & { | ||
parameters: MarketParametersStructOutput; | ||
}>; | ||
getMarketParameters(overrides?: CallOverrides): Promise<[MarketParametersStructOutput]>; | ||
getParameterConstraints(overrides?: CallOverrides): Promise<[ | ||
@@ -266,2 +305,13 @@ MarketParameterConstraintsStructOutput | ||
}>; | ||
getProtocolFeeConfiguration(overrides?: CallOverrides): Promise<[ | ||
string, | ||
string, | ||
BigNumber, | ||
number | ||
] & { | ||
feeRecipient: string; | ||
originationFeeAsset: string; | ||
originationFeeAmount: BigNumber; | ||
protocolFeeBips: number; | ||
}>; | ||
isAuthorizedLender(lender: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[boolean]>; | ||
@@ -310,2 +360,13 @@ isControlledMarket(market: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[boolean]>; | ||
getParameterConstraints(overrides?: CallOverrides): Promise<MarketParameterConstraintsStructOutput>; | ||
getProtocolFeeConfiguration(overrides?: CallOverrides): Promise<[ | ||
string, | ||
string, | ||
BigNumber, | ||
number | ||
] & { | ||
feeRecipient: string; | ||
originationFeeAsset: string; | ||
originationFeeAmount: BigNumber; | ||
protocolFeeBips: number; | ||
}>; | ||
isAuthorizedLender(lender: PromiseOrValue<string>, overrides?: CallOverrides): Promise<boolean>; | ||
@@ -348,2 +409,13 @@ isControlledMarket(market: PromiseOrValue<string>, overrides?: CallOverrides): Promise<boolean>; | ||
getParameterConstraints(overrides?: CallOverrides): Promise<MarketParameterConstraintsStructOutput>; | ||
getProtocolFeeConfiguration(overrides?: CallOverrides): Promise<[ | ||
string, | ||
string, | ||
BigNumber, | ||
number | ||
] & { | ||
feeRecipient: string; | ||
originationFeeAsset: string; | ||
originationFeeAmount: BigNumber; | ||
protocolFeeBips: number; | ||
}>; | ||
isAuthorizedLender(lender: PromiseOrValue<string>, overrides?: CallOverrides): Promise<boolean>; | ||
@@ -366,8 +438,12 @@ isControlledMarket(market: PromiseOrValue<string>, overrides?: CallOverrides): Promise<boolean>; | ||
filters: { | ||
"LenderAuthorized(address)"(lender?: null): LenderAuthorizedEventFilter; | ||
LenderAuthorized(lender?: null): LenderAuthorizedEventFilter; | ||
"LenderDeauthorized(address)"(lender?: null): LenderDeauthorizedEventFilter; | ||
LenderDeauthorized(lender?: null): LenderDeauthorizedEventFilter; | ||
"MarketDeployed(address)"(market?: null): MarketDeployedEventFilter; | ||
MarketDeployed(market?: null): MarketDeployedEventFilter; | ||
"LenderAuthorized(address)"(arg0?: null): LenderAuthorizedEventFilter; | ||
LenderAuthorized(arg0?: null): LenderAuthorizedEventFilter; | ||
"LenderDeauthorized(address)"(arg0?: null): LenderDeauthorizedEventFilter; | ||
LenderDeauthorized(arg0?: null): LenderDeauthorizedEventFilter; | ||
"MarketDeployed(address,string,string,address,uint256,uint256,uint256,uint256,uint256,uint256)"(market?: PromiseOrValue<string> | null, name?: null, symbol?: null, asset?: null, maxTotalSupply?: null, annualInterestBips?: null, delinquencyFeeBips?: null, withdrawalBatchDuration?: null, reserveRatioBips?: null, delinquencyGracePeriod?: null): MarketDeployedEventFilter; | ||
MarketDeployed(market?: PromiseOrValue<string> | null, name?: null, symbol?: null, asset?: null, maxTotalSupply?: null, annualInterestBips?: null, delinquencyFeeBips?: null, withdrawalBatchDuration?: null, reserveRatioBips?: null, delinquencyGracePeriod?: null): MarketDeployedEventFilter; | ||
"TemporaryExcessReserveRatioActivated(address,uint256,uint256,uint256)"(market?: PromiseOrValue<string> | null, originalReserveRatioBips?: null, temporaryReserveRatioBips?: null, temporaryReserveRatioExpiry?: null): TemporaryExcessReserveRatioActivatedEventFilter; | ||
TemporaryExcessReserveRatioActivated(market?: PromiseOrValue<string> | null, originalReserveRatioBips?: null, temporaryReserveRatioBips?: null, temporaryReserveRatioExpiry?: null): TemporaryExcessReserveRatioActivatedEventFilter; | ||
"TemporaryExcessReserveRatioExpired(address)"(market?: PromiseOrValue<string> | null): TemporaryExcessReserveRatioExpiredEventFilter; | ||
TemporaryExcessReserveRatioExpired(market?: PromiseOrValue<string> | null): TemporaryExcessReserveRatioExpiredEventFilter; | ||
}; | ||
@@ -396,2 +472,3 @@ estimateGas: { | ||
getParameterConstraints(overrides?: CallOverrides): Promise<BigNumber>; | ||
getProtocolFeeConfiguration(overrides?: CallOverrides): Promise<BigNumber>; | ||
isAuthorizedLender(lender: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>; | ||
@@ -435,2 +512,3 @@ isControlledMarket(market: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>; | ||
getParameterConstraints(overrides?: CallOverrides): Promise<PopulatedTransaction>; | ||
getProtocolFeeConfiguration(overrides?: CallOverrides): Promise<PopulatedTransaction>; | ||
isAuthorizedLender(lender: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>; | ||
@@ -437,0 +515,0 @@ isControlledMarket(market: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>; |
@@ -161,3 +161,3 @@ import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PopulatedTransaction, Signer, utils } from "ethers"; | ||
events: { | ||
"NewController(address,address,string,string)": EventFragment; | ||
"NewController(address,address)": EventFragment; | ||
"UpdateProtocolFeeConfiguration(address,uint16,address,uint256)": EventFragment; | ||
@@ -169,11 +169,7 @@ }; | ||
export interface NewControllerEventObject { | ||
arg0: string; | ||
arg1: string; | ||
arg2: string; | ||
arg3: string; | ||
borrower: string; | ||
controller: string; | ||
} | ||
export type NewControllerEvent = TypedEvent<[ | ||
string, | ||
string, | ||
string, | ||
string | ||
@@ -183,6 +179,6 @@ ], NewControllerEventObject>; | ||
export interface UpdateProtocolFeeConfigurationEventObject { | ||
arg0: string; | ||
arg1: number; | ||
arg2: string; | ||
arg3: BigNumber; | ||
feeRecipient: string; | ||
protocolFeeBips: number; | ||
originationFeeAsset: string; | ||
originationFeeAmount: BigNumber; | ||
} | ||
@@ -322,6 +318,6 @@ export type UpdateProtocolFeeConfigurationEvent = TypedEvent<[ | ||
filters: { | ||
"NewController(address,address,string,string)"(arg0?: null, arg1?: null, arg2?: null, arg3?: null): NewControllerEventFilter; | ||
NewController(arg0?: null, arg1?: null, arg2?: null, arg3?: null): NewControllerEventFilter; | ||
"UpdateProtocolFeeConfiguration(address,uint16,address,uint256)"(arg0?: null, arg1?: null, arg2?: null, arg3?: null): UpdateProtocolFeeConfigurationEventFilter; | ||
UpdateProtocolFeeConfiguration(arg0?: null, arg1?: null, arg2?: null, arg3?: null): UpdateProtocolFeeConfigurationEventFilter; | ||
"NewController(address,address)"(borrower?: null, controller?: null): NewControllerEventFilter; | ||
NewController(borrower?: null, controller?: null): NewControllerEventFilter; | ||
"UpdateProtocolFeeConfiguration(address,uint16,address,uint256)"(feeRecipient?: null, protocolFeeBips?: null, originationFeeAsset?: null, originationFeeAmount?: null): UpdateProtocolFeeConfigurationEventFilter; | ||
UpdateProtocolFeeConfiguration(feeRecipient?: null, protocolFeeBips?: null, originationFeeAsset?: null, originationFeeAmount?: null): UpdateProtocolFeeConfigurationEventFilter; | ||
}; | ||
@@ -328,0 +324,0 @@ estimateGas: { |
{ | ||
"name": "@wildcatfi/wildcat-sdk", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1293197
20950