solana.js: published 2.0.57

This commit is contained in:
Conner Gallagher 2022-12-20 13:57:22 -07:00
parent e549a23267
commit fdc4601580
3 changed files with 6 additions and 8 deletions

View File

@ -1,12 +1,12 @@
{ {
"name": "@switchboard-xyz/solana.js", "name": "@switchboard-xyz/solana.js",
"version": "2.0.56", "version": "2.0.57",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@switchboard-xyz/solana.js", "name": "@switchboard-xyz/solana.js",
"version": "2.0.56", "version": "2.0.57",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@project-serum/anchor": "^0.25.0", "@project-serum/anchor": "^0.25.0",

View File

@ -1,6 +1,6 @@
{ {
"name": "@switchboard-xyz/solana.js", "name": "@switchboard-xyz/solana.js",
"version": "2.0.56", "version": "2.0.57",
"author": "", "author": "",
"license": "MIT", "license": "MIT",
"description": "API wrapper for integrating with the Switchboard V2 program on Solana", "description": "API wrapper for integrating with the Switchboard V2 program on Solana",

View File

@ -26,7 +26,7 @@ export class AggregatorJson implements CreateQueueFeedParams {
disableCrank: boolean; disableCrank: boolean;
crankIndex?: number; crankIndex?: number;
resolutionMode?: number; slidingWindow?: boolean;
basePriorityFee?: number; basePriorityFee?: number;
priorityFeeBump?: number; priorityFeeBump?: number;
priorityFeeBumpPeriod?: number; priorityFeeBumpPeriod?: number;
@ -77,10 +77,7 @@ export class AggregatorJson implements CreateQueueFeedParams {
this.crankIndex = this.crankIndex =
'crankIndex' in object ? Number(object.crankIndex) : undefined; 'crankIndex' in object ? Number(object.crankIndex) : undefined;
this.resolutionMode = this.slidingWindow = parseBoolean(object, 'slidingWindow', undefined);
'resolutionMode' in object
? parseNumber(object, 'resolutionMode', 0)
: undefined;
this.basePriorityFee = this.basePriorityFee =
'basePriorityFee' in object 'basePriorityFee' in object
@ -141,6 +138,7 @@ export class AggregatorJson implements CreateQueueFeedParams {
forceReportPeriod: this.forceReportPeriod, forceReportPeriod: this.forceReportPeriod,
historyLimit: this.historyLimit, historyLimit: this.historyLimit,
disableCrank: this.disableCrank, disableCrank: this.disableCrank,
slidingWindow: this.slidingWindow,
basePriorityFee: this.basePriorityFee, basePriorityFee: this.basePriorityFee,
priorityFeeBump: this.priorityFeeBump, priorityFeeBump: this.priorityFeeBump,
priorityFeeBumpPeriod: this.priorityFeeBumpPeriod, priorityFeeBumpPeriod: this.priorityFeeBumpPeriod,