@reflectmoney/stable.ts 1.1.2 → 1.1.4

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 (175) hide show
  1. package/dist/classes/ApiClient.d.ts +56 -0
  2. package/dist/classes/PdaClient.d.ts +131 -0
  3. package/dist/classes/Reflect.d.ts +7 -0
  4. package/dist/classes/ReflectKeeper.d.ts +105 -0
  5. package/dist/classes/ReflectTokenisedBond.d.ts +75 -0
  6. package/dist/classes/Stablecoin.d.ts +219 -0
  7. package/dist/classes/index.d.ts +4 -0
  8. package/dist/constants/drift.d.ts +6 -0
  9. package/dist/constants/index.d.ts +8 -0
  10. package/dist/constants/jupiter.d.ts +4 -0
  11. package/dist/constants/lookupTables.d.ts +4 -0
  12. package/dist/constants/lst.d.ts +3 -0
  13. package/dist/constants/pyth.d.ts +1 -0
  14. package/dist/constants/usdc.d.ts +6 -0
  15. package/dist/constants/wsol.d.ts +6 -0
  16. package/dist/errors/ReflectError.d.ts +4 -0
  17. package/dist/generated/reflect_main/accounts/DriftJlpController.d.ts +114 -0
  18. package/dist/generated/reflect_main/accounts/DriftLstController.d.ts +108 -0
  19. package/dist/generated/reflect_main/accounts/DriftUsdcController.d.ts +126 -0
  20. package/dist/generated/reflect_main/accounts/Main.d.ts +110 -0
  21. package/dist/generated/reflect_main/accounts/PerpMarket.d.ts +226 -0
  22. package/dist/generated/reflect_main/accounts/PrelaunchOracle.d.ts +130 -0
  23. package/dist/generated/reflect_main/accounts/PythLazerOracle.d.ts +124 -0
  24. package/dist/generated/reflect_main/accounts/RebalanceLst.d.ts +111 -0
  25. package/dist/generated/reflect_main/accounts/SpotMarket.d.ts +377 -0
  26. package/dist/generated/reflect_main/accounts/User.d.ts +221 -0
  27. package/dist/generated/reflect_main/accounts/UserPermissions.d.ts +106 -0
  28. package/dist/generated/reflect_main/accounts/UserStats.d.ts +211 -0
  29. package/dist/generated/reflect_main/accounts/index.d.ts +38 -0
  30. package/dist/generated/reflect_main/errors/index.d.ts +969 -0
  31. package/dist/generated/reflect_main/index.d.ts +19 -0
  32. package/dist/generated/reflect_main/instructions/addLstDrift.d.ts +49 -0
  33. package/dist/generated/reflect_main/instructions/addSubAccount.d.ts +54 -0
  34. package/dist/generated/reflect_main/instructions/captureSpreadDrift.d.ts +66 -0
  35. package/dist/generated/reflect_main/instructions/captureSpreadDriftS1.d.ts +58 -0
  36. package/dist/generated/reflect_main/instructions/createAdminAccount.d.ts +51 -0
  37. package/dist/generated/reflect_main/instructions/createUserStatsAccount.d.ts +52 -0
  38. package/dist/generated/reflect_main/instructions/depositDrift.d.ts +73 -0
  39. package/dist/generated/reflect_main/instructions/freezeProgram.d.ts +54 -0
  40. package/dist/generated/reflect_main/instructions/freezeProtocolAction.d.ts +55 -0
  41. package/dist/generated/reflect_main/instructions/freezeStrategyAction.d.ts +58 -0
  42. package/dist/generated/reflect_main/instructions/index.d.ts +34 -0
  43. package/dist/generated/reflect_main/instructions/initDriftAccountsS1.d.ts +54 -0
  44. package/dist/generated/reflect_main/instructions/initDriftControllerS1.d.ts +58 -0
  45. package/dist/generated/reflect_main/instructions/initDriftControllerS3.d.ts +58 -0
  46. package/dist/generated/reflect_main/instructions/initMain.d.ts +43 -0
  47. package/dist/generated/reflect_main/instructions/mintDriftS1.d.ts +86 -0
  48. package/dist/generated/reflect_main/instructions/mintDriftS3.d.ts +86 -0
  49. package/dist/generated/reflect_main/instructions/processSwapDeposit.d.ts +69 -0
  50. package/dist/generated/reflect_main/instructions/processSwapWithdraw.d.ts +69 -0
  51. package/dist/generated/reflect_main/instructions/redeemDriftS1.d.ts +87 -0
  52. package/dist/generated/reflect_main/instructions/redeemDriftS3.d.ts +87 -0
  53. package/dist/generated/reflect_main/instructions/settlePnl.d.ts +55 -0
  54. package/dist/generated/reflect_main/instructions/settlePnlMulti.d.ts +65 -0
  55. package/dist/generated/reflect_main/instructions/suspendSplProtocol.d.ts +54 -0
  56. package/dist/generated/reflect_main/instructions/suspendSplStrategy.d.ts +56 -0
  57. package/dist/generated/reflect_main/instructions/swapOrca.d.ts +81 -0
  58. package/dist/generated/reflect_main/instructions/swapOrcaTwoHop.d.ts +101 -0
  59. package/dist/generated/reflect_main/instructions/updateActionRoleProtocol.d.ts +58 -0
  60. package/dist/generated/reflect_main/instructions/updateActionRoleStrategy.d.ts +60 -0
  61. package/dist/generated/reflect_main/instructions/updateAttenuation.d.ts +57 -0
  62. package/dist/generated/reflect_main/instructions/updateCap.d.ts +55 -0
  63. package/dist/generated/reflect_main/instructions/updateRebalanceSlippage.d.ts +55 -0
  64. package/dist/generated/reflect_main/instructions/updateRecipients.d.ts +56 -0
  65. package/dist/generated/reflect_main/instructions/updateRoleHolderProtocol.d.ts +60 -0
  66. package/dist/generated/reflect_main/instructions/updateRoleHolderStrategy.d.ts +60 -0
  67. package/dist/generated/reflect_main/types/AMM.d.ts +102 -0
  68. package/dist/generated/reflect_main/types/AccKey.d.ts +15 -0
  69. package/dist/generated/reflect_main/types/AccessControl.d.ts +18 -0
  70. package/dist/generated/reflect_main/types/AccessMap.d.ts +17 -0
  71. package/dist/generated/reflect_main/types/Action.d.ts +35 -0
  72. package/dist/generated/reflect_main/types/ActionMapping.d.ts +19 -0
  73. package/dist/generated/reflect_main/types/AssetTier.d.ts +23 -0
  74. package/dist/generated/reflect_main/types/Attenuation.d.ts +16 -0
  75. package/dist/generated/reflect_main/types/BalanceType.d.ts +20 -0
  76. package/dist/generated/reflect_main/types/Capture.d.ts +17 -0
  77. package/dist/generated/reflect_main/types/ContractTier.d.ts +24 -0
  78. package/dist/generated/reflect_main/types/ContractType.d.ts +20 -0
  79. package/dist/generated/reflect_main/types/CorpAction.d.ts +19 -0
  80. package/dist/generated/reflect_main/types/CustodyInfo.d.ts +20 -0
  81. package/dist/generated/reflect_main/types/DirectionCollateral.d.ts +20 -0
  82. package/dist/generated/reflect_main/types/DirectionPosition.d.ts +20 -0
  83. package/dist/generated/reflect_main/types/DriftControllerBase.d.ts +15 -0
  84. package/dist/generated/reflect_main/types/DriftJlpControllerFixedAccounts.d.ts +18 -0
  85. package/dist/generated/reflect_main/types/DriftLstData.d.ts +17 -0
  86. package/dist/generated/reflect_main/types/Ema.d.ts +17 -0
  87. package/dist/generated/reflect_main/types/Externals.d.ts +16 -0
  88. package/dist/generated/reflect_main/types/FlowControl.d.ts +17 -0
  89. package/dist/generated/reflect_main/types/HistoricalIndexData.d.ts +19 -0
  90. package/dist/generated/reflect_main/types/HistoricalOracleData.d.ts +20 -0
  91. package/dist/generated/reflect_main/types/Holding.d.ts +21 -0
  92. package/dist/generated/reflect_main/types/Holdings.d.ts +17 -0
  93. package/dist/generated/reflect_main/types/InsuranceClaim.d.ts +19 -0
  94. package/dist/generated/reflect_main/types/InsuranceFund.d.ts +24 -0
  95. package/dist/generated/reflect_main/types/JlpRebalanceSettings.d.ts +15 -0
  96. package/dist/generated/reflect_main/types/KillSwitch.d.ts +15 -0
  97. package/dist/generated/reflect_main/types/LevelRoles.d.ts +16 -0
  98. package/dist/generated/reflect_main/types/MarketStatus.d.ts +27 -0
  99. package/dist/generated/reflect_main/types/MarketType.d.ts +20 -0
  100. package/dist/generated/reflect_main/types/ModifyOrderParams.d.ts +32 -0
  101. package/dist/generated/reflect_main/types/ModifyOrderPolicy.d.ts +20 -0
  102. package/dist/generated/reflect_main/types/Movements.d.ts +19 -0
  103. package/dist/generated/reflect_main/types/OracleGuardRails.d.ts +18 -0
  104. package/dist/generated/reflect_main/types/OracleSource.d.ts +34 -0
  105. package/dist/generated/reflect_main/types/OracleValidity.d.ts +25 -0
  106. package/dist/generated/reflect_main/types/Order.d.ts +43 -0
  107. package/dist/generated/reflect_main/types/OrderDirection.d.ts +20 -0
  108. package/dist/generated/reflect_main/types/OrderParams.d.ts +36 -0
  109. package/dist/generated/reflect_main/types/OrderStatus.d.ts +22 -0
  110. package/dist/generated/reflect_main/types/OrderTriggerCondition.d.ts +22 -0
  111. package/dist/generated/reflect_main/types/OrderType.d.ts +23 -0
  112. package/dist/generated/reflect_main/types/PermissionLevel.d.ts +45 -0
  113. package/dist/generated/reflect_main/types/PerpHedge.d.ts +17 -0
  114. package/dist/generated/reflect_main/types/PerpPosition.d.ts +29 -0
  115. package/dist/generated/reflect_main/types/PoolBalance.d.ts +17 -0
  116. package/dist/generated/reflect_main/types/Position.d.ts +20 -0
  117. package/dist/generated/reflect_main/types/PositionDirection.d.ts +20 -0
  118. package/dist/generated/reflect_main/types/PositionDrift.d.ts +18 -0
  119. package/dist/generated/reflect_main/types/PostOnlyParam.d.ts +22 -0
  120. package/dist/generated/reflect_main/types/Price.d.ts +41 -0
  121. package/dist/generated/reflect_main/types/PriceComp.d.ts +19 -0
  122. package/dist/generated/reflect_main/types/PriceDivergenceGuardRails.d.ts +16 -0
  123. package/dist/generated/reflect_main/types/PriceInfo.d.ts +21 -0
  124. package/dist/generated/reflect_main/types/PriceStatus.d.ts +22 -0
  125. package/dist/generated/reflect_main/types/PriceType.d.ts +20 -0
  126. package/dist/generated/reflect_main/types/Program.d.ts +19 -0
  127. package/dist/generated/reflect_main/types/ProgramStatus.d.ts +20 -0
  128. package/dist/generated/reflect_main/types/Recipient.d.ts +17 -0
  129. package/dist/generated/reflect_main/types/Recipients.d.ts +17 -0
  130. package/dist/generated/reflect_main/types/Role.d.ts +25 -0
  131. package/dist/generated/reflect_main/types/ShiftCollateral.d.ts +19 -0
  132. package/dist/generated/reflect_main/types/ShiftPosition.d.ts +17 -0
  133. package/dist/generated/reflect_main/types/ShortHolding.d.ts +17 -0
  134. package/dist/generated/reflect_main/types/SplBase.d.ts +17 -0
  135. package/dist/generated/reflect_main/types/SplMain.d.ts +22 -0
  136. package/dist/generated/reflect_main/types/Spls.d.ts +17 -0
  137. package/dist/generated/reflect_main/types/SpotBalanceType.d.ts +20 -0
  138. package/dist/generated/reflect_main/types/SpotPosition.d.ts +23 -0
  139. package/dist/generated/reflect_main/types/Status.d.ts +21 -0
  140. package/dist/generated/reflect_main/types/Strategy.d.ts +32 -0
  141. package/dist/generated/reflect_main/types/StrategyPadding.d.ts +15 -0
  142. package/dist/generated/reflect_main/types/StrategyRoleEntry.d.ts +17 -0
  143. package/dist/generated/reflect_main/types/SubAccount.d.ts +17 -0
  144. package/dist/generated/reflect_main/types/Update.d.ts +20 -0
  145. package/dist/generated/reflect_main/types/UserFees.d.ts +20 -0
  146. package/dist/generated/reflect_main/types/ValidityGuardRails.d.ts +18 -0
  147. package/dist/generated/reflect_main/types/index.d.ts +80 -0
  148. package/dist/generated/reflect_tokenised_bonds/accounts/Admin.d.ts +99 -0
  149. package/dist/generated/reflect_tokenised_bonds/accounts/Config.d.ts +106 -0
  150. package/dist/generated/reflect_tokenised_bonds/accounts/Vault.d.ts +114 -0
  151. package/dist/generated/reflect_tokenised_bonds/accounts/index.d.ts +11 -0
  152. package/dist/generated/reflect_tokenised_bonds/errors/index.d.ts +144 -0
  153. package/dist/generated/reflect_tokenised_bonds/index.d.ts +19 -0
  154. package/dist/generated/reflect_tokenised_bonds/instructions/createVault.d.ts +50 -0
  155. package/dist/generated/reflect_tokenised_bonds/instructions/deposit.d.ts +62 -0
  156. package/dist/generated/reflect_tokenised_bonds/instructions/index.d.ts +4 -0
  157. package/dist/generated/reflect_tokenised_bonds/instructions/initialize.d.ts +43 -0
  158. package/dist/generated/reflect_tokenised_bonds/instructions/withdraw.d.ts +62 -0
  159. package/dist/generated/reflect_tokenised_bonds/types/DepositArgs.d.ts +17 -0
  160. package/dist/generated/reflect_tokenised_bonds/types/Permissions.d.ts +21 -0
  161. package/dist/generated/reflect_tokenised_bonds/types/WithdrawArgs.d.ts +16 -0
  162. package/dist/generated/reflect_tokenised_bonds/types/index.d.ts +3 -0
  163. package/dist/helpers/getOrcaQuote.d.ts +3 -0
  164. package/dist/idl/perpetuals.d.ts +5771 -0
  165. package/dist/index.d.ts +9 -0
  166. package/dist/index.js +1 -0
  167. package/dist/stablecoins/LstStablecoin.d.ts +103 -0
  168. package/dist/stablecoins/UsdcPlusStablecoin.d.ts +86 -0
  169. package/dist/stablecoins/UsdjStablecoin.d.ts +1 -0
  170. package/dist/stablecoins/index.d.ts +3 -0
  171. package/dist/types/api.d.ts +1172 -0
  172. package/dist/types/api.js +6 -0
  173. package/dist/types/index.d.ts +81 -0
  174. package/dist/types/index.js +2 -0
  175. package/package.json +1 -1
@@ -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 = "9CtYQNCz3LaQ9DnqXa83q6gdHGwMeN6aQ7KqqotBmeke";
13
+ /**
14
+ * Program public key
15
+ *
16
+ * @category constants
17
+ * @category generated
18
+ */
19
+ export declare const PROGRAM_ID: PublicKey;
@@ -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;
@@ -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;
@@ -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
+ subAccountId: number;
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 [_writable_] 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;
@@ -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,51 @@
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
+ };
17
+ /**
18
+ * @category Instructions
19
+ * @category CreateAdminAccount
20
+ * @category generated
21
+ */
22
+ export declare const createAdminAccountStruct: beet.BeetArgsStruct<CreateAdminAccountInstructionArgs & {
23
+ instructionDiscriminator: number[];
24
+ }>;
25
+ /**
26
+ * Accounts required by the _createAdminAccount_ instruction
27
+ *
28
+ * @property [_writable_] newCreds
29
+ * @property [_writable_, **signer**] caller
30
+ * @category Instructions
31
+ * @category CreateAdminAccount
32
+ * @category generated
33
+ */
34
+ export type CreateAdminAccountInstructionAccounts = {
35
+ newCreds: web3.PublicKey;
36
+ caller: web3.PublicKey;
37
+ systemProgram?: web3.PublicKey;
38
+ anchorRemainingAccounts?: web3.AccountMeta[];
39
+ };
40
+ export declare const createAdminAccountInstructionDiscriminator: number[];
41
+ /**
42
+ * Creates a _CreateAdminAccount_ instruction.
43
+ *
44
+ * @param accounts that will be accessed while the instruction is processed
45
+ * @param args to provide as instruction data to the program
46
+ *
47
+ * @category Instructions
48
+ * @category CreateAdminAccount
49
+ * @category generated
50
+ */
51
+ export declare function createCreateAdminAccountInstruction(accounts: CreateAdminAccountInstructionAccounts, args: CreateAdminAccountInstructionArgs, 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 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;
@@ -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;
@@ -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;
@@ -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;
@@ -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
+ import { Action } from '../types/Action';
10
+ /**
11
+ * @category Instructions
12
+ * @category FreezeStrategyAction
13
+ * @category generated
14
+ */
15
+ export type FreezeStrategyActionInstructionArgs = {
16
+ action: Action;
17
+ freeze: boolean;
18
+ strategyId: number;
19
+ };
20
+ /**
21
+ * @category Instructions
22
+ * @category FreezeStrategyAction
23
+ * @category generated
24
+ */
25
+ export declare const freezeStrategyActionStruct: beet.BeetArgsStruct<FreezeStrategyActionInstructionArgs & {
26
+ instructionDiscriminator: number[];
27
+ }>;
28
+ /**
29
+ * Accounts required by the _freezeStrategyAction_ instruction
30
+ *
31
+ * @property [_writable_] main
32
+ * @property [_writable_, **signer**] admin
33
+ * @property [_writable_] strategy
34
+ * @property [_writable_] adminPermissions
35
+ * @category Instructions
36
+ * @category FreezeStrategyAction
37
+ * @category generated
38
+ */
39
+ export type FreezeStrategyActionInstructionAccounts = {
40
+ main: web3.PublicKey;
41
+ admin: web3.PublicKey;
42
+ systemProgram?: web3.PublicKey;
43
+ strategy: web3.PublicKey;
44
+ adminPermissions: web3.PublicKey;
45
+ anchorRemainingAccounts?: web3.AccountMeta[];
46
+ };
47
+ export declare const freezeStrategyActionInstructionDiscriminator: number[];
48
+ /**
49
+ * Creates a _FreezeStrategyAction_ instruction.
50
+ *
51
+ * @param accounts that will be accessed while the instruction is processed
52
+ * @param args to provide as instruction data to the program
53
+ *
54
+ * @category Instructions
55
+ * @category FreezeStrategyAction
56
+ * @category generated
57
+ */
58
+ export declare function createFreezeStrategyActionInstruction(accounts: FreezeStrategyActionInstructionAccounts, args: FreezeStrategyActionInstructionArgs, programId?: web3.PublicKey): web3.TransactionInstruction;
@@ -0,0 +1,34 @@
1
+ export * from './addLstDrift';
2
+ export * from './addSubAccount';
3
+ export * from './captureSpreadDrift';
4
+ export * from './captureSpreadDriftS1';
5
+ export * from './createAdminAccount';
6
+ export * from './createUserStatsAccount';
7
+ export * from './depositDrift';
8
+ export * from './freezeProgram';
9
+ export * from './freezeProtocolAction';
10
+ export * from './freezeStrategyAction';
11
+ export * from './initDriftAccountsS1';
12
+ export * from './initDriftControllerS1';
13
+ export * from './initDriftControllerS3';
14
+ export * from './initMain';
15
+ export * from './mintDriftS1';
16
+ export * from './mintDriftS3';
17
+ export * from './processSwapDeposit';
18
+ export * from './processSwapWithdraw';
19
+ export * from './redeemDriftS1';
20
+ export * from './redeemDriftS3';
21
+ export * from './settlePnl';
22
+ export * from './settlePnlMulti';
23
+ export * from './suspendSplProtocol';
24
+ export * from './suspendSplStrategy';
25
+ export * from './swapOrca';
26
+ export * from './swapOrcaTwoHop';
27
+ export * from './updateActionRoleProtocol';
28
+ export * from './updateActionRoleStrategy';
29
+ export * from './updateAttenuation';
30
+ export * from './updateCap';
31
+ export * from './updateRebalanceSlippage';
32
+ export * from './updateRecipients';
33
+ export * from './updateRoleHolderProtocol';
34
+ export * from './updateRoleHolderStrategy';
@@ -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 InitDriftAccountsS1
12
+ * @category generated
13
+ */
14
+ export declare const initDriftAccountsS1Struct: beet.BeetArgsStruct<{
15
+ instructionDiscriminator: number[];
16
+ }>;
17
+ /**
18
+ * Accounts required by the _initDriftAccountsS1_ instruction
19
+ *
20
+ * @property [_writable_] main
21
+ * @property [_writable_] usdcController
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 InitDriftAccountsS1
30
+ * @category generated
31
+ */
32
+ export type InitDriftAccountsS1InstructionAccounts = {
33
+ main: web3.PublicKey;
34
+ usdcController: 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 initDriftAccountsS1InstructionDiscriminator: number[];
46
+ /**
47
+ * Creates a _InitDriftAccountsS1_ instruction.
48
+ *
49
+ * @param accounts that will be accessed while the instruction is processed
50
+ * @category Instructions
51
+ * @category InitDriftAccountsS1
52
+ * @category generated
53
+ */
54
+ export declare function createInitDriftAccountsS1Instruction(accounts: InitDriftAccountsS1InstructionAccounts, programId?: web3.PublicKey): web3.TransactionInstruction;