@drift-labs/sdk-browser 2.155.0-beta.1 → 2.155.0-beta.3

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.
Files changed (71) hide show
  1. package/VERSION +1 -1
  2. package/lib/browser/accounts/grpcAccountSubscriber.d.ts +0 -1
  3. package/lib/browser/accounts/grpcMultiAccountSubscriber.d.ts +0 -1
  4. package/lib/browser/accounts/grpcProgramAccountSubscriber.d.ts +0 -1
  5. package/lib/browser/accounts/laserProgramAccountSubscriber.d.ts +2 -3
  6. package/lib/browser/accounts/laserProgramAccountSubscriber.js +6 -8
  7. package/lib/browser/accounts/types.d.ts +4 -12
  8. package/lib/browser/accounts/webSocketAccountSubscriber.d.ts +0 -1
  9. package/lib/browser/accounts/webSocketDriftClientAccountSubscriber.d.ts +0 -1
  10. package/lib/browser/accounts/webSocketProgramAccountSubscriber.d.ts +0 -1
  11. package/lib/browser/driftClient.d.ts +1 -2
  12. package/lib/browser/driftClient.js +5 -6
  13. package/lib/browser/oracles/pythPullClient.d.ts +2 -2
  14. package/lib/browser/oracles/pythPullClient.js +5 -2
  15. package/lib/browser/pyth/constants.d.ts +3 -0
  16. package/lib/browser/pyth/constants.js +6 -0
  17. package/lib/browser/pyth/index.d.ts +3 -0
  18. package/lib/browser/pyth/index.js +10 -0
  19. package/lib/browser/pyth/types.d.ts +2226 -0
  20. package/lib/browser/pyth/types.js +2224 -0
  21. package/lib/browser/pyth/utils.d.ts +2 -0
  22. package/lib/browser/pyth/utils.js +10 -0
  23. package/lib/node/accounts/grpcAccountSubscriber.d.ts +0 -1
  24. package/lib/node/accounts/grpcAccountSubscriber.d.ts.map +1 -1
  25. package/lib/node/accounts/grpcMultiAccountSubscriber.d.ts +0 -1
  26. package/lib/node/accounts/grpcMultiAccountSubscriber.d.ts.map +1 -1
  27. package/lib/node/accounts/grpcProgramAccountSubscriber.d.ts +0 -1
  28. package/lib/node/accounts/grpcProgramAccountSubscriber.d.ts.map +1 -1
  29. package/lib/node/accounts/laserProgramAccountSubscriber.d.ts +2 -3
  30. package/lib/node/accounts/laserProgramAccountSubscriber.d.ts.map +1 -1
  31. package/lib/node/accounts/laserProgramAccountSubscriber.js +6 -8
  32. package/lib/node/accounts/types.d.ts +4 -12
  33. package/lib/node/accounts/types.d.ts.map +1 -1
  34. package/lib/node/accounts/webSocketAccountSubscriber.d.ts +0 -1
  35. package/lib/node/accounts/webSocketAccountSubscriber.d.ts.map +1 -1
  36. package/lib/node/accounts/webSocketDriftClientAccountSubscriber.d.ts +0 -1
  37. package/lib/node/accounts/webSocketDriftClientAccountSubscriber.d.ts.map +1 -1
  38. package/lib/node/accounts/webSocketProgramAccountSubscriber.d.ts +0 -1
  39. package/lib/node/accounts/webSocketProgramAccountSubscriber.d.ts.map +1 -1
  40. package/lib/node/driftClient.d.ts +1 -2
  41. package/lib/node/driftClient.d.ts.map +1 -1
  42. package/lib/node/driftClient.js +5 -6
  43. package/lib/node/oracles/pythPullClient.d.ts +2 -2
  44. package/lib/node/oracles/pythPullClient.d.ts.map +1 -1
  45. package/lib/node/oracles/pythPullClient.js +5 -2
  46. package/lib/node/pyth/constants.d.ts +4 -0
  47. package/lib/node/pyth/constants.d.ts.map +1 -0
  48. package/lib/node/pyth/constants.js +6 -0
  49. package/lib/node/pyth/index.d.ts +4 -0
  50. package/lib/node/pyth/index.d.ts.map +1 -0
  51. package/lib/node/pyth/index.js +10 -0
  52. package/lib/node/pyth/types.d.ts +2227 -0
  53. package/lib/node/pyth/types.d.ts.map +1 -0
  54. package/lib/node/pyth/types.js +2224 -0
  55. package/lib/node/pyth/utils.d.ts +3 -0
  56. package/lib/node/pyth/utils.d.ts.map +1 -0
  57. package/lib/node/pyth/utils.js +10 -0
  58. package/package.json +4 -5
  59. package/scripts/grpc-client-test-comparison.ts +3 -2
  60. package/scripts/grpc-multiuser-client-test-comparison.ts +138 -140
  61. package/scripts/single-grpc-client-test.ts +21 -39
  62. package/src/accounts/laserProgramAccountSubscriber.ts +6 -9
  63. package/src/accounts/types.ts +4 -14
  64. package/src/driftClient.ts +9 -11
  65. package/src/oracles/pythPullClient.ts +4 -5
  66. package/src/pyth/constants.ts +9 -0
  67. package/src/pyth/index.ts +11 -0
  68. package/src/pyth/types.ts +4453 -0
  69. package/src/pyth/utils.ts +13 -0
  70. package/tests/decode/test.ts +2 -1
  71. package/tests/dlob/helpers.ts +0 -1
package/VERSION CHANGED
@@ -1 +1 @@
1
- 2.155.0-beta.1
1
+ 2.155.0-beta.3
@@ -1,5 +1,4 @@
1
1
  /// <reference types="node" />
2
- /// <reference types="node" />
3
2
  import { ResubOpts, GrpcConfigs } from './types';
4
3
  import { Program } from '@coral-xyz/anchor';
5
4
  import { PublicKey } from '@solana/web3.js';
@@ -1,5 +1,4 @@
1
1
  /// <reference types="node" />
2
- /// <reference types="node" />
3
2
  import { Program } from '@coral-xyz/anchor';
4
3
  import { Context, PublicKey } from '@solana/web3.js';
5
4
  import { Client } from '../isomorphic/grpc';
@@ -1,5 +1,4 @@
1
1
  /// <reference types="node" />
2
- /// <reference types="node" />
3
2
  import { ResubOpts, GrpcConfigs } from './types';
4
3
  import { Program } from '@coral-xyz/anchor';
5
4
  import { Context, MemcmpFilter, PublicKey } from '@solana/web3.js';
@@ -1,6 +1,5 @@
1
1
  /// <reference types="node" />
2
- /// <reference types="node" />
3
- import { LaserGrpcConfigs, ResubOpts } from './types';
2
+ import { GrpcConfigs, ResubOpts } from './types';
4
3
  import { Program } from '@coral-xyz/anchor';
5
4
  import { Context, MemcmpFilter, PublicKey } from '@solana/web3.js';
6
5
  import { WebSocketProgramAccountSubscriber } from './webSocketProgramAccountSubscriber';
@@ -12,7 +11,7 @@ export declare class LaserstreamProgramAccountSubscriber<T> extends WebSocketPro
12
11
  listenerId?: number;
13
12
  private readonly laserConfig;
14
13
  private constructor();
15
- static create<U>(grpcConfigs: LaserGrpcConfigs, subscriptionName: string, accountDiscriminator: string, program: Program, decodeBufferFn: (accountName: string, ix: Buffer) => U, options?: {
14
+ static create<U>(grpcConfigs: GrpcConfigs, subscriptionName: string, accountDiscriminator: string, program: Program, decodeBufferFn: (accountName: string, ix: Buffer) => U, options?: {
16
15
  filters: MemcmpFilter[];
17
16
  }, resubOpts?: ResubOpts): Promise<LaserstreamProgramAccountSubscriber<U>>;
18
17
  subscribe(onChange: (accountId: PublicKey, data: T, context: Context, buffer: Buffer) => void): Promise<void>;
@@ -37,19 +37,17 @@ class LaserstreamProgramAccountSubscriber extends webSocketProgramAccountSubscri
37
37
  static async create(grpcConfigs, subscriptionName, accountDiscriminator, program, decodeBufferFn, options = {
38
38
  filters: [],
39
39
  }, resubOpts) {
40
- var _a, _b;
41
- const channelOptions = {
42
- 'grpc.default_compression_algorithm': grpc_1.CompressionAlgorithms.zstd,
43
- 'grpc.max_receive_message_length': 1000000000,
44
- ...((_a = grpcConfigs.channelOptions) !== null && _a !== void 0 ? _a : {}),
45
- };
40
+ var _a;
46
41
  const laserConfig = {
47
42
  apiKey: grpcConfigs.token,
48
43
  endpoint: grpcConfigs.endpoint,
49
44
  maxReconnectAttempts: grpcConfigs.enableReconnect ? 10 : 0,
50
- channelOptions,
45
+ channelOptions: {
46
+ 'grpc.default_compression_algorithm': grpc_1.CompressionAlgorithms.zstd,
47
+ 'grpc.max_receive_message_length': 1000000000,
48
+ },
51
49
  };
52
- const commitmentLevel = (_b = grpcConfigs.commitmentLevel) !== null && _b !== void 0 ? _b : grpc_1.CommitmentLevel.CONFIRMED;
50
+ const commitmentLevel = (_a = grpcConfigs.commitmentLevel) !== null && _a !== void 0 ? _a : grpc_1.CommitmentLevel.CONFIRMED;
53
51
  return new LaserstreamProgramAccountSubscriber(laserConfig, commitmentLevel, subscriptionName, accountDiscriminator, program, decodeBufferFn, options, resubOpts);
54
52
  }
55
53
  async subscribe(onChange) {
@@ -8,7 +8,7 @@ import { Context, PublicKey } from '@solana/web3.js';
8
8
  import { Account } from '@solana/spl-token';
9
9
  import { OracleInfo, OraclePriceData } from '../oracles/types';
10
10
  import { User } from '../user';
11
- import { Client, CommitmentLevel, LaserstreamConfig } from '../isomorphic/grpc';
11
+ import { ChannelOptions, CommitmentLevel } from '../isomorphic/grpc';
12
12
  export interface AccountSubscriber<T> {
13
13
  dataAndSlot?: DataAndSlot<T>;
14
14
  subscribe(onChange: (data: T) => void): Promise<void>;
@@ -155,25 +155,18 @@ export interface UserStatsAccountSubscriber {
155
155
  unsubscribe(): Promise<void>;
156
156
  getUserStatsAccountAndSlot(): DataAndSlot<UserStatsAccount>;
157
157
  }
158
- type BaseGrpcConfigs = {
158
+ export type GrpcConfigs = {
159
159
  endpoint: string;
160
160
  token: string;
161
161
  commitmentLevel?: CommitmentLevel;
162
+ channelOptions?: ChannelOptions;
162
163
  /**
163
164
  * Whether to enable automatic reconnection on connection loss .
164
165
  * Defaults to false, will throw on connection loss.
165
166
  */
166
167
  enableReconnect?: boolean;
168
+ client?: 'yellowstone' | 'laser';
167
169
  };
168
- export type YellowstoneGrpcConfigs = BaseGrpcConfigs & {
169
- client?: 'yellowstone';
170
- channelOptions?: ConstructorParameters<typeof Client>[2];
171
- };
172
- export type LaserGrpcConfigs = BaseGrpcConfigs & {
173
- client: 'laser';
174
- channelOptions?: LaserstreamConfig['channelOptions'];
175
- };
176
- export type GrpcConfigs = YellowstoneGrpcConfigs | LaserGrpcConfigs;
177
170
  export interface HighLeverageModeConfigAccountSubscriber {
178
171
  eventEmitter: StrictEventEmitter<EventEmitter, HighLeverageModeConfigAccountEvents>;
179
172
  isSubscribed: boolean;
@@ -199,4 +192,3 @@ export interface ConstituentAccountEvents {
199
192
  update: void;
200
193
  error: (e: Error) => void;
201
194
  }
202
- export {};
@@ -1,5 +1,4 @@
1
1
  /// <reference types="node" />
2
- /// <reference types="node" />
3
2
  import { DataAndSlot, BufferAndSlot, AccountSubscriber, ResubOpts } from './types';
4
3
  import { Program } from '@coral-xyz/anchor';
5
4
  import { AccountInfo, Commitment, Context, PublicKey } from '@solana/web3.js';
@@ -1,6 +1,5 @@
1
1
  /// <reference types="node" />
2
2
  /// <reference types="node" />
3
- /// <reference types="node" />
4
3
  import { AccountSubscriber, DataAndSlot, DelistedMarketSetting, DriftClientAccountEvents, DriftClientAccountSubscriber, ResubOpts } from './types';
5
4
  import { PerpMarketAccount, SpotMarketAccount, StateAccount } from '../types';
6
5
  import { Program } from '@coral-xyz/anchor';
@@ -1,5 +1,4 @@
1
1
  /// <reference types="node" />
2
- /// <reference types="node" />
3
2
  import { BufferAndSlot, ProgramAccountSubscriber, ResubOpts } from './types';
4
3
  import { Program } from '@coral-xyz/anchor';
5
4
  import { Commitment, Context, KeyedAccountInfo, MemcmpFilter, PublicKey } from '@solana/web3.js';
@@ -22,14 +22,13 @@ import { JupiterClient, QuoteResponse } from './jupiter/jupiterClient';
22
22
  import { SwapMode, UnifiedQuoteResponse } from './swap/UnifiedSwapClient';
23
23
  import { UserStatsSubscriptionConfig } from './userStatsConfig';
24
24
  import { TxHandler } from './tx/txHandler';
25
- import { WormholeCoreBridgeSolana } from '@pythnetwork/pyth-solana-receiver/lib/idl/wormhole_core_bridge_solana';
26
- import { PythSolanaReceiver } from '@pythnetwork/pyth-solana-receiver/lib/idl/pyth_solana_receiver';
27
25
  import { Slothash } from './slot/SlothashSubscriber';
28
26
  import { SignedMsgOrderParams } from './types';
29
27
  import { ConstituentMap } from './constituentMap/constituentMap';
30
28
  import { RevenueShareEscrowMap } from './userMap/revenueShareEscrowMap';
31
29
  import { TitanClient } from './titan/titanClient';
32
30
  import { UnifiedSwapClient } from './swap/UnifiedSwapClient';
31
+ import { WormholeCoreBridgeSolana, PythSolanaReceiver } from './pyth';
33
32
  /**
34
33
  * Union type for swap clients (Titan and Jupiter) - Legacy type
35
34
  * @deprecated Use UnifiedSwapClient class instead
@@ -60,9 +60,7 @@ const utils_1 = require("./math/utils");
60
60
  const txParamProcessor_1 = require("./tx/txParamProcessor");
61
61
  const oracles_1 = require("./math/oracles");
62
62
  const txHandler_1 = require("./tx/txHandler");
63
- const pyth_solana_receiver_1 = require("@pythnetwork/pyth-solana-receiver");
64
63
  const price_service_sdk_1 = require("@pythnetwork/price-service-sdk");
65
- const address_1 = require("@pythnetwork/pyth-solana-receiver/lib/address");
66
64
  const pythOracleUtils_1 = require("./util/pythOracleUtils");
67
65
  const ed25519Utils_1 = require("./util/ed25519Utils");
68
66
  const utils_2 = require("./tx/utils");
@@ -77,6 +75,7 @@ const orders_1 = require("./math/orders");
77
75
  const builder_1 = require("./math/builder");
78
76
  const titanClient_1 = require("./titan/titanClient");
79
77
  const UnifiedSwapClient_1 = require("./swap/UnifiedSwapClient");
78
+ const pyth_1 = require("./pyth");
80
79
  /**
81
80
  * # DriftClient
82
81
  * This class is the main way to interact with Drift Protocol. It allows you to subscribe to the various accounts where the Market's state is stored, as well as: opening positions, liquidating, settling funding, depositing & withdrawing, and more.
@@ -5666,7 +5665,7 @@ class DriftClient {
5666
5665
  }
5667
5666
  getReceiverProgram() {
5668
5667
  if (this.receiverProgram === undefined) {
5669
- this.receiverProgram = new anchor_1.Program(pyth_solana_receiver_json_1.default, pyth_solana_receiver_1.DEFAULT_RECEIVER_PROGRAM_ID, this.provider);
5668
+ this.receiverProgram = new anchor_1.Program(pyth_solana_receiver_json_1.default, pyth_1.DEFAULT_RECEIVER_PROGRAM_ID, this.provider);
5670
5669
  }
5671
5670
  return this.receiverProgram;
5672
5671
  }
@@ -5691,7 +5690,7 @@ class DriftClient {
5691
5690
  async getPostPythPullOracleUpdateAtomicIxs(vaaString, feedIds, numSignatures = 2) {
5692
5691
  const accumulatorUpdateData = (0, price_service_sdk_1.parseAccumulatorUpdateData)(Buffer.from(vaaString, 'base64'));
5693
5692
  const guardianSetIndex = accumulatorUpdateData.vaa.readUInt32BE(1);
5694
- const guardianSet = (0, address_1.getGuardianSetPda)(guardianSetIndex, address_1.DEFAULT_WORMHOLE_PROGRAM_ID);
5693
+ const guardianSet = (0, pyth_1.getGuardianSetPda)(guardianSetIndex, pyth_1.DEFAULT_WORMHOLE_PROGRAM_ID);
5695
5694
  const trimmedVaa = (0, oracles_1.trimVaaSignatures)(accumulatorUpdateData.vaa, numSignatures);
5696
5695
  const postIxs = [];
5697
5696
  if (accumulatorUpdateData.updates.length > 1) {
@@ -5746,7 +5745,7 @@ class DriftClient {
5746
5745
  feedId = (0, pythOracleUtils_1.trimFeedId)(feedId);
5747
5746
  const accumulatorUpdateData = (0, price_service_sdk_1.parseAccumulatorUpdateData)(Buffer.from(vaaString, 'base64'));
5748
5747
  const guardianSetIndex = accumulatorUpdateData.vaa.readUInt32BE(1);
5749
- const guardianSet = (0, address_1.getGuardianSetPda)(guardianSetIndex, address_1.DEFAULT_WORMHOLE_PROGRAM_ID);
5748
+ const guardianSet = (0, pyth_1.getGuardianSetPda)(guardianSetIndex, pyth_1.DEFAULT_WORMHOLE_PROGRAM_ID);
5750
5749
  const [postIxs, encodedVaaAddress] = await this.getBuildEncodedVaaIxs(accumulatorUpdateData.vaa, guardianSet);
5751
5750
  for (const update of accumulatorUpdateData.updates) {
5752
5751
  postIxs.push(await this.getUpdatePythPullOracleIxs({
@@ -5857,7 +5856,7 @@ class DriftClient {
5857
5856
  async getBuildEncodedVaaIxs(vaa, guardianSet) {
5858
5857
  const postIxs = [];
5859
5858
  if (this.wormholeProgram === undefined) {
5860
- this.wormholeProgram = new anchor_1.Program(pyth_solana_receiver_1.wormholeCoreBridgeIdl, address_1.DEFAULT_WORMHOLE_PROGRAM_ID, this.provider);
5859
+ this.wormholeProgram = new anchor_1.Program(pyth_1.WORMHOLE_CORE_BRIDGE_SOLANA_IDL, pyth_1.DEFAULT_WORMHOLE_PROGRAM_ID, this.provider);
5861
5860
  }
5862
5861
  const encodedVaaKeypair = new web3_js_1.Keypair();
5863
5862
  postIxs.push(await this.wormholeProgram.account.encodedVaa.createInstruction(encodedVaaKeypair, vaa.length + 46));
@@ -4,8 +4,8 @@
4
4
  import { Connection, PublicKey } from '@solana/web3.js';
5
5
  import { OracleClient, OraclePriceData } from './types';
6
6
  import { BN, Program } from '@coral-xyz/anchor';
7
- import { PythSolanaReceiverProgram } from '@pythnetwork/pyth-solana-receiver';
8
- import { PriceUpdateAccount } from '@pythnetwork/pyth-solana-receiver/lib/PythSolanaReceiver';
7
+ import { PythSolanaReceiver as PythSolanaReceiverProgram } from '../pyth';
8
+ import { PriceUpdateAccount } from '../pyth';
9
9
  export declare class PythPullClient implements OracleClient {
10
10
  private connection;
11
11
  private multiple;
@@ -1,10 +1,13 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
6
  exports.convertPythPrice = exports.PythPullClient = void 0;
4
7
  const web3_js_1 = require("@solana/web3.js");
5
8
  const anchor_1 = require("@coral-xyz/anchor");
6
9
  const numericConstants_1 = require("../constants/numericConstants");
7
- const pyth_solana_receiver_1 = require("@pythnetwork/pyth-solana-receiver");
10
+ const pyth_solana_receiver_json_1 = __importDefault(require("../idl/pyth_solana_receiver.json"));
8
11
  const config_1 = require("../config");
9
12
  const wallet_1 = require("../wallet");
10
13
  class PythPullClient {
@@ -17,7 +20,7 @@ class PythPullClient {
17
20
  new wallet_1.Wallet(new web3_js_1.Keypair()), {
18
21
  commitment: connection.commitment,
19
22
  });
20
- this.receiver = new anchor_1.Program(pyth_solana_receiver_1.pythSolanaReceiverIdl, config_1.DRIFT_ORACLE_RECEIVER_ID, provider);
23
+ this.receiver = new anchor_1.Program(pyth_solana_receiver_json_1.default, config_1.DRIFT_ORACLE_RECEIVER_ID, provider);
21
24
  this.decodeFunc =
22
25
  this.receiver.account.priceUpdateV2.coder.accounts.decodeUnchecked.bind(this.receiver.account.priceUpdateV2.coder.accounts);
23
26
  }
@@ -0,0 +1,3 @@
1
+ import { PublicKey } from '@solana/web3.js';
2
+ export declare const DEFAULT_WORMHOLE_PROGRAM_ID: PublicKey;
3
+ export declare const DEFAULT_RECEIVER_PROGRAM_ID: PublicKey;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DEFAULT_RECEIVER_PROGRAM_ID = exports.DEFAULT_WORMHOLE_PROGRAM_ID = void 0;
4
+ const web3_js_1 = require("@solana/web3.js");
5
+ exports.DEFAULT_WORMHOLE_PROGRAM_ID = new web3_js_1.PublicKey('HDwcJBJXjL9FpJ7UBsYBtaDjsBUhuLCUYoz3zr8SWWaQ');
6
+ exports.DEFAULT_RECEIVER_PROGRAM_ID = new web3_js_1.PublicKey('rec5EKMGg6MxZYaMdyBfgwp4d5rB9T1VQH5pJv5LtFJ');
@@ -0,0 +1,3 @@
1
+ export { WormholeCoreBridgeSolana, WORMHOLE_CORE_BRIDGE_SOLANA_IDL, PythSolanaReceiver, PriceUpdateAccount, } from './types';
2
+ export { DEFAULT_WORMHOLE_PROGRAM_ID, DEFAULT_RECEIVER_PROGRAM_ID, } from './constants';
3
+ export { getGuardianSetPda } from './utils';
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getGuardianSetPda = exports.DEFAULT_RECEIVER_PROGRAM_ID = exports.DEFAULT_WORMHOLE_PROGRAM_ID = exports.WORMHOLE_CORE_BRIDGE_SOLANA_IDL = void 0;
4
+ var types_1 = require("./types");
5
+ Object.defineProperty(exports, "WORMHOLE_CORE_BRIDGE_SOLANA_IDL", { enumerable: true, get: function () { return types_1.WORMHOLE_CORE_BRIDGE_SOLANA_IDL; } });
6
+ var constants_1 = require("./constants");
7
+ Object.defineProperty(exports, "DEFAULT_WORMHOLE_PROGRAM_ID", { enumerable: true, get: function () { return constants_1.DEFAULT_WORMHOLE_PROGRAM_ID; } });
8
+ Object.defineProperty(exports, "DEFAULT_RECEIVER_PROGRAM_ID", { enumerable: true, get: function () { return constants_1.DEFAULT_RECEIVER_PROGRAM_ID; } });
9
+ var utils_1 = require("./utils");
10
+ Object.defineProperty(exports, "getGuardianSetPda", { enumerable: true, get: function () { return utils_1.getGuardianSetPda; } });