@reflectmoney/stable.ts 1.1.1 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (176) hide show
  1. package/dist/index.js +1 -0
  2. package/package.json +1 -1
  3. package/dist/classes/PdaClient.d.ts +0 -131
  4. package/dist/classes/Reflect.d.ts +0 -7
  5. package/dist/classes/ReflectAdmin.d.ts +0 -104
  6. package/dist/classes/ReflectAdmin.js +0 -219
  7. package/dist/classes/ReflectKeeper.d.ts +0 -107
  8. package/dist/classes/ReflectTokenisedBond.d.ts +0 -75
  9. package/dist/classes/Stablecoin.d.ts +0 -187
  10. package/dist/classes/index.d.ts +0 -4
  11. package/dist/constants/drift.d.ts +0 -6
  12. package/dist/constants/index.d.ts +0 -7
  13. package/dist/constants/jupiter.d.ts +0 -4
  14. package/dist/constants/lookupTables.d.ts +0 -4
  15. package/dist/constants/lst.d.ts +0 -3
  16. package/dist/constants/pyth.d.ts +0 -1
  17. package/dist/constants/usdc.d.ts +0 -6
  18. package/dist/constants/wsol.d.ts +0 -6
  19. package/dist/errors/ReflectError.d.ts +0 -4
  20. package/dist/generated/reflect_main/accounts/DriftJlpController.d.ts +0 -116
  21. package/dist/generated/reflect_main/accounts/DriftLstController.d.ts +0 -110
  22. package/dist/generated/reflect_main/accounts/DriftUsdcController.d.ts +0 -136
  23. package/dist/generated/reflect_main/accounts/Main.d.ts +0 -112
  24. package/dist/generated/reflect_main/accounts/PerpMarket.d.ts +0 -228
  25. package/dist/generated/reflect_main/accounts/PrelaunchOracle.d.ts +0 -132
  26. package/dist/generated/reflect_main/accounts/PythLazerOracle.d.ts +0 -126
  27. package/dist/generated/reflect_main/accounts/RebalanceLst.d.ts +0 -113
  28. package/dist/generated/reflect_main/accounts/SpotMarket.d.ts +0 -379
  29. package/dist/generated/reflect_main/accounts/User.d.ts +0 -223
  30. package/dist/generated/reflect_main/accounts/UserPermissions.d.ts +0 -108
  31. package/dist/generated/reflect_main/accounts/UserStats.d.ts +0 -213
  32. package/dist/generated/reflect_main/accounts/index.d.ts +0 -38
  33. package/dist/generated/reflect_main/errors/index.d.ts +0 -969
  34. package/dist/generated/reflect_main/index.d.ts +0 -19
  35. package/dist/generated/reflect_main/instructions/addLstDrift.d.ts +0 -49
  36. package/dist/generated/reflect_main/instructions/addSubAccount.d.ts +0 -54
  37. package/dist/generated/reflect_main/instructions/captureSpreadDrift.d.ts +0 -66
  38. package/dist/generated/reflect_main/instructions/captureSpreadDriftS1.d.ts +0 -58
  39. package/dist/generated/reflect_main/instructions/createAdminAccount.d.ts +0 -51
  40. package/dist/generated/reflect_main/instructions/createUserStatsAccount.d.ts +0 -52
  41. package/dist/generated/reflect_main/instructions/depositDrift.d.ts +0 -73
  42. package/dist/generated/reflect_main/instructions/freezeProgram.d.ts +0 -54
  43. package/dist/generated/reflect_main/instructions/freezeProtocolAction.d.ts +0 -55
  44. package/dist/generated/reflect_main/instructions/freezeStrategyAction.d.ts +0 -58
  45. package/dist/generated/reflect_main/instructions/index.d.ts +0 -34
  46. package/dist/generated/reflect_main/instructions/initDriftAccountsS1.d.ts +0 -54
  47. package/dist/generated/reflect_main/instructions/initDriftControllerS1.d.ts +0 -60
  48. package/dist/generated/reflect_main/instructions/initDriftControllerS3.d.ts +0 -58
  49. package/dist/generated/reflect_main/instructions/initMain.d.ts +0 -43
  50. package/dist/generated/reflect_main/instructions/mintDriftS1.d.ts +0 -86
  51. package/dist/generated/reflect_main/instructions/mintDriftS3.d.ts +0 -86
  52. package/dist/generated/reflect_main/instructions/processSwapDeposit.d.ts +0 -69
  53. package/dist/generated/reflect_main/instructions/processSwapWithdraw.d.ts +0 -69
  54. package/dist/generated/reflect_main/instructions/redeemDriftS1.d.ts +0 -87
  55. package/dist/generated/reflect_main/instructions/redeemDriftS3.d.ts +0 -87
  56. package/dist/generated/reflect_main/instructions/settlePnl.d.ts +0 -55
  57. package/dist/generated/reflect_main/instructions/settlePnlMulti.d.ts +0 -65
  58. package/dist/generated/reflect_main/instructions/suspendSplProtocol.d.ts +0 -54
  59. package/dist/generated/reflect_main/instructions/suspendSplStrategy.d.ts +0 -56
  60. package/dist/generated/reflect_main/instructions/swapOrca.d.ts +0 -81
  61. package/dist/generated/reflect_main/instructions/swapOrcaTwoHop.d.ts +0 -101
  62. package/dist/generated/reflect_main/instructions/updateActionRoleProtocol.d.ts +0 -58
  63. package/dist/generated/reflect_main/instructions/updateActionRoleStrategy.d.ts +0 -60
  64. package/dist/generated/reflect_main/instructions/updateAttenuation.d.ts +0 -57
  65. package/dist/generated/reflect_main/instructions/updateCap.d.ts +0 -55
  66. package/dist/generated/reflect_main/instructions/updateRebalanceSlippage.d.ts +0 -55
  67. package/dist/generated/reflect_main/instructions/updateRecipients.d.ts +0 -56
  68. package/dist/generated/reflect_main/instructions/updateRoleHolderProtocol.d.ts +0 -60
  69. package/dist/generated/reflect_main/instructions/updateRoleHolderStrategy.d.ts +0 -60
  70. package/dist/generated/reflect_main/types/AMM.d.ts +0 -102
  71. package/dist/generated/reflect_main/types/AccKey.d.ts +0 -15
  72. package/dist/generated/reflect_main/types/AccessControl.d.ts +0 -18
  73. package/dist/generated/reflect_main/types/AccessMap.d.ts +0 -17
  74. package/dist/generated/reflect_main/types/Action.d.ts +0 -35
  75. package/dist/generated/reflect_main/types/ActionMapping.d.ts +0 -19
  76. package/dist/generated/reflect_main/types/AssetTier.d.ts +0 -23
  77. package/dist/generated/reflect_main/types/Attenuation.d.ts +0 -16
  78. package/dist/generated/reflect_main/types/BalanceType.d.ts +0 -20
  79. package/dist/generated/reflect_main/types/Capture.d.ts +0 -17
  80. package/dist/generated/reflect_main/types/ContractTier.d.ts +0 -24
  81. package/dist/generated/reflect_main/types/ContractType.d.ts +0 -20
  82. package/dist/generated/reflect_main/types/CorpAction.d.ts +0 -19
  83. package/dist/generated/reflect_main/types/CustodyInfo.d.ts +0 -20
  84. package/dist/generated/reflect_main/types/DirectionCollateral.d.ts +0 -20
  85. package/dist/generated/reflect_main/types/DirectionPosition.d.ts +0 -20
  86. package/dist/generated/reflect_main/types/DriftControllerBase.d.ts +0 -15
  87. package/dist/generated/reflect_main/types/DriftJlpControllerFixedAccounts.d.ts +0 -18
  88. package/dist/generated/reflect_main/types/DriftLstData.d.ts +0 -17
  89. package/dist/generated/reflect_main/types/Ema.d.ts +0 -17
  90. package/dist/generated/reflect_main/types/Externals.d.ts +0 -16
  91. package/dist/generated/reflect_main/types/FlowControl.d.ts +0 -17
  92. package/dist/generated/reflect_main/types/HistoricalIndexData.d.ts +0 -19
  93. package/dist/generated/reflect_main/types/HistoricalOracleData.d.ts +0 -20
  94. package/dist/generated/reflect_main/types/Holding.d.ts +0 -21
  95. package/dist/generated/reflect_main/types/Holdings.d.ts +0 -17
  96. package/dist/generated/reflect_main/types/InsuranceClaim.d.ts +0 -19
  97. package/dist/generated/reflect_main/types/InsuranceFund.d.ts +0 -24
  98. package/dist/generated/reflect_main/types/JlpRebalanceSettings.d.ts +0 -15
  99. package/dist/generated/reflect_main/types/KillSwitch.d.ts +0 -15
  100. package/dist/generated/reflect_main/types/LevelRoles.d.ts +0 -16
  101. package/dist/generated/reflect_main/types/MarketStatus.d.ts +0 -27
  102. package/dist/generated/reflect_main/types/MarketType.d.ts +0 -20
  103. package/dist/generated/reflect_main/types/ModifyOrderParams.d.ts +0 -32
  104. package/dist/generated/reflect_main/types/ModifyOrderPolicy.d.ts +0 -20
  105. package/dist/generated/reflect_main/types/Movements.d.ts +0 -19
  106. package/dist/generated/reflect_main/types/OracleGuardRails.d.ts +0 -18
  107. package/dist/generated/reflect_main/types/OracleSource.d.ts +0 -34
  108. package/dist/generated/reflect_main/types/OracleValidity.d.ts +0 -25
  109. package/dist/generated/reflect_main/types/Order.d.ts +0 -43
  110. package/dist/generated/reflect_main/types/OrderDirection.d.ts +0 -20
  111. package/dist/generated/reflect_main/types/OrderParams.d.ts +0 -36
  112. package/dist/generated/reflect_main/types/OrderStatus.d.ts +0 -22
  113. package/dist/generated/reflect_main/types/OrderTriggerCondition.d.ts +0 -22
  114. package/dist/generated/reflect_main/types/OrderType.d.ts +0 -23
  115. package/dist/generated/reflect_main/types/PermissionLevel.d.ts +0 -51
  116. package/dist/generated/reflect_main/types/PerpHedge.d.ts +0 -17
  117. package/dist/generated/reflect_main/types/PerpPosition.d.ts +0 -29
  118. package/dist/generated/reflect_main/types/PoolBalance.d.ts +0 -17
  119. package/dist/generated/reflect_main/types/Position.d.ts +0 -20
  120. package/dist/generated/reflect_main/types/PositionDirection.d.ts +0 -20
  121. package/dist/generated/reflect_main/types/PositionDrift.d.ts +0 -18
  122. package/dist/generated/reflect_main/types/PostOnlyParam.d.ts +0 -22
  123. package/dist/generated/reflect_main/types/Price.d.ts +0 -41
  124. package/dist/generated/reflect_main/types/PriceComp.d.ts +0 -19
  125. package/dist/generated/reflect_main/types/PriceDivergenceGuardRails.d.ts +0 -16
  126. package/dist/generated/reflect_main/types/PriceInfo.d.ts +0 -21
  127. package/dist/generated/reflect_main/types/PriceStatus.d.ts +0 -22
  128. package/dist/generated/reflect_main/types/PriceType.d.ts +0 -20
  129. package/dist/generated/reflect_main/types/Program.d.ts +0 -19
  130. package/dist/generated/reflect_main/types/ProgramStatus.d.ts +0 -20
  131. package/dist/generated/reflect_main/types/Recipient.d.ts +0 -17
  132. package/dist/generated/reflect_main/types/Recipients.d.ts +0 -17
  133. package/dist/generated/reflect_main/types/Role.d.ts +0 -25
  134. package/dist/generated/reflect_main/types/ShiftCollateral.d.ts +0 -19
  135. package/dist/generated/reflect_main/types/ShiftPosition.d.ts +0 -17
  136. package/dist/generated/reflect_main/types/ShortHolding.d.ts +0 -17
  137. package/dist/generated/reflect_main/types/SplBase.d.ts +0 -17
  138. package/dist/generated/reflect_main/types/SplMain.d.ts +0 -22
  139. package/dist/generated/reflect_main/types/Spls.d.ts +0 -17
  140. package/dist/generated/reflect_main/types/SpotBalanceType.d.ts +0 -20
  141. package/dist/generated/reflect_main/types/SpotPosition.d.ts +0 -23
  142. package/dist/generated/reflect_main/types/Status.d.ts +0 -21
  143. package/dist/generated/reflect_main/types/Strategy.d.ts +0 -32
  144. package/dist/generated/reflect_main/types/StrategyPadding.d.ts +0 -15
  145. package/dist/generated/reflect_main/types/StrategyRoleEntry.d.ts +0 -17
  146. package/dist/generated/reflect_main/types/SubAccount.d.ts +0 -17
  147. package/dist/generated/reflect_main/types/Update.d.ts +0 -20
  148. package/dist/generated/reflect_main/types/UserFees.d.ts +0 -20
  149. package/dist/generated/reflect_main/types/ValidityGuardRails.d.ts +0 -18
  150. package/dist/generated/reflect_main/types/index.d.ts +0 -80
  151. package/dist/generated/reflect_tokenised_bonds/accounts/Admin.d.ts +0 -101
  152. package/dist/generated/reflect_tokenised_bonds/accounts/Config.d.ts +0 -108
  153. package/dist/generated/reflect_tokenised_bonds/accounts/Vault.d.ts +0 -116
  154. package/dist/generated/reflect_tokenised_bonds/accounts/index.d.ts +0 -11
  155. package/dist/generated/reflect_tokenised_bonds/errors/index.d.ts +0 -144
  156. package/dist/generated/reflect_tokenised_bonds/index.d.ts +0 -19
  157. package/dist/generated/reflect_tokenised_bonds/instructions/createVault.d.ts +0 -50
  158. package/dist/generated/reflect_tokenised_bonds/instructions/deposit.d.ts +0 -62
  159. package/dist/generated/reflect_tokenised_bonds/instructions/index.d.ts +0 -4
  160. package/dist/generated/reflect_tokenised_bonds/instructions/initialize.d.ts +0 -43
  161. package/dist/generated/reflect_tokenised_bonds/instructions/withdraw.d.ts +0 -62
  162. package/dist/generated/reflect_tokenised_bonds/types/DepositArgs.d.ts +0 -17
  163. package/dist/generated/reflect_tokenised_bonds/types/Permissions.d.ts +0 -21
  164. package/dist/generated/reflect_tokenised_bonds/types/WithdrawArgs.d.ts +0 -16
  165. package/dist/generated/reflect_tokenised_bonds/types/index.d.ts +0 -3
  166. package/dist/helpers/getOrcaQuote.d.ts +0 -3
  167. package/dist/idl/perpetuals.d.ts +0 -5771
  168. package/dist/index.d.ts +0 -8
  169. package/dist/stablecoins/JlpStablecoin.d.ts +0 -1
  170. package/dist/stablecoins/JlpStablecoin.js +0 -44
  171. package/dist/stablecoins/LstStablecoin.d.ts +0 -65
  172. package/dist/stablecoins/UsdcPlusStablecoin.d.ts +0 -68
  173. package/dist/stablecoins/UsdcStablecoin.d.ts +0 -64
  174. package/dist/stablecoins/UsdcStablecoin.js +0 -145
  175. package/dist/stablecoins/UsdjStablecoin.d.ts +0 -1
  176. package/dist/stablecoins/index.d.ts +0 -3
@@ -1,55 +0,0 @@
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 SettlePnl
12
- * @category generated
13
- */
14
- export declare const settlePnlStruct: beet.BeetArgsStruct<{
15
- instructionDiscriminator: number[];
16
- }>;
17
- /**
18
- * Accounts required by the _settlePnl_ instruction
19
- *
20
- * @property [_writable_, **signer**] settler
21
- * @property [_writable_] main
22
- * @property [_writable_] strategyController
23
- * @property [] adminPermissions (optional)
24
- * @property [] drift
25
- * @property [_writable_] state
26
- * @property [_writable_] userAccount
27
- * @property [_writable_] usdcMarketVault
28
- * @category Instructions
29
- * @category SettlePnl
30
- * @category generated
31
- */
32
- export type SettlePnlInstructionAccounts = {
33
- settler: web3.PublicKey;
34
- main: web3.PublicKey;
35
- strategyController: web3.PublicKey;
36
- adminPermissions?: web3.PublicKey;
37
- drift: web3.PublicKey;
38
- state: web3.PublicKey;
39
- userAccount: web3.PublicKey;
40
- usdcMarketVault: web3.PublicKey;
41
- anchorRemainingAccounts?: web3.AccountMeta[];
42
- };
43
- export declare const settlePnlInstructionDiscriminator: number[];
44
- /**
45
- * Creates a _SettlePnl_ instruction.
46
- *
47
- * Optional accounts that are not provided default to the program ID since
48
- * this was indicated in the IDL from which this instruction was generated.
49
- *
50
- * @param accounts that will be accessed while the instruction is processed
51
- * @category Instructions
52
- * @category SettlePnl
53
- * @category generated
54
- */
55
- export declare function createSettlePnlInstruction(accounts: SettlePnlInstructionAccounts, programId?: web3.PublicKey): web3.TransactionInstruction;
@@ -1,65 +0,0 @@
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 SettlePnlMulti
12
- * @category generated
13
- */
14
- export type SettlePnlMultiInstructionArgs = {
15
- marketIndexes: number[];
16
- };
17
- /**
18
- * @category Instructions
19
- * @category SettlePnlMulti
20
- * @category generated
21
- */
22
- export declare const settlePnlMultiStruct: beet.FixableBeetArgsStruct<SettlePnlMultiInstructionArgs & {
23
- instructionDiscriminator: number[];
24
- }>;
25
- /**
26
- * Accounts required by the _settlePnlMulti_ instruction
27
- *
28
- * @property [_writable_, **signer**] settler
29
- * @property [_writable_] main
30
- * @property [_writable_] strategyController
31
- * @property [] adminPermissions (optional)
32
- * @property [] drift
33
- * @property [_writable_] state
34
- * @property [_writable_] userAccount
35
- * @property [_writable_] usdcMarketVault
36
- * @category Instructions
37
- * @category SettlePnlMulti
38
- * @category generated
39
- */
40
- export type SettlePnlMultiInstructionAccounts = {
41
- settler: 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
- usdcMarketVault: web3.PublicKey;
49
- anchorRemainingAccounts?: web3.AccountMeta[];
50
- };
51
- export declare const settlePnlMultiInstructionDiscriminator: number[];
52
- /**
53
- * Creates a _SettlePnlMulti_ instruction.
54
- *
55
- * Optional accounts that are not provided default to the program ID since
56
- * this was indicated in the IDL from which this instruction was generated.
57
- *
58
- * @param accounts that will be accessed while the instruction is processed
59
- * @param args to provide as instruction data to the program
60
- *
61
- * @category Instructions
62
- * @category SettlePnlMulti
63
- * @category generated
64
- */
65
- export declare function createSettlePnlMultiInstruction(accounts: SettlePnlMultiInstructionAccounts, args: SettlePnlMultiInstructionArgs, programId?: web3.PublicKey): web3.TransactionInstruction;
@@ -1,54 +0,0 @@
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 SuspendSplProtocol
12
- * @category generated
13
- */
14
- export type SuspendSplProtocolInstructionArgs = {
15
- lstMint: web3.PublicKey;
16
- freeze: boolean;
17
- };
18
- /**
19
- * @category Instructions
20
- * @category SuspendSplProtocol
21
- * @category generated
22
- */
23
- export declare const suspendSplProtocolStruct: beet.BeetArgsStruct<SuspendSplProtocolInstructionArgs & {
24
- instructionDiscriminator: number[];
25
- }>;
26
- /**
27
- * Accounts required by the _suspendSplProtocol_ instruction
28
- *
29
- * @property [_writable_] main
30
- * @property [_writable_, **signer**] admin
31
- * @property [_writable_] adminPermissions
32
- * @category Instructions
33
- * @category SuspendSplProtocol
34
- * @category generated
35
- */
36
- export type SuspendSplProtocolInstructionAccounts = {
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 suspendSplProtocolInstructionDiscriminator: number[];
44
- /**
45
- * Creates a _SuspendSplProtocol_ 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 SuspendSplProtocol
52
- * @category generated
53
- */
54
- export declare function createSuspendSplProtocolInstruction(accounts: SuspendSplProtocolInstructionAccounts, args: SuspendSplProtocolInstructionArgs, programId?: web3.PublicKey): web3.TransactionInstruction;
@@ -1,56 +0,0 @@
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 SuspendSplStrategy
12
- * @category generated
13
- */
14
- export type SuspendSplStrategyInstructionArgs = {
15
- lstMint: web3.PublicKey;
16
- freeze: boolean;
17
- };
18
- /**
19
- * @category Instructions
20
- * @category SuspendSplStrategy
21
- * @category generated
22
- */
23
- export declare const suspendSplStrategyStruct: beet.BeetArgsStruct<SuspendSplStrategyInstructionArgs & {
24
- instructionDiscriminator: number[];
25
- }>;
26
- /**
27
- * Accounts required by the _suspendSplStrategy_ instruction
28
- *
29
- * @property [_writable_] main
30
- * @property [_writable_, **signer**] admin
31
- * @property [_writable_] strategy
32
- * @property [_writable_] adminPermissions
33
- * @category Instructions
34
- * @category SuspendSplStrategy
35
- * @category generated
36
- */
37
- export type SuspendSplStrategyInstructionAccounts = {
38
- main: web3.PublicKey;
39
- admin: web3.PublicKey;
40
- systemProgram?: web3.PublicKey;
41
- strategy: web3.PublicKey;
42
- adminPermissions: web3.PublicKey;
43
- anchorRemainingAccounts?: web3.AccountMeta[];
44
- };
45
- export declare const suspendSplStrategyInstructionDiscriminator: number[];
46
- /**
47
- * Creates a _SuspendSplStrategy_ instruction.
48
- *
49
- * @param accounts that will be accessed while the instruction is processed
50
- * @param args to provide as instruction data to the program
51
- *
52
- * @category Instructions
53
- * @category SuspendSplStrategy
54
- * @category generated
55
- */
56
- export declare function createSuspendSplStrategyInstruction(accounts: SuspendSplStrategyInstructionAccounts, args: SuspendSplStrategyInstructionArgs, programId?: web3.PublicKey): web3.TransactionInstruction;
@@ -1,81 +0,0 @@
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 SwapOrca
12
- * @category generated
13
- */
14
- export type SwapOrcaInstructionArgs = {
15
- amount: beet.bignum;
16
- otherAmountThreshold: beet.bignum;
17
- sqrtPriceLimit: beet.bignum;
18
- aToB: boolean;
19
- };
20
- /**
21
- * @category Instructions
22
- * @category SwapOrca
23
- * @category generated
24
- */
25
- export declare const swapOrcaStruct: beet.BeetArgsStruct<SwapOrcaInstructionArgs & {
26
- instructionDiscriminator: number[];
27
- }>;
28
- /**
29
- * Accounts required by the _swapOrca_ instruction
30
- *
31
- * @property [_writable_, **signer**] admin
32
- * @property [] main
33
- * @property [_writable_] strategy
34
- * @property [] adminPermissions (optional)
35
- * @property [_writable_] whirlpool
36
- * @property [] whirlpoolProgram
37
- * @property [_writable_] tokenOwnerAccountA
38
- * @property [_writable_] tokenVaultA
39
- * @property [_writable_] tokenOwnerAccountB
40
- * @property [_writable_] tokenVaultB
41
- * @property [_writable_] tickArray0
42
- * @property [_writable_] tickArray1
43
- * @property [_writable_] tickArray2
44
- * @property [_writable_] oracle
45
- * @category Instructions
46
- * @category SwapOrca
47
- * @category generated
48
- */
49
- export type SwapOrcaInstructionAccounts = {
50
- admin: web3.PublicKey;
51
- main: web3.PublicKey;
52
- strategy: web3.PublicKey;
53
- adminPermissions?: web3.PublicKey;
54
- whirlpool: web3.PublicKey;
55
- whirlpoolProgram: web3.PublicKey;
56
- tokenProgram?: web3.PublicKey;
57
- tokenOwnerAccountA: web3.PublicKey;
58
- tokenVaultA: web3.PublicKey;
59
- tokenOwnerAccountB: web3.PublicKey;
60
- tokenVaultB: web3.PublicKey;
61
- tickArray0: web3.PublicKey;
62
- tickArray1: web3.PublicKey;
63
- tickArray2: web3.PublicKey;
64
- oracle: web3.PublicKey;
65
- anchorRemainingAccounts?: web3.AccountMeta[];
66
- };
67
- export declare const swapOrcaInstructionDiscriminator: number[];
68
- /**
69
- * Creates a _SwapOrca_ instruction.
70
- *
71
- * Optional accounts that are not provided default to the program ID since
72
- * this was indicated in the IDL from which this instruction was generated.
73
- *
74
- * @param accounts that will be accessed while the instruction is processed
75
- * @param args to provide as instruction data to the program
76
- *
77
- * @category Instructions
78
- * @category SwapOrca
79
- * @category generated
80
- */
81
- export declare function createSwapOrcaInstruction(accounts: SwapOrcaInstructionAccounts, args: SwapOrcaInstructionArgs, programId?: web3.PublicKey): web3.TransactionInstruction;
@@ -1,101 +0,0 @@
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 SwapOrcaTwoHop
12
- * @category generated
13
- */
14
- export type SwapOrcaTwoHopInstructionArgs = {
15
- amount: beet.bignum;
16
- otherAmountThreshold: beet.bignum;
17
- aToBOne: boolean;
18
- aToBTwo: boolean;
19
- sqrtPriceLimitOne: beet.bignum;
20
- sqrtPriceLimitTwo: beet.bignum;
21
- };
22
- /**
23
- * @category Instructions
24
- * @category SwapOrcaTwoHop
25
- * @category generated
26
- */
27
- export declare const swapOrcaTwoHopStruct: beet.BeetArgsStruct<SwapOrcaTwoHopInstructionArgs & {
28
- instructionDiscriminator: number[];
29
- }>;
30
- /**
31
- * Accounts required by the _swapOrcaTwoHop_ instruction
32
- *
33
- * @property [_writable_, **signer**] admin
34
- * @property [] main
35
- * @property [_writable_] strategy
36
- * @property [] adminPermissions (optional)
37
- * @property [] whirlpoolProgram
38
- * @property [_writable_] whirlpoolOne
39
- * @property [_writable_] whirlpoolTwo
40
- * @property [_writable_] tokenOwnerAccountOneA
41
- * @property [_writable_] tokenVaultOneA
42
- * @property [_writable_] tokenOwnerAccountOneB
43
- * @property [_writable_] tokenVaultOneB
44
- * @property [_writable_] tokenOwnerAccountTwoA
45
- * @property [_writable_] tokenVaultTwoA
46
- * @property [_writable_] tokenOwnerAccountTwoB
47
- * @property [_writable_] tokenVaultTwoB
48
- * @property [_writable_] tickArrayOne0
49
- * @property [_writable_] tickArrayOne1
50
- * @property [_writable_] tickArrayOne2
51
- * @property [_writable_] tickArrayTwo0
52
- * @property [_writable_] tickArrayTwo1
53
- * @property [_writable_] tickArrayTwo2
54
- * @property [_writable_] oracleOne
55
- * @property [_writable_] oracleTwo
56
- * @category Instructions
57
- * @category SwapOrcaTwoHop
58
- * @category generated
59
- */
60
- export type SwapOrcaTwoHopInstructionAccounts = {
61
- admin: web3.PublicKey;
62
- main: web3.PublicKey;
63
- strategy: web3.PublicKey;
64
- adminPermissions?: web3.PublicKey;
65
- whirlpoolProgram: web3.PublicKey;
66
- tokenProgram?: web3.PublicKey;
67
- whirlpoolOne: web3.PublicKey;
68
- whirlpoolTwo: web3.PublicKey;
69
- tokenOwnerAccountOneA: web3.PublicKey;
70
- tokenVaultOneA: web3.PublicKey;
71
- tokenOwnerAccountOneB: web3.PublicKey;
72
- tokenVaultOneB: web3.PublicKey;
73
- tokenOwnerAccountTwoA: web3.PublicKey;
74
- tokenVaultTwoA: web3.PublicKey;
75
- tokenOwnerAccountTwoB: web3.PublicKey;
76
- tokenVaultTwoB: web3.PublicKey;
77
- tickArrayOne0: web3.PublicKey;
78
- tickArrayOne1: web3.PublicKey;
79
- tickArrayOne2: web3.PublicKey;
80
- tickArrayTwo0: web3.PublicKey;
81
- tickArrayTwo1: web3.PublicKey;
82
- tickArrayTwo2: web3.PublicKey;
83
- oracleOne: web3.PublicKey;
84
- oracleTwo: web3.PublicKey;
85
- anchorRemainingAccounts?: web3.AccountMeta[];
86
- };
87
- export declare const swapOrcaTwoHopInstructionDiscriminator: number[];
88
- /**
89
- * Creates a _SwapOrcaTwoHop_ instruction.
90
- *
91
- * Optional accounts that are not provided default to the program ID since
92
- * this was indicated in the IDL from which this instruction was generated.
93
- *
94
- * @param accounts that will be accessed while the instruction is processed
95
- * @param args to provide as instruction data to the program
96
- *
97
- * @category Instructions
98
- * @category SwapOrcaTwoHop
99
- * @category generated
100
- */
101
- export declare function createSwapOrcaTwoHopInstruction(accounts: SwapOrcaTwoHopInstructionAccounts, args: SwapOrcaTwoHopInstructionArgs, programId?: web3.PublicKey): web3.TransactionInstruction;
@@ -1,58 +0,0 @@
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
- import { Role } from '../types/Role';
11
- import { Update } from '../types/Update';
12
- /**
13
- * @category Instructions
14
- * @category UpdateActionRoleProtocol
15
- * @category generated
16
- */
17
- export type UpdateActionRoleProtocolInstructionArgs = {
18
- action: Action;
19
- role: Role;
20
- update: Update;
21
- };
22
- /**
23
- * @category Instructions
24
- * @category UpdateActionRoleProtocol
25
- * @category generated
26
- */
27
- export declare const updateActionRoleProtocolStruct: beet.BeetArgsStruct<UpdateActionRoleProtocolInstructionArgs & {
28
- instructionDiscriminator: number[];
29
- }>;
30
- /**
31
- * Accounts required by the _updateActionRoleProtocol_ instruction
32
- *
33
- * @property [_writable_] main
34
- * @property [_writable_, **signer**] admin
35
- * @property [_writable_] adminPermissions
36
- * @category Instructions
37
- * @category UpdateActionRoleProtocol
38
- * @category generated
39
- */
40
- export type UpdateActionRoleProtocolInstructionAccounts = {
41
- main: web3.PublicKey;
42
- admin: web3.PublicKey;
43
- systemProgram?: web3.PublicKey;
44
- adminPermissions: web3.PublicKey;
45
- anchorRemainingAccounts?: web3.AccountMeta[];
46
- };
47
- export declare const updateActionRoleProtocolInstructionDiscriminator: number[];
48
- /**
49
- * Creates a _UpdateActionRoleProtocol_ 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 UpdateActionRoleProtocol
56
- * @category generated
57
- */
58
- export declare function createUpdateActionRoleProtocolInstruction(accounts: UpdateActionRoleProtocolInstructionAccounts, args: UpdateActionRoleProtocolInstructionArgs, programId?: web3.PublicKey): web3.TransactionInstruction;
@@ -1,60 +0,0 @@
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
- import { Role } from '../types/Role';
11
- import { Update } from '../types/Update';
12
- /**
13
- * @category Instructions
14
- * @category UpdateActionRoleStrategy
15
- * @category generated
16
- */
17
- export type UpdateActionRoleStrategyInstructionArgs = {
18
- action: Action;
19
- role: Role;
20
- update: Update;
21
- };
22
- /**
23
- * @category Instructions
24
- * @category UpdateActionRoleStrategy
25
- * @category generated
26
- */
27
- export declare const updateActionRoleStrategyStruct: beet.BeetArgsStruct<UpdateActionRoleStrategyInstructionArgs & {
28
- instructionDiscriminator: number[];
29
- }>;
30
- /**
31
- * Accounts required by the _updateActionRoleStrategy_ instruction
32
- *
33
- * @property [_writable_] main
34
- * @property [_writable_, **signer**] admin
35
- * @property [_writable_] strategy
36
- * @property [_writable_] adminPermissions
37
- * @category Instructions
38
- * @category UpdateActionRoleStrategy
39
- * @category generated
40
- */
41
- export type UpdateActionRoleStrategyInstructionAccounts = {
42
- main: web3.PublicKey;
43
- admin: web3.PublicKey;
44
- systemProgram?: web3.PublicKey;
45
- strategy: web3.PublicKey;
46
- adminPermissions: web3.PublicKey;
47
- anchorRemainingAccounts?: web3.AccountMeta[];
48
- };
49
- export declare const updateActionRoleStrategyInstructionDiscriminator: number[];
50
- /**
51
- * Creates a _UpdateActionRoleStrategy_ instruction.
52
- *
53
- * @param accounts that will be accessed while the instruction is processed
54
- * @param args to provide as instruction data to the program
55
- *
56
- * @category Instructions
57
- * @category UpdateActionRoleStrategy
58
- * @category generated
59
- */
60
- export declare function createUpdateActionRoleStrategyInstruction(accounts: UpdateActionRoleStrategyInstructionAccounts, args: UpdateActionRoleStrategyInstructionArgs, programId?: web3.PublicKey): web3.TransactionInstruction;
@@ -1,57 +0,0 @@
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 UpdateAttenuation
12
- * @category generated
13
- */
14
- export type UpdateAttenuationInstructionArgs = {
15
- deposit: boolean;
16
- base: beet.COption<number>;
17
- flex: beet.COption<number>;
18
- };
19
- /**
20
- * @category Instructions
21
- * @category UpdateAttenuation
22
- * @category generated
23
- */
24
- export declare const updateAttenuationStruct: beet.FixableBeetArgsStruct<UpdateAttenuationInstructionArgs & {
25
- instructionDiscriminator: number[];
26
- }>;
27
- /**
28
- * Accounts required by the _updateAttenuation_ instruction
29
- *
30
- * @property [_writable_] main
31
- * @property [_writable_, **signer**] admin
32
- * @property [_writable_] strategy
33
- * @property [_writable_] adminPermissions
34
- * @category Instructions
35
- * @category UpdateAttenuation
36
- * @category generated
37
- */
38
- export type UpdateAttenuationInstructionAccounts = {
39
- main: web3.PublicKey;
40
- admin: web3.PublicKey;
41
- systemProgram?: web3.PublicKey;
42
- strategy: web3.PublicKey;
43
- adminPermissions: web3.PublicKey;
44
- anchorRemainingAccounts?: web3.AccountMeta[];
45
- };
46
- export declare const updateAttenuationInstructionDiscriminator: number[];
47
- /**
48
- * Creates a _UpdateAttenuation_ instruction.
49
- *
50
- * @param accounts that will be accessed while the instruction is processed
51
- * @param args to provide as instruction data to the program
52
- *
53
- * @category Instructions
54
- * @category UpdateAttenuation
55
- * @category generated
56
- */
57
- export declare function createUpdateAttenuationInstruction(accounts: UpdateAttenuationInstructionAccounts, args: UpdateAttenuationInstructionArgs, programId?: web3.PublicKey): web3.TransactionInstruction;
@@ -1,55 +0,0 @@
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 UpdateCap
12
- * @category generated
13
- */
14
- export type UpdateCapInstructionArgs = {
15
- newCap: beet.bignum;
16
- };
17
- /**
18
- * @category Instructions
19
- * @category UpdateCap
20
- * @category generated
21
- */
22
- export declare const updateCapStruct: beet.BeetArgsStruct<UpdateCapInstructionArgs & {
23
- instructionDiscriminator: number[];
24
- }>;
25
- /**
26
- * Accounts required by the _updateCap_ instruction
27
- *
28
- * @property [_writable_] main
29
- * @property [_writable_, **signer**] admin
30
- * @property [_writable_] strategy
31
- * @property [_writable_] adminPermissions
32
- * @category Instructions
33
- * @category UpdateCap
34
- * @category generated
35
- */
36
- export type UpdateCapInstructionAccounts = {
37
- main: web3.PublicKey;
38
- admin: web3.PublicKey;
39
- systemProgram?: web3.PublicKey;
40
- strategy: web3.PublicKey;
41
- adminPermissions: web3.PublicKey;
42
- anchorRemainingAccounts?: web3.AccountMeta[];
43
- };
44
- export declare const updateCapInstructionDiscriminator: number[];
45
- /**
46
- * Creates a _UpdateCap_ 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 UpdateCap
53
- * @category generated
54
- */
55
- export declare function createUpdateCapInstruction(accounts: UpdateCapInstructionAccounts, args: UpdateCapInstructionArgs, programId?: web3.PublicKey): web3.TransactionInstruction;