@triadxyz/triad-protocol 4.1.1 → 4.1.2

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="jito-ts/node_modules/@solana/web3.js" />
2
1
  import { PublicKey } from '@solana/web3.js';
3
2
  import { Program } from '@coral-xyz/anchor';
4
3
  import { TriadProtocol } from './types/triad_protocol';
package/dist/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- /// <reference types="jito-ts/node_modules/@solana/web3.js" />
2
1
  import { Connection, PublicKey } from '@solana/web3.js';
3
2
  import { AnchorProvider, Program, Wallet } from '@coral-xyz/anchor';
4
3
  import { TriadProtocol as TriadProtocolIDL } from './types/triad_protocol';
package/dist/index.js CHANGED
@@ -41,7 +41,6 @@ const poseidon_1 = __importDefault(require("./poseidon"));
41
41
  const predictor_1 = __importDefault(require("./predictor"));
42
42
  const trade_1 = __importDefault(require("./trade"));
43
43
  const customer_1 = __importDefault(require("./customer"));
44
- const pyth_solana_receiver_1 = require("@pythnetwork/pyth-solana-receiver");
45
44
  __exportStar(require("./types"), exports);
46
45
  __exportStar(require("./types/predictor"), exports);
47
46
  __exportStar(require("./types/stake"), exports);
@@ -286,7 +285,7 @@ class TriadProtocol {
286
285
  const ixs = [];
287
286
  let feedPDA = null;
288
287
  if (isPyth) {
289
- feedPDA = (0, pyth_solana_receiver_1.getPriceFeedAccountForProgram)(0, feedId);
288
+ feedPDA = (0, helpers_2.getPriceFeedAccountForProgram)(feedId);
290
289
  }
291
290
  const poolPDA = (0, pda_1.getPoolPDA)(this.program.programId, poolId);
292
291
  ixs.push(yield this.program.methods
@@ -488,7 +487,7 @@ class TriadProtocol {
488
487
  return __awaiter(this, void 0, void 0, function* () {
489
488
  const ixs = [];
490
489
  let poolPDA = (0, pda_1.getPoolPDA)(this.program.programId, poolId);
491
- const feedPDA = (0, pyth_solana_receiver_1.getPriceFeedAccountForProgram)(0, feedId);
490
+ const feedPDA = (0, helpers_2.getPriceFeedAccountForProgram)(feedId);
492
491
  ixs.push(yield this.program.methods
493
492
  .createMarketPyth({
494
493
  marketId: new bn_js_1.default(marketId),
@@ -1,4 +1,3 @@
1
- /// <reference types="jito-ts/node_modules/@solana/web3.js" />
2
1
  import { Program } from '@coral-xyz/anchor';
3
2
  import { PublicKey } from '@solana/web3.js';
4
3
  import { TriadProtocol } from './types/triad_protocol';
@@ -1,4 +1,3 @@
1
- /// <reference types="jito-ts/node_modules/@solana/web3.js" />
2
1
  import { PublicKey } from '@solana/web3.js';
3
2
  import { Program } from '@coral-xyz/anchor';
4
3
  import { TriadProtocol } from './types/triad_protocol';
package/dist/stake.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- /// <reference types="jito-ts/node_modules/@solana/web3.js" />
2
1
  import { Program } from '@coral-xyz/anchor';
3
2
  import { PublicKey } from '@solana/web3.js';
4
3
  import { TriadProtocol } from './types/triad_protocol';
package/dist/trade.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- /// <reference types="jito-ts/node_modules/@solana/web3.js" />
2
1
  import { PublicKey } from '@solana/web3.js';
3
2
  import { Program } from '@coral-xyz/anchor';
4
3
  import { TriadProtocol } from './types/triad_protocol';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@triadxyz/triad-protocol",
3
- "version": "4.1.1",
3
+ "version": "4.1.2",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",