@reflectmoney/stable.ts 1.0.0 → 1.0.2
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/README.md +178 -7
- package/dist/classes/PdaClient.d.ts +112 -0
- package/dist/classes/PdaClient.js +112 -0
- package/dist/classes/ReflectAdmin.d.ts +87 -2
- package/dist/classes/ReflectAdmin.js +84 -1
- package/dist/classes/ReflectTokenisedBond.d.ts +57 -0
- package/dist/classes/ReflectTokenisedBond.js +56 -0
- package/dist/classes/Stablecoin.d.ts +139 -1
- package/dist/classes/Stablecoin.js +83 -1
- package/dist/stablecoins/LstStablecoin.d.ts +47 -0
- package/dist/stablecoins/LstStablecoin.js +46 -0
- package/package.json +1 -1
- package/dist/classes/Strategy.d.ts +0 -30
- package/dist/classes/Strategy.js +0 -196
- package/dist/generated/accounts/DriftJlpController.d.ts +0 -114
- package/dist/generated/accounts/DriftJlpController.js +0 -169
- package/dist/generated/accounts/DriftLstController.d.ts +0 -108
- package/dist/generated/accounts/DriftLstController.js +0 -165
- package/dist/generated/accounts/DriftUsdcController.d.ts +0 -102
- package/dist/generated/accounts/DriftUsdcController.js +0 -158
- package/dist/generated/accounts/Main.d.ts +0 -110
- package/dist/generated/accounts/Main.js +0 -165
- package/dist/generated/accounts/PerpMarket.d.ts +0 -226
- package/dist/generated/accounts/PerpMarket.js +0 -307
- package/dist/generated/accounts/PrelaunchOracle.d.ts +0 -130
- package/dist/generated/accounts/PrelaunchOracle.js +0 -224
- package/dist/generated/accounts/PythLazerOracle.d.ts +0 -124
- package/dist/generated/accounts/PythLazerOracle.js +0 -210
- package/dist/generated/accounts/RebalanceLst.d.ts +0 -111
- package/dist/generated/accounts/RebalanceLst.js +0 -175
- package/dist/generated/accounts/SpotMarket.d.ts +0 -377
- package/dist/generated/accounts/SpotMarket.js +0 -601
- package/dist/generated/accounts/User.d.ts +0 -221
- package/dist/generated/accounts/User.js +0 -331
- package/dist/generated/accounts/UserPermissions.d.ts +0 -106
- package/dist/generated/accounts/UserPermissions.js +0 -161
- package/dist/generated/accounts/UserStats.d.ts +0 -211
- package/dist/generated/accounts/UserStats.js +0 -323
- package/dist/generated/accounts/index.d.ts +0 -38
- package/dist/generated/accounts/index.js +0 -55
- package/dist/generated/errors/index.d.ts +0 -1024
- package/dist/generated/errors/index.js +0 -1761
- package/dist/generated/index.d.ts +0 -19
- package/dist/generated/index.js +0 -36
- package/dist/generated/instructions/addLstDrift.d.ts +0 -49
- package/dist/generated/instructions/addLstDrift.js +0 -106
- package/dist/generated/instructions/addSubAccount.d.ts +0 -54
- package/dist/generated/instructions/addSubAccount.js +0 -121
- package/dist/generated/instructions/adjustHedgeS2.d.ts +0 -69
- package/dist/generated/instructions/adjustHedgeS2.js +0 -157
- package/dist/generated/instructions/captureSpreadDrift.d.ts +0 -56
- package/dist/generated/instructions/captureSpreadDrift.js +0 -120
- package/dist/generated/instructions/createAdminAccount.d.ts +0 -53
- package/dist/generated/instructions/createAdminAccount.js +0 -95
- package/dist/generated/instructions/createUserStatsAccount.d.ts +0 -54
- package/dist/generated/instructions/createUserStatsAccount.js +0 -121
- package/dist/generated/instructions/depositDrift.d.ts +0 -73
- package/dist/generated/instructions/depositDrift.js +0 -142
- package/dist/generated/instructions/freezeProgram.d.ts +0 -54
- package/dist/generated/instructions/freezeProgram.js +0 -95
- package/dist/generated/instructions/freezeProtocolAction.d.ts +0 -55
- package/dist/generated/instructions/freezeProtocolAction.js +0 -96
- package/dist/generated/instructions/freezeStrategyAction.d.ts +0 -58
- package/dist/generated/instructions/freezeStrategyAction.js +0 -102
- package/dist/generated/instructions/index.d.ts +0 -41
- package/dist/generated/instructions/index.js +0 -57
- package/dist/generated/instructions/initDriftAccountsS1.d.ts +0 -56
- package/dist/generated/instructions/initDriftAccountsS1.js +0 -126
- package/dist/generated/instructions/initDriftControllerS1.d.ts +0 -60
- package/dist/generated/instructions/initDriftControllerS1.js +0 -108
- package/dist/generated/instructions/initDriftControllerS2.d.ts +0 -66
- package/dist/generated/instructions/initDriftControllerS2.js +0 -125
- package/dist/generated/instructions/initDriftControllerS3.d.ts +0 -58
- package/dist/generated/instructions/initDriftControllerS3.js +0 -103
- package/dist/generated/instructions/initMain.d.ts +0 -43
- package/dist/generated/instructions/initMain.js +0 -91
- package/dist/generated/instructions/mintDriftS1.d.ts +0 -90
- package/dist/generated/instructions/mintDriftS1.js +0 -184
- package/dist/generated/instructions/mintDriftS2.d.ts +0 -80
- package/dist/generated/instructions/mintDriftS2.js +0 -161
- package/dist/generated/instructions/mintDriftS3.d.ts +0 -86
- package/dist/generated/instructions/mintDriftS3.js +0 -174
- package/dist/generated/instructions/processSwapDeposit.d.ts +0 -79
- package/dist/generated/instructions/processSwapDeposit.js +0 -161
- package/dist/generated/instructions/processSwapDepositIntrospection.d.ts +0 -79
- package/dist/generated/instructions/processSwapDepositIntrospection.js +0 -161
- package/dist/generated/instructions/processSwapWithdraw.d.ts +0 -68
- package/dist/generated/instructions/processSwapWithdraw.js +0 -157
- package/dist/generated/instructions/processSwapWithdrawIntrospection.d.ts +0 -68
- package/dist/generated/instructions/processSwapWithdrawIntrospection.js +0 -157
- package/dist/generated/instructions/rebalanceJlp.d.ts +0 -81
- package/dist/generated/instructions/rebalanceJlp.js +0 -187
- package/dist/generated/instructions/redeem2DriftS2.d.ts +0 -80
- package/dist/generated/instructions/redeem2DriftS2.js +0 -161
- package/dist/generated/instructions/redeemDriftS1.d.ts +0 -91
- package/dist/generated/instructions/redeemDriftS1.js +0 -185
- package/dist/generated/instructions/redeemDriftS2.d.ts +0 -80
- package/dist/generated/instructions/redeemDriftS2.js +0 -161
- package/dist/generated/instructions/redeemDriftS3.d.ts +0 -87
- package/dist/generated/instructions/redeemDriftS3.js +0 -175
- package/dist/generated/instructions/settlePnl.d.ts +0 -55
- package/dist/generated/instructions/settlePnl.js +0 -114
- package/dist/generated/instructions/settlePnlMulti.d.ts +0 -65
- package/dist/generated/instructions/settlePnlMulti.js +0 -117
- package/dist/generated/instructions/suspendLstProtocol.d.ts +0 -54
- package/dist/generated/instructions/suspendLstProtocol.js +0 -96
- package/dist/generated/instructions/suspendLstStrategy.d.ts +0 -56
- package/dist/generated/instructions/suspendLstStrategy.js +0 -101
- package/dist/generated/instructions/swapOrca.d.ts +0 -78
- package/dist/generated/instructions/swapOrca.js +0 -153
- package/dist/generated/instructions/swapOrcaTwoHop.d.ts +0 -98
- package/dist/generated/instructions/swapOrcaTwoHop.js +0 -200
- package/dist/generated/instructions/updateActionRoleProtocol.d.ts +0 -58
- package/dist/generated/instructions/updateActionRoleProtocol.js +0 -99
- package/dist/generated/instructions/updateActionRoleStrategy.d.ts +0 -61
- package/dist/generated/instructions/updateActionRoleStrategy.js +0 -105
- package/dist/generated/instructions/updateAttenuation.d.ts +0 -56
- package/dist/generated/instructions/updateAttenuation.js +0 -100
- package/dist/generated/instructions/updateCap.d.ts +0 -55
- package/dist/generated/instructions/updateCap.js +0 -99
- package/dist/generated/instructions/updateRebalanceSlippage.d.ts +0 -55
- package/dist/generated/instructions/updateRebalanceSlippage.js +0 -99
- package/dist/generated/instructions/updateRecipients.d.ts +0 -56
- package/dist/generated/instructions/updateRecipients.js +0 -101
- package/dist/generated/instructions/updateRoleHolderProtocol.d.ts +0 -61
- package/dist/generated/instructions/updateRoleHolderProtocol.js +0 -109
- package/dist/generated/instructions/updateRoleHolderStrategy.d.ts +0 -62
- package/dist/generated/instructions/updateRoleHolderStrategy.js +0 -110
- package/dist/generated/types/AMM.d.ts +0 -102
- package/dist/generated/types/AMM.js +0 -127
- package/dist/generated/types/AccKey.d.ts +0 -15
- package/dist/generated/types/AccKey.js +0 -38
- package/dist/generated/types/AccessControl.d.ts +0 -18
- package/dist/generated/types/AccessControl.js +0 -43
- package/dist/generated/types/AccessMap.d.ts +0 -17
- package/dist/generated/types/AccessMap.js +0 -42
- package/dist/generated/types/Action.d.ts +0 -36
- package/dist/generated/types/Action.js +0 -63
- package/dist/generated/types/ActionMapping.d.ts +0 -19
- package/dist/generated/types/ActionMapping.js +0 -44
- package/dist/generated/types/AssetTier.d.ts +0 -23
- package/dist/generated/types/AssetTier.js +0 -50
- package/dist/generated/types/Attenuation.d.ts +0 -16
- package/dist/generated/types/Attenuation.js +0 -41
- package/dist/generated/types/BalanceType.d.ts +0 -20
- package/dist/generated/types/BalanceType.js +0 -47
- package/dist/generated/types/ContractTier.d.ts +0 -24
- package/dist/generated/types/ContractTier.js +0 -51
- package/dist/generated/types/ContractType.d.ts +0 -20
- package/dist/generated/types/ContractType.js +0 -47
- package/dist/generated/types/CorpAction.d.ts +0 -19
- package/dist/generated/types/CorpAction.js +0 -46
- package/dist/generated/types/CustodyInfo.d.ts +0 -20
- package/dist/generated/types/CustodyInfo.js +0 -45
- package/dist/generated/types/DirectionCollateral.d.ts +0 -20
- package/dist/generated/types/DirectionCollateral.js +0 -47
- package/dist/generated/types/DirectionPosition.d.ts +0 -20
- package/dist/generated/types/DirectionPosition.js +0 -47
- package/dist/generated/types/DriftControllerBase.d.ts +0 -15
- package/dist/generated/types/DriftControllerBase.js +0 -38
- package/dist/generated/types/DriftJlpControllerFixedAccounts.d.ts +0 -18
- package/dist/generated/types/DriftJlpControllerFixedAccounts.js +0 -43
- package/dist/generated/types/DriftLstData.d.ts +0 -17
- package/dist/generated/types/DriftLstData.js +0 -42
- package/dist/generated/types/Ema.d.ts +0 -17
- package/dist/generated/types/Ema.js +0 -42
- package/dist/generated/types/Externals.d.ts +0 -16
- package/dist/generated/types/Externals.js +0 -39
- package/dist/generated/types/HistoricalIndexData.d.ts +0 -19
- package/dist/generated/types/HistoricalIndexData.js +0 -44
- package/dist/generated/types/HistoricalOracleData.d.ts +0 -20
- package/dist/generated/types/HistoricalOracleData.js +0 -45
- package/dist/generated/types/Holding.d.ts +0 -21
- package/dist/generated/types/Holding.js +0 -46
- package/dist/generated/types/Holdings.d.ts +0 -17
- package/dist/generated/types/Holdings.js +0 -42
- package/dist/generated/types/InitControllerS2Args.d.ts +0 -23
- package/dist/generated/types/InitControllerS2Args.js +0 -48
- package/dist/generated/types/InsuranceClaim.d.ts +0 -19
- package/dist/generated/types/InsuranceClaim.js +0 -44
- package/dist/generated/types/InsuranceFund.d.ts +0 -24
- package/dist/generated/types/InsuranceFund.js +0 -49
- package/dist/generated/types/JlpRebalanceSettings.d.ts +0 -15
- package/dist/generated/types/JlpRebalanceSettings.js +0 -38
- package/dist/generated/types/KillSwitch.d.ts +0 -15
- package/dist/generated/types/KillSwitch.js +0 -38
- package/dist/generated/types/LevelRoles.d.ts +0 -16
- package/dist/generated/types/LevelRoles.js +0 -39
- package/dist/generated/types/MarketStatus.d.ts +0 -27
- package/dist/generated/types/MarketStatus.js +0 -54
- package/dist/generated/types/MarketType.d.ts +0 -20
- package/dist/generated/types/MarketType.js +0 -47
- package/dist/generated/types/MintJlpArgs.d.ts +0 -15
- package/dist/generated/types/MintJlpArgs.js +0 -38
- package/dist/generated/types/ModifyOrderParams.d.ts +0 -32
- package/dist/generated/types/ModifyOrderParams.js +0 -57
- package/dist/generated/types/ModifyOrderPolicy.d.ts +0 -20
- package/dist/generated/types/ModifyOrderPolicy.js +0 -47
- package/dist/generated/types/Movements.d.ts +0 -19
- package/dist/generated/types/Movements.js +0 -44
- package/dist/generated/types/OracleGuardRails.d.ts +0 -18
- package/dist/generated/types/OracleGuardRails.js +0 -43
- package/dist/generated/types/OracleSource.d.ts +0 -34
- package/dist/generated/types/OracleSource.js +0 -61
- package/dist/generated/types/OracleValidity.d.ts +0 -25
- package/dist/generated/types/OracleValidity.js +0 -52
- package/dist/generated/types/Order.d.ts +0 -43
- package/dist/generated/types/Order.js +0 -68
- package/dist/generated/types/OrderDirection.d.ts +0 -20
- package/dist/generated/types/OrderDirection.js +0 -47
- package/dist/generated/types/OrderParams.d.ts +0 -36
- package/dist/generated/types/OrderParams.js +0 -61
- package/dist/generated/types/OrderStatus.d.ts +0 -22
- package/dist/generated/types/OrderStatus.js +0 -49
- package/dist/generated/types/OrderTriggerCondition.d.ts +0 -22
- package/dist/generated/types/OrderTriggerCondition.js +0 -49
- package/dist/generated/types/OrderType.d.ts +0 -23
- package/dist/generated/types/OrderType.js +0 -50
- package/dist/generated/types/PermissionLevel.d.ts +0 -45
- package/dist/generated/types/PermissionLevel.js +0 -48
- package/dist/generated/types/PerpHedge.d.ts +0 -17
- package/dist/generated/types/PerpHedge.js +0 -42
- package/dist/generated/types/PerpPosition.d.ts +0 -29
- package/dist/generated/types/PerpPosition.js +0 -54
- package/dist/generated/types/PoolBalance.d.ts +0 -17
- package/dist/generated/types/PoolBalance.js +0 -42
- package/dist/generated/types/Position.d.ts +0 -20
- package/dist/generated/types/Position.js +0 -45
- package/dist/generated/types/PositionDirection.d.ts +0 -20
- package/dist/generated/types/PositionDirection.js +0 -47
- package/dist/generated/types/PositionDrift.d.ts +0 -18
- package/dist/generated/types/PositionDrift.js +0 -43
- package/dist/generated/types/PostOnlyParam.d.ts +0 -22
- package/dist/generated/types/PostOnlyParam.js +0 -49
- package/dist/generated/types/Price.d.ts +0 -41
- package/dist/generated/types/Price.js +0 -66
- package/dist/generated/types/PriceComp.d.ts +0 -19
- package/dist/generated/types/PriceComp.js +0 -44
- package/dist/generated/types/PriceDivergenceGuardRails.d.ts +0 -16
- package/dist/generated/types/PriceDivergenceGuardRails.js +0 -41
- package/dist/generated/types/PriceInfo.d.ts +0 -21
- package/dist/generated/types/PriceInfo.js +0 -46
- package/dist/generated/types/PriceStatus.d.ts +0 -22
- package/dist/generated/types/PriceStatus.js +0 -49
- package/dist/generated/types/PriceType.d.ts +0 -20
- package/dist/generated/types/PriceType.js +0 -47
- package/dist/generated/types/ProcessSwapDepositArgs.d.ts +0 -15
- package/dist/generated/types/ProcessSwapDepositArgs.js +0 -38
- package/dist/generated/types/ProcessSwapDepositIntrospectionArgs.d.ts +0 -15
- package/dist/generated/types/ProcessSwapDepositIntrospectionArgs.js +0 -38
- package/dist/generated/types/Program.d.ts +0 -19
- package/dist/generated/types/Program.js +0 -44
- package/dist/generated/types/ProgramStatus.d.ts +0 -20
- package/dist/generated/types/ProgramStatus.js +0 -47
- package/dist/generated/types/RebalanceConfig.d.ts +0 -15
- package/dist/generated/types/RebalanceConfig.js +0 -38
- package/dist/generated/types/Recipient.d.ts +0 -17
- package/dist/generated/types/Recipient.js +0 -42
- package/dist/generated/types/Recipients.d.ts +0 -17
- package/dist/generated/types/Recipients.js +0 -42
- package/dist/generated/types/RedeemJlpArgs.d.ts +0 -15
- package/dist/generated/types/RedeemJlpArgs.js +0 -38
- package/dist/generated/types/Role.d.ts +0 -25
- package/dist/generated/types/Role.js +0 -52
- package/dist/generated/types/ShiftCollateral.d.ts +0 -19
- package/dist/generated/types/ShiftCollateral.js +0 -44
- package/dist/generated/types/ShiftPosition.d.ts +0 -17
- package/dist/generated/types/ShiftPosition.js +0 -42
- package/dist/generated/types/ShortHolding.d.ts +0 -17
- package/dist/generated/types/ShortHolding.js +0 -42
- package/dist/generated/types/SplBase.d.ts +0 -17
- package/dist/generated/types/SplBase.js +0 -42
- package/dist/generated/types/SplMain.d.ts +0 -22
- package/dist/generated/types/SplMain.js +0 -47
- package/dist/generated/types/Spls.d.ts +0 -17
- package/dist/generated/types/Spls.js +0 -42
- package/dist/generated/types/SpotBalanceType.d.ts +0 -20
- package/dist/generated/types/SpotBalanceType.js +0 -47
- package/dist/generated/types/SpotPosition.d.ts +0 -23
- package/dist/generated/types/SpotPosition.js +0 -48
- package/dist/generated/types/Status.d.ts +0 -20
- package/dist/generated/types/Status.js +0 -47
- package/dist/generated/types/Strategy.d.ts +0 -31
- package/dist/generated/types/Strategy.js +0 -56
- package/dist/generated/types/StrategyRoleEntry.d.ts +0 -17
- package/dist/generated/types/StrategyRoleEntry.js +0 -42
- package/dist/generated/types/SubAccount.d.ts +0 -17
- package/dist/generated/types/SubAccount.js +0 -42
- package/dist/generated/types/Update.d.ts +0 -20
- package/dist/generated/types/Update.js +0 -47
- package/dist/generated/types/UserFees.d.ts +0 -20
- package/dist/generated/types/UserFees.js +0 -45
- package/dist/generated/types/ValidityGuardRails.d.ts +0 -18
- package/dist/generated/types/ValidityGuardRails.js +0 -43
- package/dist/generated/types/index.d.ts +0 -83
- package/dist/generated/types/index.js +0 -99
- package/dist/strategies/JlpStrategy.d.ts +0 -17
- package/dist/strategies/JlpStrategy.js +0 -337
- package/dist/strategies/LstStrategy.d.ts +0 -19
- package/dist/strategies/LstStrategy.js +0 -169
- package/dist/strategies/UsdcStrategy.d.ts +0 -12
- package/dist/strategies/UsdcStrategy.js +0 -89
- package/dist/strategies/index.d.ts +0 -3
- package/dist/strategies/index.js +0 -19
|
@@ -1,68 +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 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_] usdcMarketVault
|
|
23
|
-
* @property [_writable_] lstController
|
|
24
|
-
* @property [] adminPermissions
|
|
25
|
-
* @property [_writable_] spotMarketVault
|
|
26
|
-
* @property [_writable_] reflectTokenAccount
|
|
27
|
-
* @property [_writable_] adminTokenAccount
|
|
28
|
-
* @property [_writable_] rebalanceDetails
|
|
29
|
-
* @property [_writable_] state
|
|
30
|
-
* @property [] drift
|
|
31
|
-
* @property [_writable_] userStats
|
|
32
|
-
* @property [_writable_] userAccount
|
|
33
|
-
* @property [] instructionsSysvar
|
|
34
|
-
* @property [_writable_] driftVault
|
|
35
|
-
* @category Instructions
|
|
36
|
-
* @category ProcessSwapWithdraw
|
|
37
|
-
* @category generated
|
|
38
|
-
*/
|
|
39
|
-
export type ProcessSwapWithdrawInstructionAccounts = {
|
|
40
|
-
admin: web3.PublicKey;
|
|
41
|
-
main: web3.PublicKey;
|
|
42
|
-
usdcMarketVault: web3.PublicKey;
|
|
43
|
-
lstController: web3.PublicKey;
|
|
44
|
-
adminPermissions: web3.PublicKey;
|
|
45
|
-
spotMarketVault: web3.PublicKey;
|
|
46
|
-
reflectTokenAccount: web3.PublicKey;
|
|
47
|
-
adminTokenAccount: web3.PublicKey;
|
|
48
|
-
rebalanceDetails: web3.PublicKey;
|
|
49
|
-
state: web3.PublicKey;
|
|
50
|
-
drift: web3.PublicKey;
|
|
51
|
-
userStats: web3.PublicKey;
|
|
52
|
-
userAccount: web3.PublicKey;
|
|
53
|
-
systemProgram?: web3.PublicKey;
|
|
54
|
-
tokenProgram?: web3.PublicKey;
|
|
55
|
-
instructionsSysvar: web3.PublicKey;
|
|
56
|
-
driftVault: web3.PublicKey;
|
|
57
|
-
anchorRemainingAccounts?: web3.AccountMeta[];
|
|
58
|
-
};
|
|
59
|
-
export declare const processSwapWithdrawInstructionDiscriminator: number[];
|
|
60
|
-
/**
|
|
61
|
-
* Creates a _ProcessSwapWithdraw_ instruction.
|
|
62
|
-
*
|
|
63
|
-
* @param accounts that will be accessed while the instruction is processed
|
|
64
|
-
* @category Instructions
|
|
65
|
-
* @category ProcessSwapWithdraw
|
|
66
|
-
* @category generated
|
|
67
|
-
*/
|
|
68
|
-
export declare function createProcessSwapWithdrawInstruction(accounts: ProcessSwapWithdrawInstructionAccounts, programId?: web3.PublicKey): web3.TransactionInstruction;
|
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This code was GENERATED using the solita package.
|
|
4
|
-
* Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
|
|
5
|
-
*
|
|
6
|
-
* See: https://github.com/metaplex-foundation/solita
|
|
7
|
-
*/
|
|
8
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
9
|
-
if (k2 === undefined) k2 = k;
|
|
10
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
11
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
12
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
13
|
-
}
|
|
14
|
-
Object.defineProperty(o, k2, desc);
|
|
15
|
-
}) : (function(o, m, k, k2) {
|
|
16
|
-
if (k2 === undefined) k2 = k;
|
|
17
|
-
o[k2] = m[k];
|
|
18
|
-
}));
|
|
19
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
20
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
21
|
-
}) : function(o, v) {
|
|
22
|
-
o["default"] = v;
|
|
23
|
-
});
|
|
24
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
25
|
-
if (mod && mod.__esModule) return mod;
|
|
26
|
-
var result = {};
|
|
27
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
28
|
-
__setModuleDefault(result, mod);
|
|
29
|
-
return result;
|
|
30
|
-
};
|
|
31
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
-
exports.processSwapWithdrawInstructionDiscriminator = exports.processSwapWithdrawStruct = void 0;
|
|
33
|
-
exports.createProcessSwapWithdrawInstruction = createProcessSwapWithdrawInstruction;
|
|
34
|
-
const splToken = __importStar(require("@solana/spl-token"));
|
|
35
|
-
const beet = __importStar(require("@metaplex-foundation/beet"));
|
|
36
|
-
const web3 = __importStar(require("@solana/web3.js"));
|
|
37
|
-
/**
|
|
38
|
-
* @category Instructions
|
|
39
|
-
* @category ProcessSwapWithdraw
|
|
40
|
-
* @category generated
|
|
41
|
-
*/
|
|
42
|
-
exports.processSwapWithdrawStruct = new beet.BeetArgsStruct([['instructionDiscriminator', beet.uniformFixedSizeArray(beet.u8, 8)]], 'ProcessSwapWithdrawInstructionArgs');
|
|
43
|
-
exports.processSwapWithdrawInstructionDiscriminator = [
|
|
44
|
-
111, 227, 177, 122, 158, 194, 20, 38,
|
|
45
|
-
];
|
|
46
|
-
/**
|
|
47
|
-
* Creates a _ProcessSwapWithdraw_ instruction.
|
|
48
|
-
*
|
|
49
|
-
* @param accounts that will be accessed while the instruction is processed
|
|
50
|
-
* @category Instructions
|
|
51
|
-
* @category ProcessSwapWithdraw
|
|
52
|
-
* @category generated
|
|
53
|
-
*/
|
|
54
|
-
function createProcessSwapWithdrawInstruction(accounts, programId = new web3.PublicKey('9CtYQNCz3LaQ9DnqXa83q6gdHGwMeN6aQ7KqqotBmeke')) {
|
|
55
|
-
var _a, _b;
|
|
56
|
-
const [data] = exports.processSwapWithdrawStruct.serialize({
|
|
57
|
-
instructionDiscriminator: exports.processSwapWithdrawInstructionDiscriminator,
|
|
58
|
-
});
|
|
59
|
-
const keys = [
|
|
60
|
-
{
|
|
61
|
-
pubkey: accounts.admin,
|
|
62
|
-
isWritable: true,
|
|
63
|
-
isSigner: true,
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
pubkey: accounts.main,
|
|
67
|
-
isWritable: true,
|
|
68
|
-
isSigner: false,
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
pubkey: accounts.usdcMarketVault,
|
|
72
|
-
isWritable: true,
|
|
73
|
-
isSigner: false,
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
pubkey: accounts.lstController,
|
|
77
|
-
isWritable: true,
|
|
78
|
-
isSigner: false,
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
pubkey: accounts.adminPermissions,
|
|
82
|
-
isWritable: false,
|
|
83
|
-
isSigner: false,
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
pubkey: accounts.spotMarketVault,
|
|
87
|
-
isWritable: true,
|
|
88
|
-
isSigner: false,
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
pubkey: accounts.reflectTokenAccount,
|
|
92
|
-
isWritable: true,
|
|
93
|
-
isSigner: false,
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
pubkey: accounts.adminTokenAccount,
|
|
97
|
-
isWritable: true,
|
|
98
|
-
isSigner: false,
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
pubkey: accounts.rebalanceDetails,
|
|
102
|
-
isWritable: true,
|
|
103
|
-
isSigner: false,
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
pubkey: accounts.state,
|
|
107
|
-
isWritable: true,
|
|
108
|
-
isSigner: false,
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
pubkey: accounts.drift,
|
|
112
|
-
isWritable: false,
|
|
113
|
-
isSigner: false,
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
pubkey: accounts.userStats,
|
|
117
|
-
isWritable: true,
|
|
118
|
-
isSigner: false,
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
pubkey: accounts.userAccount,
|
|
122
|
-
isWritable: true,
|
|
123
|
-
isSigner: false,
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
pubkey: (_a = accounts.systemProgram) !== null && _a !== void 0 ? _a : web3.SystemProgram.programId,
|
|
127
|
-
isWritable: false,
|
|
128
|
-
isSigner: false,
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
pubkey: (_b = accounts.tokenProgram) !== null && _b !== void 0 ? _b : splToken.TOKEN_PROGRAM_ID,
|
|
132
|
-
isWritable: false,
|
|
133
|
-
isSigner: false,
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
pubkey: accounts.instructionsSysvar,
|
|
137
|
-
isWritable: false,
|
|
138
|
-
isSigner: false,
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
pubkey: accounts.driftVault,
|
|
142
|
-
isWritable: true,
|
|
143
|
-
isSigner: false,
|
|
144
|
-
},
|
|
145
|
-
];
|
|
146
|
-
if (accounts.anchorRemainingAccounts != null) {
|
|
147
|
-
for (const acc of accounts.anchorRemainingAccounts) {
|
|
148
|
-
keys.push(acc);
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
const ix = new web3.TransactionInstruction({
|
|
152
|
-
programId,
|
|
153
|
-
keys,
|
|
154
|
-
data,
|
|
155
|
-
});
|
|
156
|
-
return ix;
|
|
157
|
-
}
|
|
@@ -1,68 +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 ProcessSwapWithdrawIntrospection
|
|
12
|
-
* @category generated
|
|
13
|
-
*/
|
|
14
|
-
export declare const processSwapWithdrawIntrospectionStruct: beet.BeetArgsStruct<{
|
|
15
|
-
instructionDiscriminator: number[];
|
|
16
|
-
}>;
|
|
17
|
-
/**
|
|
18
|
-
* Accounts required by the _processSwapWithdrawIntrospection_ instruction
|
|
19
|
-
*
|
|
20
|
-
* @property [_writable_, **signer**] admin
|
|
21
|
-
* @property [_writable_] main
|
|
22
|
-
* @property [_writable_] usdcMarketVault
|
|
23
|
-
* @property [_writable_] lstController
|
|
24
|
-
* @property [] adminPermissions
|
|
25
|
-
* @property [_writable_] spotMarketVault
|
|
26
|
-
* @property [_writable_] reflectTokenAccount
|
|
27
|
-
* @property [_writable_] adminTokenAccount
|
|
28
|
-
* @property [_writable_] rebalanceDetails
|
|
29
|
-
* @property [_writable_] state
|
|
30
|
-
* @property [] drift
|
|
31
|
-
* @property [_writable_] userStats
|
|
32
|
-
* @property [_writable_] userAccount
|
|
33
|
-
* @property [] instructionsSysvar
|
|
34
|
-
* @property [_writable_] driftVault
|
|
35
|
-
* @category Instructions
|
|
36
|
-
* @category ProcessSwapWithdrawIntrospection
|
|
37
|
-
* @category generated
|
|
38
|
-
*/
|
|
39
|
-
export type ProcessSwapWithdrawIntrospectionInstructionAccounts = {
|
|
40
|
-
admin: web3.PublicKey;
|
|
41
|
-
main: web3.PublicKey;
|
|
42
|
-
usdcMarketVault: web3.PublicKey;
|
|
43
|
-
lstController: web3.PublicKey;
|
|
44
|
-
adminPermissions: web3.PublicKey;
|
|
45
|
-
spotMarketVault: web3.PublicKey;
|
|
46
|
-
reflectTokenAccount: web3.PublicKey;
|
|
47
|
-
adminTokenAccount: web3.PublicKey;
|
|
48
|
-
rebalanceDetails: web3.PublicKey;
|
|
49
|
-
state: web3.PublicKey;
|
|
50
|
-
drift: web3.PublicKey;
|
|
51
|
-
userStats: web3.PublicKey;
|
|
52
|
-
userAccount: web3.PublicKey;
|
|
53
|
-
systemProgram?: web3.PublicKey;
|
|
54
|
-
tokenProgram?: web3.PublicKey;
|
|
55
|
-
instructionsSysvar: web3.PublicKey;
|
|
56
|
-
driftVault: web3.PublicKey;
|
|
57
|
-
anchorRemainingAccounts?: web3.AccountMeta[];
|
|
58
|
-
};
|
|
59
|
-
export declare const processSwapWithdrawIntrospectionInstructionDiscriminator: number[];
|
|
60
|
-
/**
|
|
61
|
-
* Creates a _ProcessSwapWithdrawIntrospection_ instruction.
|
|
62
|
-
*
|
|
63
|
-
* @param accounts that will be accessed while the instruction is processed
|
|
64
|
-
* @category Instructions
|
|
65
|
-
* @category ProcessSwapWithdrawIntrospection
|
|
66
|
-
* @category generated
|
|
67
|
-
*/
|
|
68
|
-
export declare function createProcessSwapWithdrawIntrospectionInstruction(accounts: ProcessSwapWithdrawIntrospectionInstructionAccounts, programId?: web3.PublicKey): web3.TransactionInstruction;
|
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This code was GENERATED using the solita package.
|
|
4
|
-
* Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
|
|
5
|
-
*
|
|
6
|
-
* See: https://github.com/metaplex-foundation/solita
|
|
7
|
-
*/
|
|
8
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
9
|
-
if (k2 === undefined) k2 = k;
|
|
10
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
11
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
12
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
13
|
-
}
|
|
14
|
-
Object.defineProperty(o, k2, desc);
|
|
15
|
-
}) : (function(o, m, k, k2) {
|
|
16
|
-
if (k2 === undefined) k2 = k;
|
|
17
|
-
o[k2] = m[k];
|
|
18
|
-
}));
|
|
19
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
20
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
21
|
-
}) : function(o, v) {
|
|
22
|
-
o["default"] = v;
|
|
23
|
-
});
|
|
24
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
25
|
-
if (mod && mod.__esModule) return mod;
|
|
26
|
-
var result = {};
|
|
27
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
28
|
-
__setModuleDefault(result, mod);
|
|
29
|
-
return result;
|
|
30
|
-
};
|
|
31
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
-
exports.processSwapWithdrawIntrospectionInstructionDiscriminator = exports.processSwapWithdrawIntrospectionStruct = void 0;
|
|
33
|
-
exports.createProcessSwapWithdrawIntrospectionInstruction = createProcessSwapWithdrawIntrospectionInstruction;
|
|
34
|
-
const splToken = __importStar(require("@solana/spl-token"));
|
|
35
|
-
const beet = __importStar(require("@metaplex-foundation/beet"));
|
|
36
|
-
const web3 = __importStar(require("@solana/web3.js"));
|
|
37
|
-
/**
|
|
38
|
-
* @category Instructions
|
|
39
|
-
* @category ProcessSwapWithdrawIntrospection
|
|
40
|
-
* @category generated
|
|
41
|
-
*/
|
|
42
|
-
exports.processSwapWithdrawIntrospectionStruct = new beet.BeetArgsStruct([['instructionDiscriminator', beet.uniformFixedSizeArray(beet.u8, 8)]], 'ProcessSwapWithdrawIntrospectionInstructionArgs');
|
|
43
|
-
exports.processSwapWithdrawIntrospectionInstructionDiscriminator = [
|
|
44
|
-
246, 245, 159, 49, 180, 21, 114, 211,
|
|
45
|
-
];
|
|
46
|
-
/**
|
|
47
|
-
* Creates a _ProcessSwapWithdrawIntrospection_ instruction.
|
|
48
|
-
*
|
|
49
|
-
* @param accounts that will be accessed while the instruction is processed
|
|
50
|
-
* @category Instructions
|
|
51
|
-
* @category ProcessSwapWithdrawIntrospection
|
|
52
|
-
* @category generated
|
|
53
|
-
*/
|
|
54
|
-
function createProcessSwapWithdrawIntrospectionInstruction(accounts, programId = new web3.PublicKey('9CtYQNCz3LaQ9DnqXa83q6gdHGwMeN6aQ7KqqotBmeke')) {
|
|
55
|
-
var _a, _b;
|
|
56
|
-
const [data] = exports.processSwapWithdrawIntrospectionStruct.serialize({
|
|
57
|
-
instructionDiscriminator: exports.processSwapWithdrawIntrospectionInstructionDiscriminator,
|
|
58
|
-
});
|
|
59
|
-
const keys = [
|
|
60
|
-
{
|
|
61
|
-
pubkey: accounts.admin,
|
|
62
|
-
isWritable: true,
|
|
63
|
-
isSigner: true,
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
pubkey: accounts.main,
|
|
67
|
-
isWritable: true,
|
|
68
|
-
isSigner: false,
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
pubkey: accounts.usdcMarketVault,
|
|
72
|
-
isWritable: true,
|
|
73
|
-
isSigner: false,
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
pubkey: accounts.lstController,
|
|
77
|
-
isWritable: true,
|
|
78
|
-
isSigner: false,
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
pubkey: accounts.adminPermissions,
|
|
82
|
-
isWritable: false,
|
|
83
|
-
isSigner: false,
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
pubkey: accounts.spotMarketVault,
|
|
87
|
-
isWritable: true,
|
|
88
|
-
isSigner: false,
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
pubkey: accounts.reflectTokenAccount,
|
|
92
|
-
isWritable: true,
|
|
93
|
-
isSigner: false,
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
pubkey: accounts.adminTokenAccount,
|
|
97
|
-
isWritable: true,
|
|
98
|
-
isSigner: false,
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
pubkey: accounts.rebalanceDetails,
|
|
102
|
-
isWritable: true,
|
|
103
|
-
isSigner: false,
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
pubkey: accounts.state,
|
|
107
|
-
isWritable: true,
|
|
108
|
-
isSigner: false,
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
pubkey: accounts.drift,
|
|
112
|
-
isWritable: false,
|
|
113
|
-
isSigner: false,
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
pubkey: accounts.userStats,
|
|
117
|
-
isWritable: true,
|
|
118
|
-
isSigner: false,
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
pubkey: accounts.userAccount,
|
|
122
|
-
isWritable: true,
|
|
123
|
-
isSigner: false,
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
pubkey: (_a = accounts.systemProgram) !== null && _a !== void 0 ? _a : web3.SystemProgram.programId,
|
|
127
|
-
isWritable: false,
|
|
128
|
-
isSigner: false,
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
pubkey: (_b = accounts.tokenProgram) !== null && _b !== void 0 ? _b : splToken.TOKEN_PROGRAM_ID,
|
|
132
|
-
isWritable: false,
|
|
133
|
-
isSigner: false,
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
pubkey: accounts.instructionsSysvar,
|
|
137
|
-
isWritable: false,
|
|
138
|
-
isSigner: false,
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
pubkey: accounts.driftVault,
|
|
142
|
-
isWritable: true,
|
|
143
|
-
isSigner: false,
|
|
144
|
-
},
|
|
145
|
-
];
|
|
146
|
-
if (accounts.anchorRemainingAccounts != null) {
|
|
147
|
-
for (const acc of accounts.anchorRemainingAccounts) {
|
|
148
|
-
keys.push(acc);
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
const ix = new web3.TransactionInstruction({
|
|
152
|
-
programId,
|
|
153
|
-
keys,
|
|
154
|
-
data,
|
|
155
|
-
});
|
|
156
|
-
return ix;
|
|
157
|
-
}
|
|
@@ -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 RebalanceJlp
|
|
12
|
-
* @category generated
|
|
13
|
-
*/
|
|
14
|
-
export declare const rebalanceJlpStruct: beet.BeetArgsStruct<{
|
|
15
|
-
instructionDiscriminator: number[];
|
|
16
|
-
}>;
|
|
17
|
-
/**
|
|
18
|
-
* Accounts required by the _rebalanceJlp_ instruction
|
|
19
|
-
*
|
|
20
|
-
* @property [**signer**] signer
|
|
21
|
-
* @property [] jlpPerpetuals
|
|
22
|
-
* @property [_writable_] jlpPool
|
|
23
|
-
* @property [] jlpTransferAuthority
|
|
24
|
-
* @property [] jlpEventAuthority
|
|
25
|
-
* @property [_writable_] jlpMint
|
|
26
|
-
* @property [] usdcMint
|
|
27
|
-
* @property [_writable_] reflectDriftAccount
|
|
28
|
-
* @property [_writable_] reflectDriftStatsAccount
|
|
29
|
-
* @property [_writable_] jlpController
|
|
30
|
-
* @property [_writable_] jlpControllerUsdcAccount
|
|
31
|
-
* @property [_writable_] jlpControllerJlpAccount
|
|
32
|
-
* @property [_writable_] jlpUsdcCustody
|
|
33
|
-
* @property [] jlpUsdcCustodyDovesPriceAccount
|
|
34
|
-
* @property [] jlpUsdcCustodyPythnetPriceAccount
|
|
35
|
-
* @property [_writable_] jlpUsdcCustodyTokenAccount
|
|
36
|
-
* @property [] driftSigner
|
|
37
|
-
* @property [_writable_] driftJlpSpotVault
|
|
38
|
-
* @property [_writable_] driftUsdcSpotVault
|
|
39
|
-
* @property [] driftState
|
|
40
|
-
* @property [] jupiterProgram
|
|
41
|
-
* @property [] driftProgram
|
|
42
|
-
* @category Instructions
|
|
43
|
-
* @category RebalanceJlp
|
|
44
|
-
* @category generated
|
|
45
|
-
*/
|
|
46
|
-
export type RebalanceJlpInstructionAccounts = {
|
|
47
|
-
signer: web3.PublicKey;
|
|
48
|
-
jlpPerpetuals: web3.PublicKey;
|
|
49
|
-
jlpPool: web3.PublicKey;
|
|
50
|
-
jlpTransferAuthority: web3.PublicKey;
|
|
51
|
-
jlpEventAuthority: web3.PublicKey;
|
|
52
|
-
jlpMint: web3.PublicKey;
|
|
53
|
-
usdcMint: web3.PublicKey;
|
|
54
|
-
reflectDriftAccount: web3.PublicKey;
|
|
55
|
-
reflectDriftStatsAccount: web3.PublicKey;
|
|
56
|
-
jlpController: web3.PublicKey;
|
|
57
|
-
jlpControllerUsdcAccount: web3.PublicKey;
|
|
58
|
-
jlpControllerJlpAccount: web3.PublicKey;
|
|
59
|
-
jlpUsdcCustody: web3.PublicKey;
|
|
60
|
-
jlpUsdcCustodyDovesPriceAccount: web3.PublicKey;
|
|
61
|
-
jlpUsdcCustodyPythnetPriceAccount: web3.PublicKey;
|
|
62
|
-
jlpUsdcCustodyTokenAccount: web3.PublicKey;
|
|
63
|
-
driftSigner: web3.PublicKey;
|
|
64
|
-
driftJlpSpotVault: web3.PublicKey;
|
|
65
|
-
driftUsdcSpotVault: web3.PublicKey;
|
|
66
|
-
driftState: web3.PublicKey;
|
|
67
|
-
jupiterProgram: web3.PublicKey;
|
|
68
|
-
driftProgram: web3.PublicKey;
|
|
69
|
-
tokenProgram?: web3.PublicKey;
|
|
70
|
-
anchorRemainingAccounts?: web3.AccountMeta[];
|
|
71
|
-
};
|
|
72
|
-
export declare const rebalanceJlpInstructionDiscriminator: number[];
|
|
73
|
-
/**
|
|
74
|
-
* Creates a _RebalanceJlp_ instruction.
|
|
75
|
-
*
|
|
76
|
-
* @param accounts that will be accessed while the instruction is processed
|
|
77
|
-
* @category Instructions
|
|
78
|
-
* @category RebalanceJlp
|
|
79
|
-
* @category generated
|
|
80
|
-
*/
|
|
81
|
-
export declare function createRebalanceJlpInstruction(accounts: RebalanceJlpInstructionAccounts, programId?: web3.PublicKey): web3.TransactionInstruction;
|