@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.
- package/dist/classes/ApiClient.d.ts +84 -0
- package/dist/classes/ApiClient.js +24 -2
- package/dist/classes/PdaClient.d.ts +131 -0
- package/dist/classes/Reflect.d.ts +7 -0
- package/dist/classes/ReflectKeeper.d.ts +105 -0
- package/dist/classes/ReflectKeeper.js +4 -3
- package/dist/classes/ReflectTokenisedBond.d.ts +75 -0
- package/dist/classes/Stablecoin.d.ts +219 -0
- package/dist/classes/index.d.ts +5 -0
- package/dist/classes/index.js +1 -0
- package/dist/constants/drift.d.ts +6 -0
- package/dist/constants/index.d.ts +8 -0
- package/dist/constants/jupiter.d.ts +4 -0
- package/dist/constants/lookupTables.d.ts +4 -0
- package/dist/constants/lookupTables.js +1 -1
- package/dist/constants/lst.d.ts +3 -0
- package/dist/constants/pyth.d.ts +1 -0
- package/dist/constants/usdc.d.ts +6 -0
- package/dist/constants/wsol.d.ts +6 -0
- package/dist/errors/ReflectError.d.ts +4 -0
- package/dist/generated/reflect_main/accounts/DriftJlpController.d.ts +114 -0
- package/dist/generated/reflect_main/accounts/DriftJlpController.js +1 -1
- package/dist/generated/reflect_main/accounts/DriftLstController.d.ts +108 -0
- package/dist/generated/reflect_main/accounts/DriftLstController.js +1 -1
- package/dist/generated/reflect_main/accounts/DriftUsdcController.d.ts +107 -0
- package/dist/generated/reflect_main/accounts/DriftUsdcController.js +8 -60
- package/dist/generated/reflect_main/accounts/Main.d.ts +110 -0
- package/dist/generated/reflect_main/accounts/Main.js +1 -1
- package/dist/generated/reflect_main/accounts/PerpMarket.d.ts +226 -0
- package/dist/generated/reflect_main/accounts/PerpMarket.js +1 -1
- package/dist/generated/reflect_main/accounts/PrelaunchOracle.d.ts +130 -0
- package/dist/generated/reflect_main/accounts/PrelaunchOracle.js +1 -1
- package/dist/generated/reflect_main/accounts/PythLazerOracle.d.ts +124 -0
- package/dist/generated/reflect_main/accounts/PythLazerOracle.js +1 -1
- package/dist/generated/reflect_main/accounts/RebalanceLst.d.ts +111 -0
- package/dist/generated/reflect_main/accounts/RebalanceLst.js +1 -1
- package/dist/generated/reflect_main/accounts/SpotMarket.d.ts +377 -0
- package/dist/generated/reflect_main/accounts/SpotMarket.js +1 -1
- package/dist/generated/reflect_main/accounts/User.d.ts +221 -0
- package/dist/generated/reflect_main/accounts/User.js +1 -1
- package/dist/generated/reflect_main/accounts/UserPermissions.d.ts +106 -0
- package/dist/generated/reflect_main/accounts/UserPermissions.js +1 -1
- package/dist/generated/reflect_main/accounts/UserStats.d.ts +211 -0
- package/dist/generated/reflect_main/accounts/UserStats.js +1 -1
- package/dist/generated/reflect_main/accounts/index.d.ts +38 -0
- package/dist/generated/reflect_main/errors/index.d.ts +969 -0
- package/dist/generated/reflect_main/errors/index.js +133 -133
- package/dist/generated/reflect_main/index.d.ts +19 -0
- package/dist/generated/reflect_main/index.js +1 -1
- package/dist/generated/reflect_main/instructions/addLstDrift.d.ts +49 -0
- package/dist/generated/reflect_main/instructions/addLstDrift.js +1 -1
- package/dist/generated/reflect_main/instructions/addSubAccount.d.ts +54 -0
- package/dist/generated/reflect_main/instructions/addSubAccount.js +1 -1
- package/dist/generated/reflect_main/instructions/captureSpreadDrift.d.ts +66 -0
- package/dist/generated/reflect_main/instructions/captureSpreadDrift.js +3 -3
- package/dist/generated/reflect_main/instructions/captureSpreadDriftS1.d.ts +58 -0
- package/dist/generated/reflect_main/instructions/createAdminAccount.d.ts +52 -0
- package/dist/generated/reflect_main/instructions/createAdminAccount.js +2 -1
- package/dist/generated/reflect_main/instructions/createUserStatsAccount.d.ts +52 -0
- package/dist/generated/reflect_main/instructions/createUserStatsAccount.js +1 -1
- package/dist/generated/reflect_main/instructions/depositDrift.d.ts +73 -0
- package/dist/generated/reflect_main/instructions/depositDrift.js +1 -1
- package/dist/generated/reflect_main/instructions/freezeProgram.d.ts +54 -0
- package/dist/generated/reflect_main/instructions/freezeProgram.js +1 -1
- package/dist/generated/reflect_main/instructions/freezeProtocolAction.d.ts +55 -0
- package/dist/generated/reflect_main/instructions/freezeProtocolAction.js +1 -1
- package/dist/generated/reflect_main/instructions/freezeStrategyAction.d.ts +58 -0
- package/dist/generated/reflect_main/instructions/freezeStrategyAction.js +1 -1
- package/dist/generated/reflect_main/instructions/increaseAdminSize.d.ts +51 -0
- package/dist/generated/reflect_main/instructions/increaseAdminSize.js +89 -0
- package/dist/generated/reflect_main/instructions/index.d.ts +34 -0
- package/dist/generated/reflect_main/instructions/index.js +1 -1
- package/dist/generated/reflect_main/instructions/initDriftAccountsS1.d.ts +54 -0
- package/dist/generated/reflect_main/instructions/initDriftAccountsS1.js +1 -1
- package/dist/generated/reflect_main/instructions/initDriftControllerS1.d.ts +58 -0
- package/dist/generated/reflect_main/instructions/initDriftControllerS1.js +1 -1
- package/dist/generated/reflect_main/instructions/initDriftControllerS3.d.ts +58 -0
- package/dist/generated/reflect_main/instructions/initDriftControllerS3.js +1 -1
- package/dist/generated/reflect_main/instructions/initMain.d.ts +43 -0
- package/dist/generated/reflect_main/instructions/initMain.js +1 -1
- package/dist/generated/reflect_main/instructions/mintDriftS1.d.ts +86 -0
- package/dist/generated/reflect_main/instructions/mintDriftS1.js +1 -1
- package/dist/generated/reflect_main/instructions/mintDriftS3.d.ts +86 -0
- package/dist/generated/reflect_main/instructions/mintDriftS3.js +1 -1
- package/dist/generated/reflect_main/instructions/processSwapDeposit.d.ts +69 -0
- package/dist/generated/reflect_main/instructions/processSwapDeposit.js +1 -1
- package/dist/generated/reflect_main/instructions/processSwapWithdraw.d.ts +69 -0
- package/dist/generated/reflect_main/instructions/processSwapWithdraw.js +1 -1
- package/dist/generated/reflect_main/instructions/redeemDriftS1.d.ts +87 -0
- package/dist/generated/reflect_main/instructions/redeemDriftS1.js +1 -1
- package/dist/generated/reflect_main/instructions/redeemDriftS3.d.ts +87 -0
- package/dist/generated/reflect_main/instructions/redeemDriftS3.js +1 -1
- package/dist/generated/reflect_main/instructions/settlePnl.d.ts +50 -0
- package/dist/generated/reflect_main/instructions/settlePnl.js +1 -10
- package/dist/generated/reflect_main/instructions/settlePnlMulti.d.ts +60 -0
- package/dist/generated/reflect_main/instructions/settlePnlMulti.js +1 -10
- package/dist/generated/reflect_main/instructions/suspendSplProtocol.d.ts +54 -0
- package/dist/generated/reflect_main/instructions/suspendSplProtocol.js +1 -1
- package/dist/generated/reflect_main/instructions/suspendSplStrategy.d.ts +56 -0
- package/dist/generated/reflect_main/instructions/suspendSplStrategy.js +1 -1
- package/dist/generated/reflect_main/instructions/swapOrca.d.ts +81 -0
- package/dist/generated/reflect_main/instructions/swapOrca.js +1 -1
- package/dist/generated/reflect_main/instructions/swapOrcaTwoHop.d.ts +101 -0
- package/dist/generated/reflect_main/instructions/swapOrcaTwoHop.js +1 -1
- package/dist/generated/reflect_main/instructions/updateActionRoleProtocol.d.ts +58 -0
- package/dist/generated/reflect_main/instructions/updateActionRoleProtocol.js +1 -1
- package/dist/generated/reflect_main/instructions/updateActionRoleStrategy.d.ts +60 -0
- package/dist/generated/reflect_main/instructions/updateActionRoleStrategy.js +1 -1
- package/dist/generated/reflect_main/instructions/updateAttenuation.d.ts +57 -0
- package/dist/generated/reflect_main/instructions/updateAttenuation.js +1 -1
- package/dist/generated/reflect_main/instructions/updateCap.d.ts +55 -0
- package/dist/generated/reflect_main/instructions/updateCap.js +1 -1
- package/dist/generated/reflect_main/instructions/updateRebalanceSlippage.d.ts +55 -0
- package/dist/generated/reflect_main/instructions/updateRebalanceSlippage.js +1 -1
- package/dist/generated/reflect_main/instructions/updateRecipients.d.ts +56 -0
- package/dist/generated/reflect_main/instructions/updateRecipients.js +1 -1
- package/dist/generated/reflect_main/instructions/updateRoleHolderProtocol.d.ts +60 -0
- package/dist/generated/reflect_main/instructions/updateRoleHolderProtocol.js +1 -1
- package/dist/generated/reflect_main/instructions/updateRoleHolderStrategy.d.ts +60 -0
- package/dist/generated/reflect_main/instructions/updateRoleHolderStrategy.js +1 -1
- package/dist/generated/reflect_main/types/AMM.d.ts +102 -0
- package/dist/generated/reflect_main/types/AccKey.d.ts +15 -0
- package/dist/generated/reflect_main/types/AccessControl.d.ts +18 -0
- package/dist/generated/reflect_main/types/AccessMap.d.ts +17 -0
- package/dist/generated/reflect_main/types/Action.d.ts +35 -0
- package/dist/generated/reflect_main/types/ActionMapping.d.ts +19 -0
- package/dist/generated/reflect_main/types/AssetTier.d.ts +23 -0
- package/dist/generated/reflect_main/types/Attenuation.d.ts +16 -0
- package/dist/generated/reflect_main/types/AutoCompound.d.ts +18 -0
- package/dist/generated/reflect_main/types/AutoCompound.js +43 -0
- package/dist/generated/reflect_main/types/BalanceType.d.ts +20 -0
- package/dist/generated/reflect_main/types/Capture.d.ts +19 -0
- package/dist/generated/reflect_main/types/Capture.js +2 -0
- package/dist/generated/reflect_main/types/ContractTier.d.ts +24 -0
- package/dist/generated/reflect_main/types/ContractType.d.ts +20 -0
- package/dist/generated/reflect_main/types/CorpAction.d.ts +19 -0
- package/dist/generated/reflect_main/types/CustodyInfo.d.ts +20 -0
- package/dist/generated/reflect_main/types/DirectionCollateral.d.ts +20 -0
- package/dist/generated/reflect_main/types/DirectionPosition.d.ts +20 -0
- package/dist/generated/reflect_main/types/DriftControllerBase.d.ts +15 -0
- package/dist/generated/reflect_main/types/DriftJlpControllerFixedAccounts.d.ts +18 -0
- package/dist/generated/reflect_main/types/DriftLstData.d.ts +17 -0
- package/dist/generated/reflect_main/types/Ema.d.ts +17 -0
- package/dist/generated/reflect_main/types/Externals.d.ts +16 -0
- package/dist/generated/reflect_main/types/FlowControl.d.ts +17 -0
- package/dist/generated/reflect_main/types/HistoricalIndexData.d.ts +19 -0
- package/dist/generated/reflect_main/types/HistoricalOracleData.d.ts +20 -0
- package/dist/generated/reflect_main/types/Holding.d.ts +21 -0
- package/dist/generated/reflect_main/types/Holdings.d.ts +17 -0
- package/dist/generated/reflect_main/types/InsuranceClaim.d.ts +19 -0
- package/dist/generated/reflect_main/types/InsuranceFund.d.ts +24 -0
- package/dist/generated/reflect_main/types/JlpRebalanceSettings.d.ts +15 -0
- package/dist/generated/reflect_main/types/KillSwitch.d.ts +15 -0
- package/dist/generated/reflect_main/types/LevelRoles.d.ts +16 -0
- package/dist/generated/reflect_main/types/MarketStatus.d.ts +27 -0
- package/dist/generated/reflect_main/types/MarketType.d.ts +20 -0
- package/dist/generated/reflect_main/types/ModifyOrderParams.d.ts +32 -0
- package/dist/generated/reflect_main/types/ModifyOrderPolicy.d.ts +20 -0
- package/dist/generated/reflect_main/types/Movements.d.ts +19 -0
- package/dist/generated/reflect_main/types/OracleGuardRails.d.ts +18 -0
- package/dist/generated/reflect_main/types/OracleSource.d.ts +34 -0
- package/dist/generated/reflect_main/types/OracleValidity.d.ts +25 -0
- package/dist/generated/reflect_main/types/Order.d.ts +43 -0
- package/dist/generated/reflect_main/types/OrderDirection.d.ts +20 -0
- package/dist/generated/reflect_main/types/OrderParams.d.ts +36 -0
- package/dist/generated/reflect_main/types/OrderParams.js +1 -1
- package/dist/generated/reflect_main/types/OrderStatus.d.ts +22 -0
- package/dist/generated/reflect_main/types/OrderTriggerCondition.d.ts +22 -0
- package/dist/generated/reflect_main/types/OrderType.d.ts +23 -0
- package/dist/generated/reflect_main/types/PermissionLevel.d.ts +45 -0
- package/dist/generated/reflect_main/types/PerpHedge.d.ts +17 -0
- package/dist/generated/reflect_main/types/PerpPosition.d.ts +29 -0
- package/dist/generated/reflect_main/types/PoolBalance.d.ts +17 -0
- package/dist/generated/reflect_main/types/Position.d.ts +20 -0
- package/dist/generated/reflect_main/types/PositionDirection.d.ts +20 -0
- package/dist/generated/reflect_main/types/PositionDrift.d.ts +18 -0
- package/dist/generated/reflect_main/types/PostOnlyParam.d.ts +22 -0
- package/dist/generated/reflect_main/types/Price.d.ts +41 -0
- package/dist/generated/reflect_main/types/PriceComp.d.ts +19 -0
- package/dist/generated/reflect_main/types/PriceDivergenceGuardRails.d.ts +16 -0
- package/dist/generated/reflect_main/types/PriceInfo.d.ts +21 -0
- package/dist/generated/reflect_main/types/PriceStatus.d.ts +22 -0
- package/dist/generated/reflect_main/types/PriceType.d.ts +20 -0
- package/dist/generated/reflect_main/types/Program.d.ts +19 -0
- package/dist/generated/reflect_main/types/ProgramStatus.d.ts +20 -0
- package/dist/generated/reflect_main/types/Recipient.d.ts +17 -0
- package/dist/generated/reflect_main/types/Recipients.d.ts +17 -0
- package/dist/generated/reflect_main/types/Role.d.ts +25 -0
- package/dist/generated/reflect_main/types/ShiftCollateral.d.ts +19 -0
- package/dist/generated/reflect_main/types/ShiftPosition.d.ts +17 -0
- package/dist/generated/reflect_main/types/ShortHolding.d.ts +17 -0
- package/dist/generated/reflect_main/types/SplBase.d.ts +17 -0
- package/dist/generated/reflect_main/types/SplMain.d.ts +22 -0
- package/dist/generated/reflect_main/types/Spls.d.ts +17 -0
- package/dist/generated/reflect_main/types/SpotBalanceType.d.ts +20 -0
- package/dist/generated/reflect_main/types/SpotPosition.d.ts +23 -0
- package/dist/generated/reflect_main/types/Status.d.ts +21 -0
- package/dist/generated/reflect_main/types/Strategy.d.ts +34 -0
- package/dist/generated/reflect_main/types/Strategy.js +2 -0
- package/dist/generated/reflect_main/types/StrategyPadding.d.ts +15 -0
- package/dist/generated/reflect_main/types/StrategyRoleEntry.d.ts +17 -0
- package/dist/generated/reflect_main/types/SubAccount.d.ts +17 -0
- package/dist/generated/reflect_main/types/Update.d.ts +20 -0
- package/dist/generated/reflect_main/types/UserFees.d.ts +20 -0
- package/dist/generated/reflect_main/types/ValidityGuardRails.d.ts +18 -0
- package/dist/generated/reflect_main/types/YieldDistribution.d.ts +20 -0
- package/dist/generated/reflect_main/types/YieldDistribution.js +47 -0
- package/dist/generated/reflect_main/types/index.d.ts +82 -0
- package/dist/generated/reflect_main/types/index.js +2 -0
- package/dist/generated/reflect_tokenised_bonds/accounts/Admin.d.ts +99 -0
- package/dist/generated/reflect_tokenised_bonds/accounts/Config.d.ts +106 -0
- package/dist/generated/reflect_tokenised_bonds/accounts/Vault.d.ts +114 -0
- package/dist/generated/reflect_tokenised_bonds/accounts/index.d.ts +11 -0
- package/dist/generated/reflect_tokenised_bonds/errors/index.d.ts +144 -0
- package/dist/generated/reflect_tokenised_bonds/index.d.ts +19 -0
- package/dist/generated/reflect_tokenised_bonds/instructions/createVault.d.ts +50 -0
- package/dist/generated/reflect_tokenised_bonds/instructions/deposit.d.ts +62 -0
- package/dist/generated/reflect_tokenised_bonds/instructions/index.d.ts +4 -0
- package/dist/generated/reflect_tokenised_bonds/instructions/initialize.d.ts +43 -0
- package/dist/generated/reflect_tokenised_bonds/instructions/withdraw.d.ts +62 -0
- package/dist/generated/reflect_tokenised_bonds/types/DepositArgs.d.ts +17 -0
- package/dist/generated/reflect_tokenised_bonds/types/Permissions.d.ts +21 -0
- package/dist/generated/reflect_tokenised_bonds/types/WithdrawArgs.d.ts +16 -0
- package/dist/generated/reflect_tokenised_bonds/types/index.d.ts +3 -0
- package/dist/helpers/getOrcaQuote.d.ts +3 -0
- package/dist/idl/perpetuals.d.ts +5771 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +1 -0
- package/dist/stablecoins/LstStablecoin.d.ts +103 -0
- package/dist/stablecoins/UsdcPlusStablecoin.d.ts +86 -0
- package/dist/stablecoins/UsdjStablecoin.d.ts +1 -0
- package/dist/stablecoins/index.d.ts +3 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/types/api.d.ts +1384 -0
- package/dist/types/api.js +6 -0
- package/dist/types/index.d.ts +81 -0
- package/dist/types/index.js +2 -0
- package/package.json +2 -2
|
@@ -0,0 +1,86 @@
|
|
|
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 MintDriftS3
|
|
12
|
+
* @category generated
|
|
13
|
+
*/
|
|
14
|
+
export type MintDriftS3InstructionArgs = {
|
|
15
|
+
lstAmount: beet.bignum;
|
|
16
|
+
minUsdrAmount: beet.bignum;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* @category Instructions
|
|
20
|
+
* @category MintDriftS3
|
|
21
|
+
* @category generated
|
|
22
|
+
*/
|
|
23
|
+
export declare const mintDriftS3Struct: beet.BeetArgsStruct<MintDriftS3InstructionArgs & {
|
|
24
|
+
instructionDiscriminator: number[];
|
|
25
|
+
}>;
|
|
26
|
+
/**
|
|
27
|
+
* Accounts required by the _mintDriftS3_ instruction
|
|
28
|
+
*
|
|
29
|
+
* @property [_writable_, **signer**] user
|
|
30
|
+
* @property [_writable_] main
|
|
31
|
+
* @property [_writable_] lstController
|
|
32
|
+
* @property [] adminPermissions (optional)
|
|
33
|
+
* @property [_writable_] userLstAta
|
|
34
|
+
* @property [_writable_] controllerLstAta
|
|
35
|
+
* @property [_writable_] userReflectAta
|
|
36
|
+
* @property [_writable_] stableMint
|
|
37
|
+
* @property [] drift
|
|
38
|
+
* @property [_writable_] state
|
|
39
|
+
* @property [_writable_] userStats
|
|
40
|
+
* @property [_writable_] referrerUserStats
|
|
41
|
+
* @property [_writable_] referrerUser
|
|
42
|
+
* @property [_writable_] userAccount
|
|
43
|
+
* @property [_writable_] spotMarketVault
|
|
44
|
+
* @property [_writable_] driftVault
|
|
45
|
+
* @property [] clock
|
|
46
|
+
* @category Instructions
|
|
47
|
+
* @category MintDriftS3
|
|
48
|
+
* @category generated
|
|
49
|
+
*/
|
|
50
|
+
export type MintDriftS3InstructionAccounts = {
|
|
51
|
+
user: web3.PublicKey;
|
|
52
|
+
main: web3.PublicKey;
|
|
53
|
+
lstController: web3.PublicKey;
|
|
54
|
+
adminPermissions?: web3.PublicKey;
|
|
55
|
+
userLstAta: web3.PublicKey;
|
|
56
|
+
controllerLstAta: web3.PublicKey;
|
|
57
|
+
userReflectAta: web3.PublicKey;
|
|
58
|
+
stableMint: web3.PublicKey;
|
|
59
|
+
drift: web3.PublicKey;
|
|
60
|
+
state: web3.PublicKey;
|
|
61
|
+
userStats: web3.PublicKey;
|
|
62
|
+
referrerUserStats: web3.PublicKey;
|
|
63
|
+
referrerUser: web3.PublicKey;
|
|
64
|
+
userAccount: web3.PublicKey;
|
|
65
|
+
spotMarketVault: web3.PublicKey;
|
|
66
|
+
driftVault: web3.PublicKey;
|
|
67
|
+
tokenProgram?: web3.PublicKey;
|
|
68
|
+
systemProgram?: web3.PublicKey;
|
|
69
|
+
clock: web3.PublicKey;
|
|
70
|
+
anchorRemainingAccounts?: web3.AccountMeta[];
|
|
71
|
+
};
|
|
72
|
+
export declare const mintDriftS3InstructionDiscriminator: number[];
|
|
73
|
+
/**
|
|
74
|
+
* Creates a _MintDriftS3_ instruction.
|
|
75
|
+
*
|
|
76
|
+
* Optional accounts that are not provided default to the program ID since
|
|
77
|
+
* this was indicated in the IDL from which this instruction was generated.
|
|
78
|
+
*
|
|
79
|
+
* @param accounts that will be accessed while the instruction is processed
|
|
80
|
+
* @param args to provide as instruction data to the program
|
|
81
|
+
*
|
|
82
|
+
* @category Instructions
|
|
83
|
+
* @category MintDriftS3
|
|
84
|
+
* @category generated
|
|
85
|
+
*/
|
|
86
|
+
export declare function createMintDriftS3Instruction(accounts: MintDriftS3InstructionAccounts, args: MintDriftS3InstructionArgs, programId?: web3.PublicKey): web3.TransactionInstruction;
|
|
@@ -60,7 +60,7 @@ exports.mintDriftS3InstructionDiscriminator = [
|
|
|
60
60
|
* @category MintDriftS3
|
|
61
61
|
* @category generated
|
|
62
62
|
*/
|
|
63
|
-
function createMintDriftS3Instruction(accounts, args, programId = new web3.PublicKey('
|
|
63
|
+
function createMintDriftS3Instruction(accounts, args, programId = new web3.PublicKey('rf1ctRXK4bmG5XNttAMYfB3TKd2vQjFv5cfQhDBxdAQ')) {
|
|
64
64
|
var _a, _b, _c;
|
|
65
65
|
const [data] = exports.mintDriftS3Struct.serialize(Object.assign({ instructionDiscriminator: exports.mintDriftS3InstructionDiscriminator }, args));
|
|
66
66
|
const keys = [
|
|
@@ -0,0 +1,69 @@
|
|
|
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 ProcessSwapDeposit
|
|
12
|
+
* @category generated
|
|
13
|
+
*/
|
|
14
|
+
export declare const processSwapDepositStruct: beet.BeetArgsStruct<{
|
|
15
|
+
instructionDiscriminator: number[];
|
|
16
|
+
}>;
|
|
17
|
+
/**
|
|
18
|
+
* Accounts required by the _processSwapDeposit_ instruction
|
|
19
|
+
*
|
|
20
|
+
* @property [_writable_, **signer**] admin
|
|
21
|
+
* @property [_writable_] main
|
|
22
|
+
* @property [_writable_] lstController
|
|
23
|
+
* @property [] adminPermissions (optional)
|
|
24
|
+
* @property [_writable_] spotMarketVault
|
|
25
|
+
* @property [_writable_] reflectTokenAccount
|
|
26
|
+
* @property [_writable_] rebalanceDetails
|
|
27
|
+
* @property [_writable_] state
|
|
28
|
+
* @property [] drift
|
|
29
|
+
* @property [_writable_] userStats
|
|
30
|
+
* @property [_writable_] userAccount
|
|
31
|
+
* @property [_writable_] driftVault
|
|
32
|
+
* @property [_writable_] referrerUserStats
|
|
33
|
+
* @property [_writable_] referrerUser
|
|
34
|
+
* @category Instructions
|
|
35
|
+
* @category ProcessSwapDeposit
|
|
36
|
+
* @category generated
|
|
37
|
+
*/
|
|
38
|
+
export type ProcessSwapDepositInstructionAccounts = {
|
|
39
|
+
admin: web3.PublicKey;
|
|
40
|
+
main: web3.PublicKey;
|
|
41
|
+
lstController: web3.PublicKey;
|
|
42
|
+
adminPermissions?: web3.PublicKey;
|
|
43
|
+
spotMarketVault: web3.PublicKey;
|
|
44
|
+
reflectTokenAccount: web3.PublicKey;
|
|
45
|
+
rebalanceDetails: web3.PublicKey;
|
|
46
|
+
state: web3.PublicKey;
|
|
47
|
+
drift: web3.PublicKey;
|
|
48
|
+
userStats: web3.PublicKey;
|
|
49
|
+
userAccount: web3.PublicKey;
|
|
50
|
+
systemProgram?: web3.PublicKey;
|
|
51
|
+
tokenProgram?: web3.PublicKey;
|
|
52
|
+
driftVault: web3.PublicKey;
|
|
53
|
+
referrerUserStats: web3.PublicKey;
|
|
54
|
+
referrerUser: web3.PublicKey;
|
|
55
|
+
anchorRemainingAccounts?: web3.AccountMeta[];
|
|
56
|
+
};
|
|
57
|
+
export declare const processSwapDepositInstructionDiscriminator: number[];
|
|
58
|
+
/**
|
|
59
|
+
* Creates a _ProcessSwapDeposit_ instruction.
|
|
60
|
+
*
|
|
61
|
+
* Optional accounts that are not provided default to the program ID since
|
|
62
|
+
* this was indicated in the IDL from which this instruction was generated.
|
|
63
|
+
*
|
|
64
|
+
* @param accounts that will be accessed while the instruction is processed
|
|
65
|
+
* @category Instructions
|
|
66
|
+
* @category ProcessSwapDeposit
|
|
67
|
+
* @category generated
|
|
68
|
+
*/
|
|
69
|
+
export declare function createProcessSwapDepositInstruction(accounts: ProcessSwapDepositInstructionAccounts, programId?: web3.PublicKey): web3.TransactionInstruction;
|
|
@@ -54,7 +54,7 @@ exports.processSwapDepositInstructionDiscriminator = [
|
|
|
54
54
|
* @category ProcessSwapDeposit
|
|
55
55
|
* @category generated
|
|
56
56
|
*/
|
|
57
|
-
function createProcessSwapDepositInstruction(accounts, programId = new web3.PublicKey('
|
|
57
|
+
function createProcessSwapDepositInstruction(accounts, programId = new web3.PublicKey('rf1ctRXK4bmG5XNttAMYfB3TKd2vQjFv5cfQhDBxdAQ')) {
|
|
58
58
|
var _a, _b, _c;
|
|
59
59
|
const [data] = exports.processSwapDepositStruct.serialize({
|
|
60
60
|
instructionDiscriminator: exports.processSwapDepositInstructionDiscriminator,
|
|
@@ -0,0 +1,69 @@
|
|
|
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 ProcessSwapWithdraw
|
|
12
|
+
* @category generated
|
|
13
|
+
*/
|
|
14
|
+
export declare const processSwapWithdrawStruct: beet.BeetArgsStruct<{
|
|
15
|
+
instructionDiscriminator: number[];
|
|
16
|
+
}>;
|
|
17
|
+
/**
|
|
18
|
+
* Accounts required by the _processSwapWithdraw_ instruction
|
|
19
|
+
*
|
|
20
|
+
* @property [_writable_, **signer**] admin
|
|
21
|
+
* @property [_writable_] main
|
|
22
|
+
* @property [_writable_] lstController
|
|
23
|
+
* @property [] adminPermissions (optional)
|
|
24
|
+
* @property [_writable_] spotMarketVault
|
|
25
|
+
* @property [_writable_] reflectTokenAccount
|
|
26
|
+
* @property [_writable_] rebalanceDetails
|
|
27
|
+
* @property [_writable_] state
|
|
28
|
+
* @property [] drift
|
|
29
|
+
* @property [_writable_] userStats
|
|
30
|
+
* @property [_writable_] userAccount
|
|
31
|
+
* @property [_writable_] driftVault
|
|
32
|
+
* @property [_writable_] referrerUserStats
|
|
33
|
+
* @property [_writable_] referrerUser
|
|
34
|
+
* @category Instructions
|
|
35
|
+
* @category ProcessSwapWithdraw
|
|
36
|
+
* @category generated
|
|
37
|
+
*/
|
|
38
|
+
export type ProcessSwapWithdrawInstructionAccounts = {
|
|
39
|
+
admin: web3.PublicKey;
|
|
40
|
+
main: web3.PublicKey;
|
|
41
|
+
lstController: web3.PublicKey;
|
|
42
|
+
adminPermissions?: web3.PublicKey;
|
|
43
|
+
spotMarketVault: web3.PublicKey;
|
|
44
|
+
reflectTokenAccount: web3.PublicKey;
|
|
45
|
+
rebalanceDetails: web3.PublicKey;
|
|
46
|
+
state: web3.PublicKey;
|
|
47
|
+
drift: web3.PublicKey;
|
|
48
|
+
userStats: web3.PublicKey;
|
|
49
|
+
userAccount: web3.PublicKey;
|
|
50
|
+
systemProgram?: web3.PublicKey;
|
|
51
|
+
tokenProgram?: web3.PublicKey;
|
|
52
|
+
driftVault: web3.PublicKey;
|
|
53
|
+
referrerUserStats: web3.PublicKey;
|
|
54
|
+
referrerUser: web3.PublicKey;
|
|
55
|
+
anchorRemainingAccounts?: web3.AccountMeta[];
|
|
56
|
+
};
|
|
57
|
+
export declare const processSwapWithdrawInstructionDiscriminator: number[];
|
|
58
|
+
/**
|
|
59
|
+
* Creates a _ProcessSwapWithdraw_ instruction.
|
|
60
|
+
*
|
|
61
|
+
* Optional accounts that are not provided default to the program ID since
|
|
62
|
+
* this was indicated in the IDL from which this instruction was generated.
|
|
63
|
+
*
|
|
64
|
+
* @param accounts that will be accessed while the instruction is processed
|
|
65
|
+
* @category Instructions
|
|
66
|
+
* @category ProcessSwapWithdraw
|
|
67
|
+
* @category generated
|
|
68
|
+
*/
|
|
69
|
+
export declare function createProcessSwapWithdrawInstruction(accounts: ProcessSwapWithdrawInstructionAccounts, programId?: web3.PublicKey): web3.TransactionInstruction;
|
|
@@ -54,7 +54,7 @@ exports.processSwapWithdrawInstructionDiscriminator = [
|
|
|
54
54
|
* @category ProcessSwapWithdraw
|
|
55
55
|
* @category generated
|
|
56
56
|
*/
|
|
57
|
-
function createProcessSwapWithdrawInstruction(accounts, programId = new web3.PublicKey('
|
|
57
|
+
function createProcessSwapWithdrawInstruction(accounts, programId = new web3.PublicKey('rf1ctRXK4bmG5XNttAMYfB3TKd2vQjFv5cfQhDBxdAQ')) {
|
|
58
58
|
var _a, _b, _c;
|
|
59
59
|
const [data] = exports.processSwapWithdrawStruct.serialize({
|
|
60
60
|
instructionDiscriminator: exports.processSwapWithdrawInstructionDiscriminator,
|
|
@@ -0,0 +1,87 @@
|
|
|
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 RedeemDriftS1
|
|
12
|
+
* @category generated
|
|
13
|
+
*/
|
|
14
|
+
export type RedeemDriftS1InstructionArgs = {
|
|
15
|
+
rusdBurnAmount: beet.bignum;
|
|
16
|
+
minLstRedeem: beet.bignum;
|
|
17
|
+
canChill: boolean;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* @category Instructions
|
|
21
|
+
* @category RedeemDriftS1
|
|
22
|
+
* @category generated
|
|
23
|
+
*/
|
|
24
|
+
export declare const redeemDriftS1Struct: beet.BeetArgsStruct<RedeemDriftS1InstructionArgs & {
|
|
25
|
+
instructionDiscriminator: number[];
|
|
26
|
+
}>;
|
|
27
|
+
/**
|
|
28
|
+
* Accounts required by the _redeemDriftS1_ instruction
|
|
29
|
+
*
|
|
30
|
+
* @property [_writable_, **signer**] user
|
|
31
|
+
* @property [_writable_] main
|
|
32
|
+
* @property [_writable_] usdcController
|
|
33
|
+
* @property [] adminPermissions (optional)
|
|
34
|
+
* @property [_writable_] userReceiptAta
|
|
35
|
+
* @property [_writable_] userUsdcAta
|
|
36
|
+
* @property [_writable_] controllerUsdcAta
|
|
37
|
+
* @property [_writable_] receiptMint
|
|
38
|
+
* @property [] drift
|
|
39
|
+
* @property [_writable_] state
|
|
40
|
+
* @property [_writable_] userStats
|
|
41
|
+
* @property [_writable_] referrerUserStats
|
|
42
|
+
* @property [_writable_] referrerUser
|
|
43
|
+
* @property [_writable_] userAccount
|
|
44
|
+
* @property [_writable_] spotMarketVault
|
|
45
|
+
* @property [_writable_] driftVault
|
|
46
|
+
* @property [] clock
|
|
47
|
+
* @category Instructions
|
|
48
|
+
* @category RedeemDriftS1
|
|
49
|
+
* @category generated
|
|
50
|
+
*/
|
|
51
|
+
export type RedeemDriftS1InstructionAccounts = {
|
|
52
|
+
user: web3.PublicKey;
|
|
53
|
+
main: web3.PublicKey;
|
|
54
|
+
usdcController: web3.PublicKey;
|
|
55
|
+
adminPermissions?: web3.PublicKey;
|
|
56
|
+
userReceiptAta: web3.PublicKey;
|
|
57
|
+
userUsdcAta: web3.PublicKey;
|
|
58
|
+
controllerUsdcAta: web3.PublicKey;
|
|
59
|
+
receiptMint: web3.PublicKey;
|
|
60
|
+
drift: web3.PublicKey;
|
|
61
|
+
state: web3.PublicKey;
|
|
62
|
+
userStats: web3.PublicKey;
|
|
63
|
+
referrerUserStats: web3.PublicKey;
|
|
64
|
+
referrerUser: web3.PublicKey;
|
|
65
|
+
userAccount: web3.PublicKey;
|
|
66
|
+
spotMarketVault: web3.PublicKey;
|
|
67
|
+
driftVault: web3.PublicKey;
|
|
68
|
+
tokenProgram?: web3.PublicKey;
|
|
69
|
+
systemProgram?: web3.PublicKey;
|
|
70
|
+
clock: web3.PublicKey;
|
|
71
|
+
anchorRemainingAccounts?: web3.AccountMeta[];
|
|
72
|
+
};
|
|
73
|
+
export declare const redeemDriftS1InstructionDiscriminator: number[];
|
|
74
|
+
/**
|
|
75
|
+
* Creates a _RedeemDriftS1_ instruction.
|
|
76
|
+
*
|
|
77
|
+
* Optional accounts that are not provided default to the program ID since
|
|
78
|
+
* this was indicated in the IDL from which this instruction was generated.
|
|
79
|
+
*
|
|
80
|
+
* @param accounts that will be accessed while the instruction is processed
|
|
81
|
+
* @param args to provide as instruction data to the program
|
|
82
|
+
*
|
|
83
|
+
* @category Instructions
|
|
84
|
+
* @category RedeemDriftS1
|
|
85
|
+
* @category generated
|
|
86
|
+
*/
|
|
87
|
+
export declare function createRedeemDriftS1Instruction(accounts: RedeemDriftS1InstructionAccounts, args: RedeemDriftS1InstructionArgs, programId?: web3.PublicKey): web3.TransactionInstruction;
|
|
@@ -61,7 +61,7 @@ exports.redeemDriftS1InstructionDiscriminator = [
|
|
|
61
61
|
* @category RedeemDriftS1
|
|
62
62
|
* @category generated
|
|
63
63
|
*/
|
|
64
|
-
function createRedeemDriftS1Instruction(accounts, args, programId = new web3.PublicKey('
|
|
64
|
+
function createRedeemDriftS1Instruction(accounts, args, programId = new web3.PublicKey('rf1ctRXK4bmG5XNttAMYfB3TKd2vQjFv5cfQhDBxdAQ')) {
|
|
65
65
|
var _a, _b, _c;
|
|
66
66
|
const [data] = exports.redeemDriftS1Struct.serialize(Object.assign({ instructionDiscriminator: exports.redeemDriftS1InstructionDiscriminator }, args));
|
|
67
67
|
const keys = [
|
|
@@ -0,0 +1,87 @@
|
|
|
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 RedeemDriftS3
|
|
12
|
+
* @category generated
|
|
13
|
+
*/
|
|
14
|
+
export type RedeemDriftS3InstructionArgs = {
|
|
15
|
+
rusdBurnAmount: beet.bignum;
|
|
16
|
+
minLstRedeem: beet.bignum;
|
|
17
|
+
canChill: boolean;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* @category Instructions
|
|
21
|
+
* @category RedeemDriftS3
|
|
22
|
+
* @category generated
|
|
23
|
+
*/
|
|
24
|
+
export declare const redeemDriftS3Struct: beet.BeetArgsStruct<RedeemDriftS3InstructionArgs & {
|
|
25
|
+
instructionDiscriminator: number[];
|
|
26
|
+
}>;
|
|
27
|
+
/**
|
|
28
|
+
* Accounts required by the _redeemDriftS3_ instruction
|
|
29
|
+
*
|
|
30
|
+
* @property [_writable_, **signer**] user
|
|
31
|
+
* @property [_writable_] main
|
|
32
|
+
* @property [_writable_] lstController
|
|
33
|
+
* @property [] adminPermissions (optional)
|
|
34
|
+
* @property [_writable_] userLstAta
|
|
35
|
+
* @property [_writable_] controllerLstAta
|
|
36
|
+
* @property [_writable_] userReflectAta
|
|
37
|
+
* @property [_writable_] stableMint
|
|
38
|
+
* @property [] drift
|
|
39
|
+
* @property [_writable_] state
|
|
40
|
+
* @property [_writable_] userStats
|
|
41
|
+
* @property [_writable_] referrerUserStats
|
|
42
|
+
* @property [_writable_] referrerUser
|
|
43
|
+
* @property [_writable_] userAccount
|
|
44
|
+
* @property [_writable_] spotMarketVault
|
|
45
|
+
* @property [_writable_] driftVault
|
|
46
|
+
* @property [] clock
|
|
47
|
+
* @category Instructions
|
|
48
|
+
* @category RedeemDriftS3
|
|
49
|
+
* @category generated
|
|
50
|
+
*/
|
|
51
|
+
export type RedeemDriftS3InstructionAccounts = {
|
|
52
|
+
user: web3.PublicKey;
|
|
53
|
+
main: web3.PublicKey;
|
|
54
|
+
lstController: web3.PublicKey;
|
|
55
|
+
adminPermissions?: web3.PublicKey;
|
|
56
|
+
userLstAta: web3.PublicKey;
|
|
57
|
+
controllerLstAta: web3.PublicKey;
|
|
58
|
+
userReflectAta: web3.PublicKey;
|
|
59
|
+
stableMint: web3.PublicKey;
|
|
60
|
+
drift: web3.PublicKey;
|
|
61
|
+
state: web3.PublicKey;
|
|
62
|
+
userStats: web3.PublicKey;
|
|
63
|
+
referrerUserStats: web3.PublicKey;
|
|
64
|
+
referrerUser: web3.PublicKey;
|
|
65
|
+
userAccount: web3.PublicKey;
|
|
66
|
+
spotMarketVault: web3.PublicKey;
|
|
67
|
+
driftVault: web3.PublicKey;
|
|
68
|
+
tokenProgram?: web3.PublicKey;
|
|
69
|
+
systemProgram?: web3.PublicKey;
|
|
70
|
+
clock: web3.PublicKey;
|
|
71
|
+
anchorRemainingAccounts?: web3.AccountMeta[];
|
|
72
|
+
};
|
|
73
|
+
export declare const redeemDriftS3InstructionDiscriminator: number[];
|
|
74
|
+
/**
|
|
75
|
+
* Creates a _RedeemDriftS3_ instruction.
|
|
76
|
+
*
|
|
77
|
+
* Optional accounts that are not provided default to the program ID since
|
|
78
|
+
* this was indicated in the IDL from which this instruction was generated.
|
|
79
|
+
*
|
|
80
|
+
* @param accounts that will be accessed while the instruction is processed
|
|
81
|
+
* @param args to provide as instruction data to the program
|
|
82
|
+
*
|
|
83
|
+
* @category Instructions
|
|
84
|
+
* @category RedeemDriftS3
|
|
85
|
+
* @category generated
|
|
86
|
+
*/
|
|
87
|
+
export declare function createRedeemDriftS3Instruction(accounts: RedeemDriftS3InstructionAccounts, args: RedeemDriftS3InstructionArgs, programId?: web3.PublicKey): web3.TransactionInstruction;
|
|
@@ -61,7 +61,7 @@ exports.redeemDriftS3InstructionDiscriminator = [
|
|
|
61
61
|
* @category RedeemDriftS3
|
|
62
62
|
* @category generated
|
|
63
63
|
*/
|
|
64
|
-
function createRedeemDriftS3Instruction(accounts, args, programId = new web3.PublicKey('
|
|
64
|
+
function createRedeemDriftS3Instruction(accounts, args, programId = new web3.PublicKey('rf1ctRXK4bmG5XNttAMYfB3TKd2vQjFv5cfQhDBxdAQ')) {
|
|
65
65
|
var _a, _b, _c;
|
|
66
66
|
const [data] = exports.redeemDriftS3Struct.serialize(Object.assign({ instructionDiscriminator: exports.redeemDriftS3InstructionDiscriminator }, args));
|
|
67
67
|
const keys = [
|
|
@@ -0,0 +1,50 @@
|
|
|
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 [] drift
|
|
24
|
+
* @property [_writable_] state
|
|
25
|
+
* @property [_writable_] userAccount
|
|
26
|
+
* @property [_writable_] usdcMarketVault
|
|
27
|
+
* @category Instructions
|
|
28
|
+
* @category SettlePnl
|
|
29
|
+
* @category generated
|
|
30
|
+
*/
|
|
31
|
+
export type SettlePnlInstructionAccounts = {
|
|
32
|
+
settler: web3.PublicKey;
|
|
33
|
+
main: web3.PublicKey;
|
|
34
|
+
strategyController: web3.PublicKey;
|
|
35
|
+
drift: web3.PublicKey;
|
|
36
|
+
state: web3.PublicKey;
|
|
37
|
+
userAccount: web3.PublicKey;
|
|
38
|
+
usdcMarketVault: web3.PublicKey;
|
|
39
|
+
anchorRemainingAccounts?: web3.AccountMeta[];
|
|
40
|
+
};
|
|
41
|
+
export declare const settlePnlInstructionDiscriminator: number[];
|
|
42
|
+
/**
|
|
43
|
+
* Creates a _SettlePnl_ instruction.
|
|
44
|
+
*
|
|
45
|
+
* @param accounts that will be accessed while the instruction is processed
|
|
46
|
+
* @category Instructions
|
|
47
|
+
* @category SettlePnl
|
|
48
|
+
* @category generated
|
|
49
|
+
*/
|
|
50
|
+
export declare function createSettlePnlInstruction(accounts: SettlePnlInstructionAccounts, programId?: web3.PublicKey): web3.TransactionInstruction;
|
|
@@ -45,16 +45,12 @@ exports.settlePnlInstructionDiscriminator = [
|
|
|
45
45
|
/**
|
|
46
46
|
* Creates a _SettlePnl_ instruction.
|
|
47
47
|
*
|
|
48
|
-
* Optional accounts that are not provided default to the program ID since
|
|
49
|
-
* this was indicated in the IDL from which this instruction was generated.
|
|
50
|
-
*
|
|
51
48
|
* @param accounts that will be accessed while the instruction is processed
|
|
52
49
|
* @category Instructions
|
|
53
50
|
* @category SettlePnl
|
|
54
51
|
* @category generated
|
|
55
52
|
*/
|
|
56
|
-
function createSettlePnlInstruction(accounts, programId = new web3.PublicKey('
|
|
57
|
-
var _a;
|
|
53
|
+
function createSettlePnlInstruction(accounts, programId = new web3.PublicKey('rf1ctRXK4bmG5XNttAMYfB3TKd2vQjFv5cfQhDBxdAQ')) {
|
|
58
54
|
const [data] = exports.settlePnlStruct.serialize({
|
|
59
55
|
instructionDiscriminator: exports.settlePnlInstructionDiscriminator,
|
|
60
56
|
});
|
|
@@ -74,11 +70,6 @@ function createSettlePnlInstruction(accounts, programId = new web3.PublicKey('9C
|
|
|
74
70
|
isWritable: true,
|
|
75
71
|
isSigner: false,
|
|
76
72
|
},
|
|
77
|
-
{
|
|
78
|
-
pubkey: (_a = accounts.adminPermissions) !== null && _a !== void 0 ? _a : programId,
|
|
79
|
-
isWritable: false,
|
|
80
|
-
isSigner: false,
|
|
81
|
-
},
|
|
82
73
|
{
|
|
83
74
|
pubkey: accounts.drift,
|
|
84
75
|
isWritable: false,
|
|
@@ -0,0 +1,60 @@
|
|
|
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 [] drift
|
|
32
|
+
* @property [_writable_] state
|
|
33
|
+
* @property [_writable_] userAccount
|
|
34
|
+
* @property [_writable_] usdcMarketVault
|
|
35
|
+
* @category Instructions
|
|
36
|
+
* @category SettlePnlMulti
|
|
37
|
+
* @category generated
|
|
38
|
+
*/
|
|
39
|
+
export type SettlePnlMultiInstructionAccounts = {
|
|
40
|
+
settler: web3.PublicKey;
|
|
41
|
+
main: web3.PublicKey;
|
|
42
|
+
strategyController: web3.PublicKey;
|
|
43
|
+
drift: web3.PublicKey;
|
|
44
|
+
state: web3.PublicKey;
|
|
45
|
+
userAccount: web3.PublicKey;
|
|
46
|
+
usdcMarketVault: web3.PublicKey;
|
|
47
|
+
anchorRemainingAccounts?: web3.AccountMeta[];
|
|
48
|
+
};
|
|
49
|
+
export declare const settlePnlMultiInstructionDiscriminator: number[];
|
|
50
|
+
/**
|
|
51
|
+
* Creates a _SettlePnlMulti_ 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 SettlePnlMulti
|
|
58
|
+
* @category generated
|
|
59
|
+
*/
|
|
60
|
+
export declare function createSettlePnlMultiInstruction(accounts: SettlePnlMultiInstructionAccounts, args: SettlePnlMultiInstructionArgs, programId?: web3.PublicKey): web3.TransactionInstruction;
|
|
@@ -48,9 +48,6 @@ exports.settlePnlMultiInstructionDiscriminator = [
|
|
|
48
48
|
/**
|
|
49
49
|
* Creates a _SettlePnlMulti_ instruction.
|
|
50
50
|
*
|
|
51
|
-
* Optional accounts that are not provided default to the program ID since
|
|
52
|
-
* this was indicated in the IDL from which this instruction was generated.
|
|
53
|
-
*
|
|
54
51
|
* @param accounts that will be accessed while the instruction is processed
|
|
55
52
|
* @param args to provide as instruction data to the program
|
|
56
53
|
*
|
|
@@ -58,8 +55,7 @@ exports.settlePnlMultiInstructionDiscriminator = [
|
|
|
58
55
|
* @category SettlePnlMulti
|
|
59
56
|
* @category generated
|
|
60
57
|
*/
|
|
61
|
-
function createSettlePnlMultiInstruction(accounts, args, programId = new web3.PublicKey('
|
|
62
|
-
var _a;
|
|
58
|
+
function createSettlePnlMultiInstruction(accounts, args, programId = new web3.PublicKey('rf1ctRXK4bmG5XNttAMYfB3TKd2vQjFv5cfQhDBxdAQ')) {
|
|
63
59
|
const [data] = exports.settlePnlMultiStruct.serialize(Object.assign({ instructionDiscriminator: exports.settlePnlMultiInstructionDiscriminator }, args));
|
|
64
60
|
const keys = [
|
|
65
61
|
{
|
|
@@ -77,11 +73,6 @@ function createSettlePnlMultiInstruction(accounts, args, programId = new web3.Pu
|
|
|
77
73
|
isWritable: true,
|
|
78
74
|
isSigner: false,
|
|
79
75
|
},
|
|
80
|
-
{
|
|
81
|
-
pubkey: (_a = accounts.adminPermissions) !== null && _a !== void 0 ? _a : programId,
|
|
82
|
-
isWritable: false,
|
|
83
|
-
isSigner: false,
|
|
84
|
-
},
|
|
85
76
|
{
|
|
86
77
|
pubkey: accounts.drift,
|
|
87
78
|
isWritable: false,
|
|
@@ -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 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;
|