ts library tsconfig
This commit is contained in:
parent
7336a1bf38
commit
cd4407f7de
|
@ -19,13 +19,20 @@
|
|||
"lib",
|
||||
"src"
|
||||
],
|
||||
"module": "./lib/esm/index.js",
|
||||
"main": "./lib/cjs/index.js",
|
||||
"main": "lib/cjs/index.js",
|
||||
"module": "lib/esm/index.js",
|
||||
"browser": "lib/cjs/index.js",
|
||||
"types": "./lib/cjs/index.d.ts",
|
||||
"exports": {
|
||||
".": {
|
||||
"import": "./lib/esm/index.js",
|
||||
"require": "./lib/cjs/index.js"
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"docgen": "yarn build && npx typedoc",
|
||||
"build:protos": "pbjs -t static-module -o src/protos/index.js ../protos/*.proto && pbts -o src/protos/index.d.ts src/protos/index.js",
|
||||
"build:cjs:protos": "shx mkdir -p lib/cjs/protos; pbjs -t static-module -w commonjs -o lib/cjs/protos/index.js ../protos/*.proto && pbts -o lib/cjs/protos/index.d.ts lib/cjs/protos/index.js",
|
||||
"build:cjs:protos": "shx mkdir -p lib/cjs/protos; pbjs -t static-module -o lib/cjs/protos/index.js ../protos/*.proto && pbts -o lib/cjs/protos/index.d.ts lib/cjs/protos/index.js",
|
||||
"build:esm:protos": "shx mkdir -p lib/esm/protos; pbjs -t static-module -w \"es6\" -o lib/esm/protos/index.js ../protos/*.proto && pbts -o lib/esm/protos/index.d.ts lib/esm/protos/index.js",
|
||||
"build:cjs": "shx rm -rf lib/cjs && tsc -p tsconfig.cjs.json && shx echo '{\"type\": \"commonjs\"}' > lib/cjs/package.json && yarn build:cjs:protos",
|
||||
"build:esm": "shx rm -rf lib/esm && tsc -p tsconfig.esm.json && shx echo '{\"type\": \"module\"}' > lib/esm/package.json && yarn build:esm:protos",
|
||||
|
@ -59,6 +66,6 @@
|
|||
"@types/node": "^17.0.35",
|
||||
"shx": "^0.3.4",
|
||||
"typedoc": "^0.22.13",
|
||||
"typescript": "^4.2.4"
|
||||
"typescript": "^4.7"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
export { IOracleJob, OracleJob } from "./protos";
|
||||
export * from "./protos";
|
||||
export * from "./sbv2.js";
|
||||
|
|
|
@ -729,13 +729,13 @@ export namespace OracleJob {
|
|||
constructor(properties?: OracleJob.IValueTask);
|
||||
|
||||
/** ValueTask value. */
|
||||
public value?: (number|null);
|
||||
public value: number;
|
||||
|
||||
/** ValueTask aggregatorPubkey. */
|
||||
public aggregatorPubkey?: (string|null);
|
||||
public aggregatorPubkey: string;
|
||||
|
||||
/** ValueTask big. */
|
||||
public big?: (string|null);
|
||||
public big: string;
|
||||
|
||||
/** ValueTask Value. */
|
||||
public Value?: ("value"|"aggregatorPubkey"|"big");
|
||||
|
@ -1041,16 +1041,16 @@ export namespace OracleJob {
|
|||
constructor(properties?: OracleJob.IDivideTask);
|
||||
|
||||
/** DivideTask scalar. */
|
||||
public scalar?: (number|null);
|
||||
public scalar: number;
|
||||
|
||||
/** DivideTask aggregatorPubkey. */
|
||||
public aggregatorPubkey?: (string|null);
|
||||
public aggregatorPubkey: string;
|
||||
|
||||
/** DivideTask job. */
|
||||
public job?: (IOracleJob|null);
|
||||
|
||||
/** DivideTask big. */
|
||||
public big?: (string|null);
|
||||
public big: string;
|
||||
|
||||
/** DivideTask Denominator. */
|
||||
public Denominator?: ("scalar"|"aggregatorPubkey"|"job"|"big");
|
||||
|
@ -1152,16 +1152,16 @@ export namespace OracleJob {
|
|||
constructor(properties?: OracleJob.IMultiplyTask);
|
||||
|
||||
/** MultiplyTask scalar. */
|
||||
public scalar?: (number|null);
|
||||
public scalar: number;
|
||||
|
||||
/** MultiplyTask aggregatorPubkey. */
|
||||
public aggregatorPubkey?: (string|null);
|
||||
public aggregatorPubkey: string;
|
||||
|
||||
/** MultiplyTask job. */
|
||||
public job?: (IOracleJob|null);
|
||||
|
||||
/** MultiplyTask big. */
|
||||
public big?: (string|null);
|
||||
public big: string;
|
||||
|
||||
/** MultiplyTask Multiple. */
|
||||
public Multiple?: ("scalar"|"aggregatorPubkey"|"job"|"big");
|
||||
|
@ -1263,16 +1263,16 @@ export namespace OracleJob {
|
|||
constructor(properties?: OracleJob.IAddTask);
|
||||
|
||||
/** AddTask scalar. */
|
||||
public scalar?: (number|null);
|
||||
public scalar: number;
|
||||
|
||||
/** AddTask aggregatorPubkey. */
|
||||
public aggregatorPubkey?: (string|null);
|
||||
public aggregatorPubkey: string;
|
||||
|
||||
/** AddTask job. */
|
||||
public job?: (IOracleJob|null);
|
||||
|
||||
/** AddTask big. */
|
||||
public big?: (string|null);
|
||||
public big: string;
|
||||
|
||||
/** AddTask Addition. */
|
||||
public Addition?: ("scalar"|"aggregatorPubkey"|"job"|"big");
|
||||
|
@ -1374,16 +1374,16 @@ export namespace OracleJob {
|
|||
constructor(properties?: OracleJob.ISubtractTask);
|
||||
|
||||
/** SubtractTask scalar. */
|
||||
public scalar?: (number|null);
|
||||
public scalar: number;
|
||||
|
||||
/** SubtractTask aggregatorPubkey. */
|
||||
public aggregatorPubkey?: (string|null);
|
||||
public aggregatorPubkey: string;
|
||||
|
||||
/** SubtractTask job. */
|
||||
public job?: (IOracleJob|null);
|
||||
|
||||
/** SubtractTask big. */
|
||||
public big?: (string|null);
|
||||
public big: string;
|
||||
|
||||
/** SubtractTask Subtraction. */
|
||||
public Subtraction?: ("scalar"|"aggregatorPubkey"|"job"|"big");
|
||||
|
@ -1494,16 +1494,16 @@ export namespace OracleJob {
|
|||
constructor(properties?: OracleJob.ILpTokenPriceTask);
|
||||
|
||||
/** LpTokenPriceTask mercurialPoolAddress. */
|
||||
public mercurialPoolAddress?: (string|null);
|
||||
public mercurialPoolAddress: string;
|
||||
|
||||
/** LpTokenPriceTask saberPoolAddress. */
|
||||
public saberPoolAddress?: (string|null);
|
||||
public saberPoolAddress: string;
|
||||
|
||||
/** LpTokenPriceTask orcaPoolAddress. */
|
||||
public orcaPoolAddress?: (string|null);
|
||||
public orcaPoolAddress: string;
|
||||
|
||||
/** LpTokenPriceTask raydiumPoolAddress. */
|
||||
public raydiumPoolAddress?: (string|null);
|
||||
public raydiumPoolAddress: string;
|
||||
|
||||
/** LpTokenPriceTask priceFeedAddresses. */
|
||||
public priceFeedAddresses: string[];
|
||||
|
@ -1626,16 +1626,16 @@ export namespace OracleJob {
|
|||
public outTokenAddress: string;
|
||||
|
||||
/** LpExchangeRateTask mercurialPoolAddress. */
|
||||
public mercurialPoolAddress?: (string|null);
|
||||
public mercurialPoolAddress: string;
|
||||
|
||||
/** LpExchangeRateTask saberPoolAddress. */
|
||||
public saberPoolAddress?: (string|null);
|
||||
public saberPoolAddress: string;
|
||||
|
||||
/** LpExchangeRateTask orcaPoolTokenMintAddress. */
|
||||
public orcaPoolTokenMintAddress?: (string|null);
|
||||
public orcaPoolTokenMintAddress: string;
|
||||
|
||||
/** LpExchangeRateTask raydiumPoolAddress. */
|
||||
public raydiumPoolAddress?: (string|null);
|
||||
public raydiumPoolAddress: string;
|
||||
|
||||
/** LpExchangeRateTask PoolAddress. */
|
||||
public PoolAddress?: ("mercurialPoolAddress"|"saberPoolAddress"|"orcaPoolTokenMintAddress"|"raydiumPoolAddress");
|
||||
|
@ -1830,7 +1830,7 @@ export namespace OracleJob {
|
|||
public stepJob?: (OracleJob.IMedianTask|null);
|
||||
|
||||
/** XStepPriceTask stepAggregatorPubkey. */
|
||||
public stepAggregatorPubkey?: (string|null);
|
||||
public stepAggregatorPubkey: string;
|
||||
|
||||
/** XStepPriceTask StepSource. */
|
||||
public StepSource?: ("stepJob"|"stepAggregatorPubkey");
|
||||
|
@ -2133,13 +2133,13 @@ export namespace OracleJob {
|
|||
constructor(properties?: OracleJob.IPowTask);
|
||||
|
||||
/** PowTask scalar. */
|
||||
public scalar?: (number|null);
|
||||
public scalar: number;
|
||||
|
||||
/** PowTask aggregatorPubkey. */
|
||||
public aggregatorPubkey?: (string|null);
|
||||
public aggregatorPubkey: string;
|
||||
|
||||
/** PowTask big. */
|
||||
public big?: (string|null);
|
||||
public big: string;
|
||||
|
||||
/** PowTask Exponent. */
|
||||
public Exponent?: ("scalar"|"aggregatorPubkey"|"big");
|
||||
|
@ -2544,16 +2544,16 @@ export namespace OracleJob {
|
|||
constructor(properties?: OracleJob.IPerpMarketTask);
|
||||
|
||||
/** PerpMarketTask mangoMarketAddress. */
|
||||
public mangoMarketAddress?: (string|null);
|
||||
public mangoMarketAddress: string;
|
||||
|
||||
/** PerpMarketTask driftMarketAddress. */
|
||||
public driftMarketAddress?: (string|null);
|
||||
public driftMarketAddress: string;
|
||||
|
||||
/** PerpMarketTask zetaMarketAddress. */
|
||||
public zetaMarketAddress?: (string|null);
|
||||
public zetaMarketAddress: string;
|
||||
|
||||
/** PerpMarketTask zoMarketAddress. */
|
||||
public zoMarketAddress?: (string|null);
|
||||
public zoMarketAddress: string;
|
||||
|
||||
/** PerpMarketTask MarketAddress. */
|
||||
public MarketAddress?: ("mangoMarketAddress"|"driftMarketAddress"|"zetaMarketAddress"|"zoMarketAddress");
|
||||
|
@ -2655,13 +2655,13 @@ export namespace OracleJob {
|
|||
constructor(properties?: OracleJob.IOracleTask);
|
||||
|
||||
/** OracleTask switchboardAddress. */
|
||||
public switchboardAddress?: (string|null);
|
||||
public switchboardAddress: string;
|
||||
|
||||
/** OracleTask pythAddress. */
|
||||
public pythAddress?: (string|null);
|
||||
public pythAddress: string;
|
||||
|
||||
/** OracleTask chainlinkAddress. */
|
||||
public chainlinkAddress?: (string|null);
|
||||
public chainlinkAddress: string;
|
||||
|
||||
/** OracleTask pythAllowedConfidenceInterval. */
|
||||
public pythAllowedConfidenceInterval: number;
|
||||
|
@ -3030,10 +3030,10 @@ export namespace OracleJob {
|
|||
constructor(properties?: OracleJob.ISplTokenParseTask);
|
||||
|
||||
/** SplTokenParseTask tokenAccountAddress. */
|
||||
public tokenAccountAddress?: (string|null);
|
||||
public tokenAccountAddress: string;
|
||||
|
||||
/** SplTokenParseTask mintAddress. */
|
||||
public mintAddress?: (string|null);
|
||||
public mintAddress: string;
|
||||
|
||||
/** SplTokenParseTask AccountAddress. */
|
||||
public AccountAddress?: ("tokenAccountAddress"|"mintAddress");
|
||||
|
|
|
@ -1799,27 +1799,27 @@
|
|||
|
||||
/**
|
||||
* ValueTask value.
|
||||
* @member {number|null|undefined} value
|
||||
* @member {number} value
|
||||
* @memberof OracleJob.ValueTask
|
||||
* @instance
|
||||
*/
|
||||
ValueTask.prototype.value = null;
|
||||
ValueTask.prototype.value = 0;
|
||||
|
||||
/**
|
||||
* ValueTask aggregatorPubkey.
|
||||
* @member {string|null|undefined} aggregatorPubkey
|
||||
* @member {string} aggregatorPubkey
|
||||
* @memberof OracleJob.ValueTask
|
||||
* @instance
|
||||
*/
|
||||
ValueTask.prototype.aggregatorPubkey = null;
|
||||
ValueTask.prototype.aggregatorPubkey = "";
|
||||
|
||||
/**
|
||||
* ValueTask big.
|
||||
* @member {string|null|undefined} big
|
||||
* @member {string} big
|
||||
* @memberof OracleJob.ValueTask
|
||||
* @instance
|
||||
*/
|
||||
ValueTask.prototype.big = null;
|
||||
ValueTask.prototype.big = "";
|
||||
|
||||
// OneOf field names bound to virtual getters and setters
|
||||
var $oneOfFields;
|
||||
|
@ -2567,19 +2567,19 @@
|
|||
|
||||
/**
|
||||
* DivideTask scalar.
|
||||
* @member {number|null|undefined} scalar
|
||||
* @member {number} scalar
|
||||
* @memberof OracleJob.DivideTask
|
||||
* @instance
|
||||
*/
|
||||
DivideTask.prototype.scalar = null;
|
||||
DivideTask.prototype.scalar = 0;
|
||||
|
||||
/**
|
||||
* DivideTask aggregatorPubkey.
|
||||
* @member {string|null|undefined} aggregatorPubkey
|
||||
* @member {string} aggregatorPubkey
|
||||
* @memberof OracleJob.DivideTask
|
||||
* @instance
|
||||
*/
|
||||
DivideTask.prototype.aggregatorPubkey = null;
|
||||
DivideTask.prototype.aggregatorPubkey = "";
|
||||
|
||||
/**
|
||||
* DivideTask job.
|
||||
|
@ -2591,11 +2591,11 @@
|
|||
|
||||
/**
|
||||
* DivideTask big.
|
||||
* @member {string|null|undefined} big
|
||||
* @member {string} big
|
||||
* @memberof OracleJob.DivideTask
|
||||
* @instance
|
||||
*/
|
||||
DivideTask.prototype.big = null;
|
||||
DivideTask.prototype.big = "";
|
||||
|
||||
// OneOf field names bound to virtual getters and setters
|
||||
var $oneOfFields;
|
||||
|
@ -2862,19 +2862,19 @@
|
|||
|
||||
/**
|
||||
* MultiplyTask scalar.
|
||||
* @member {number|null|undefined} scalar
|
||||
* @member {number} scalar
|
||||
* @memberof OracleJob.MultiplyTask
|
||||
* @instance
|
||||
*/
|
||||
MultiplyTask.prototype.scalar = null;
|
||||
MultiplyTask.prototype.scalar = 0;
|
||||
|
||||
/**
|
||||
* MultiplyTask aggregatorPubkey.
|
||||
* @member {string|null|undefined} aggregatorPubkey
|
||||
* @member {string} aggregatorPubkey
|
||||
* @memberof OracleJob.MultiplyTask
|
||||
* @instance
|
||||
*/
|
||||
MultiplyTask.prototype.aggregatorPubkey = null;
|
||||
MultiplyTask.prototype.aggregatorPubkey = "";
|
||||
|
||||
/**
|
||||
* MultiplyTask job.
|
||||
|
@ -2886,11 +2886,11 @@
|
|||
|
||||
/**
|
||||
* MultiplyTask big.
|
||||
* @member {string|null|undefined} big
|
||||
* @member {string} big
|
||||
* @memberof OracleJob.MultiplyTask
|
||||
* @instance
|
||||
*/
|
||||
MultiplyTask.prototype.big = null;
|
||||
MultiplyTask.prototype.big = "";
|
||||
|
||||
// OneOf field names bound to virtual getters and setters
|
||||
var $oneOfFields;
|
||||
|
@ -3157,19 +3157,19 @@
|
|||
|
||||
/**
|
||||
* AddTask scalar.
|
||||
* @member {number|null|undefined} scalar
|
||||
* @member {number} scalar
|
||||
* @memberof OracleJob.AddTask
|
||||
* @instance
|
||||
*/
|
||||
AddTask.prototype.scalar = null;
|
||||
AddTask.prototype.scalar = 0;
|
||||
|
||||
/**
|
||||
* AddTask aggregatorPubkey.
|
||||
* @member {string|null|undefined} aggregatorPubkey
|
||||
* @member {string} aggregatorPubkey
|
||||
* @memberof OracleJob.AddTask
|
||||
* @instance
|
||||
*/
|
||||
AddTask.prototype.aggregatorPubkey = null;
|
||||
AddTask.prototype.aggregatorPubkey = "";
|
||||
|
||||
/**
|
||||
* AddTask job.
|
||||
|
@ -3181,11 +3181,11 @@
|
|||
|
||||
/**
|
||||
* AddTask big.
|
||||
* @member {string|null|undefined} big
|
||||
* @member {string} big
|
||||
* @memberof OracleJob.AddTask
|
||||
* @instance
|
||||
*/
|
||||
AddTask.prototype.big = null;
|
||||
AddTask.prototype.big = "";
|
||||
|
||||
// OneOf field names bound to virtual getters and setters
|
||||
var $oneOfFields;
|
||||
|
@ -3452,19 +3452,19 @@
|
|||
|
||||
/**
|
||||
* SubtractTask scalar.
|
||||
* @member {number|null|undefined} scalar
|
||||
* @member {number} scalar
|
||||
* @memberof OracleJob.SubtractTask
|
||||
* @instance
|
||||
*/
|
||||
SubtractTask.prototype.scalar = null;
|
||||
SubtractTask.prototype.scalar = 0;
|
||||
|
||||
/**
|
||||
* SubtractTask aggregatorPubkey.
|
||||
* @member {string|null|undefined} aggregatorPubkey
|
||||
* @member {string} aggregatorPubkey
|
||||
* @memberof OracleJob.SubtractTask
|
||||
* @instance
|
||||
*/
|
||||
SubtractTask.prototype.aggregatorPubkey = null;
|
||||
SubtractTask.prototype.aggregatorPubkey = "";
|
||||
|
||||
/**
|
||||
* SubtractTask job.
|
||||
|
@ -3476,11 +3476,11 @@
|
|||
|
||||
/**
|
||||
* SubtractTask big.
|
||||
* @member {string|null|undefined} big
|
||||
* @member {string} big
|
||||
* @memberof OracleJob.SubtractTask
|
||||
* @instance
|
||||
*/
|
||||
SubtractTask.prototype.big = null;
|
||||
SubtractTask.prototype.big = "";
|
||||
|
||||
// OneOf field names bound to virtual getters and setters
|
||||
var $oneOfFields;
|
||||
|
@ -3752,35 +3752,35 @@
|
|||
|
||||
/**
|
||||
* LpTokenPriceTask mercurialPoolAddress.
|
||||
* @member {string|null|undefined} mercurialPoolAddress
|
||||
* @member {string} mercurialPoolAddress
|
||||
* @memberof OracleJob.LpTokenPriceTask
|
||||
* @instance
|
||||
*/
|
||||
LpTokenPriceTask.prototype.mercurialPoolAddress = null;
|
||||
LpTokenPriceTask.prototype.mercurialPoolAddress = "";
|
||||
|
||||
/**
|
||||
* LpTokenPriceTask saberPoolAddress.
|
||||
* @member {string|null|undefined} saberPoolAddress
|
||||
* @member {string} saberPoolAddress
|
||||
* @memberof OracleJob.LpTokenPriceTask
|
||||
* @instance
|
||||
*/
|
||||
LpTokenPriceTask.prototype.saberPoolAddress = null;
|
||||
LpTokenPriceTask.prototype.saberPoolAddress = "";
|
||||
|
||||
/**
|
||||
* LpTokenPriceTask orcaPoolAddress.
|
||||
* @member {string|null|undefined} orcaPoolAddress
|
||||
* @member {string} orcaPoolAddress
|
||||
* @memberof OracleJob.LpTokenPriceTask
|
||||
* @instance
|
||||
*/
|
||||
LpTokenPriceTask.prototype.orcaPoolAddress = null;
|
||||
LpTokenPriceTask.prototype.orcaPoolAddress = "";
|
||||
|
||||
/**
|
||||
* LpTokenPriceTask raydiumPoolAddress.
|
||||
* @member {string|null|undefined} raydiumPoolAddress
|
||||
* @member {string} raydiumPoolAddress
|
||||
* @memberof OracleJob.LpTokenPriceTask
|
||||
* @instance
|
||||
*/
|
||||
LpTokenPriceTask.prototype.raydiumPoolAddress = null;
|
||||
LpTokenPriceTask.prototype.raydiumPoolAddress = "";
|
||||
|
||||
/**
|
||||
* LpTokenPriceTask priceFeedAddresses.
|
||||
|
@ -4160,35 +4160,35 @@
|
|||
|
||||
/**
|
||||
* LpExchangeRateTask mercurialPoolAddress.
|
||||
* @member {string|null|undefined} mercurialPoolAddress
|
||||
* @member {string} mercurialPoolAddress
|
||||
* @memberof OracleJob.LpExchangeRateTask
|
||||
* @instance
|
||||
*/
|
||||
LpExchangeRateTask.prototype.mercurialPoolAddress = null;
|
||||
LpExchangeRateTask.prototype.mercurialPoolAddress = "";
|
||||
|
||||
/**
|
||||
* LpExchangeRateTask saberPoolAddress.
|
||||
* @member {string|null|undefined} saberPoolAddress
|
||||
* @member {string} saberPoolAddress
|
||||
* @memberof OracleJob.LpExchangeRateTask
|
||||
* @instance
|
||||
*/
|
||||
LpExchangeRateTask.prototype.saberPoolAddress = null;
|
||||
LpExchangeRateTask.prototype.saberPoolAddress = "";
|
||||
|
||||
/**
|
||||
* LpExchangeRateTask orcaPoolTokenMintAddress.
|
||||
* @member {string|null|undefined} orcaPoolTokenMintAddress
|
||||
* @member {string} orcaPoolTokenMintAddress
|
||||
* @memberof OracleJob.LpExchangeRateTask
|
||||
* @instance
|
||||
*/
|
||||
LpExchangeRateTask.prototype.orcaPoolTokenMintAddress = null;
|
||||
LpExchangeRateTask.prototype.orcaPoolTokenMintAddress = "";
|
||||
|
||||
/**
|
||||
* LpExchangeRateTask raydiumPoolAddress.
|
||||
* @member {string|null|undefined} raydiumPoolAddress
|
||||
* @member {string} raydiumPoolAddress
|
||||
* @memberof OracleJob.LpExchangeRateTask
|
||||
* @instance
|
||||
*/
|
||||
LpExchangeRateTask.prototype.raydiumPoolAddress = null;
|
||||
LpExchangeRateTask.prototype.raydiumPoolAddress = "";
|
||||
|
||||
// OneOf field names bound to virtual getters and setters
|
||||
var $oneOfFields;
|
||||
|
@ -4693,11 +4693,11 @@
|
|||
|
||||
/**
|
||||
* XStepPriceTask stepAggregatorPubkey.
|
||||
* @member {string|null|undefined} stepAggregatorPubkey
|
||||
* @member {string} stepAggregatorPubkey
|
||||
* @memberof OracleJob.XStepPriceTask
|
||||
* @instance
|
||||
*/
|
||||
XStepPriceTask.prototype.stepAggregatorPubkey = null;
|
||||
XStepPriceTask.prototype.stepAggregatorPubkey = "";
|
||||
|
||||
// OneOf field names bound to virtual getters and setters
|
||||
var $oneOfFields;
|
||||
|
@ -5388,27 +5388,27 @@
|
|||
|
||||
/**
|
||||
* PowTask scalar.
|
||||
* @member {number|null|undefined} scalar
|
||||
* @member {number} scalar
|
||||
* @memberof OracleJob.PowTask
|
||||
* @instance
|
||||
*/
|
||||
PowTask.prototype.scalar = null;
|
||||
PowTask.prototype.scalar = 0;
|
||||
|
||||
/**
|
||||
* PowTask aggregatorPubkey.
|
||||
* @member {string|null|undefined} aggregatorPubkey
|
||||
* @member {string} aggregatorPubkey
|
||||
* @memberof OracleJob.PowTask
|
||||
* @instance
|
||||
*/
|
||||
PowTask.prototype.aggregatorPubkey = null;
|
||||
PowTask.prototype.aggregatorPubkey = "";
|
||||
|
||||
/**
|
||||
* PowTask big.
|
||||
* @member {string|null|undefined} big
|
||||
* @member {string} big
|
||||
* @memberof OracleJob.PowTask
|
||||
* @instance
|
||||
*/
|
||||
PowTask.prototype.big = null;
|
||||
PowTask.prototype.big = "";
|
||||
|
||||
// OneOf field names bound to virtual getters and setters
|
||||
var $oneOfFields;
|
||||
|
@ -6328,35 +6328,35 @@
|
|||
|
||||
/**
|
||||
* PerpMarketTask mangoMarketAddress.
|
||||
* @member {string|null|undefined} mangoMarketAddress
|
||||
* @member {string} mangoMarketAddress
|
||||
* @memberof OracleJob.PerpMarketTask
|
||||
* @instance
|
||||
*/
|
||||
PerpMarketTask.prototype.mangoMarketAddress = null;
|
||||
PerpMarketTask.prototype.mangoMarketAddress = "";
|
||||
|
||||
/**
|
||||
* PerpMarketTask driftMarketAddress.
|
||||
* @member {string|null|undefined} driftMarketAddress
|
||||
* @member {string} driftMarketAddress
|
||||
* @memberof OracleJob.PerpMarketTask
|
||||
* @instance
|
||||
*/
|
||||
PerpMarketTask.prototype.driftMarketAddress = null;
|
||||
PerpMarketTask.prototype.driftMarketAddress = "";
|
||||
|
||||
/**
|
||||
* PerpMarketTask zetaMarketAddress.
|
||||
* @member {string|null|undefined} zetaMarketAddress
|
||||
* @member {string} zetaMarketAddress
|
||||
* @memberof OracleJob.PerpMarketTask
|
||||
* @instance
|
||||
*/
|
||||
PerpMarketTask.prototype.zetaMarketAddress = null;
|
||||
PerpMarketTask.prototype.zetaMarketAddress = "";
|
||||
|
||||
/**
|
||||
* PerpMarketTask zoMarketAddress.
|
||||
* @member {string|null|undefined} zoMarketAddress
|
||||
* @member {string} zoMarketAddress
|
||||
* @memberof OracleJob.PerpMarketTask
|
||||
* @instance
|
||||
*/
|
||||
PerpMarketTask.prototype.zoMarketAddress = null;
|
||||
PerpMarketTask.prototype.zoMarketAddress = "";
|
||||
|
||||
// OneOf field names bound to virtual getters and setters
|
||||
var $oneOfFields;
|
||||
|
@ -6617,27 +6617,27 @@
|
|||
|
||||
/**
|
||||
* OracleTask switchboardAddress.
|
||||
* @member {string|null|undefined} switchboardAddress
|
||||
* @member {string} switchboardAddress
|
||||
* @memberof OracleJob.OracleTask
|
||||
* @instance
|
||||
*/
|
||||
OracleTask.prototype.switchboardAddress = null;
|
||||
OracleTask.prototype.switchboardAddress = "";
|
||||
|
||||
/**
|
||||
* OracleTask pythAddress.
|
||||
* @member {string|null|undefined} pythAddress
|
||||
* @member {string} pythAddress
|
||||
* @memberof OracleJob.OracleTask
|
||||
* @instance
|
||||
*/
|
||||
OracleTask.prototype.pythAddress = null;
|
||||
OracleTask.prototype.pythAddress = "";
|
||||
|
||||
/**
|
||||
* OracleTask chainlinkAddress.
|
||||
* @member {string|null|undefined} chainlinkAddress
|
||||
* @member {string} chainlinkAddress
|
||||
* @memberof OracleJob.OracleTask
|
||||
* @instance
|
||||
*/
|
||||
OracleTask.prototype.chainlinkAddress = null;
|
||||
OracleTask.prototype.chainlinkAddress = "";
|
||||
|
||||
/**
|
||||
* OracleTask pythAllowedConfidenceInterval.
|
||||
|
@ -7456,19 +7456,19 @@
|
|||
|
||||
/**
|
||||
* SplTokenParseTask tokenAccountAddress.
|
||||
* @member {string|null|undefined} tokenAccountAddress
|
||||
* @member {string} tokenAccountAddress
|
||||
* @memberof OracleJob.SplTokenParseTask
|
||||
* @instance
|
||||
*/
|
||||
SplTokenParseTask.prototype.tokenAccountAddress = null;
|
||||
SplTokenParseTask.prototype.tokenAccountAddress = "";
|
||||
|
||||
/**
|
||||
* SplTokenParseTask mintAddress.
|
||||
* @member {string|null|undefined} mintAddress
|
||||
* @member {string} mintAddress
|
||||
* @memberof OracleJob.SplTokenParseTask
|
||||
* @instance
|
||||
*/
|
||||
SplTokenParseTask.prototype.mintAddress = null;
|
||||
SplTokenParseTask.prototype.mintAddress = "";
|
||||
|
||||
// OneOf field names bound to virtual getters and setters
|
||||
var $oneOfFields;
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"module": "esnext",
|
||||
"moduleResolution": "node",
|
||||
"module": "es2022",
|
||||
"outDir": "lib/esm",
|
||||
"target": "esnext"
|
||||
"target": "es2019",
|
||||
"rootDir": "./src"
|
||||
}
|
||||
}
|
||||
|
|
84
yarn.lock
84
yarn.lock
|
@ -4836,6 +4836,57 @@
|
|||
"@svgr/plugin-jsx" "^6.2.1"
|
||||
"@svgr/plugin-svgo" "^6.2.0"
|
||||
|
||||
"@switchboard-xyz/switchboard-api@^0.2.201":
|
||||
version "0.2.201"
|
||||
resolved "https://registry.npmjs.org/@switchboard-xyz/switchboard-api/-/switchboard-api-0.2.201.tgz#d082206d521d24dbcdeb06a77e6637a56ab883eb"
|
||||
integrity sha512-hlxgeYmO6dbOEcmQzT1SqRxdiCFyVOMpyW4HFPgmPKT0+wSVkjsLc+BKkMGYPDaO0sWMLTJrj0FGhhTsrqd8Mg==
|
||||
dependencies:
|
||||
"@solana/web3.js" "^1.17.0"
|
||||
form-data "^4.0.0"
|
||||
protobufjs "^6.10.2"
|
||||
rpc-websockets "^7.4.12"
|
||||
typedoc "^0.22.15"
|
||||
ws "^7.4.6"
|
||||
|
||||
"@switchboard-xyz/switchboard-v2@^0.0.108":
|
||||
version "0.0.108"
|
||||
resolved "https://registry.npmjs.org/@switchboard-xyz/switchboard-v2/-/switchboard-v2-0.0.108.tgz#9e0a69cf4e8f8fef79cca8eeb1bede0ee1435e53"
|
||||
integrity sha512-mJi/WS3ZWhXwet+lZvIKfdntw7ltX43GiYbEaAhS/WIHFN+iPIdIoI3mjEpka5Ptws3bDCZe3c6+ZDHdfJ0PFg==
|
||||
dependencies:
|
||||
"@project-serum/anchor" "^0.24.2"
|
||||
"@solana/spl-governance" "^0.0.34"
|
||||
"@switchboard-xyz/eslint-config" "^0.1.1"
|
||||
"@switchboard-xyz/switchboard-api" "^0.2.201"
|
||||
assert "^2.0.0"
|
||||
big.js "^6.1.1"
|
||||
bs58 "^4.0.1"
|
||||
buffer-layout "^1.2.0"
|
||||
chalk "^4.1.2"
|
||||
chan "^0.6.1"
|
||||
crypto-js "^4.0.0"
|
||||
dotenv "^16.0.0"
|
||||
long "^4.0.0"
|
||||
mocha "^9.1.1"
|
||||
node-fetch "^3.2.3"
|
||||
protobufjs "^6.10.2"
|
||||
|
||||
"@switchboard-xyz/switchboard-v2@^0.0.109":
|
||||
version "0.0.109"
|
||||
resolved "https://registry.npmjs.org/@switchboard-xyz/switchboard-v2/-/switchboard-v2-0.0.109.tgz#83b4f1310b0b15a2a9aef5d22adbac8ffac99bbb"
|
||||
integrity sha512-NbGie6mZcMBAbRMOoUeh89M8EeA99g8CUz5im3PAAUvUFJ3BkkmP4rqtoQkVsW83G5ZZax5wBvLA1E5BOa9aYA==
|
||||
dependencies:
|
||||
"@project-serum/anchor" "^0.24.2"
|
||||
"@solana/spl-governance" "^0.0.34"
|
||||
assert "^2.0.0"
|
||||
big.js "^6.1.1"
|
||||
bs58 "^4.0.1"
|
||||
chan "^0.6.1"
|
||||
crypto-js "^4.0.0"
|
||||
long "^4.0.0"
|
||||
mocha "^9.1.1"
|
||||
node-fetch "^3.2.3"
|
||||
protobufjs "^6.11.3"
|
||||
|
||||
"@switchboard-xyz/switchboardv2-cli@^0.1.25":
|
||||
version "0.1.28"
|
||||
resolved "https://registry.npmjs.org/@switchboard-xyz/switchboardv2-cli/-/switchboardv2-cli-0.1.28.tgz#a63388225a874e252a9868b6b3b291d1954b9327"
|
||||
|
@ -7267,7 +7318,7 @@ combine-promises@^1.1.0:
|
|||
resolved "https://registry.npmjs.org/combine-promises/-/combine-promises-1.1.0.tgz"
|
||||
integrity sha512-ZI9jvcLDxqwaXEixOhArm3r7ReIivsXkpbyEWyeOhzz1QS0iSgBPnWvEqvIQtYyamGCYA88gFhmUrs9hrrQ0pg==
|
||||
|
||||
combined-stream@^1.0.6, combined-stream@~1.0.6:
|
||||
combined-stream@^1.0.6, combined-stream@^1.0.8, combined-stream@~1.0.6:
|
||||
version "1.0.8"
|
||||
resolved "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz"
|
||||
integrity sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==
|
||||
|
@ -9671,6 +9722,15 @@ fork-ts-checker-webpack-plugin@^6.5.0:
|
|||
semver "^7.3.2"
|
||||
tapable "^1.0.0"
|
||||
|
||||
form-data@^4.0.0:
|
||||
version "4.0.0"
|
||||
resolved "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz#93919daeaf361ee529584b9b31664dc12c9fa452"
|
||||
integrity sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==
|
||||
dependencies:
|
||||
asynckit "^0.4.0"
|
||||
combined-stream "^1.0.8"
|
||||
mime-types "^2.1.12"
|
||||
|
||||
form-data@~2.3.2:
|
||||
version "2.3.3"
|
||||
resolved "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz"
|
||||
|
@ -14377,7 +14437,7 @@ proto3-json-serializer@^0.1.8:
|
|||
dependencies:
|
||||
protobufjs "^6.11.2"
|
||||
|
||||
protobufjs@6.11.3, protobufjs@^6.11.2, protobufjs@^6.11.3:
|
||||
protobufjs@6.11.3, protobufjs@^6.10.2, protobufjs@^6.11.2, protobufjs@^6.11.3:
|
||||
version "6.11.3"
|
||||
resolved "https://registry.npmjs.org/protobufjs/-/protobufjs-6.11.3.tgz#637a527205a35caa4f3e2a9a4a13ddffe0e7af74"
|
||||
integrity sha512-xL96WDdCZYdU7Slin569tFX712BxsxslWwAfAhCYjQKGTq7dAU91Lomy6nLLhh/dyGhk/YH4TwTSRxTzhuHyZg==
|
||||
|
@ -15332,6 +15392,19 @@ rimraf@^3.0.0, rimraf@^3.0.2:
|
|||
dependencies:
|
||||
glob "^7.1.3"
|
||||
|
||||
rpc-websockets@^7.4.12:
|
||||
version "7.5.0"
|
||||
resolved "https://registry.npmjs.org/rpc-websockets/-/rpc-websockets-7.5.0.tgz#bbeb87572e66703ff151e50af1658f98098e2748"
|
||||
integrity sha512-9tIRi1uZGy7YmDjErf1Ax3wtqdSSLIlnmL5OtOzgd5eqPKbsPpwDP5whUDO2LQay3Xp0CcHlcNSGzacNRluBaQ==
|
||||
dependencies:
|
||||
"@babel/runtime" "^7.17.2"
|
||||
eventemitter3 "^4.0.7"
|
||||
uuid "^8.3.2"
|
||||
ws "^8.5.0"
|
||||
optionalDependencies:
|
||||
bufferutil "^4.0.1"
|
||||
utf-8-validate "^5.0.2"
|
||||
|
||||
rpc-websockets@^7.4.2:
|
||||
version "7.4.18"
|
||||
resolved "https://registry.npmjs.org/rpc-websockets/-/rpc-websockets-7.4.18.tgz"
|
||||
|
@ -16886,7 +16959,7 @@ typescript@^4.2.4, typescript@^4.3.2, typescript@^4.3.5, typescript@^4.6.3:
|
|||
resolved "https://registry.npmjs.org/typescript/-/typescript-4.6.3.tgz"
|
||||
integrity sha512-yNIatDa5iaofVozS/uQJEl3JRWLKKGJKh6Yaiv0GLGSuhpFJe7P3SbHZ8/yjAHRQwKRoA6YZqlfjXWmVzoVSMw==
|
||||
|
||||
typescript@^4.4.3:
|
||||
typescript@^4.4.3, typescript@^4.7:
|
||||
version "4.7.3"
|
||||
resolved "https://registry.npmjs.org/typescript/-/typescript-4.7.3.tgz#8364b502d5257b540f9de4c40be84c98e23a129d"
|
||||
integrity sha512-WOkT3XYvrpXx4vMMqlD+8R8R37fZkjyLGlxavMc4iB8lrl8L0DeTcHbYgw/v0N/z9wAFsgBhcsF0ruoySS22mA==
|
||||
|
@ -17808,6 +17881,11 @@ ws@^7.0.0, ws@^7.3.1, ws@^7.4.5:
|
|||
resolved "https://registry.npmjs.org/ws/-/ws-7.5.7.tgz"
|
||||
integrity sha512-KMvVuFzpKBuiIXW3E4u3mySRO2/mCHSyZDJQM5NQ9Q9KHWHWh0NHgfbRMLLrceUK5qAL4ytALJbpRMjixFZh8A==
|
||||
|
||||
ws@^7.4.6:
|
||||
version "7.5.8"
|
||||
resolved "https://registry.npmjs.org/ws/-/ws-7.5.8.tgz#ac2729881ab9e7cbaf8787fe3469a48c5c7f636a"
|
||||
integrity sha512-ri1Id1WinAX5Jqn9HejiGb8crfRio0Qgu8+MtL36rlTA6RLsMdWt1Az/19A2Qij6uSHUMphEFaTKa4WG+UNHNw==
|
||||
|
||||
ws@^8.4.2, ws@^8.5.0:
|
||||
version "8.5.0"
|
||||
resolved "https://registry.npmjs.org/ws/-/ws-8.5.0.tgz"
|
||||
|
|
Loading…
Reference in New Issue