Skip to content

Commit db191dc

Browse files
committed
fix: update pf types everywhere
1 parent a9db520 commit db191dc

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/sdk/market/pricefeeds/BalancerWeightedPriceFeed.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export class BalancerWeightedPriceFeedContract extends AbstractLPPriceFeedContra
6161
): UnionOmit<BalancerWeightedPriceFeedStateHuman, "stalenessPeriod"> {
6262
return {
6363
...super.stateHuman(raw),
64-
contractType: "PF_BALANCER_WEIGHTED_LP_ORACLE",
64+
contractType: "PRICE_FEED::BALANCER_WEIGHTED",
6565
vault: this.vault,
6666
poolId: this.poolId,
6767
weights: [...this.weights],

src/sdk/market/pricefeeds/BoundedPriceFeed.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export class BoundedPriceFeedContract extends AbstractPriceFeedContract<abi> {
2727
): Omit<BoundedOracleStateHuman, "stalenessPeriod"> {
2828
return {
2929
...super.stateHuman(raw),
30-
contractType: "PF_BOUNDED_ORACLE",
30+
contractType: "PRICE_FEED::BOUNDED",
3131
upperBound: this.upperBound,
3232
};
3333
}

src/sdk/market/pricefeeds/RedstonePriceFeed.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export class RedstonePriceFeedContract extends AbstractPriceFeedContract<abi> {
5555
): Omit<RedstonePriceFeedStateHuman, "stalenessPeriod"> {
5656
return {
5757
...super.stateHuman(raw),
58-
contractType: "PF_REDSTONE_ORACLE",
58+
contractType: "PRICE_FEED::REDSTONE",
5959
dataId: this.dataId,
6060
signers: this.signers,
6161
signersThreshold: this.signersThreshold,

src/sdk/types/state-human.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export interface BasePriceFeedStateHuman extends BaseContractStateHuman {
4040
}
4141

4242
export interface BoundedOracleStateHuman extends BasePriceFeedStateHuman {
43-
contractType: "PF_BOUNDED_ORACLE";
43+
contractType: "PRICE_FEED::BOUNDED";
4444
upperBound: bigint;
4545
}
4646

@@ -58,14 +58,14 @@ export interface LPPriceFeedStateHuman extends BasePriceFeedStateHuman {
5858

5959
export interface BalancerWeightedPriceFeedStateHuman
6060
extends LPPriceFeedStateHuman {
61-
contractType: "PF_BALANCER_WEIGHTED_LP_ORACLE";
61+
contractType: "PRICE_FEED::BALANCER_WEIGHTED";
6262
vault: Address;
6363
poolId: Address;
6464
weights: [bigint, bigint, bigint, bigint, bigint, bigint, bigint, bigint];
6565
}
6666

6767
export interface RedstonePriceFeedStateHuman extends BasePriceFeedStateHuman {
68-
contractType: "PF_REDSTONE_ORACLE";
68+
contractType: "PRICE_FEED::REDSTONE";
6969
dataId: string;
7070
signers: Array<string>;
7171
signersThreshold: number;

0 commit comments

Comments
 (0)