Skip to content

Commit

Permalink
feemarket Params changes
Browse files Browse the repository at this point in the history
  • Loading branch information
freeelancer committed Jan 21, 2024
1 parent a9194b7 commit 9f09112
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions src/core/feemarket/params/Params.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ export class Params extends JSONSerializable<
public targetBlockUtilization: string,
public maxBlockUtilization: string,
public window: string,
public enabled: boolean
public enabled: boolean,
public defaultFeeDenom: string
) {
super();
}
Expand All @@ -35,6 +36,7 @@ export class Params extends JSONSerializable<
maxBlockUtilization,
window,
enabled,
defaultFeeDenom,
},
} = data;

Expand All @@ -48,7 +50,8 @@ export class Params extends JSONSerializable<
targetBlockUtilization,
maxBlockUtilization,
window,
enabled || false
enabled || false,
defaultFeeDenom
);
}

Expand All @@ -64,6 +67,7 @@ export class Params extends JSONSerializable<
maxBlockUtilization,
window,
enabled,
defaultFeeDenom,
} = this;
return {
type: 'feemarket/Params',
Expand All @@ -78,6 +82,7 @@ export class Params extends JSONSerializable<
maxBlockUtilization,
window,
enabled: enabled || false,
defaultFeeDenom,
},
};
}
Expand All @@ -95,6 +100,7 @@ export class Params extends JSONSerializable<
maxBlockUtilization,
window,
enabled,
defaultFeeDenom,
} = proto;
return new Params(
alpha,
Expand All @@ -106,7 +112,8 @@ export class Params extends JSONSerializable<
targetBlockUtilization,
maxBlockUtilization,
window,
enabled || false
enabled || false,
defaultFeeDenom
);
}

Expand All @@ -123,6 +130,7 @@ export class Params extends JSONSerializable<
maxBlockUtilization,
window,
enabled,
defaultFeeDenom,
} = this;
return {
'@type': '/feemarket.feemarket.v1.Params',
Expand All @@ -136,6 +144,7 @@ export class Params extends JSONSerializable<
maxBlockUtilization,
window,
enabled: enabled || false,
defaultFeeDenom,
};
}

Expand All @@ -150,7 +159,8 @@ export class Params extends JSONSerializable<
proto.targetBlockUtilization.toString(),
proto.maxBlockUtilization.toString(),
proto.window.toString(),
proto.enabled
proto.enabled,
proto.defaultFeeDenom
);
}

Expand All @@ -166,6 +176,7 @@ export class Params extends JSONSerializable<
maxBlockUtilization,
window,
enabled,
defaultFeeDenom,
} = this;
return Params_pb.fromPartial({
alpha,
Expand All @@ -178,6 +189,7 @@ export class Params extends JSONSerializable<
maxBlockUtilization: Long.fromString(maxBlockUtilization),
window: Long.fromString(window),
enabled,
defaultFeeDenom,
});
}
}
Expand All @@ -196,6 +208,7 @@ export namespace Params {
maxBlockUtilization: string;
window: string;
enabled: boolean;
defaultFeeDenom: string;
};
}

Expand All @@ -211,6 +224,7 @@ export namespace Params {
maxBlockUtilization: string;
window: string;
enabled: boolean;
defaultFeeDenom: string;
}
export type Proto = Params_pb;
}

0 comments on commit 9f09112

Please sign in to comment.