@reflectmoney/stable.ts 1.1.3 → 1.1.5

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 (238) hide show
  1. package/dist/classes/ApiClient.d.ts +84 -0
  2. package/dist/classes/ApiClient.js +24 -2
  3. package/dist/classes/PdaClient.d.ts +131 -0
  4. package/dist/classes/Reflect.d.ts +7 -0
  5. package/dist/classes/ReflectKeeper.d.ts +105 -0
  6. package/dist/classes/ReflectKeeper.js +4 -3
  7. package/dist/classes/ReflectTokenisedBond.d.ts +75 -0
  8. package/dist/classes/Stablecoin.d.ts +219 -0
  9. package/dist/classes/index.d.ts +5 -0
  10. package/dist/classes/index.js +1 -0
  11. package/dist/constants/drift.d.ts +6 -0
  12. package/dist/constants/index.d.ts +8 -0
  13. package/dist/constants/jupiter.d.ts +4 -0
  14. package/dist/constants/lookupTables.d.ts +4 -0
  15. package/dist/constants/lookupTables.js +1 -1
  16. package/dist/constants/lst.d.ts +3 -0
  17. package/dist/constants/pyth.d.ts +1 -0
  18. package/dist/constants/usdc.d.ts +6 -0
  19. package/dist/constants/wsol.d.ts +6 -0
  20. package/dist/errors/ReflectError.d.ts +4 -0
  21. package/dist/generated/reflect_main/accounts/DriftJlpController.d.ts +114 -0
  22. package/dist/generated/reflect_main/accounts/DriftJlpController.js +1 -1
  23. package/dist/generated/reflect_main/accounts/DriftLstController.d.ts +108 -0
  24. package/dist/generated/reflect_main/accounts/DriftLstController.js +1 -1
  25. package/dist/generated/reflect_main/accounts/DriftUsdcController.d.ts +107 -0
  26. package/dist/generated/reflect_main/accounts/DriftUsdcController.js +8 -60
  27. package/dist/generated/reflect_main/accounts/Main.d.ts +110 -0
  28. package/dist/generated/reflect_main/accounts/Main.js +1 -1
  29. package/dist/generated/reflect_main/accounts/PerpMarket.d.ts +226 -0
  30. package/dist/generated/reflect_main/accounts/PerpMarket.js +1 -1
  31. package/dist/generated/reflect_main/accounts/PrelaunchOracle.d.ts +130 -0
  32. package/dist/generated/reflect_main/accounts/PrelaunchOracle.js +1 -1
  33. package/dist/generated/reflect_main/accounts/PythLazerOracle.d.ts +124 -0
  34. package/dist/generated/reflect_main/accounts/PythLazerOracle.js +1 -1
  35. package/dist/generated/reflect_main/accounts/RebalanceLst.d.ts +111 -0
  36. package/dist/generated/reflect_main/accounts/RebalanceLst.js +1 -1
  37. package/dist/generated/reflect_main/accounts/SpotMarket.d.ts +377 -0
  38. package/dist/generated/reflect_main/accounts/SpotMarket.js +1 -1
  39. package/dist/generated/reflect_main/accounts/User.d.ts +221 -0
  40. package/dist/generated/reflect_main/accounts/User.js +1 -1
  41. package/dist/generated/reflect_main/accounts/UserPermissions.d.ts +106 -0
  42. package/dist/generated/reflect_main/accounts/UserPermissions.js +1 -1
  43. package/dist/generated/reflect_main/accounts/UserStats.d.ts +211 -0
  44. package/dist/generated/reflect_main/accounts/UserStats.js +1 -1
  45. package/dist/generated/reflect_main/accounts/index.d.ts +38 -0
  46. package/dist/generated/reflect_main/errors/index.d.ts +969 -0
  47. package/dist/generated/reflect_main/errors/index.js +133 -133
  48. package/dist/generated/reflect_main/index.d.ts +19 -0
  49. package/dist/generated/reflect_main/index.js +1 -1
  50. package/dist/generated/reflect_main/instructions/addLstDrift.d.ts +49 -0
  51. package/dist/generated/reflect_main/instructions/addLstDrift.js +1 -1
  52. package/dist/generated/reflect_main/instructions/addSubAccount.d.ts +54 -0
  53. package/dist/generated/reflect_main/instructions/addSubAccount.js +1 -1
  54. package/dist/generated/reflect_main/instructions/captureSpreadDrift.d.ts +66 -0
  55. package/dist/generated/reflect_main/instructions/captureSpreadDrift.js +3 -3
  56. package/dist/generated/reflect_main/instructions/captureSpreadDriftS1.d.ts +58 -0
  57. package/dist/generated/reflect_main/instructions/createAdminAccount.d.ts +52 -0
  58. package/dist/generated/reflect_main/instructions/createAdminAccount.js +2 -1
  59. package/dist/generated/reflect_main/instructions/createUserStatsAccount.d.ts +52 -0
  60. package/dist/generated/reflect_main/instructions/createUserStatsAccount.js +1 -1
  61. package/dist/generated/reflect_main/instructions/depositDrift.d.ts +73 -0
  62. package/dist/generated/reflect_main/instructions/depositDrift.js +1 -1
  63. package/dist/generated/reflect_main/instructions/freezeProgram.d.ts +54 -0
  64. package/dist/generated/reflect_main/instructions/freezeProgram.js +1 -1
  65. package/dist/generated/reflect_main/instructions/freezeProtocolAction.d.ts +55 -0
  66. package/dist/generated/reflect_main/instructions/freezeProtocolAction.js +1 -1
  67. package/dist/generated/reflect_main/instructions/freezeStrategyAction.d.ts +58 -0
  68. package/dist/generated/reflect_main/instructions/freezeStrategyAction.js +1 -1
  69. package/dist/generated/reflect_main/instructions/increaseAdminSize.d.ts +51 -0
  70. package/dist/generated/reflect_main/instructions/increaseAdminSize.js +89 -0
  71. package/dist/generated/reflect_main/instructions/index.d.ts +34 -0
  72. package/dist/generated/reflect_main/instructions/index.js +1 -1
  73. package/dist/generated/reflect_main/instructions/initDriftAccountsS1.d.ts +54 -0
  74. package/dist/generated/reflect_main/instructions/initDriftAccountsS1.js +1 -1
  75. package/dist/generated/reflect_main/instructions/initDriftControllerS1.d.ts +58 -0
  76. package/dist/generated/reflect_main/instructions/initDriftControllerS1.js +1 -1
  77. package/dist/generated/reflect_main/instructions/initDriftControllerS3.d.ts +58 -0
  78. package/dist/generated/reflect_main/instructions/initDriftControllerS3.js +1 -1
  79. package/dist/generated/reflect_main/instructions/initMain.d.ts +43 -0
  80. package/dist/generated/reflect_main/instructions/initMain.js +1 -1
  81. package/dist/generated/reflect_main/instructions/mintDriftS1.d.ts +86 -0
  82. package/dist/generated/reflect_main/instructions/mintDriftS1.js +1 -1
  83. package/dist/generated/reflect_main/instructions/mintDriftS3.d.ts +86 -0
  84. package/dist/generated/reflect_main/instructions/mintDriftS3.js +1 -1
  85. package/dist/generated/reflect_main/instructions/processSwapDeposit.d.ts +69 -0
  86. package/dist/generated/reflect_main/instructions/processSwapDeposit.js +1 -1
  87. package/dist/generated/reflect_main/instructions/processSwapWithdraw.d.ts +69 -0
  88. package/dist/generated/reflect_main/instructions/processSwapWithdraw.js +1 -1
  89. package/dist/generated/reflect_main/instructions/redeemDriftS1.d.ts +87 -0
  90. package/dist/generated/reflect_main/instructions/redeemDriftS1.js +1 -1
  91. package/dist/generated/reflect_main/instructions/redeemDriftS3.d.ts +87 -0
  92. package/dist/generated/reflect_main/instructions/redeemDriftS3.js +1 -1
  93. package/dist/generated/reflect_main/instructions/settlePnl.d.ts +50 -0
  94. package/dist/generated/reflect_main/instructions/settlePnl.js +1 -10
  95. package/dist/generated/reflect_main/instructions/settlePnlMulti.d.ts +60 -0
  96. package/dist/generated/reflect_main/instructions/settlePnlMulti.js +1 -10
  97. package/dist/generated/reflect_main/instructions/suspendSplProtocol.d.ts +54 -0
  98. package/dist/generated/reflect_main/instructions/suspendSplProtocol.js +1 -1
  99. package/dist/generated/reflect_main/instructions/suspendSplStrategy.d.ts +56 -0
  100. package/dist/generated/reflect_main/instructions/suspendSplStrategy.js +1 -1
  101. package/dist/generated/reflect_main/instructions/swapOrca.d.ts +81 -0
  102. package/dist/generated/reflect_main/instructions/swapOrca.js +1 -1
  103. package/dist/generated/reflect_main/instructions/swapOrcaTwoHop.d.ts +101 -0
  104. package/dist/generated/reflect_main/instructions/swapOrcaTwoHop.js +1 -1
  105. package/dist/generated/reflect_main/instructions/updateActionRoleProtocol.d.ts +58 -0
  106. package/dist/generated/reflect_main/instructions/updateActionRoleProtocol.js +1 -1
  107. package/dist/generated/reflect_main/instructions/updateActionRoleStrategy.d.ts +60 -0
  108. package/dist/generated/reflect_main/instructions/updateActionRoleStrategy.js +1 -1
  109. package/dist/generated/reflect_main/instructions/updateAttenuation.d.ts +57 -0
  110. package/dist/generated/reflect_main/instructions/updateAttenuation.js +1 -1
  111. package/dist/generated/reflect_main/instructions/updateCap.d.ts +55 -0
  112. package/dist/generated/reflect_main/instructions/updateCap.js +1 -1
  113. package/dist/generated/reflect_main/instructions/updateRebalanceSlippage.d.ts +55 -0
  114. package/dist/generated/reflect_main/instructions/updateRebalanceSlippage.js +1 -1
  115. package/dist/generated/reflect_main/instructions/updateRecipients.d.ts +56 -0
  116. package/dist/generated/reflect_main/instructions/updateRecipients.js +1 -1
  117. package/dist/generated/reflect_main/instructions/updateRoleHolderProtocol.d.ts +60 -0
  118. package/dist/generated/reflect_main/instructions/updateRoleHolderProtocol.js +1 -1
  119. package/dist/generated/reflect_main/instructions/updateRoleHolderStrategy.d.ts +60 -0
  120. package/dist/generated/reflect_main/instructions/updateRoleHolderStrategy.js +1 -1
  121. package/dist/generated/reflect_main/types/AMM.d.ts +102 -0
  122. package/dist/generated/reflect_main/types/AccKey.d.ts +15 -0
  123. package/dist/generated/reflect_main/types/AccessControl.d.ts +18 -0
  124. package/dist/generated/reflect_main/types/AccessMap.d.ts +17 -0
  125. package/dist/generated/reflect_main/types/Action.d.ts +35 -0
  126. package/dist/generated/reflect_main/types/ActionMapping.d.ts +19 -0
  127. package/dist/generated/reflect_main/types/AssetTier.d.ts +23 -0
  128. package/dist/generated/reflect_main/types/Attenuation.d.ts +16 -0
  129. package/dist/generated/reflect_main/types/AutoCompound.d.ts +18 -0
  130. package/dist/generated/reflect_main/types/AutoCompound.js +43 -0
  131. package/dist/generated/reflect_main/types/BalanceType.d.ts +20 -0
  132. package/dist/generated/reflect_main/types/Capture.d.ts +19 -0
  133. package/dist/generated/reflect_main/types/Capture.js +2 -0
  134. package/dist/generated/reflect_main/types/ContractTier.d.ts +24 -0
  135. package/dist/generated/reflect_main/types/ContractType.d.ts +20 -0
  136. package/dist/generated/reflect_main/types/CorpAction.d.ts +19 -0
  137. package/dist/generated/reflect_main/types/CustodyInfo.d.ts +20 -0
  138. package/dist/generated/reflect_main/types/DirectionCollateral.d.ts +20 -0
  139. package/dist/generated/reflect_main/types/DirectionPosition.d.ts +20 -0
  140. package/dist/generated/reflect_main/types/DriftControllerBase.d.ts +15 -0
  141. package/dist/generated/reflect_main/types/DriftJlpControllerFixedAccounts.d.ts +18 -0
  142. package/dist/generated/reflect_main/types/DriftLstData.d.ts +17 -0
  143. package/dist/generated/reflect_main/types/Ema.d.ts +17 -0
  144. package/dist/generated/reflect_main/types/Externals.d.ts +16 -0
  145. package/dist/generated/reflect_main/types/FlowControl.d.ts +17 -0
  146. package/dist/generated/reflect_main/types/HistoricalIndexData.d.ts +19 -0
  147. package/dist/generated/reflect_main/types/HistoricalOracleData.d.ts +20 -0
  148. package/dist/generated/reflect_main/types/Holding.d.ts +21 -0
  149. package/dist/generated/reflect_main/types/Holdings.d.ts +17 -0
  150. package/dist/generated/reflect_main/types/InsuranceClaim.d.ts +19 -0
  151. package/dist/generated/reflect_main/types/InsuranceFund.d.ts +24 -0
  152. package/dist/generated/reflect_main/types/JlpRebalanceSettings.d.ts +15 -0
  153. package/dist/generated/reflect_main/types/KillSwitch.d.ts +15 -0
  154. package/dist/generated/reflect_main/types/LevelRoles.d.ts +16 -0
  155. package/dist/generated/reflect_main/types/MarketStatus.d.ts +27 -0
  156. package/dist/generated/reflect_main/types/MarketType.d.ts +20 -0
  157. package/dist/generated/reflect_main/types/ModifyOrderParams.d.ts +32 -0
  158. package/dist/generated/reflect_main/types/ModifyOrderPolicy.d.ts +20 -0
  159. package/dist/generated/reflect_main/types/Movements.d.ts +19 -0
  160. package/dist/generated/reflect_main/types/OracleGuardRails.d.ts +18 -0
  161. package/dist/generated/reflect_main/types/OracleSource.d.ts +34 -0
  162. package/dist/generated/reflect_main/types/OracleValidity.d.ts +25 -0
  163. package/dist/generated/reflect_main/types/Order.d.ts +43 -0
  164. package/dist/generated/reflect_main/types/OrderDirection.d.ts +20 -0
  165. package/dist/generated/reflect_main/types/OrderParams.d.ts +36 -0
  166. package/dist/generated/reflect_main/types/OrderParams.js +1 -1
  167. package/dist/generated/reflect_main/types/OrderStatus.d.ts +22 -0
  168. package/dist/generated/reflect_main/types/OrderTriggerCondition.d.ts +22 -0
  169. package/dist/generated/reflect_main/types/OrderType.d.ts +23 -0
  170. package/dist/generated/reflect_main/types/PermissionLevel.d.ts +45 -0
  171. package/dist/generated/reflect_main/types/PerpHedge.d.ts +17 -0
  172. package/dist/generated/reflect_main/types/PerpPosition.d.ts +29 -0
  173. package/dist/generated/reflect_main/types/PoolBalance.d.ts +17 -0
  174. package/dist/generated/reflect_main/types/Position.d.ts +20 -0
  175. package/dist/generated/reflect_main/types/PositionDirection.d.ts +20 -0
  176. package/dist/generated/reflect_main/types/PositionDrift.d.ts +18 -0
  177. package/dist/generated/reflect_main/types/PostOnlyParam.d.ts +22 -0
  178. package/dist/generated/reflect_main/types/Price.d.ts +41 -0
  179. package/dist/generated/reflect_main/types/PriceComp.d.ts +19 -0
  180. package/dist/generated/reflect_main/types/PriceDivergenceGuardRails.d.ts +16 -0
  181. package/dist/generated/reflect_main/types/PriceInfo.d.ts +21 -0
  182. package/dist/generated/reflect_main/types/PriceStatus.d.ts +22 -0
  183. package/dist/generated/reflect_main/types/PriceType.d.ts +20 -0
  184. package/dist/generated/reflect_main/types/Program.d.ts +19 -0
  185. package/dist/generated/reflect_main/types/ProgramStatus.d.ts +20 -0
  186. package/dist/generated/reflect_main/types/Recipient.d.ts +17 -0
  187. package/dist/generated/reflect_main/types/Recipients.d.ts +17 -0
  188. package/dist/generated/reflect_main/types/Role.d.ts +25 -0
  189. package/dist/generated/reflect_main/types/ShiftCollateral.d.ts +19 -0
  190. package/dist/generated/reflect_main/types/ShiftPosition.d.ts +17 -0
  191. package/dist/generated/reflect_main/types/ShortHolding.d.ts +17 -0
  192. package/dist/generated/reflect_main/types/SplBase.d.ts +17 -0
  193. package/dist/generated/reflect_main/types/SplMain.d.ts +22 -0
  194. package/dist/generated/reflect_main/types/Spls.d.ts +17 -0
  195. package/dist/generated/reflect_main/types/SpotBalanceType.d.ts +20 -0
  196. package/dist/generated/reflect_main/types/SpotPosition.d.ts +23 -0
  197. package/dist/generated/reflect_main/types/Status.d.ts +21 -0
  198. package/dist/generated/reflect_main/types/Strategy.d.ts +34 -0
  199. package/dist/generated/reflect_main/types/Strategy.js +2 -0
  200. package/dist/generated/reflect_main/types/StrategyPadding.d.ts +15 -0
  201. package/dist/generated/reflect_main/types/StrategyRoleEntry.d.ts +17 -0
  202. package/dist/generated/reflect_main/types/SubAccount.d.ts +17 -0
  203. package/dist/generated/reflect_main/types/Update.d.ts +20 -0
  204. package/dist/generated/reflect_main/types/UserFees.d.ts +20 -0
  205. package/dist/generated/reflect_main/types/ValidityGuardRails.d.ts +18 -0
  206. package/dist/generated/reflect_main/types/YieldDistribution.d.ts +20 -0
  207. package/dist/generated/reflect_main/types/YieldDistribution.js +47 -0
  208. package/dist/generated/reflect_main/types/index.d.ts +82 -0
  209. package/dist/generated/reflect_main/types/index.js +2 -0
  210. package/dist/generated/reflect_tokenised_bonds/accounts/Admin.d.ts +99 -0
  211. package/dist/generated/reflect_tokenised_bonds/accounts/Config.d.ts +106 -0
  212. package/dist/generated/reflect_tokenised_bonds/accounts/Vault.d.ts +114 -0
  213. package/dist/generated/reflect_tokenised_bonds/accounts/index.d.ts +11 -0
  214. package/dist/generated/reflect_tokenised_bonds/errors/index.d.ts +144 -0
  215. package/dist/generated/reflect_tokenised_bonds/index.d.ts +19 -0
  216. package/dist/generated/reflect_tokenised_bonds/instructions/createVault.d.ts +50 -0
  217. package/dist/generated/reflect_tokenised_bonds/instructions/deposit.d.ts +62 -0
  218. package/dist/generated/reflect_tokenised_bonds/instructions/index.d.ts +4 -0
  219. package/dist/generated/reflect_tokenised_bonds/instructions/initialize.d.ts +43 -0
  220. package/dist/generated/reflect_tokenised_bonds/instructions/withdraw.d.ts +62 -0
  221. package/dist/generated/reflect_tokenised_bonds/types/DepositArgs.d.ts +17 -0
  222. package/dist/generated/reflect_tokenised_bonds/types/Permissions.d.ts +21 -0
  223. package/dist/generated/reflect_tokenised_bonds/types/WithdrawArgs.d.ts +16 -0
  224. package/dist/generated/reflect_tokenised_bonds/types/index.d.ts +3 -0
  225. package/dist/helpers/getOrcaQuote.d.ts +3 -0
  226. package/dist/idl/perpetuals.d.ts +5771 -0
  227. package/dist/index.d.ts +10 -0
  228. package/dist/index.js +1 -0
  229. package/dist/stablecoins/LstStablecoin.d.ts +103 -0
  230. package/dist/stablecoins/UsdcPlusStablecoin.d.ts +86 -0
  231. package/dist/stablecoins/UsdjStablecoin.d.ts +1 -0
  232. package/dist/stablecoins/index.d.ts +3 -0
  233. package/dist/tsconfig.tsbuildinfo +1 -0
  234. package/dist/types/api.d.ts +1384 -0
  235. package/dist/types/api.js +6 -0
  236. package/dist/types/index.d.ts +81 -0
  237. package/dist/types/index.js +2 -0
  238. package/package.json +2 -2
@@ -0,0 +1,19 @@
1
+ import { PublicKey } from '@solana/web3.js';
2
+ export * from './accounts';
3
+ export * from './errors';
4
+ export * from './instructions';
5
+ export * from './types';
6
+ /**
7
+ * Program address
8
+ *
9
+ * @category constants
10
+ * @category generated
11
+ */
12
+ export declare const PROGRAM_ADDRESS = "rf1ctRXK4bmG5XNttAMYfB3TKd2vQjFv5cfQhDBxdAQ";
13
+ /**
14
+ * Program public key
15
+ *
16
+ * @category constants
17
+ * @category generated
18
+ */
19
+ export declare const PROGRAM_ID: PublicKey;
@@ -26,7 +26,7 @@ __exportStar(require("./types"), exports);
26
26
  * @category constants
27
27
  * @category generated
28
28
  */
29
- exports.PROGRAM_ADDRESS = '9CtYQNCz3LaQ9DnqXa83q6gdHGwMeN6aQ7KqqotBmeke';
29
+ exports.PROGRAM_ADDRESS = 'rf1ctRXK4bmG5XNttAMYfB3TKd2vQjFv5cfQhDBxdAQ';
30
30
  /**
31
31
  * Program public key
32
32
  *
@@ -0,0 +1,49 @@
1
+ /**
2
+ * This code was GENERATED using the solita package.
3
+ * Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
4
+ *
5
+ * See: https://github.com/metaplex-foundation/solita
6
+ */
7
+ import * as beet from '@metaplex-foundation/beet';
8
+ import * as web3 from '@solana/web3.js';
9
+ /**
10
+ * @category Instructions
11
+ * @category AddLstDrift
12
+ * @category generated
13
+ */
14
+ export declare const addLstDriftStruct: beet.BeetArgsStruct<{
15
+ instructionDiscriminator: number[];
16
+ }>;
17
+ /**
18
+ * Accounts required by the _addLstDrift_ instruction
19
+ *
20
+ * @property [_writable_] lstController
21
+ * @property [] adminPermissions
22
+ * @property [] lstMint
23
+ * @property [_writable_] main
24
+ * @property [_writable_] spotMarketLst
25
+ * @property [_writable_, **signer**] admin
26
+ * @category Instructions
27
+ * @category AddLstDrift
28
+ * @category generated
29
+ */
30
+ export type AddLstDriftInstructionAccounts = {
31
+ lstController: web3.PublicKey;
32
+ adminPermissions: web3.PublicKey;
33
+ lstMint: web3.PublicKey;
34
+ main: web3.PublicKey;
35
+ spotMarketLst: web3.PublicKey;
36
+ admin: web3.PublicKey;
37
+ systemProgram?: web3.PublicKey;
38
+ anchorRemainingAccounts?: web3.AccountMeta[];
39
+ };
40
+ export declare const addLstDriftInstructionDiscriminator: number[];
41
+ /**
42
+ * Creates a _AddLstDrift_ instruction.
43
+ *
44
+ * @param accounts that will be accessed while the instruction is processed
45
+ * @category Instructions
46
+ * @category AddLstDrift
47
+ * @category generated
48
+ */
49
+ export declare function createAddLstDriftInstruction(accounts: AddLstDriftInstructionAccounts, programId?: web3.PublicKey): web3.TransactionInstruction;
@@ -50,7 +50,7 @@ exports.addLstDriftInstructionDiscriminator = [
50
50
  * @category AddLstDrift
51
51
  * @category generated
52
52
  */
53
- function createAddLstDriftInstruction(accounts, programId = new web3.PublicKey('9CtYQNCz3LaQ9DnqXa83q6gdHGwMeN6aQ7KqqotBmeke')) {
53
+ function createAddLstDriftInstruction(accounts, programId = new web3.PublicKey('rf1ctRXK4bmG5XNttAMYfB3TKd2vQjFv5cfQhDBxdAQ')) {
54
54
  var _a;
55
55
  const [data] = exports.addLstDriftStruct.serialize({
56
56
  instructionDiscriminator: exports.addLstDriftInstructionDiscriminator,
@@ -0,0 +1,54 @@
1
+ /**
2
+ * This code was GENERATED using the solita package.
3
+ * Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
4
+ *
5
+ * See: https://github.com/metaplex-foundation/solita
6
+ */
7
+ import * as beet from '@metaplex-foundation/beet';
8
+ import * as web3 from '@solana/web3.js';
9
+ /**
10
+ * @category Instructions
11
+ * @category AddSubAccount
12
+ * @category generated
13
+ */
14
+ export declare const addSubAccountStruct: beet.BeetArgsStruct<{
15
+ instructionDiscriminator: number[];
16
+ }>;
17
+ /**
18
+ * Accounts required by the _addSubAccount_ instruction
19
+ *
20
+ * @property [_writable_] main
21
+ * @property [_writable_] lstController
22
+ * @property [] adminPermissions
23
+ * @property [_writable_, **signer**] admin
24
+ * @property [] drift
25
+ * @property [_writable_] state
26
+ * @property [_writable_] userStats
27
+ * @property [_writable_] userAccount
28
+ * @category Instructions
29
+ * @category AddSubAccount
30
+ * @category generated
31
+ */
32
+ export type AddSubAccountInstructionAccounts = {
33
+ main: web3.PublicKey;
34
+ lstController: web3.PublicKey;
35
+ adminPermissions: web3.PublicKey;
36
+ admin: web3.PublicKey;
37
+ drift: web3.PublicKey;
38
+ state: web3.PublicKey;
39
+ userStats: web3.PublicKey;
40
+ userAccount: web3.PublicKey;
41
+ rent?: web3.PublicKey;
42
+ systemProgram?: web3.PublicKey;
43
+ anchorRemainingAccounts?: web3.AccountMeta[];
44
+ };
45
+ export declare const addSubAccountInstructionDiscriminator: number[];
46
+ /**
47
+ * Creates a _AddSubAccount_ instruction.
48
+ *
49
+ * @param accounts that will be accessed while the instruction is processed
50
+ * @category Instructions
51
+ * @category AddSubAccount
52
+ * @category generated
53
+ */
54
+ export declare function createAddSubAccountInstruction(accounts: AddSubAccountInstructionAccounts, programId?: web3.PublicKey): web3.TransactionInstruction;
@@ -50,7 +50,7 @@ exports.addSubAccountInstructionDiscriminator = [
50
50
  * @category AddSubAccount
51
51
  * @category generated
52
52
  */
53
- function createAddSubAccountInstruction(accounts, programId = new web3.PublicKey('9CtYQNCz3LaQ9DnqXa83q6gdHGwMeN6aQ7KqqotBmeke')) {
53
+ function createAddSubAccountInstruction(accounts, programId = new web3.PublicKey('rf1ctRXK4bmG5XNttAMYfB3TKd2vQjFv5cfQhDBxdAQ')) {
54
54
  var _a, _b;
55
55
  const [data] = exports.addSubAccountStruct.serialize({
56
56
  instructionDiscriminator: exports.addSubAccountInstructionDiscriminator,
@@ -0,0 +1,66 @@
1
+ /**
2
+ * This code was GENERATED using the solita package.
3
+ * Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
4
+ *
5
+ * See: https://github.com/metaplex-foundation/solita
6
+ */
7
+ import * as beet from '@metaplex-foundation/beet';
8
+ import * as web3 from '@solana/web3.js';
9
+ /**
10
+ * @category Instructions
11
+ * @category CaptureSpreadDrift
12
+ * @category generated
13
+ */
14
+ export type CaptureSpreadDriftInstructionArgs = {
15
+ flexible: beet.bignum;
16
+ };
17
+ /**
18
+ * @category Instructions
19
+ * @category CaptureSpreadDrift
20
+ * @category generated
21
+ */
22
+ export declare const captureSpreadDriftStruct: beet.BeetArgsStruct<CaptureSpreadDriftInstructionArgs & {
23
+ instructionDiscriminator: number[];
24
+ }>;
25
+ /**
26
+ * Accounts required by the _captureSpreadDrift_ instruction
27
+ *
28
+ * @property [_writable_, **signer**] capturer
29
+ * @property [] main
30
+ * @property [_writable_] strategyController
31
+ * @property [] adminPermissions (optional)
32
+ * @property [] drift
33
+ * @property [_writable_] state
34
+ * @property [] userAccount
35
+ * @property [_writable_] stableMint
36
+ * @category Instructions
37
+ * @category CaptureSpreadDrift
38
+ * @category generated
39
+ */
40
+ export type CaptureSpreadDriftInstructionAccounts = {
41
+ capturer: web3.PublicKey;
42
+ main: web3.PublicKey;
43
+ strategyController: web3.PublicKey;
44
+ adminPermissions?: web3.PublicKey;
45
+ drift: web3.PublicKey;
46
+ state: web3.PublicKey;
47
+ userAccount: web3.PublicKey;
48
+ stableMint: web3.PublicKey;
49
+ tokenProgram?: web3.PublicKey;
50
+ anchorRemainingAccounts?: web3.AccountMeta[];
51
+ };
52
+ export declare const captureSpreadDriftInstructionDiscriminator: number[];
53
+ /**
54
+ * Creates a _CaptureSpreadDrift_ instruction.
55
+ *
56
+ * Optional accounts that are not provided default to the program ID since
57
+ * this was indicated in the IDL from which this instruction was generated.
58
+ *
59
+ * @param accounts that will be accessed while the instruction is processed
60
+ * @param args to provide as instruction data to the program
61
+ *
62
+ * @category Instructions
63
+ * @category CaptureSpreadDrift
64
+ * @category generated
65
+ */
66
+ export declare function createCaptureSpreadDriftInstruction(accounts: CaptureSpreadDriftInstructionAccounts, args: CaptureSpreadDriftInstructionArgs, programId?: web3.PublicKey): web3.TransactionInstruction;
@@ -41,7 +41,7 @@ const web3 = __importStar(require("@solana/web3.js"));
41
41
  */
42
42
  exports.captureSpreadDriftStruct = new beet.BeetArgsStruct([
43
43
  ['instructionDiscriminator', beet.uniformFixedSizeArray(beet.u8, 8)],
44
- ['subAccountId', beet.u16],
44
+ ['flexible', beet.u64],
45
45
  ], 'CaptureSpreadDriftInstructionArgs');
46
46
  exports.captureSpreadDriftInstructionDiscriminator = [
47
47
  43, 166, 105, 144, 16, 3, 218, 111,
@@ -59,7 +59,7 @@ exports.captureSpreadDriftInstructionDiscriminator = [
59
59
  * @category CaptureSpreadDrift
60
60
  * @category generated
61
61
  */
62
- function createCaptureSpreadDriftInstruction(accounts, args, programId = new web3.PublicKey('9CtYQNCz3LaQ9DnqXa83q6gdHGwMeN6aQ7KqqotBmeke')) {
62
+ function createCaptureSpreadDriftInstruction(accounts, args, programId = new web3.PublicKey('rf1ctRXK4bmG5XNttAMYfB3TKd2vQjFv5cfQhDBxdAQ')) {
63
63
  var _a, _b;
64
64
  const [data] = exports.captureSpreadDriftStruct.serialize(Object.assign({ instructionDiscriminator: exports.captureSpreadDriftInstructionDiscriminator }, args));
65
65
  const keys = [
@@ -95,7 +95,7 @@ function createCaptureSpreadDriftInstruction(accounts, args, programId = new web
95
95
  },
96
96
  {
97
97
  pubkey: accounts.userAccount,
98
- isWritable: true,
98
+ isWritable: false,
99
99
  isSigner: false,
100
100
  },
101
101
  {
@@ -0,0 +1,58 @@
1
+ /**
2
+ * This code was GENERATED using the solita package.
3
+ * Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
4
+ *
5
+ * See: https://github.com/metaplex-foundation/solita
6
+ */
7
+ import * as beet from '@metaplex-foundation/beet';
8
+ import * as web3 from '@solana/web3.js';
9
+ /**
10
+ * @category Instructions
11
+ * @category CaptureSpreadDriftS1
12
+ * @category generated
13
+ */
14
+ export declare const captureSpreadDriftS1Struct: beet.BeetArgsStruct<{
15
+ instructionDiscriminator: number[];
16
+ }>;
17
+ /**
18
+ * Accounts required by the _captureSpreadDriftS1_ instruction
19
+ *
20
+ * @property [_writable_, **signer**] capturer
21
+ * @property [] main
22
+ * @property [_writable_] usdcController
23
+ * @property [] adminPermissions (optional)
24
+ * @property [] drift
25
+ * @property [_writable_] state
26
+ * @property [_writable_] userAccount
27
+ * @property [_writable_] controllerUsdcAta
28
+ * @property [_writable_] receiptMint
29
+ * @category Instructions
30
+ * @category CaptureSpreadDriftS1
31
+ * @category generated
32
+ */
33
+ export type CaptureSpreadDriftS1InstructionAccounts = {
34
+ capturer: web3.PublicKey;
35
+ main: web3.PublicKey;
36
+ usdcController: web3.PublicKey;
37
+ adminPermissions?: web3.PublicKey;
38
+ drift: web3.PublicKey;
39
+ state: web3.PublicKey;
40
+ userAccount: web3.PublicKey;
41
+ controllerUsdcAta: web3.PublicKey;
42
+ receiptMint: web3.PublicKey;
43
+ tokenProgram?: web3.PublicKey;
44
+ anchorRemainingAccounts?: web3.AccountMeta[];
45
+ };
46
+ export declare const captureSpreadDriftS1InstructionDiscriminator: number[];
47
+ /**
48
+ * Creates a _CaptureSpreadDriftS1_ instruction.
49
+ *
50
+ * Optional accounts that are not provided default to the program ID since
51
+ * this was indicated in the IDL from which this instruction was generated.
52
+ *
53
+ * @param accounts that will be accessed while the instruction is processed
54
+ * @category Instructions
55
+ * @category CaptureSpreadDriftS1
56
+ * @category generated
57
+ */
58
+ export declare function createCaptureSpreadDriftS1Instruction(accounts: CaptureSpreadDriftS1InstructionAccounts, programId?: web3.PublicKey): web3.TransactionInstruction;
@@ -0,0 +1,52 @@
1
+ /**
2
+ * This code was GENERATED using the solita package.
3
+ * Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
4
+ *
5
+ * See: https://github.com/metaplex-foundation/solita
6
+ */
7
+ import * as web3 from '@solana/web3.js';
8
+ import * as beet from '@metaplex-foundation/beet';
9
+ /**
10
+ * @category Instructions
11
+ * @category CreateAdminAccount
12
+ * @category generated
13
+ */
14
+ export type CreateAdminAccountInstructionArgs = {
15
+ newAdmin: web3.PublicKey;
16
+ roles: number;
17
+ };
18
+ /**
19
+ * @category Instructions
20
+ * @category CreateAdminAccount
21
+ * @category generated
22
+ */
23
+ export declare const createAdminAccountStruct: beet.BeetArgsStruct<CreateAdminAccountInstructionArgs & {
24
+ instructionDiscriminator: number[];
25
+ }>;
26
+ /**
27
+ * Accounts required by the _createAdminAccount_ instruction
28
+ *
29
+ * @property [_writable_] newCreds
30
+ * @property [_writable_, **signer**] caller
31
+ * @category Instructions
32
+ * @category CreateAdminAccount
33
+ * @category generated
34
+ */
35
+ export type CreateAdminAccountInstructionAccounts = {
36
+ newCreds: web3.PublicKey;
37
+ caller: web3.PublicKey;
38
+ systemProgram?: web3.PublicKey;
39
+ anchorRemainingAccounts?: web3.AccountMeta[];
40
+ };
41
+ export declare const createAdminAccountInstructionDiscriminator: number[];
42
+ /**
43
+ * Creates a _CreateAdminAccount_ instruction.
44
+ *
45
+ * @param accounts that will be accessed while the instruction is processed
46
+ * @param args to provide as instruction data to the program
47
+ *
48
+ * @category Instructions
49
+ * @category CreateAdminAccount
50
+ * @category generated
51
+ */
52
+ export declare function createCreateAdminAccountInstruction(accounts: CreateAdminAccountInstructionAccounts, args: CreateAdminAccountInstructionArgs, programId?: web3.PublicKey): web3.TransactionInstruction;
@@ -42,6 +42,7 @@ const beet = __importStar(require("@metaplex-foundation/beet"));
42
42
  exports.createAdminAccountStruct = new beet.BeetArgsStruct([
43
43
  ['instructionDiscriminator', beet.uniformFixedSizeArray(beet.u8, 8)],
44
44
  ['newAdmin', beetSolana.publicKey],
45
+ ['roles', beet.u8],
45
46
  ], 'CreateAdminAccountInstructionArgs');
46
47
  exports.createAdminAccountInstructionDiscriminator = [
47
48
  139, 201, 45, 194, 20, 52, 208, 219,
@@ -56,7 +57,7 @@ exports.createAdminAccountInstructionDiscriminator = [
56
57
  * @category CreateAdminAccount
57
58
  * @category generated
58
59
  */
59
- function createCreateAdminAccountInstruction(accounts, args, programId = new web3.PublicKey('9CtYQNCz3LaQ9DnqXa83q6gdHGwMeN6aQ7KqqotBmeke')) {
60
+ function createCreateAdminAccountInstruction(accounts, args, programId = new web3.PublicKey('rf1ctRXK4bmG5XNttAMYfB3TKd2vQjFv5cfQhDBxdAQ')) {
60
61
  var _a;
61
62
  const [data] = exports.createAdminAccountStruct.serialize(Object.assign({ instructionDiscriminator: exports.createAdminAccountInstructionDiscriminator }, args));
62
63
  const keys = [
@@ -0,0 +1,52 @@
1
+ /**
2
+ * This code was GENERATED using the solita package.
3
+ * Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
4
+ *
5
+ * See: https://github.com/metaplex-foundation/solita
6
+ */
7
+ import * as beet from '@metaplex-foundation/beet';
8
+ import * as web3 from '@solana/web3.js';
9
+ /**
10
+ * @category Instructions
11
+ * @category CreateUserStatsAccount
12
+ * @category generated
13
+ */
14
+ export declare const createUserStatsAccountStruct: beet.BeetArgsStruct<{
15
+ instructionDiscriminator: number[];
16
+ }>;
17
+ /**
18
+ * Accounts required by the _createUserStatsAccount_ instruction
19
+ *
20
+ * @property [_writable_] main
21
+ * @property [_writable_] controller
22
+ * @property [] adminPermissions
23
+ * @property [_writable_, **signer**] admin
24
+ * @property [] drift
25
+ * @property [_writable_] state
26
+ * @property [_writable_] userStats
27
+ * @category Instructions
28
+ * @category CreateUserStatsAccount
29
+ * @category generated
30
+ */
31
+ export type CreateUserStatsAccountInstructionAccounts = {
32
+ main: web3.PublicKey;
33
+ controller: web3.PublicKey;
34
+ adminPermissions: web3.PublicKey;
35
+ admin: web3.PublicKey;
36
+ drift: web3.PublicKey;
37
+ state: web3.PublicKey;
38
+ userStats: web3.PublicKey;
39
+ rent?: web3.PublicKey;
40
+ systemProgram?: web3.PublicKey;
41
+ anchorRemainingAccounts?: web3.AccountMeta[];
42
+ };
43
+ export declare const createUserStatsAccountInstructionDiscriminator: number[];
44
+ /**
45
+ * Creates a _CreateUserStatsAccount_ instruction.
46
+ *
47
+ * @param accounts that will be accessed while the instruction is processed
48
+ * @category Instructions
49
+ * @category CreateUserStatsAccount
50
+ * @category generated
51
+ */
52
+ export declare function createCreateUserStatsAccountInstruction(accounts: CreateUserStatsAccountInstructionAccounts, programId?: web3.PublicKey): web3.TransactionInstruction;
@@ -50,7 +50,7 @@ exports.createUserStatsAccountInstructionDiscriminator = [
50
50
  * @category CreateUserStatsAccount
51
51
  * @category generated
52
52
  */
53
- function createCreateUserStatsAccountInstruction(accounts, programId = new web3.PublicKey('9CtYQNCz3LaQ9DnqXa83q6gdHGwMeN6aQ7KqqotBmeke')) {
53
+ function createCreateUserStatsAccountInstruction(accounts, programId = new web3.PublicKey('rf1ctRXK4bmG5XNttAMYfB3TKd2vQjFv5cfQhDBxdAQ')) {
54
54
  var _a, _b;
55
55
  const [data] = exports.createUserStatsAccountStruct.serialize({
56
56
  instructionDiscriminator: exports.createUserStatsAccountInstructionDiscriminator,
@@ -0,0 +1,73 @@
1
+ /**
2
+ * This code was GENERATED using the solita package.
3
+ * Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
4
+ *
5
+ * See: https://github.com/metaplex-foundation/solita
6
+ */
7
+ import * as beet from '@metaplex-foundation/beet';
8
+ import * as web3 from '@solana/web3.js';
9
+ /**
10
+ * @category Instructions
11
+ * @category DepositDrift
12
+ * @category generated
13
+ */
14
+ export type DepositDriftInstructionArgs = {
15
+ controllerBump: number;
16
+ controllerIndex: number;
17
+ amount: beet.bignum;
18
+ };
19
+ /**
20
+ * @category Instructions
21
+ * @category DepositDrift
22
+ * @category generated
23
+ */
24
+ export declare const depositDriftStruct: beet.BeetArgsStruct<DepositDriftInstructionArgs & {
25
+ instructionDiscriminator: number[];
26
+ }>;
27
+ /**
28
+ * Accounts required by the _depositDrift_ instruction
29
+ *
30
+ * @property [_writable_] main
31
+ * @property [_writable_] controller
32
+ * @property [_writable_, **signer**] depositor
33
+ * @property [] drift
34
+ * @property [_writable_] state
35
+ * @property [_writable_] userStats
36
+ * @property [_writable_] userAccount
37
+ * @property [_writable_] spotMarketVault
38
+ * @property [_writable_] controllerTokenAccount
39
+ * @property [_writable_] depositorTokenAccount
40
+ * @property [_writable_] oracle
41
+ * @property [_writable_] spotMarket
42
+ * @category Instructions
43
+ * @category DepositDrift
44
+ * @category generated
45
+ */
46
+ export type DepositDriftInstructionAccounts = {
47
+ main: web3.PublicKey;
48
+ controller: web3.PublicKey;
49
+ depositor: web3.PublicKey;
50
+ drift: web3.PublicKey;
51
+ state: web3.PublicKey;
52
+ userStats: web3.PublicKey;
53
+ userAccount: web3.PublicKey;
54
+ spotMarketVault: web3.PublicKey;
55
+ controllerTokenAccount: web3.PublicKey;
56
+ depositorTokenAccount: web3.PublicKey;
57
+ oracle: web3.PublicKey;
58
+ spotMarket: web3.PublicKey;
59
+ tokenProgram?: web3.PublicKey;
60
+ anchorRemainingAccounts?: web3.AccountMeta[];
61
+ };
62
+ export declare const depositDriftInstructionDiscriminator: number[];
63
+ /**
64
+ * Creates a _DepositDrift_ instruction.
65
+ *
66
+ * @param accounts that will be accessed while the instruction is processed
67
+ * @param args to provide as instruction data to the program
68
+ *
69
+ * @category Instructions
70
+ * @category DepositDrift
71
+ * @category generated
72
+ */
73
+ export declare function createDepositDriftInstruction(accounts: DepositDriftInstructionAccounts, args: DepositDriftInstructionArgs, programId?: web3.PublicKey): web3.TransactionInstruction;
@@ -58,7 +58,7 @@ exports.depositDriftInstructionDiscriminator = [
58
58
  * @category DepositDrift
59
59
  * @category generated
60
60
  */
61
- function createDepositDriftInstruction(accounts, args, programId = new web3.PublicKey('9CtYQNCz3LaQ9DnqXa83q6gdHGwMeN6aQ7KqqotBmeke')) {
61
+ function createDepositDriftInstruction(accounts, args, programId = new web3.PublicKey('rf1ctRXK4bmG5XNttAMYfB3TKd2vQjFv5cfQhDBxdAQ')) {
62
62
  var _a;
63
63
  const [data] = exports.depositDriftStruct.serialize(Object.assign({ instructionDiscriminator: exports.depositDriftInstructionDiscriminator }, args));
64
64
  const keys = [
@@ -0,0 +1,54 @@
1
+ /**
2
+ * This code was GENERATED using the solita package.
3
+ * Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
4
+ *
5
+ * See: https://github.com/metaplex-foundation/solita
6
+ */
7
+ import * as beet from '@metaplex-foundation/beet';
8
+ import * as web3 from '@solana/web3.js';
9
+ /**
10
+ * @category Instructions
11
+ * @category FreezeProgram
12
+ * @category generated
13
+ */
14
+ export type FreezeProgramInstructionArgs = {
15
+ freeze: boolean;
16
+ programIndex: number;
17
+ };
18
+ /**
19
+ * @category Instructions
20
+ * @category FreezeProgram
21
+ * @category generated
22
+ */
23
+ export declare const freezeProgramStruct: beet.BeetArgsStruct<FreezeProgramInstructionArgs & {
24
+ instructionDiscriminator: number[];
25
+ }>;
26
+ /**
27
+ * Accounts required by the _freezeProgram_ instruction
28
+ *
29
+ * @property [_writable_] main
30
+ * @property [_writable_, **signer**] admin
31
+ * @property [_writable_] adminPermissions
32
+ * @category Instructions
33
+ * @category FreezeProgram
34
+ * @category generated
35
+ */
36
+ export type FreezeProgramInstructionAccounts = {
37
+ main: web3.PublicKey;
38
+ admin: web3.PublicKey;
39
+ systemProgram?: web3.PublicKey;
40
+ adminPermissions: web3.PublicKey;
41
+ anchorRemainingAccounts?: web3.AccountMeta[];
42
+ };
43
+ export declare const freezeProgramInstructionDiscriminator: number[];
44
+ /**
45
+ * Creates a _FreezeProgram_ instruction.
46
+ *
47
+ * @param accounts that will be accessed while the instruction is processed
48
+ * @param args to provide as instruction data to the program
49
+ *
50
+ * @category Instructions
51
+ * @category FreezeProgram
52
+ * @category generated
53
+ */
54
+ export declare function createFreezeProgramInstruction(accounts: FreezeProgramInstructionAccounts, args: FreezeProgramInstructionArgs, programId?: web3.PublicKey): web3.TransactionInstruction;
@@ -56,7 +56,7 @@ exports.freezeProgramInstructionDiscriminator = [
56
56
  * @category FreezeProgram
57
57
  * @category generated
58
58
  */
59
- function createFreezeProgramInstruction(accounts, args, programId = new web3.PublicKey('9CtYQNCz3LaQ9DnqXa83q6gdHGwMeN6aQ7KqqotBmeke')) {
59
+ function createFreezeProgramInstruction(accounts, args, programId = new web3.PublicKey('rf1ctRXK4bmG5XNttAMYfB3TKd2vQjFv5cfQhDBxdAQ')) {
60
60
  var _a;
61
61
  const [data] = exports.freezeProgramStruct.serialize(Object.assign({ instructionDiscriminator: exports.freezeProgramInstructionDiscriminator }, args));
62
62
  const keys = [
@@ -0,0 +1,55 @@
1
+ /**
2
+ * This code was GENERATED using the solita package.
3
+ * Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
4
+ *
5
+ * See: https://github.com/metaplex-foundation/solita
6
+ */
7
+ import * as beet from '@metaplex-foundation/beet';
8
+ import * as web3 from '@solana/web3.js';
9
+ import { Action } from '../types/Action';
10
+ /**
11
+ * @category Instructions
12
+ * @category FreezeProtocolAction
13
+ * @category generated
14
+ */
15
+ export type FreezeProtocolActionInstructionArgs = {
16
+ action: Action;
17
+ freeze: boolean;
18
+ };
19
+ /**
20
+ * @category Instructions
21
+ * @category FreezeProtocolAction
22
+ * @category generated
23
+ */
24
+ export declare const freezeProtocolActionStruct: beet.BeetArgsStruct<FreezeProtocolActionInstructionArgs & {
25
+ instructionDiscriminator: number[];
26
+ }>;
27
+ /**
28
+ * Accounts required by the _freezeProtocolAction_ instruction
29
+ *
30
+ * @property [_writable_] main
31
+ * @property [_writable_, **signer**] admin
32
+ * @property [_writable_] adminPermissions
33
+ * @category Instructions
34
+ * @category FreezeProtocolAction
35
+ * @category generated
36
+ */
37
+ export type FreezeProtocolActionInstructionAccounts = {
38
+ main: web3.PublicKey;
39
+ admin: web3.PublicKey;
40
+ systemProgram?: web3.PublicKey;
41
+ adminPermissions: web3.PublicKey;
42
+ anchorRemainingAccounts?: web3.AccountMeta[];
43
+ };
44
+ export declare const freezeProtocolActionInstructionDiscriminator: number[];
45
+ /**
46
+ * Creates a _FreezeProtocolAction_ instruction.
47
+ *
48
+ * @param accounts that will be accessed while the instruction is processed
49
+ * @param args to provide as instruction data to the program
50
+ *
51
+ * @category Instructions
52
+ * @category FreezeProtocolAction
53
+ * @category generated
54
+ */
55
+ export declare function createFreezeProtocolActionInstruction(accounts: FreezeProtocolActionInstructionAccounts, args: FreezeProtocolActionInstructionArgs, programId?: web3.PublicKey): web3.TransactionInstruction;
@@ -57,7 +57,7 @@ exports.freezeProtocolActionInstructionDiscriminator = [
57
57
  * @category FreezeProtocolAction
58
58
  * @category generated
59
59
  */
60
- function createFreezeProtocolActionInstruction(accounts, args, programId = new web3.PublicKey('9CtYQNCz3LaQ9DnqXa83q6gdHGwMeN6aQ7KqqotBmeke')) {
60
+ function createFreezeProtocolActionInstruction(accounts, args, programId = new web3.PublicKey('rf1ctRXK4bmG5XNttAMYfB3TKd2vQjFv5cfQhDBxdAQ')) {
61
61
  var _a;
62
62
  const [data] = exports.freezeProtocolActionStruct.serialize(Object.assign({ instructionDiscriminator: exports.freezeProtocolActionInstructionDiscriminator }, args));
63
63
  const keys = [