@haven-fi/solauto-sdk 1.0.52 → 1.0.54

Sign up to get free protection for your applications and to get access to all the features.
Files changed (121) hide show
  1. package/dist/clients/solautoClient.d.ts.map +1 -1
  2. package/dist/clients/solautoClient.js +1 -7
  3. package/dist/clients/solautoMarginfiClient.d.ts.map +1 -1
  4. package/dist/clients/solautoMarginfiClient.js +3 -1
  5. package/dist/generated/accounts/referralState.d.ts.map +1 -1
  6. package/dist/generated/accounts/referralState.js +8 -9
  7. package/dist/generated/accounts/solautoPosition.d.ts.map +1 -1
  8. package/dist/generated/accounts/solautoPosition.js +8 -9
  9. package/dist/generated/errors/solauto.js +3 -3
  10. package/dist/generated/instructions/cancelDCA.js +2 -3
  11. package/dist/generated/instructions/claimReferralFees.js +2 -3
  12. package/dist/generated/instructions/closePosition.js +2 -3
  13. package/dist/generated/instructions/convertReferralFees.js +2 -3
  14. package/dist/generated/instructions/marginfiOpenPosition.d.ts +1 -0
  15. package/dist/generated/instructions/marginfiOpenPosition.d.ts.map +1 -1
  16. package/dist/generated/instructions/marginfiOpenPosition.js +22 -18
  17. package/dist/generated/instructions/marginfiProtocolInteraction.js +2 -3
  18. package/dist/generated/instructions/marginfiRebalance.js +2 -3
  19. package/dist/generated/instructions/marginfiRefreshData.js +2 -3
  20. package/dist/generated/instructions/updatePosition.js +2 -3
  21. package/dist/generated/instructions/updateReferralStates.js +2 -3
  22. package/dist/generated/programs/solauto.d.ts.map +1 -1
  23. package/dist/generated/programs/solauto.js +4 -4
  24. package/dist/generated/shared/index.js +4 -5
  25. package/dist/generated/types/automationSettings.js +1 -2
  26. package/dist/generated/types/automationSettingsInp.js +1 -2
  27. package/dist/generated/types/dCASettings.js +1 -2
  28. package/dist/generated/types/dCASettingsInp.js +1 -2
  29. package/dist/generated/types/feeType.js +3 -3
  30. package/dist/generated/types/lendingPlatform.js +3 -3
  31. package/dist/generated/types/podBool.js +1 -2
  32. package/dist/generated/types/positionData.js +1 -2
  33. package/dist/generated/types/positionState.js +1 -2
  34. package/dist/generated/types/positionTokenUsage.js +1 -2
  35. package/dist/generated/types/rebalanceData.js +1 -2
  36. package/dist/generated/types/solautoAction.js +3 -4
  37. package/dist/generated/types/solautoRebalanceType.js +3 -3
  38. package/dist/generated/types/solautoSettingsParameters.js +1 -2
  39. package/dist/generated/types/solautoSettingsParametersInp.js +1 -2
  40. package/dist/generated/types/tokenAmount.js +1 -2
  41. package/dist/generated/types/tokenBalanceAmount.js +3 -4
  42. package/dist/generated/types/updatePositionData.js +1 -2
  43. package/dist/marginfi-sdk/accounts/bank.d.ts.map +1 -1
  44. package/dist/marginfi-sdk/accounts/bank.js +8 -9
  45. package/dist/marginfi-sdk/accounts/marginfiAccount.d.ts.map +1 -1
  46. package/dist/marginfi-sdk/accounts/marginfiAccount.js +8 -9
  47. package/dist/marginfi-sdk/accounts/marginfiGroup.d.ts.map +1 -1
  48. package/dist/marginfi-sdk/accounts/marginfiGroup.js +8 -9
  49. package/dist/marginfi-sdk/errors/marginfi.js +3 -3
  50. package/dist/marginfi-sdk/instructions/lendingAccountBorrow.js +2 -3
  51. package/dist/marginfi-sdk/instructions/lendingAccountCloseBalance.js +2 -3
  52. package/dist/marginfi-sdk/instructions/lendingAccountDeposit.js +2 -3
  53. package/dist/marginfi-sdk/instructions/lendingAccountEndFlashloan.js +2 -3
  54. package/dist/marginfi-sdk/instructions/lendingAccountLiquidate.js +2 -3
  55. package/dist/marginfi-sdk/instructions/lendingAccountRepay.js +2 -3
  56. package/dist/marginfi-sdk/instructions/lendingAccountSettleEmissions.js +2 -3
  57. package/dist/marginfi-sdk/instructions/lendingAccountStartFlashloan.js +2 -3
  58. package/dist/marginfi-sdk/instructions/lendingAccountWithdraw.js +2 -3
  59. package/dist/marginfi-sdk/instructions/lendingAccountWithdrawEmissions.js +2 -3
  60. package/dist/marginfi-sdk/instructions/lendingPoolAccrueBankInterest.js +2 -3
  61. package/dist/marginfi-sdk/instructions/lendingPoolAddBank.js +2 -3
  62. package/dist/marginfi-sdk/instructions/lendingPoolAddBankWithSeed.js +2 -3
  63. package/dist/marginfi-sdk/instructions/lendingPoolCollectBankFees.js +2 -3
  64. package/dist/marginfi-sdk/instructions/lendingPoolConfigureBank.js +2 -3
  65. package/dist/marginfi-sdk/instructions/lendingPoolHandleBankruptcy.js +2 -3
  66. package/dist/marginfi-sdk/instructions/lendingPoolSetupEmissions.js +2 -3
  67. package/dist/marginfi-sdk/instructions/lendingPoolUpdateEmissionsParameters.js +2 -3
  68. package/dist/marginfi-sdk/instructions/marginfiAccountInitialize.js +2 -3
  69. package/dist/marginfi-sdk/instructions/marginfiGroupConfigure.js +2 -3
  70. package/dist/marginfi-sdk/instructions/marginfiGroupInitialize.js +2 -3
  71. package/dist/marginfi-sdk/instructions/setAccountFlag.js +2 -3
  72. package/dist/marginfi-sdk/instructions/setNewAccountAuthority.js +2 -3
  73. package/dist/marginfi-sdk/instructions/unsetAccountFlag.js +2 -3
  74. package/dist/marginfi-sdk/programs/marginfi.d.ts.map +1 -1
  75. package/dist/marginfi-sdk/programs/marginfi.js +4 -4
  76. package/dist/marginfi-sdk/shared/index.js +4 -5
  77. package/dist/marginfi-sdk/types/accountEventHeader.js +1 -2
  78. package/dist/marginfi-sdk/types/balance.js +1 -2
  79. package/dist/marginfi-sdk/types/balanceDecreaseType.js +3 -3
  80. package/dist/marginfi-sdk/types/balanceIncreaseType.js +3 -3
  81. package/dist/marginfi-sdk/types/balanceSide.js +3 -3
  82. package/dist/marginfi-sdk/types/bankConfig.js +1 -2
  83. package/dist/marginfi-sdk/types/bankConfigCompact.js +1 -2
  84. package/dist/marginfi-sdk/types/bankOperationalState.js +3 -3
  85. package/dist/marginfi-sdk/types/bankVaultType.js +3 -3
  86. package/dist/marginfi-sdk/types/groupEventHeader.js +1 -2
  87. package/dist/marginfi-sdk/types/interestRateConfig.js +1 -2
  88. package/dist/marginfi-sdk/types/interestRateConfigCompact.js +1 -2
  89. package/dist/marginfi-sdk/types/interestRateConfigOpt.js +1 -2
  90. package/dist/marginfi-sdk/types/lendingAccount.js +1 -2
  91. package/dist/marginfi-sdk/types/liquidationBalances.js +1 -2
  92. package/dist/marginfi-sdk/types/oracleConfig.js +1 -2
  93. package/dist/marginfi-sdk/types/oraclePriceType.js +3 -3
  94. package/dist/marginfi-sdk/types/oracleSetup.js +3 -3
  95. package/dist/marginfi-sdk/types/priceBias.js +3 -3
  96. package/dist/marginfi-sdk/types/requirementType.js +3 -3
  97. package/dist/marginfi-sdk/types/riskRequirementType.js +3 -3
  98. package/dist/marginfi-sdk/types/riskTier.js +3 -3
  99. package/dist/marginfi-sdk/types/wrappedI80F48.js +1 -2
  100. package/dist/transactions/transactionUtils.js +4 -5
  101. package/dist/transactions/transactionsManager.d.ts.map +1 -1
  102. package/dist/transactions/transactionsManager.js +1 -1
  103. package/dist/types/solauto.js +1 -1
  104. package/dist/utils/accountUtils.d.ts +0 -1
  105. package/dist/utils/accountUtils.d.ts.map +1 -1
  106. package/dist/utils/accountUtils.js +7 -8
  107. package/dist/utils/generalUtils.d.ts.map +1 -1
  108. package/dist/utils/generalUtils.js +8 -9
  109. package/dist/utils/jupiterUtils.js +1 -2
  110. package/dist/utils/marginfiUtils.js +5 -6
  111. package/dist/utils/numberUtils.js +11 -12
  112. package/dist/utils/solanaUtils.js +13 -14
  113. package/dist/utils/solauto/generalUtils.d.ts.map +1 -1
  114. package/dist/utils/solauto/generalUtils.js +21 -17
  115. package/dist/utils/solauto/rebalanceUtils.js +3 -4
  116. package/package.json +3 -2
  117. package/src/clients/solautoClient.ts +1 -10
  118. package/src/clients/solautoMarginfiClient.ts +2 -0
  119. package/src/generated/instructions/marginfiOpenPosition.ts +21 -15
  120. package/src/utils/generalUtils.ts +0 -1
  121. package/src/utils/solauto/generalUtils.ts +13 -9
@@ -7,7 +7,8 @@
7
7
  * @see https://github.com/metaplex-foundation/kinobi
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.lendingAccountBorrow = exports.getLendingAccountBorrowInstructionDataSerializer = void 0;
10
+ exports.getLendingAccountBorrowInstructionDataSerializer = getLendingAccountBorrowInstructionDataSerializer;
11
+ exports.lendingAccountBorrow = lendingAccountBorrow;
11
12
  const umi_1 = require("@metaplex-foundation/umi");
12
13
  const serializers_1 = require("@metaplex-foundation/umi/serializers");
13
14
  const shared_1 = require("../shared");
@@ -17,7 +18,6 @@ function getLendingAccountBorrowInstructionDataSerializer() {
17
18
  ['amount', (0, serializers_1.u64)()],
18
19
  ], { description: 'LendingAccountBorrowInstructionData' }), (value) => ({ ...value, discriminator: [4, 126, 116, 53, 48, 5, 212, 31] }));
19
20
  }
20
- exports.getLendingAccountBorrowInstructionDataSerializer = getLendingAccountBorrowInstructionDataSerializer;
21
21
  // Instruction.
22
22
  function lendingAccountBorrow(context, input) {
23
23
  // Program ID.
@@ -80,4 +80,3 @@ function lendingAccountBorrow(context, input) {
80
80
  { instruction: { keys, programId, data }, signers, bytesCreatedOnChain },
81
81
  ]);
82
82
  }
83
- exports.lendingAccountBorrow = lendingAccountBorrow;
@@ -7,14 +7,14 @@
7
7
  * @see https://github.com/metaplex-foundation/kinobi
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.lendingAccountCloseBalance = exports.getLendingAccountCloseBalanceInstructionDataSerializer = void 0;
10
+ exports.getLendingAccountCloseBalanceInstructionDataSerializer = getLendingAccountCloseBalanceInstructionDataSerializer;
11
+ exports.lendingAccountCloseBalance = lendingAccountCloseBalance;
11
12
  const umi_1 = require("@metaplex-foundation/umi");
12
13
  const serializers_1 = require("@metaplex-foundation/umi/serializers");
13
14
  const shared_1 = require("../shared");
14
15
  function getLendingAccountCloseBalanceInstructionDataSerializer() {
15
16
  return (0, serializers_1.mapSerializer)((0, serializers_1.struct)([['discriminator', (0, serializers_1.array)((0, serializers_1.u8)(), { size: 8 })]], { description: 'LendingAccountCloseBalanceInstructionData' }), (value) => ({ ...value, discriminator: [245, 54, 41, 4, 243, 202, 31, 17] }));
16
17
  }
17
- exports.getLendingAccountCloseBalanceInstructionDataSerializer = getLendingAccountCloseBalanceInstructionDataSerializer;
18
18
  // Instruction.
19
19
  function lendingAccountCloseBalance(context, input) {
20
20
  // Program ID.
@@ -50,4 +50,3 @@ function lendingAccountCloseBalance(context, input) {
50
50
  { instruction: { keys, programId, data }, signers, bytesCreatedOnChain },
51
51
  ]);
52
52
  }
53
- exports.lendingAccountCloseBalance = lendingAccountCloseBalance;
@@ -7,7 +7,8 @@
7
7
  * @see https://github.com/metaplex-foundation/kinobi
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.lendingAccountDeposit = exports.getLendingAccountDepositInstructionDataSerializer = void 0;
10
+ exports.getLendingAccountDepositInstructionDataSerializer = getLendingAccountDepositInstructionDataSerializer;
11
+ exports.lendingAccountDeposit = lendingAccountDeposit;
11
12
  const umi_1 = require("@metaplex-foundation/umi");
12
13
  const serializers_1 = require("@metaplex-foundation/umi/serializers");
13
14
  const shared_1 = require("../shared");
@@ -20,7 +21,6 @@ function getLendingAccountDepositInstructionDataSerializer() {
20
21
  discriminator: [171, 94, 235, 103, 82, 64, 212, 140],
21
22
  }));
22
23
  }
23
- exports.getLendingAccountDepositInstructionDataSerializer = getLendingAccountDepositInstructionDataSerializer;
24
24
  // Instruction.
25
25
  function lendingAccountDeposit(context, input) {
26
26
  // Program ID.
@@ -78,4 +78,3 @@ function lendingAccountDeposit(context, input) {
78
78
  { instruction: { keys, programId, data }, signers, bytesCreatedOnChain },
79
79
  ]);
80
80
  }
81
- exports.lendingAccountDeposit = lendingAccountDeposit;
@@ -7,7 +7,8 @@
7
7
  * @see https://github.com/metaplex-foundation/kinobi
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.lendingAccountEndFlashloan = exports.getLendingAccountEndFlashloanInstructionDataSerializer = void 0;
10
+ exports.getLendingAccountEndFlashloanInstructionDataSerializer = getLendingAccountEndFlashloanInstructionDataSerializer;
11
+ exports.lendingAccountEndFlashloan = lendingAccountEndFlashloan;
11
12
  const umi_1 = require("@metaplex-foundation/umi");
12
13
  const serializers_1 = require("@metaplex-foundation/umi/serializers");
13
14
  const shared_1 = require("../shared");
@@ -17,7 +18,6 @@ function getLendingAccountEndFlashloanInstructionDataSerializer() {
17
18
  discriminator: [105, 124, 201, 106, 153, 2, 8, 156],
18
19
  }));
19
20
  }
20
- exports.getLendingAccountEndFlashloanInstructionDataSerializer = getLendingAccountEndFlashloanInstructionDataSerializer;
21
21
  // Instruction.
22
22
  function lendingAccountEndFlashloan(context, input) {
23
23
  // Program ID.
@@ -47,4 +47,3 @@ function lendingAccountEndFlashloan(context, input) {
47
47
  { instruction: { keys, programId, data }, signers, bytesCreatedOnChain },
48
48
  ]);
49
49
  }
50
- exports.lendingAccountEndFlashloan = lendingAccountEndFlashloan;
@@ -7,7 +7,8 @@
7
7
  * @see https://github.com/metaplex-foundation/kinobi
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.lendingAccountLiquidate = exports.getLendingAccountLiquidateInstructionDataSerializer = void 0;
10
+ exports.getLendingAccountLiquidateInstructionDataSerializer = getLendingAccountLiquidateInstructionDataSerializer;
11
+ exports.lendingAccountLiquidate = lendingAccountLiquidate;
11
12
  const umi_1 = require("@metaplex-foundation/umi");
12
13
  const serializers_1 = require("@metaplex-foundation/umi/serializers");
13
14
  const shared_1 = require("../shared");
@@ -20,7 +21,6 @@ function getLendingAccountLiquidateInstructionDataSerializer() {
20
21
  discriminator: [214, 169, 151, 213, 251, 167, 86, 219],
21
22
  }));
22
23
  }
23
- exports.getLendingAccountLiquidateInstructionDataSerializer = getLendingAccountLiquidateInstructionDataSerializer;
24
24
  // Instruction.
25
25
  function lendingAccountLiquidate(context, input) {
26
26
  // Program ID.
@@ -97,4 +97,3 @@ function lendingAccountLiquidate(context, input) {
97
97
  { instruction: { keys, programId, data }, signers, bytesCreatedOnChain },
98
98
  ]);
99
99
  }
100
- exports.lendingAccountLiquidate = lendingAccountLiquidate;
@@ -7,7 +7,8 @@
7
7
  * @see https://github.com/metaplex-foundation/kinobi
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.lendingAccountRepay = exports.getLendingAccountRepayInstructionDataSerializer = void 0;
10
+ exports.getLendingAccountRepayInstructionDataSerializer = getLendingAccountRepayInstructionDataSerializer;
11
+ exports.lendingAccountRepay = lendingAccountRepay;
11
12
  const umi_1 = require("@metaplex-foundation/umi");
12
13
  const serializers_1 = require("@metaplex-foundation/umi/serializers");
13
14
  const shared_1 = require("../shared");
@@ -21,7 +22,6 @@ function getLendingAccountRepayInstructionDataSerializer() {
21
22
  discriminator: [79, 209, 172, 177, 222, 51, 173, 151],
22
23
  }));
23
24
  }
24
- exports.getLendingAccountRepayInstructionDataSerializer = getLendingAccountRepayInstructionDataSerializer;
25
25
  // Instruction.
26
26
  function lendingAccountRepay(context, input) {
27
27
  // Program ID.
@@ -79,4 +79,3 @@ function lendingAccountRepay(context, input) {
79
79
  { instruction: { keys, programId, data }, signers, bytesCreatedOnChain },
80
80
  ]);
81
81
  }
82
- exports.lendingAccountRepay = lendingAccountRepay;
@@ -7,7 +7,8 @@
7
7
  * @see https://github.com/metaplex-foundation/kinobi
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.lendingAccountSettleEmissions = exports.getLendingAccountSettleEmissionsInstructionDataSerializer = void 0;
10
+ exports.getLendingAccountSettleEmissionsInstructionDataSerializer = getLendingAccountSettleEmissionsInstructionDataSerializer;
11
+ exports.lendingAccountSettleEmissions = lendingAccountSettleEmissions;
11
12
  const umi_1 = require("@metaplex-foundation/umi");
12
13
  const serializers_1 = require("@metaplex-foundation/umi/serializers");
13
14
  const shared_1 = require("../shared");
@@ -17,7 +18,6 @@ function getLendingAccountSettleEmissionsInstructionDataSerializer() {
17
18
  discriminator: [161, 58, 136, 174, 242, 223, 156, 176],
18
19
  }));
19
20
  }
20
- exports.getLendingAccountSettleEmissionsInstructionDataSerializer = getLendingAccountSettleEmissionsInstructionDataSerializer;
21
21
  // Instruction.
22
22
  function lendingAccountSettleEmissions(context, input) {
23
23
  // Program ID.
@@ -43,4 +43,3 @@ function lendingAccountSettleEmissions(context, input) {
43
43
  { instruction: { keys, programId, data }, signers, bytesCreatedOnChain },
44
44
  ]);
45
45
  }
46
- exports.lendingAccountSettleEmissions = lendingAccountSettleEmissions;
@@ -7,7 +7,8 @@
7
7
  * @see https://github.com/metaplex-foundation/kinobi
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.lendingAccountStartFlashloan = exports.getLendingAccountStartFlashloanInstructionDataSerializer = void 0;
10
+ exports.getLendingAccountStartFlashloanInstructionDataSerializer = getLendingAccountStartFlashloanInstructionDataSerializer;
11
+ exports.lendingAccountStartFlashloan = lendingAccountStartFlashloan;
11
12
  const umi_1 = require("@metaplex-foundation/umi");
12
13
  const serializers_1 = require("@metaplex-foundation/umi/serializers");
13
14
  const shared_1 = require("../shared");
@@ -20,7 +21,6 @@ function getLendingAccountStartFlashloanInstructionDataSerializer() {
20
21
  discriminator: [14, 131, 33, 220, 81, 186, 180, 107],
21
22
  }));
22
23
  }
23
- exports.getLendingAccountStartFlashloanInstructionDataSerializer = getLendingAccountStartFlashloanInstructionDataSerializer;
24
24
  // Instruction.
25
25
  function lendingAccountStartFlashloan(context, input) {
26
26
  // Program ID.
@@ -59,4 +59,3 @@ function lendingAccountStartFlashloan(context, input) {
59
59
  { instruction: { keys, programId, data }, signers, bytesCreatedOnChain },
60
60
  ]);
61
61
  }
62
- exports.lendingAccountStartFlashloan = lendingAccountStartFlashloan;
@@ -7,7 +7,8 @@
7
7
  * @see https://github.com/metaplex-foundation/kinobi
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.lendingAccountWithdraw = exports.getLendingAccountWithdrawInstructionDataSerializer = void 0;
10
+ exports.getLendingAccountWithdrawInstructionDataSerializer = getLendingAccountWithdrawInstructionDataSerializer;
11
+ exports.lendingAccountWithdraw = lendingAccountWithdraw;
11
12
  const umi_1 = require("@metaplex-foundation/umi");
12
13
  const serializers_1 = require("@metaplex-foundation/umi/serializers");
13
14
  const shared_1 = require("../shared");
@@ -21,7 +22,6 @@ function getLendingAccountWithdrawInstructionDataSerializer() {
21
22
  discriminator: [36, 72, 74, 19, 210, 210, 192, 192],
22
23
  }));
23
24
  }
24
- exports.getLendingAccountWithdrawInstructionDataSerializer = getLendingAccountWithdrawInstructionDataSerializer;
25
25
  // Instruction.
26
26
  function lendingAccountWithdraw(context, input) {
27
27
  // Program ID.
@@ -84,4 +84,3 @@ function lendingAccountWithdraw(context, input) {
84
84
  { instruction: { keys, programId, data }, signers, bytesCreatedOnChain },
85
85
  ]);
86
86
  }
87
- exports.lendingAccountWithdraw = lendingAccountWithdraw;
@@ -7,7 +7,8 @@
7
7
  * @see https://github.com/metaplex-foundation/kinobi
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.lendingAccountWithdrawEmissions = exports.getLendingAccountWithdrawEmissionsInstructionDataSerializer = void 0;
10
+ exports.getLendingAccountWithdrawEmissionsInstructionDataSerializer = getLendingAccountWithdrawEmissionsInstructionDataSerializer;
11
+ exports.lendingAccountWithdrawEmissions = lendingAccountWithdrawEmissions;
11
12
  const umi_1 = require("@metaplex-foundation/umi");
12
13
  const serializers_1 = require("@metaplex-foundation/umi/serializers");
13
14
  const shared_1 = require("../shared");
@@ -17,7 +18,6 @@ function getLendingAccountWithdrawEmissionsInstructionDataSerializer() {
17
18
  discriminator: [234, 22, 84, 214, 118, 176, 140, 170],
18
19
  }));
19
20
  }
20
- exports.getLendingAccountWithdrawEmissionsInstructionDataSerializer = getLendingAccountWithdrawEmissionsInstructionDataSerializer;
21
21
  // Instruction.
22
22
  function lendingAccountWithdrawEmissions(context, input) {
23
23
  // Program ID.
@@ -83,4 +83,3 @@ function lendingAccountWithdrawEmissions(context, input) {
83
83
  { instruction: { keys, programId, data }, signers, bytesCreatedOnChain },
84
84
  ]);
85
85
  }
86
- exports.lendingAccountWithdrawEmissions = lendingAccountWithdrawEmissions;
@@ -7,7 +7,8 @@
7
7
  * @see https://github.com/metaplex-foundation/kinobi
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.lendingPoolAccrueBankInterest = exports.getLendingPoolAccrueBankInterestInstructionDataSerializer = void 0;
10
+ exports.getLendingPoolAccrueBankInterestInstructionDataSerializer = getLendingPoolAccrueBankInterestInstructionDataSerializer;
11
+ exports.lendingPoolAccrueBankInterest = lendingPoolAccrueBankInterest;
11
12
  const umi_1 = require("@metaplex-foundation/umi");
12
13
  const serializers_1 = require("@metaplex-foundation/umi/serializers");
13
14
  const shared_1 = require("../shared");
@@ -17,7 +18,6 @@ function getLendingPoolAccrueBankInterestInstructionDataSerializer() {
17
18
  discriminator: [108, 201, 30, 87, 47, 65, 97, 188],
18
19
  }));
19
20
  }
20
- exports.getLendingPoolAccrueBankInterestInstructionDataSerializer = getLendingPoolAccrueBankInterestInstructionDataSerializer;
21
21
  // Instruction.
22
22
  function lendingPoolAccrueBankInterest(context, input) {
23
23
  // Program ID.
@@ -43,4 +43,3 @@ function lendingPoolAccrueBankInterest(context, input) {
43
43
  { instruction: { keys, programId, data }, signers, bytesCreatedOnChain },
44
44
  ]);
45
45
  }
46
- exports.lendingPoolAccrueBankInterest = lendingPoolAccrueBankInterest;
@@ -7,7 +7,8 @@
7
7
  * @see https://github.com/metaplex-foundation/kinobi
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.lendingPoolAddBank = exports.getLendingPoolAddBankInstructionDataSerializer = void 0;
10
+ exports.getLendingPoolAddBankInstructionDataSerializer = getLendingPoolAddBankInstructionDataSerializer;
11
+ exports.lendingPoolAddBank = lendingPoolAddBank;
11
12
  const umi_1 = require("@metaplex-foundation/umi");
12
13
  const serializers_1 = require("@metaplex-foundation/umi/serializers");
13
14
  const shared_1 = require("../shared");
@@ -21,7 +22,6 @@ function getLendingPoolAddBankInstructionDataSerializer() {
21
22
  discriminator: [215, 68, 72, 78, 208, 218, 103, 182],
22
23
  }));
23
24
  }
24
- exports.getLendingPoolAddBankInstructionDataSerializer = getLendingPoolAddBankInstructionDataSerializer;
25
25
  // Instruction.
26
26
  function lendingPoolAddBank(context, input) {
27
27
  // Program ID.
@@ -124,4 +124,3 @@ function lendingPoolAddBank(context, input) {
124
124
  { instruction: { keys, programId, data }, signers, bytesCreatedOnChain },
125
125
  ]);
126
126
  }
127
- exports.lendingPoolAddBank = lendingPoolAddBank;
@@ -7,7 +7,8 @@
7
7
  * @see https://github.com/metaplex-foundation/kinobi
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.lendingPoolAddBankWithSeed = exports.getLendingPoolAddBankWithSeedInstructionDataSerializer = void 0;
10
+ exports.getLendingPoolAddBankWithSeedInstructionDataSerializer = getLendingPoolAddBankWithSeedInstructionDataSerializer;
11
+ exports.lendingPoolAddBankWithSeed = lendingPoolAddBankWithSeed;
11
12
  const umi_1 = require("@metaplex-foundation/umi");
12
13
  const serializers_1 = require("@metaplex-foundation/umi/serializers");
13
14
  const shared_1 = require("../shared");
@@ -22,7 +23,6 @@ function getLendingPoolAddBankWithSeedInstructionDataSerializer() {
22
23
  discriminator: [76, 211, 213, 171, 117, 78, 158, 76],
23
24
  }));
24
25
  }
25
- exports.getLendingPoolAddBankWithSeedInstructionDataSerializer = getLendingPoolAddBankWithSeedInstructionDataSerializer;
26
26
  // Instruction.
27
27
  function lendingPoolAddBankWithSeed(context, input) {
28
28
  // Program ID.
@@ -125,4 +125,3 @@ function lendingPoolAddBankWithSeed(context, input) {
125
125
  { instruction: { keys, programId, data }, signers, bytesCreatedOnChain },
126
126
  ]);
127
127
  }
128
- exports.lendingPoolAddBankWithSeed = lendingPoolAddBankWithSeed;
@@ -7,7 +7,8 @@
7
7
  * @see https://github.com/metaplex-foundation/kinobi
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.lendingPoolCollectBankFees = exports.getLendingPoolCollectBankFeesInstructionDataSerializer = void 0;
10
+ exports.getLendingPoolCollectBankFeesInstructionDataSerializer = getLendingPoolCollectBankFeesInstructionDataSerializer;
11
+ exports.lendingPoolCollectBankFees = lendingPoolCollectBankFees;
11
12
  const umi_1 = require("@metaplex-foundation/umi");
12
13
  const serializers_1 = require("@metaplex-foundation/umi/serializers");
13
14
  const shared_1 = require("../shared");
@@ -17,7 +18,6 @@ function getLendingPoolCollectBankFeesInstructionDataSerializer() {
17
18
  discriminator: [201, 5, 215, 116, 230, 92, 75, 150],
18
19
  }));
19
20
  }
20
- exports.getLendingPoolCollectBankFeesInstructionDataSerializer = getLendingPoolCollectBankFeesInstructionDataSerializer;
21
21
  // Instruction.
22
22
  function lendingPoolCollectBankFees(context, input) {
23
23
  // Program ID.
@@ -73,4 +73,3 @@ function lendingPoolCollectBankFees(context, input) {
73
73
  { instruction: { keys, programId, data }, signers, bytesCreatedOnChain },
74
74
  ]);
75
75
  }
76
- exports.lendingPoolCollectBankFees = lendingPoolCollectBankFees;
@@ -7,7 +7,8 @@
7
7
  * @see https://github.com/metaplex-foundation/kinobi
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.lendingPoolConfigureBank = exports.getLendingPoolConfigureBankInstructionDataSerializer = void 0;
10
+ exports.getLendingPoolConfigureBankInstructionDataSerializer = getLendingPoolConfigureBankInstructionDataSerializer;
11
+ exports.lendingPoolConfigureBank = lendingPoolConfigureBank;
11
12
  const umi_1 = require("@metaplex-foundation/umi");
12
13
  const serializers_1 = require("@metaplex-foundation/umi/serializers");
13
14
  const shared_1 = require("../shared");
@@ -31,7 +32,6 @@ function getLendingPoolConfigureBankInstructionDataSerializer() {
31
32
  discriminator: [121, 173, 156, 40, 93, 148, 56, 237],
32
33
  }));
33
34
  }
34
- exports.getLendingPoolConfigureBankInstructionDataSerializer = getLendingPoolConfigureBankInstructionDataSerializer;
35
35
  // Instruction.
36
36
  function lendingPoolConfigureBank(context, input) {
37
37
  // Program ID.
@@ -64,4 +64,3 @@ function lendingPoolConfigureBank(context, input) {
64
64
  { instruction: { keys, programId, data }, signers, bytesCreatedOnChain },
65
65
  ]);
66
66
  }
67
- exports.lendingPoolConfigureBank = lendingPoolConfigureBank;
@@ -7,7 +7,8 @@
7
7
  * @see https://github.com/metaplex-foundation/kinobi
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.lendingPoolHandleBankruptcy = exports.getLendingPoolHandleBankruptcyInstructionDataSerializer = void 0;
10
+ exports.getLendingPoolHandleBankruptcyInstructionDataSerializer = getLendingPoolHandleBankruptcyInstructionDataSerializer;
11
+ exports.lendingPoolHandleBankruptcy = lendingPoolHandleBankruptcy;
11
12
  const umi_1 = require("@metaplex-foundation/umi");
12
13
  const serializers_1 = require("@metaplex-foundation/umi/serializers");
13
14
  const shared_1 = require("../shared");
@@ -17,7 +18,6 @@ function getLendingPoolHandleBankruptcyInstructionDataSerializer() {
17
18
  discriminator: [162, 11, 56, 139, 90, 128, 70, 173],
18
19
  }));
19
20
  }
20
- exports.getLendingPoolHandleBankruptcyInstructionDataSerializer = getLendingPoolHandleBankruptcyInstructionDataSerializer;
21
21
  // Instruction.
22
22
  function lendingPoolHandleBankruptcy(context, input) {
23
23
  // Program ID.
@@ -78,4 +78,3 @@ function lendingPoolHandleBankruptcy(context, input) {
78
78
  { instruction: { keys, programId, data }, signers, bytesCreatedOnChain },
79
79
  ]);
80
80
  }
81
- exports.lendingPoolHandleBankruptcy = lendingPoolHandleBankruptcy;
@@ -7,7 +7,8 @@
7
7
  * @see https://github.com/metaplex-foundation/kinobi
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.lendingPoolSetupEmissions = exports.getLendingPoolSetupEmissionsInstructionDataSerializer = void 0;
10
+ exports.getLendingPoolSetupEmissionsInstructionDataSerializer = getLendingPoolSetupEmissionsInstructionDataSerializer;
11
+ exports.lendingPoolSetupEmissions = lendingPoolSetupEmissions;
11
12
  const umi_1 = require("@metaplex-foundation/umi");
12
13
  const serializers_1 = require("@metaplex-foundation/umi/serializers");
13
14
  const shared_1 = require("../shared");
@@ -22,7 +23,6 @@ function getLendingPoolSetupEmissionsInstructionDataSerializer() {
22
23
  discriminator: [206, 97, 120, 172, 113, 204, 169, 70],
23
24
  }));
24
25
  }
25
- exports.getLendingPoolSetupEmissionsInstructionDataSerializer = getLendingPoolSetupEmissionsInstructionDataSerializer;
26
26
  // Instruction.
27
27
  function lendingPoolSetupEmissions(context, input) {
28
28
  // Program ID.
@@ -94,4 +94,3 @@ function lendingPoolSetupEmissions(context, input) {
94
94
  { instruction: { keys, programId, data }, signers, bytesCreatedOnChain },
95
95
  ]);
96
96
  }
97
- exports.lendingPoolSetupEmissions = lendingPoolSetupEmissions;
@@ -7,7 +7,8 @@
7
7
  * @see https://github.com/metaplex-foundation/kinobi
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.lendingPoolUpdateEmissionsParameters = exports.getLendingPoolUpdateEmissionsParametersInstructionDataSerializer = void 0;
10
+ exports.getLendingPoolUpdateEmissionsParametersInstructionDataSerializer = getLendingPoolUpdateEmissionsParametersInstructionDataSerializer;
11
+ exports.lendingPoolUpdateEmissionsParameters = lendingPoolUpdateEmissionsParameters;
11
12
  const umi_1 = require("@metaplex-foundation/umi");
12
13
  const serializers_1 = require("@metaplex-foundation/umi/serializers");
13
14
  const shared_1 = require("../shared");
@@ -22,7 +23,6 @@ function getLendingPoolUpdateEmissionsParametersInstructionDataSerializer() {
22
23
  discriminator: [55, 213, 224, 168, 153, 53, 197, 40],
23
24
  }));
24
25
  }
25
- exports.getLendingPoolUpdateEmissionsParametersInstructionDataSerializer = getLendingPoolUpdateEmissionsParametersInstructionDataSerializer;
26
26
  // Instruction.
27
27
  function lendingPoolUpdateEmissionsParameters(context, input) {
28
28
  // Program ID.
@@ -82,4 +82,3 @@ function lendingPoolUpdateEmissionsParameters(context, input) {
82
82
  { instruction: { keys, programId, data }, signers, bytesCreatedOnChain },
83
83
  ]);
84
84
  }
85
- exports.lendingPoolUpdateEmissionsParameters = lendingPoolUpdateEmissionsParameters;
@@ -7,7 +7,8 @@
7
7
  * @see https://github.com/metaplex-foundation/kinobi
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.marginfiAccountInitialize = exports.getMarginfiAccountInitializeInstructionDataSerializer = void 0;
10
+ exports.getMarginfiAccountInitializeInstructionDataSerializer = getMarginfiAccountInitializeInstructionDataSerializer;
11
+ exports.marginfiAccountInitialize = marginfiAccountInitialize;
11
12
  const umi_1 = require("@metaplex-foundation/umi");
12
13
  const serializers_1 = require("@metaplex-foundation/umi/serializers");
13
14
  const shared_1 = require("../shared");
@@ -17,7 +18,6 @@ function getMarginfiAccountInitializeInstructionDataSerializer() {
17
18
  discriminator: [43, 78, 61, 255, 148, 52, 249, 154],
18
19
  }));
19
20
  }
20
- exports.getMarginfiAccountInitializeInstructionDataSerializer = getMarginfiAccountInitializeInstructionDataSerializer;
21
21
  // Instruction.
22
22
  function marginfiAccountInitialize(context, input) {
23
23
  // Program ID.
@@ -73,4 +73,3 @@ function marginfiAccountInitialize(context, input) {
73
73
  { instruction: { keys, programId, data }, signers, bytesCreatedOnChain },
74
74
  ]);
75
75
  }
76
- exports.marginfiAccountInitialize = marginfiAccountInitialize;
@@ -7,7 +7,8 @@
7
7
  * @see https://github.com/metaplex-foundation/kinobi
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.marginfiGroupConfigure = exports.getMarginfiGroupConfigureInstructionDataSerializer = void 0;
10
+ exports.getMarginfiGroupConfigureInstructionDataSerializer = getMarginfiGroupConfigureInstructionDataSerializer;
11
+ exports.marginfiGroupConfigure = marginfiGroupConfigure;
11
12
  const umi_1 = require("@metaplex-foundation/umi");
12
13
  const serializers_1 = require("@metaplex-foundation/umi/serializers");
13
14
  const shared_1 = require("../shared");
@@ -17,7 +18,6 @@ function getMarginfiGroupConfigureInstructionDataSerializer() {
17
18
  ['admin', (0, serializers_1.option)((0, serializers_1.publicKey)())],
18
19
  ], { description: 'MarginfiGroupConfigureInstructionData' }), (value) => ({ ...value, discriminator: [62, 199, 81, 78, 33, 13, 236, 61] }));
19
20
  }
20
- exports.getMarginfiGroupConfigureInstructionDataSerializer = getMarginfiGroupConfigureInstructionDataSerializer;
21
21
  // Instruction.
22
22
  function marginfiGroupConfigure(context, accounts, args) {
23
23
  // Program ID.
@@ -49,4 +49,3 @@ function marginfiGroupConfigure(context, accounts, args) {
49
49
  { instruction: { keys, programId, data }, signers, bytesCreatedOnChain },
50
50
  ]);
51
51
  }
52
- exports.marginfiGroupConfigure = marginfiGroupConfigure;
@@ -7,14 +7,14 @@
7
7
  * @see https://github.com/metaplex-foundation/kinobi
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.marginfiGroupInitialize = exports.getMarginfiGroupInitializeInstructionDataSerializer = void 0;
10
+ exports.getMarginfiGroupInitializeInstructionDataSerializer = getMarginfiGroupInitializeInstructionDataSerializer;
11
+ exports.marginfiGroupInitialize = marginfiGroupInitialize;
11
12
  const umi_1 = require("@metaplex-foundation/umi");
12
13
  const serializers_1 = require("@metaplex-foundation/umi/serializers");
13
14
  const shared_1 = require("../shared");
14
15
  function getMarginfiGroupInitializeInstructionDataSerializer() {
15
16
  return (0, serializers_1.mapSerializer)((0, serializers_1.struct)([['discriminator', (0, serializers_1.array)((0, serializers_1.u8)(), { size: 8 })]], { description: 'MarginfiGroupInitializeInstructionData' }), (value) => ({ ...value, discriminator: [255, 67, 67, 26, 94, 31, 34, 20] }));
16
17
  }
17
- exports.getMarginfiGroupInitializeInstructionDataSerializer = getMarginfiGroupInitializeInstructionDataSerializer;
18
18
  // Instruction.
19
19
  function marginfiGroupInitialize(context, input) {
20
20
  // Program ID.
@@ -54,4 +54,3 @@ function marginfiGroupInitialize(context, input) {
54
54
  { instruction: { keys, programId, data }, signers, bytesCreatedOnChain },
55
55
  ]);
56
56
  }
57
- exports.marginfiGroupInitialize = marginfiGroupInitialize;
@@ -7,7 +7,8 @@
7
7
  * @see https://github.com/metaplex-foundation/kinobi
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.setAccountFlag = exports.getSetAccountFlagInstructionDataSerializer = void 0;
10
+ exports.getSetAccountFlagInstructionDataSerializer = getSetAccountFlagInstructionDataSerializer;
11
+ exports.setAccountFlag = setAccountFlag;
11
12
  const umi_1 = require("@metaplex-foundation/umi");
12
13
  const serializers_1 = require("@metaplex-foundation/umi/serializers");
13
14
  const shared_1 = require("../shared");
@@ -20,7 +21,6 @@ function getSetAccountFlagInstructionDataSerializer() {
20
21
  discriminator: [56, 238, 18, 207, 193, 82, 138, 174],
21
22
  }));
22
23
  }
23
- exports.getSetAccountFlagInstructionDataSerializer = getSetAccountFlagInstructionDataSerializer;
24
24
  // Instruction.
25
25
  function setAccountFlag(context, input) {
26
26
  // Program ID.
@@ -57,4 +57,3 @@ function setAccountFlag(context, input) {
57
57
  { instruction: { keys, programId, data }, signers, bytesCreatedOnChain },
58
58
  ]);
59
59
  }
60
- exports.setAccountFlag = setAccountFlag;
@@ -7,7 +7,8 @@
7
7
  * @see https://github.com/metaplex-foundation/kinobi
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.setNewAccountAuthority = exports.getSetNewAccountAuthorityInstructionDataSerializer = void 0;
10
+ exports.getSetNewAccountAuthorityInstructionDataSerializer = getSetNewAccountAuthorityInstructionDataSerializer;
11
+ exports.setNewAccountAuthority = setNewAccountAuthority;
11
12
  const umi_1 = require("@metaplex-foundation/umi");
12
13
  const serializers_1 = require("@metaplex-foundation/umi/serializers");
13
14
  const shared_1 = require("../shared");
@@ -17,7 +18,6 @@ function getSetNewAccountAuthorityInstructionDataSerializer() {
17
18
  discriminator: [153, 162, 50, 84, 182, 201, 74, 179],
18
19
  }));
19
20
  }
20
- exports.getSetNewAccountAuthorityInstructionDataSerializer = getSetNewAccountAuthorityInstructionDataSerializer;
21
21
  // Instruction.
22
22
  function setNewAccountAuthority(context, input) {
23
23
  // Program ID.
@@ -66,4 +66,3 @@ function setNewAccountAuthority(context, input) {
66
66
  { instruction: { keys, programId, data }, signers, bytesCreatedOnChain },
67
67
  ]);
68
68
  }
69
- exports.setNewAccountAuthority = setNewAccountAuthority;
@@ -7,7 +7,8 @@
7
7
  * @see https://github.com/metaplex-foundation/kinobi
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.unsetAccountFlag = exports.getUnsetAccountFlagInstructionDataSerializer = void 0;
10
+ exports.getUnsetAccountFlagInstructionDataSerializer = getUnsetAccountFlagInstructionDataSerializer;
11
+ exports.unsetAccountFlag = unsetAccountFlag;
11
12
  const umi_1 = require("@metaplex-foundation/umi");
12
13
  const serializers_1 = require("@metaplex-foundation/umi/serializers");
13
14
  const shared_1 = require("../shared");
@@ -17,7 +18,6 @@ function getUnsetAccountFlagInstructionDataSerializer() {
17
18
  ['flag', (0, serializers_1.u64)()],
18
19
  ], { description: 'UnsetAccountFlagInstructionData' }), (value) => ({ ...value, discriminator: [56, 81, 56, 85, 92, 49, 255, 70] }));
19
20
  }
20
- exports.getUnsetAccountFlagInstructionDataSerializer = getUnsetAccountFlagInstructionDataSerializer;
21
21
  // Instruction.
22
22
  function unsetAccountFlag(context, input) {
23
23
  // Program ID.
@@ -54,4 +54,3 @@ function unsetAccountFlag(context, input) {
54
54
  { instruction: { keys, programId, data }, signers, bytesCreatedOnChain },
55
55
  ]);
56
56
  }
57
- exports.unsetAccountFlag = unsetAccountFlag;
@@ -1 +1 @@
1
- {"version":3,"file":"marginfi.d.ts","sourceRoot":"","sources":["../../../src/marginfi-sdk/programs/marginfi.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,aAAa,EACb,OAAO,EACP,OAAO,EACP,SAAS,EACV,MAAM,0BAA0B,CAAC;AAGlC,eAAO,MAAM,mBAAmB,0DAC2E,CAAC;AAE5G,wBAAgB,qBAAqB,IAAI,OAAO,CAc/C;AAED,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,OAAO,GAAG,OAAO,EAC5D,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,UAAU,CAAC,EAClC,aAAa,CAAC,EAAE,aAAa,GAC5B,CAAC,CAEH;AAED,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,UAAU,CAAC,EAClC,aAAa,CAAC,EAAE,aAAa,GAC5B,SAAS,CAMX"}
1
+ {"version":3,"file":"marginfi.d.ts","sourceRoot":"","sources":["../../../src/marginfi-sdk/programs/marginfi.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,aAAa,EACb,OAAO,EACP,OAAO,EACP,SAAS,EACV,MAAM,0BAA0B,CAAC;AAGlC,eAAO,MAAM,mBAAmB,EACmB,SAAS,CAAC,6CAA6C,CAAC,CAAC;AAE5G,wBAAgB,qBAAqB,IAAI,OAAO,CAc/C;AAED,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,OAAO,GAAG,OAAO,EAC5D,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,UAAU,CAAC,EAClC,aAAa,CAAC,EAAE,aAAa,GAC5B,CAAC,CAEH;AAED,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,UAAU,CAAC,EAClC,aAAa,CAAC,EAAE,aAAa,GAC5B,SAAS,CAMX"}
@@ -7,7 +7,10 @@
7
7
  * @see https://github.com/metaplex-foundation/kinobi
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.getMarginfiProgramId = exports.getMarginfiProgram = exports.createMarginfiProgram = exports.MARGINFI_PROGRAM_ID = void 0;
10
+ exports.MARGINFI_PROGRAM_ID = void 0;
11
+ exports.createMarginfiProgram = createMarginfiProgram;
12
+ exports.getMarginfiProgram = getMarginfiProgram;
13
+ exports.getMarginfiProgramId = getMarginfiProgramId;
11
14
  const errors_1 = require("../errors");
12
15
  exports.MARGINFI_PROGRAM_ID = 'MFv2hWf31Z9kbCa1snEPYctwafyhdvnV7FZnsebVacA';
13
16
  function createMarginfiProgram() {
@@ -25,12 +28,9 @@ function createMarginfiProgram() {
25
28
  },
26
29
  };
27
30
  }
28
- exports.createMarginfiProgram = createMarginfiProgram;
29
31
  function getMarginfiProgram(context, clusterFilter) {
30
32
  return context.programs.get('marginfi', clusterFilter);
31
33
  }
32
- exports.getMarginfiProgram = getMarginfiProgram;
33
34
  function getMarginfiProgramId(context, clusterFilter) {
34
35
  return context.programs.getPublicKey('marginfi', exports.MARGINFI_PROGRAM_ID, clusterFilter);
35
36
  }
36
- exports.getMarginfiProgramId = getMarginfiProgramId;
@@ -7,7 +7,10 @@
7
7
  * @see https://github.com/metaplex-foundation/kinobi
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.getAccountMetasAndSigners = exports.expectPda = exports.expectPublicKey = exports.expectSome = void 0;
10
+ exports.expectSome = expectSome;
11
+ exports.expectPublicKey = expectPublicKey;
12
+ exports.expectPda = expectPda;
13
+ exports.getAccountMetasAndSigners = getAccountMetasAndSigners;
11
14
  const umi_1 = require("@metaplex-foundation/umi");
12
15
  /**
13
16
  * Asserts that the given value is not null or undefined.
@@ -19,7 +22,6 @@ function expectSome(value) {
19
22
  }
20
23
  return value;
21
24
  }
22
- exports.expectSome = expectSome;
23
25
  /**
24
26
  * Asserts that the given value is a PublicKey.
25
27
  * @internal
@@ -30,7 +32,6 @@ function expectPublicKey(value) {
30
32
  }
31
33
  return (0, umi_1.publicKey)(value, false);
32
34
  }
33
- exports.expectPublicKey = expectPublicKey;
34
35
  /**
35
36
  * Asserts that the given value is a PDA.
36
37
  * @internal
@@ -41,7 +42,6 @@ function expectPda(value) {
41
42
  }
42
43
  return value;
43
44
  }
44
- exports.expectPda = expectPda;
45
45
  /**
46
46
  * Get account metas and signers from resolved accounts.
47
47
  * @internal
@@ -67,4 +67,3 @@ function getAccountMetasAndSigners(accounts, optionalAccountStrategy, programId)
67
67
  });
68
68
  return [keys, signers];
69
69
  }
70
- exports.getAccountMetasAndSigners = getAccountMetasAndSigners;