flash-sdk 10.0.1 → 10.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,3 @@
1
- /// <reference types="bn.js" />
2
1
  import { BN } from "@coral-xyz/anchor";
3
2
  import { ContractOraclePrice } from "./types";
4
3
  export declare class OraclePrice {
@@ -1,4 +1,3 @@
1
- /// <reference types="bn.js" />
2
1
  import { BN } from "@coral-xyz/anchor";
3
2
  import { PublicKey } from "@solana/web3.js";
4
3
  import { LimitOrder, Order, TriggerOrder } from "./types";
@@ -1,5 +1,3 @@
1
- /// <reference types="bn.js" />
2
- /// <reference types="node" />
3
1
  import { Program, AnchorProvider, BN } from "@coral-xyz/anchor";
4
2
  import { PublicKey, TransactionInstruction, Commitment, Signer, AddressLookupTableAccount, VersionedTransaction } from "@solana/web3.js";
5
3
  import { PoolAccount } from "./PoolAccount";
@@ -261,6 +259,7 @@ export declare class PerpetualsClient {
261
259
  conf: BN;
262
260
  ema: BN;
263
261
  publishTime: BN;
262
+ extOracleAccount: PublicKey;
264
263
  market: PublicKey;
265
264
  limitOrders: unknown;
266
265
  takeProfitOrders: unknown;
@@ -602,6 +601,7 @@ export declare class PerpetualsClient {
602
601
  conf: BN;
603
602
  ema: BN;
604
603
  publishTime: BN;
604
+ extOracleAccount: PublicKey;
605
605
  market: PublicKey;
606
606
  limitOrders: unknown;
607
607
  takeProfitOrders: unknown;
@@ -942,6 +942,7 @@ export declare class PerpetualsClient {
942
942
  conf: BN;
943
943
  ema: BN;
944
944
  publishTime: BN;
945
+ extOracleAccount: PublicKey;
945
946
  market: PublicKey;
946
947
  limitOrders: unknown;
947
948
  takeProfitOrders: unknown;
@@ -1286,6 +1287,7 @@ export declare class PerpetualsClient {
1286
1287
  conf: BN;
1287
1288
  ema: BN;
1288
1289
  publishTime: BN;
1290
+ extOracleAccount: PublicKey;
1289
1291
  market: PublicKey;
1290
1292
  limitOrders: unknown;
1291
1293
  takeProfitOrders: unknown;
@@ -1629,6 +1631,7 @@ export declare class PerpetualsClient {
1629
1631
  conf: BN;
1630
1632
  ema: BN;
1631
1633
  publishTime: BN;
1634
+ extOracleAccount: PublicKey;
1632
1635
  market: PublicKey;
1633
1636
  limitOrders: unknown;
1634
1637
  takeProfitOrders: unknown;
@@ -1970,6 +1973,7 @@ export declare class PerpetualsClient {
1970
1973
  conf: BN;
1971
1974
  ema: BN;
1972
1975
  publishTime: BN;
1976
+ extOracleAccount: PublicKey;
1973
1977
  market: PublicKey;
1974
1978
  limitOrders: unknown;
1975
1979
  takeProfitOrders: unknown;
@@ -2310,6 +2314,7 @@ export declare class PerpetualsClient {
2310
2314
  conf: BN;
2311
2315
  ema: BN;
2312
2316
  publishTime: BN;
2317
+ extOracleAccount: PublicKey;
2313
2318
  market: PublicKey;
2314
2319
  limitOrders: unknown;
2315
2320
  takeProfitOrders: unknown;
@@ -2650,6 +2655,7 @@ export declare class PerpetualsClient {
2650
2655
  conf: BN;
2651
2656
  ema: BN;
2652
2657
  publishTime: BN;
2658
+ extOracleAccount: PublicKey;
2653
2659
  market: PublicKey;
2654
2660
  limitOrders: unknown;
2655
2661
  takeProfitOrders: unknown;
@@ -3037,6 +3043,7 @@ export declare class PerpetualsClient {
3037
3043
  conf: BN;
3038
3044
  ema: BN;
3039
3045
  publishTime: BN;
3046
+ extOracleAccount: PublicKey;
3040
3047
  market: PublicKey;
3041
3048
  limitOrders: unknown;
3042
3049
  takeProfitOrders: unknown;
@@ -3377,6 +3384,7 @@ export declare class PerpetualsClient {
3377
3384
  conf: BN;
3378
3385
  ema: BN;
3379
3386
  publishTime: BN;
3387
+ extOracleAccount: PublicKey;
3380
3388
  market: PublicKey;
3381
3389
  limitOrders: unknown;
3382
3390
  takeProfitOrders: unknown;
@@ -3717,6 +3725,7 @@ export declare class PerpetualsClient {
3717
3725
  conf: BN;
3718
3726
  ema: BN;
3719
3727
  publishTime: BN;
3728
+ extOracleAccount: PublicKey;
3720
3729
  market: PublicKey;
3721
3730
  limitOrders: unknown;
3722
3731
  takeProfitOrders: unknown;
@@ -4057,6 +4066,7 @@ export declare class PerpetualsClient {
4057
4066
  conf: BN;
4058
4067
  ema: BN;
4059
4068
  publishTime: BN;
4069
+ extOracleAccount: PublicKey;
4060
4070
  market: PublicKey;
4061
4071
  limitOrders: unknown;
4062
4072
  takeProfitOrders: unknown;
@@ -4397,6 +4407,7 @@ export declare class PerpetualsClient {
4397
4407
  conf: BN;
4398
4408
  ema: BN;
4399
4409
  publishTime: BN;
4410
+ extOracleAccount: PublicKey;
4400
4411
  market: PublicKey;
4401
4412
  limitOrders: unknown;
4402
4413
  takeProfitOrders: unknown;
@@ -4894,11 +4905,11 @@ export declare class PerpetualsClient {
4894
4905
  instructions: TransactionInstruction[];
4895
4906
  additionalSigners: Signer[];
4896
4907
  }>;
4897
- setInternalOraclePrice: (tokenMint: PublicKey, price: BN, expo: number, conf: BN, ema: BN, publishTime: BN, poolConfig: PoolConfig) => Promise<{
4908
+ setInternalOraclePrice: (tokenMint: PublicKey, useCurrentTime: number, price: BN, expo: number, conf: BN, ema: BN, publishTime: BN, poolConfig: PoolConfig) => Promise<{
4898
4909
  instructions: TransactionInstruction[];
4899
4910
  additionalSigners: Signer[];
4900
4911
  }>;
4901
- setInternalOraclePriceBatch: (tokenMintList: PublicKey[], tokenInternalPrices: InternalPrice[], POOL_CONFIGS: PoolConfig[]) => Promise<{
4912
+ setInternalOraclePriceBatch: (useCurrentTime: number, tokenMintList: PublicKey[], tokenInternalPrices: InternalPrice[], POOL_CONFIGS: PoolConfig[]) => Promise<{
4902
4913
  instructions: TransactionInstruction[];
4903
4914
  additionalSigners: Signer[];
4904
4915
  }>;
@@ -4946,4 +4957,8 @@ export declare class PerpetualsClient {
4946
4957
  instructions: TransactionInstruction[];
4947
4958
  additionalSigners: Signer[];
4948
4959
  }>;
4960
+ resizeInternalOracle: (extOracle: PublicKey, tokenMint: PublicKey, intOracleAccount: PublicKey) => Promise<{
4961
+ instructions: TransactionInstruction[];
4962
+ additionalSigners: Signer[];
4963
+ }>;
4949
4964
  }
@@ -20,8 +20,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
20
20
  });
21
21
  };
22
22
  var __generator = (this && this.__generator) || function (thisArg, body) {
23
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
24
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
23
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
24
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
25
25
  function verb(n) { return function (v) { return step([n, v]); }; }
26
26
  function step(op) {
27
27
  if (f) throw new TypeError("Generator is already executing.");
@@ -7603,7 +7603,7 @@ var PerpetualsClient = (function () {
7603
7603
  }
7604
7604
  });
7605
7605
  }); };
7606
- this.setInternalOraclePrice = function (tokenMint, price, expo, conf, ema, publishTime, poolConfig) { return __awaiter(_this, void 0, void 0, function () {
7606
+ this.setInternalOraclePrice = function (tokenMint, useCurrentTime, price, expo, conf, ema, publishTime, poolConfig) { return __awaiter(_this, void 0, void 0, function () {
7607
7607
  var instructions, additionalSigners, custodyConfig, setInternalOraclePrice, err_55;
7608
7608
  return __generator(this, function (_a) {
7609
7609
  switch (_a.label) {
@@ -7616,6 +7616,7 @@ var PerpetualsClient = (function () {
7616
7616
  _a.trys.push([1, 3, , 4]);
7617
7617
  return [4, this.program.methods
7618
7618
  .setInternalOraclePrice({
7619
+ useCurrentTime: useCurrentTime,
7619
7620
  price: price,
7620
7621
  expo: expo,
7621
7622
  conf: conf,
@@ -7647,7 +7648,7 @@ var PerpetualsClient = (function () {
7647
7648
  }
7648
7649
  });
7649
7650
  }); };
7650
- this.setInternalOraclePriceBatch = function (tokenMintList, tokenInternalPrices, POOL_CONFIGS) { return __awaiter(_this, void 0, void 0, function () {
7651
+ this.setInternalOraclePriceBatch = function (useCurrentTime, tokenMintList, tokenInternalPrices, POOL_CONFIGS) { return __awaiter(_this, void 0, void 0, function () {
7651
7652
  var ALL_CUSTODY_CONFIGS, accountMetas, _loop_1, _i, tokenMintList_1, tokenMint, instructions, additionalSigners, setInternalOraclePrice, err_56;
7652
7653
  return __generator(this, function (_a) {
7653
7654
  switch (_a.label) {
@@ -7659,11 +7660,6 @@ var PerpetualsClient = (function () {
7659
7660
  accountMetas = [];
7660
7661
  _loop_1 = function (tokenMint) {
7661
7662
  var custody = ALL_CUSTODY_CONFIGS.find(function (i) { return i.mintKey.equals(tokenMint); });
7662
- accountMetas.push({
7663
- pubkey: custody.custodyAccount,
7664
- isSigner: false,
7665
- isWritable: false,
7666
- });
7667
7663
  accountMetas.push({
7668
7664
  pubkey: custody.intOracleAccount,
7669
7665
  isSigner: false,
@@ -7686,6 +7682,7 @@ var PerpetualsClient = (function () {
7686
7682
  _a.trys.push([1, 3, , 4]);
7687
7683
  return [4, this.program.methods
7688
7684
  .setInternalCurrentPrice({
7685
+ useCurrentTime: useCurrentTime,
7689
7686
  prices: tokenInternalPrices
7690
7687
  })
7691
7688
  .accounts({
@@ -7720,21 +7717,11 @@ var PerpetualsClient = (function () {
7720
7717
  accountMetas = [];
7721
7718
  _loop_2 = function (tokenMint) {
7722
7719
  var custody = ALL_CUSTODY_CONFIGS.find(function (i) { return i.mintKey.equals(tokenMint); });
7723
- accountMetas.push({
7724
- pubkey: custody.custodyAccount,
7725
- isSigner: false,
7726
- isWritable: false,
7727
- });
7728
7720
  accountMetas.push({
7729
7721
  pubkey: custody.intOracleAccount,
7730
7722
  isSigner: false,
7731
7723
  isWritable: true,
7732
7724
  });
7733
- accountMetas.push({
7734
- pubkey: custody.extOracleAccount,
7735
- isSigner: false,
7736
- isWritable: false,
7737
- });
7738
7725
  };
7739
7726
  for (_i = 0, tokenMintList_2 = tokenMintList; _i < tokenMintList_2.length; _i++) {
7740
7727
  tokenMint = tokenMintList_2[_i];
@@ -8247,6 +8234,46 @@ var PerpetualsClient = (function () {
8247
8234
  }
8248
8235
  });
8249
8236
  }); };
8237
+ this.resizeInternalOracle = function (extOracle, tokenMint, intOracleAccount) { return __awaiter(_this, void 0, void 0, function () {
8238
+ var publicKey, preInstructions, instructions, postInstructions, additionalSigners, resizeInternalOracleInstruction, err_68;
8239
+ return __generator(this, function (_a) {
8240
+ switch (_a.label) {
8241
+ case 0:
8242
+ publicKey = this.provider.wallet.publicKey;
8243
+ preInstructions = [];
8244
+ instructions = [];
8245
+ postInstructions = [];
8246
+ additionalSigners = [];
8247
+ _a.label = 1;
8248
+ case 1:
8249
+ _a.trys.push([1, 3, , 4]);
8250
+ return [4, this.program.methods
8251
+ .resizeInternalOracle({
8252
+ extOracle: extOracle
8253
+ })
8254
+ .accounts({
8255
+ admin: publicKey,
8256
+ multisig: this.multisig.publicKey,
8257
+ custodyTokenMint: tokenMint,
8258
+ intOracleAccount: intOracleAccount,
8259
+ systemProgram: web3_js_1.SystemProgram.programId,
8260
+ })
8261
+ .instruction()];
8262
+ case 2:
8263
+ resizeInternalOracleInstruction = _a.sent();
8264
+ instructions.push(resizeInternalOracleInstruction);
8265
+ return [3, 4];
8266
+ case 3:
8267
+ err_68 = _a.sent();
8268
+ console.log("perpClient resizeInternalOracleInstruction error:: ", err_68);
8269
+ throw err_68;
8270
+ case 4: return [2, {
8271
+ instructions: __spreadArray(__spreadArray(__spreadArray([], preInstructions, true), instructions, true), postInstructions, true),
8272
+ additionalSigners: additionalSigners
8273
+ }];
8274
+ }
8275
+ });
8276
+ }); };
8250
8277
  this.provider = provider;
8251
8278
  (0, anchor_1.setProvider)(provider);
8252
8279
  this.program = new anchor_1.Program(perpetuals_1.IDL, programId);
@@ -1,4 +1,3 @@
1
- /// <reference types="bn.js" />
2
1
  import { BN } from "@coral-xyz/anchor";
3
2
  import { Pool, TokenRatios, StakeStats, CompoundingStats, Permissions } from "./types";
4
3
  import { PublicKey } from "@solana/web3.js";
@@ -1,4 +1,3 @@
1
- /// <reference types="bn.js" />
2
1
  import { BN } from "@coral-xyz/anchor";
3
2
  import { Mint } from "@solana/spl-token";
4
3
  import { CustodyAccount } from "./CustodyAccount";
@@ -1,4 +1,3 @@
1
- /// <reference types="bn.js" />
2
1
  import { BN } from "@coral-xyz/anchor";
3
2
  import { PublicKey } from "@solana/web3.js";
4
3
  import { ContractOraclePrice, Position } from "./types";
@@ -1,4 +1,3 @@
1
- /// <reference types="bn.js" />
2
1
  import { TokenStake, WithdrawStakeLog } from "./types";
3
2
  import { BN } from "@coral-xyz/anchor";
4
3
  import { PublicKey } from "@solana/web3.js";
@@ -1,4 +1,3 @@
1
- /// <reference types="bn.js" />
2
1
  import { BN } from "@coral-xyz/anchor";
3
2
  import { PublicKey } from "@solana/web3.js";
4
3
  import { TokenVault } from "./types";
@@ -1,4 +1,3 @@
1
- /// <reference types="bn.js" />
2
1
  import { BN } from "@coral-xyz/anchor";
3
2
  import { Trading, VoltageStats } from "./types";
4
3
  import { PublicKey } from "@solana/web3.js";
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  var __generator = (this && this.__generator) || function (thisArg, body) {
12
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
12
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
13
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
14
  function verb(n) { return function (v) { return step([n, v]); }; }
15
15
  function step(op) {
16
16
  if (f) throw new TypeError("Generator is already executing.");
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  var __generator = (this && this.__generator) || function (thisArg, body) {
12
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
12
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
13
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
14
  function verb(n) { return function (v) { return step([n, v]); }; }
15
15
  function step(op) {
16
16
  if (f) throw new TypeError("Generator is already executing.");
@@ -40,7 +40,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
40
40
  };
41
41
  var _a;
42
42
  Object.defineProperty(exports, "__esModule", { value: true });
43
- exports.createBackupOracleInstruction = exports.getBackupOracleInstruction = exports.getPythnetOraclePrices = exports.pythPriceServiceConnection = exports.API_ENDPOINT = void 0;
43
+ exports.getBackupOracleInstruction = exports.getPythnetOraclePrices = exports.pythPriceServiceConnection = exports.API_ENDPOINT = void 0;
44
+ exports.createBackupOracleInstruction = createBackupOracleInstruction;
44
45
  var price_service_client_1 = require("@pythnetwork/price-service-client");
45
46
  var web3_js_1 = require("@solana/web3.js");
46
47
  var bn_js_1 = __importDefault(require("bn.js"));
@@ -156,4 +157,3 @@ function createBackupOracleInstruction(poolAddress_1) {
156
157
  });
157
158
  });
158
159
  }
159
- exports.createBackupOracleInstruction = createBackupOracleInstruction;
@@ -1,4 +1,3 @@
1
- /// <reference types="bn.js" />
2
1
  import { PublicKey } from '@solana/web3.js';
3
2
  export declare const PERCENTAGE_DECIMALS = 4;
4
3
  export declare const USD_DECIMALS = 6;
@@ -673,6 +673,45 @@ export type Perpetuals = {
673
673
  ];
674
674
  "returns": "u8";
675
675
  },
676
+ {
677
+ "name": "resizeInternalOracle";
678
+ "accounts": [
679
+ {
680
+ "name": "admin";
681
+ "isMut": true;
682
+ "isSigner": true;
683
+ },
684
+ {
685
+ "name": "multisig";
686
+ "isMut": true;
687
+ "isSigner": false;
688
+ },
689
+ {
690
+ "name": "custodyTokenMint";
691
+ "isMut": false;
692
+ "isSigner": false;
693
+ },
694
+ {
695
+ "name": "intOracleAccount";
696
+ "isMut": true;
697
+ "isSigner": false;
698
+ },
699
+ {
700
+ "name": "systemProgram";
701
+ "isMut": false;
702
+ "isSigner": false;
703
+ }
704
+ ];
705
+ "args": [
706
+ {
707
+ "name": "params";
708
+ "type": {
709
+ "defined": "ResizeInternalOracleParams";
710
+ };
711
+ }
712
+ ];
713
+ "returns": "u8";
714
+ },
676
715
  {
677
716
  "name": "setAdminSigners";
678
717
  "accounts": [
@@ -7623,6 +7662,10 @@ export type Perpetuals = {
7623
7662
  {
7624
7663
  "name": "publishTime";
7625
7664
  "type": "i64";
7665
+ },
7666
+ {
7667
+ "name": "extOracleAccount";
7668
+ "type": "publicKey";
7626
7669
  }
7627
7670
  ];
7628
7671
  };
@@ -8552,6 +8595,10 @@ export type Perpetuals = {
8552
8595
  {
8553
8596
  "name": "expo";
8554
8597
  "type": "i32";
8598
+ },
8599
+ {
8600
+ "name": "extOracle";
8601
+ "type": "publicKey";
8555
8602
  }
8556
8603
  ];
8557
8604
  };
@@ -9771,6 +9818,18 @@ export type Perpetuals = {
9771
9818
  ];
9772
9819
  };
9773
9820
  },
9821
+ {
9822
+ "name": "ResizeInternalOracleParams";
9823
+ "type": {
9824
+ "kind": "struct";
9825
+ "fields": [
9826
+ {
9827
+ "name": "extOracle";
9828
+ "type": "publicKey";
9829
+ }
9830
+ ];
9831
+ };
9832
+ },
9774
9833
  {
9775
9834
  "name": "SetAdminSignersParams";
9776
9835
  "type": {
@@ -9906,6 +9965,10 @@ export type Perpetuals = {
9906
9965
  "type": {
9907
9966
  "kind": "struct";
9908
9967
  "fields": [
9968
+ {
9969
+ "name": "useCurrentTime";
9970
+ "type": "u8";
9971
+ },
9909
9972
  {
9910
9973
  "name": "prices";
9911
9974
  "type": {
@@ -9938,6 +10001,10 @@ export type Perpetuals = {
9938
10001
  "type": {
9939
10002
  "kind": "struct";
9940
10003
  "fields": [
10004
+ {
10005
+ "name": "useCurrentTime";
10006
+ "type": "u8";
10007
+ },
9941
10008
  {
9942
10009
  "name": "price";
9943
10010
  "type": "u64";
@@ -11590,6 +11657,9 @@ export type Perpetuals = {
11590
11657
  },
11591
11658
  {
11592
11659
  "name": "InitRevenueTokenAccount";
11660
+ },
11661
+ {
11662
+ "name": "ResizeInternalOracle";
11593
11663
  }
11594
11664
  ];
11595
11665
  };
@@ -676,6 +676,45 @@ exports.IDL = {
676
676
  ],
677
677
  "returns": "u8"
678
678
  },
679
+ {
680
+ "name": "resizeInternalOracle",
681
+ "accounts": [
682
+ {
683
+ "name": "admin",
684
+ "isMut": true,
685
+ "isSigner": true
686
+ },
687
+ {
688
+ "name": "multisig",
689
+ "isMut": true,
690
+ "isSigner": false
691
+ },
692
+ {
693
+ "name": "custodyTokenMint",
694
+ "isMut": false,
695
+ "isSigner": false
696
+ },
697
+ {
698
+ "name": "intOracleAccount",
699
+ "isMut": true,
700
+ "isSigner": false
701
+ },
702
+ {
703
+ "name": "systemProgram",
704
+ "isMut": false,
705
+ "isSigner": false
706
+ }
707
+ ],
708
+ "args": [
709
+ {
710
+ "name": "params",
711
+ "type": {
712
+ "defined": "ResizeInternalOracleParams"
713
+ }
714
+ }
715
+ ],
716
+ "returns": "u8"
717
+ },
679
718
  {
680
719
  "name": "setAdminSigners",
681
720
  "accounts": [
@@ -7626,6 +7665,10 @@ exports.IDL = {
7626
7665
  {
7627
7666
  "name": "publishTime",
7628
7667
  "type": "i64"
7668
+ },
7669
+ {
7670
+ "name": "extOracleAccount",
7671
+ "type": "publicKey"
7629
7672
  }
7630
7673
  ]
7631
7674
  }
@@ -8555,6 +8598,10 @@ exports.IDL = {
8555
8598
  {
8556
8599
  "name": "expo",
8557
8600
  "type": "i32"
8601
+ },
8602
+ {
8603
+ "name": "extOracle",
8604
+ "type": "publicKey"
8558
8605
  }
8559
8606
  ]
8560
8607
  }
@@ -9774,6 +9821,18 @@ exports.IDL = {
9774
9821
  ]
9775
9822
  }
9776
9823
  },
9824
+ {
9825
+ "name": "ResizeInternalOracleParams",
9826
+ "type": {
9827
+ "kind": "struct",
9828
+ "fields": [
9829
+ {
9830
+ "name": "extOracle",
9831
+ "type": "publicKey"
9832
+ }
9833
+ ]
9834
+ }
9835
+ },
9777
9836
  {
9778
9837
  "name": "SetAdminSignersParams",
9779
9838
  "type": {
@@ -9909,6 +9968,10 @@ exports.IDL = {
9909
9968
  "type": {
9910
9969
  "kind": "struct",
9911
9970
  "fields": [
9971
+ {
9972
+ "name": "useCurrentTime",
9973
+ "type": "u8"
9974
+ },
9912
9975
  {
9913
9976
  "name": "prices",
9914
9977
  "type": {
@@ -9941,6 +10004,10 @@ exports.IDL = {
9941
10004
  "type": {
9942
10005
  "kind": "struct",
9943
10006
  "fields": [
10007
+ {
10008
+ "name": "useCurrentTime",
10009
+ "type": "u8"
10010
+ },
9944
10011
  {
9945
10012
  "name": "price",
9946
10013
  "type": "u64"
@@ -11593,6 +11660,9 @@ exports.IDL = {
11593
11660
  },
11594
11661
  {
11595
11662
  "name": "InitRevenueTokenAccount"
11663
+ },
11664
+ {
11665
+ "name": "ResizeInternalOracle"
11596
11666
  }
11597
11667
  ]
11598
11668
  }