@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,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was GENERATED using the solita package.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
|
|
4
|
+
*
|
|
5
|
+
* See: https://github.com/metaplex-foundation/solita
|
|
6
|
+
*/
|
|
7
|
+
import * as beet from '@metaplex-foundation/beet';
|
|
8
|
+
import * as web3 from '@solana/web3.js';
|
|
9
|
+
import { Action } from '../types/Action';
|
|
10
|
+
/**
|
|
11
|
+
* @category Instructions
|
|
12
|
+
* @category FreezeStrategyAction
|
|
13
|
+
* @category generated
|
|
14
|
+
*/
|
|
15
|
+
export type FreezeStrategyActionInstructionArgs = {
|
|
16
|
+
action: Action;
|
|
17
|
+
freeze: boolean;
|
|
18
|
+
strategyId: number;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* @category Instructions
|
|
22
|
+
* @category FreezeStrategyAction
|
|
23
|
+
* @category generated
|
|
24
|
+
*/
|
|
25
|
+
export declare const freezeStrategyActionStruct: beet.BeetArgsStruct<FreezeStrategyActionInstructionArgs & {
|
|
26
|
+
instructionDiscriminator: number[];
|
|
27
|
+
}>;
|
|
28
|
+
/**
|
|
29
|
+
* Accounts required by the _freezeStrategyAction_ instruction
|
|
30
|
+
*
|
|
31
|
+
* @property [_writable_] main
|
|
32
|
+
* @property [_writable_, **signer**] admin
|
|
33
|
+
* @property [_writable_] strategy
|
|
34
|
+
* @property [_writable_] adminPermissions
|
|
35
|
+
* @category Instructions
|
|
36
|
+
* @category FreezeStrategyAction
|
|
37
|
+
* @category generated
|
|
38
|
+
*/
|
|
39
|
+
export type FreezeStrategyActionInstructionAccounts = {
|
|
40
|
+
main: web3.PublicKey;
|
|
41
|
+
admin: web3.PublicKey;
|
|
42
|
+
systemProgram?: web3.PublicKey;
|
|
43
|
+
strategy: web3.PublicKey;
|
|
44
|
+
adminPermissions: web3.PublicKey;
|
|
45
|
+
anchorRemainingAccounts?: web3.AccountMeta[];
|
|
46
|
+
};
|
|
47
|
+
export declare const freezeStrategyActionInstructionDiscriminator: number[];
|
|
48
|
+
/**
|
|
49
|
+
* Creates a _FreezeStrategyAction_ instruction.
|
|
50
|
+
*
|
|
51
|
+
* @param accounts that will be accessed while the instruction is processed
|
|
52
|
+
* @param args to provide as instruction data to the program
|
|
53
|
+
*
|
|
54
|
+
* @category Instructions
|
|
55
|
+
* @category FreezeStrategyAction
|
|
56
|
+
* @category generated
|
|
57
|
+
*/
|
|
58
|
+
export declare function createFreezeStrategyActionInstruction(accounts: FreezeStrategyActionInstructionAccounts, args: FreezeStrategyActionInstructionArgs, programId?: web3.PublicKey): web3.TransactionInstruction;
|
|
@@ -58,7 +58,7 @@ exports.freezeStrategyActionInstructionDiscriminator = [
|
|
|
58
58
|
* @category FreezeStrategyAction
|
|
59
59
|
* @category generated
|
|
60
60
|
*/
|
|
61
|
-
function createFreezeStrategyActionInstruction(accounts, args, programId = new web3.PublicKey('
|
|
61
|
+
function createFreezeStrategyActionInstruction(accounts, args, programId = new web3.PublicKey('rf1ctRXK4bmG5XNttAMYfB3TKd2vQjFv5cfQhDBxdAQ')) {
|
|
62
62
|
var _a;
|
|
63
63
|
const [data] = exports.freezeStrategyActionStruct.serialize(Object.assign({ instructionDiscriminator: exports.freezeStrategyActionInstructionDiscriminator }, args));
|
|
64
64
|
const keys = [
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was GENERATED using the solita package.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
|
|
4
|
+
*
|
|
5
|
+
* See: https://github.com/metaplex-foundation/solita
|
|
6
|
+
*/
|
|
7
|
+
import * as beet from '@metaplex-foundation/beet';
|
|
8
|
+
import * as web3 from '@solana/web3.js';
|
|
9
|
+
/**
|
|
10
|
+
* @category Instructions
|
|
11
|
+
* @category IncreaseAdminSize
|
|
12
|
+
* @category generated
|
|
13
|
+
*/
|
|
14
|
+
export type IncreaseAdminSizeInstructionArgs = {
|
|
15
|
+
additionalRoles: number;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* @category Instructions
|
|
19
|
+
* @category IncreaseAdminSize
|
|
20
|
+
* @category generated
|
|
21
|
+
*/
|
|
22
|
+
export declare const increaseAdminSizeStruct: beet.BeetArgsStruct<IncreaseAdminSizeInstructionArgs & {
|
|
23
|
+
instructionDiscriminator: number[];
|
|
24
|
+
}>;
|
|
25
|
+
/**
|
|
26
|
+
* Accounts required by the _increaseAdminSize_ instruction
|
|
27
|
+
*
|
|
28
|
+
* @property [_writable_] userPermissions
|
|
29
|
+
* @property [_writable_, **signer**] payer
|
|
30
|
+
* @category Instructions
|
|
31
|
+
* @category IncreaseAdminSize
|
|
32
|
+
* @category generated
|
|
33
|
+
*/
|
|
34
|
+
export type IncreaseAdminSizeInstructionAccounts = {
|
|
35
|
+
userPermissions: web3.PublicKey;
|
|
36
|
+
payer: web3.PublicKey;
|
|
37
|
+
systemProgram?: web3.PublicKey;
|
|
38
|
+
anchorRemainingAccounts?: web3.AccountMeta[];
|
|
39
|
+
};
|
|
40
|
+
export declare const increaseAdminSizeInstructionDiscriminator: number[];
|
|
41
|
+
/**
|
|
42
|
+
* Creates a _IncreaseAdminSize_ instruction.
|
|
43
|
+
*
|
|
44
|
+
* @param accounts that will be accessed while the instruction is processed
|
|
45
|
+
* @param args to provide as instruction data to the program
|
|
46
|
+
*
|
|
47
|
+
* @category Instructions
|
|
48
|
+
* @category IncreaseAdminSize
|
|
49
|
+
* @category generated
|
|
50
|
+
*/
|
|
51
|
+
export declare function createIncreaseAdminSizeInstruction(accounts: IncreaseAdminSizeInstructionAccounts, args: IncreaseAdminSizeInstructionArgs, programId?: web3.PublicKey): web3.TransactionInstruction;
|
|
@@ -0,0 +1,89 @@
|
|
|
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.increaseAdminSizeInstructionDiscriminator = exports.increaseAdminSizeStruct = void 0;
|
|
33
|
+
exports.createIncreaseAdminSizeInstruction = createIncreaseAdminSizeInstruction;
|
|
34
|
+
const beet = __importStar(require("@metaplex-foundation/beet"));
|
|
35
|
+
const web3 = __importStar(require("@solana/web3.js"));
|
|
36
|
+
/**
|
|
37
|
+
* @category Instructions
|
|
38
|
+
* @category IncreaseAdminSize
|
|
39
|
+
* @category generated
|
|
40
|
+
*/
|
|
41
|
+
exports.increaseAdminSizeStruct = new beet.BeetArgsStruct([
|
|
42
|
+
['instructionDiscriminator', beet.uniformFixedSizeArray(beet.u8, 8)],
|
|
43
|
+
['additionalRoles', beet.u8],
|
|
44
|
+
], 'IncreaseAdminSizeInstructionArgs');
|
|
45
|
+
exports.increaseAdminSizeInstructionDiscriminator = [
|
|
46
|
+
27, 91, 127, 176, 61, 17, 113, 0,
|
|
47
|
+
];
|
|
48
|
+
/**
|
|
49
|
+
* Creates a _IncreaseAdminSize_ 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 IncreaseAdminSize
|
|
56
|
+
* @category generated
|
|
57
|
+
*/
|
|
58
|
+
function createIncreaseAdminSizeInstruction(accounts, args, programId = new web3.PublicKey('rf1ctRXK4bmG5XNttAMYfB3TKd2vQjFv5cfQhDBxdAQ')) {
|
|
59
|
+
var _a;
|
|
60
|
+
const [data] = exports.increaseAdminSizeStruct.serialize(Object.assign({ instructionDiscriminator: exports.increaseAdminSizeInstructionDiscriminator }, args));
|
|
61
|
+
const keys = [
|
|
62
|
+
{
|
|
63
|
+
pubkey: accounts.userPermissions,
|
|
64
|
+
isWritable: true,
|
|
65
|
+
isSigner: false,
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
pubkey: accounts.payer,
|
|
69
|
+
isWritable: true,
|
|
70
|
+
isSigner: true,
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
pubkey: (_a = accounts.systemProgram) !== null && _a !== void 0 ? _a : web3.SystemProgram.programId,
|
|
74
|
+
isWritable: false,
|
|
75
|
+
isSigner: false,
|
|
76
|
+
},
|
|
77
|
+
];
|
|
78
|
+
if (accounts.anchorRemainingAccounts != null) {
|
|
79
|
+
for (const acc of accounts.anchorRemainingAccounts) {
|
|
80
|
+
keys.push(acc);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
const ix = new web3.TransactionInstruction({
|
|
84
|
+
programId,
|
|
85
|
+
keys,
|
|
86
|
+
data,
|
|
87
|
+
});
|
|
88
|
+
return ix;
|
|
89
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export * from './addLstDrift';
|
|
2
|
+
export * from './addSubAccount';
|
|
3
|
+
export * from './captureSpreadDrift';
|
|
4
|
+
export * from './createAdminAccount';
|
|
5
|
+
export * from './createUserStatsAccount';
|
|
6
|
+
export * from './depositDrift';
|
|
7
|
+
export * from './freezeProgram';
|
|
8
|
+
export * from './freezeProtocolAction';
|
|
9
|
+
export * from './freezeStrategyAction';
|
|
10
|
+
export * from './increaseAdminSize';
|
|
11
|
+
export * from './initDriftAccountsS1';
|
|
12
|
+
export * from './initDriftControllerS1';
|
|
13
|
+
export * from './initDriftControllerS3';
|
|
14
|
+
export * from './initMain';
|
|
15
|
+
export * from './mintDriftS1';
|
|
16
|
+
export * from './mintDriftS3';
|
|
17
|
+
export * from './processSwapDeposit';
|
|
18
|
+
export * from './processSwapWithdraw';
|
|
19
|
+
export * from './redeemDriftS1';
|
|
20
|
+
export * from './redeemDriftS3';
|
|
21
|
+
export * from './settlePnl';
|
|
22
|
+
export * from './settlePnlMulti';
|
|
23
|
+
export * from './suspendSplProtocol';
|
|
24
|
+
export * from './suspendSplStrategy';
|
|
25
|
+
export * from './swapOrca';
|
|
26
|
+
export * from './swapOrcaTwoHop';
|
|
27
|
+
export * from './updateActionRoleProtocol';
|
|
28
|
+
export * from './updateActionRoleStrategy';
|
|
29
|
+
export * from './updateAttenuation';
|
|
30
|
+
export * from './updateCap';
|
|
31
|
+
export * from './updateRebalanceSlippage';
|
|
32
|
+
export * from './updateRecipients';
|
|
33
|
+
export * from './updateRoleHolderProtocol';
|
|
34
|
+
export * from './updateRoleHolderStrategy';
|
|
@@ -17,13 +17,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./addLstDrift"), exports);
|
|
18
18
|
__exportStar(require("./addSubAccount"), exports);
|
|
19
19
|
__exportStar(require("./captureSpreadDrift"), exports);
|
|
20
|
-
__exportStar(require("./captureSpreadDriftS1"), exports);
|
|
21
20
|
__exportStar(require("./createAdminAccount"), exports);
|
|
22
21
|
__exportStar(require("./createUserStatsAccount"), exports);
|
|
23
22
|
__exportStar(require("./depositDrift"), exports);
|
|
24
23
|
__exportStar(require("./freezeProgram"), exports);
|
|
25
24
|
__exportStar(require("./freezeProtocolAction"), exports);
|
|
26
25
|
__exportStar(require("./freezeStrategyAction"), exports);
|
|
26
|
+
__exportStar(require("./increaseAdminSize"), exports);
|
|
27
27
|
__exportStar(require("./initDriftAccountsS1"), exports);
|
|
28
28
|
__exportStar(require("./initDriftControllerS1"), exports);
|
|
29
29
|
__exportStar(require("./initDriftControllerS3"), exports);
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was GENERATED using the solita package.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
|
|
4
|
+
*
|
|
5
|
+
* See: https://github.com/metaplex-foundation/solita
|
|
6
|
+
*/
|
|
7
|
+
import * as beet from '@metaplex-foundation/beet';
|
|
8
|
+
import * as web3 from '@solana/web3.js';
|
|
9
|
+
/**
|
|
10
|
+
* @category Instructions
|
|
11
|
+
* @category InitDriftAccountsS1
|
|
12
|
+
* @category generated
|
|
13
|
+
*/
|
|
14
|
+
export declare const initDriftAccountsS1Struct: beet.BeetArgsStruct<{
|
|
15
|
+
instructionDiscriminator: number[];
|
|
16
|
+
}>;
|
|
17
|
+
/**
|
|
18
|
+
* Accounts required by the _initDriftAccountsS1_ instruction
|
|
19
|
+
*
|
|
20
|
+
* @property [_writable_] main
|
|
21
|
+
* @property [_writable_] usdcController
|
|
22
|
+
* @property [] adminPermissions
|
|
23
|
+
* @property [_writable_, **signer**] admin
|
|
24
|
+
* @property [] drift
|
|
25
|
+
* @property [_writable_] state
|
|
26
|
+
* @property [_writable_] userStats
|
|
27
|
+
* @property [_writable_] userAccount
|
|
28
|
+
* @category Instructions
|
|
29
|
+
* @category InitDriftAccountsS1
|
|
30
|
+
* @category generated
|
|
31
|
+
*/
|
|
32
|
+
export type InitDriftAccountsS1InstructionAccounts = {
|
|
33
|
+
main: web3.PublicKey;
|
|
34
|
+
usdcController: web3.PublicKey;
|
|
35
|
+
adminPermissions: web3.PublicKey;
|
|
36
|
+
admin: web3.PublicKey;
|
|
37
|
+
drift: web3.PublicKey;
|
|
38
|
+
state: web3.PublicKey;
|
|
39
|
+
userStats: web3.PublicKey;
|
|
40
|
+
userAccount: web3.PublicKey;
|
|
41
|
+
rent?: web3.PublicKey;
|
|
42
|
+
systemProgram?: web3.PublicKey;
|
|
43
|
+
anchorRemainingAccounts?: web3.AccountMeta[];
|
|
44
|
+
};
|
|
45
|
+
export declare const initDriftAccountsS1InstructionDiscriminator: number[];
|
|
46
|
+
/**
|
|
47
|
+
* Creates a _InitDriftAccountsS1_ instruction.
|
|
48
|
+
*
|
|
49
|
+
* @param accounts that will be accessed while the instruction is processed
|
|
50
|
+
* @category Instructions
|
|
51
|
+
* @category InitDriftAccountsS1
|
|
52
|
+
* @category generated
|
|
53
|
+
*/
|
|
54
|
+
export declare function createInitDriftAccountsS1Instruction(accounts: InitDriftAccountsS1InstructionAccounts, programId?: web3.PublicKey): web3.TransactionInstruction;
|
|
@@ -50,7 +50,7 @@ exports.initDriftAccountsS1InstructionDiscriminator = [
|
|
|
50
50
|
* @category InitDriftAccountsS1
|
|
51
51
|
* @category generated
|
|
52
52
|
*/
|
|
53
|
-
function createInitDriftAccountsS1Instruction(accounts, programId = new web3.PublicKey('
|
|
53
|
+
function createInitDriftAccountsS1Instruction(accounts, programId = new web3.PublicKey('rf1ctRXK4bmG5XNttAMYfB3TKd2vQjFv5cfQhDBxdAQ')) {
|
|
54
54
|
var _a, _b;
|
|
55
55
|
const [data] = exports.initDriftAccountsS1Struct.serialize({
|
|
56
56
|
instructionDiscriminator: exports.initDriftAccountsS1InstructionDiscriminator,
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was GENERATED using the solita package.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
|
|
4
|
+
*
|
|
5
|
+
* See: https://github.com/metaplex-foundation/solita
|
|
6
|
+
*/
|
|
7
|
+
import * as web3 from '@solana/web3.js';
|
|
8
|
+
import * as beet from '@metaplex-foundation/beet';
|
|
9
|
+
/**
|
|
10
|
+
* @category Instructions
|
|
11
|
+
* @category InitDriftControllerS1
|
|
12
|
+
* @category generated
|
|
13
|
+
*/
|
|
14
|
+
export type InitDriftControllerS1InstructionArgs = {
|
|
15
|
+
mint: web3.PublicKey;
|
|
16
|
+
recipientAddresses: web3.PublicKey[];
|
|
17
|
+
recipientCuts: number[];
|
|
18
|
+
cap: beet.bignum;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* @category Instructions
|
|
22
|
+
* @category InitDriftControllerS1
|
|
23
|
+
* @category generated
|
|
24
|
+
*/
|
|
25
|
+
export declare const initDriftControllerS1Struct: beet.FixableBeetArgsStruct<InitDriftControllerS1InstructionArgs & {
|
|
26
|
+
instructionDiscriminator: number[];
|
|
27
|
+
}>;
|
|
28
|
+
/**
|
|
29
|
+
* Accounts required by the _initDriftControllerS1_ instruction
|
|
30
|
+
*
|
|
31
|
+
* @property [_writable_] driftUsdcController
|
|
32
|
+
* @property [_writable_] main
|
|
33
|
+
* @property [] adminPermissions
|
|
34
|
+
* @property [_writable_, **signer**] admin
|
|
35
|
+
* @category Instructions
|
|
36
|
+
* @category InitDriftControllerS1
|
|
37
|
+
* @category generated
|
|
38
|
+
*/
|
|
39
|
+
export type InitDriftControllerS1InstructionAccounts = {
|
|
40
|
+
driftUsdcController: web3.PublicKey;
|
|
41
|
+
main: web3.PublicKey;
|
|
42
|
+
adminPermissions: web3.PublicKey;
|
|
43
|
+
admin: web3.PublicKey;
|
|
44
|
+
systemProgram?: web3.PublicKey;
|
|
45
|
+
anchorRemainingAccounts?: web3.AccountMeta[];
|
|
46
|
+
};
|
|
47
|
+
export declare const initDriftControllerS1InstructionDiscriminator: number[];
|
|
48
|
+
/**
|
|
49
|
+
* Creates a _InitDriftControllerS1_ 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 InitDriftControllerS1
|
|
56
|
+
* @category generated
|
|
57
|
+
*/
|
|
58
|
+
export declare function createInitDriftControllerS1Instruction(accounts: InitDriftControllerS1InstructionAccounts, args: InitDriftControllerS1InstructionArgs, programId?: web3.PublicKey): web3.TransactionInstruction;
|
|
@@ -59,7 +59,7 @@ exports.initDriftControllerS1InstructionDiscriminator = [
|
|
|
59
59
|
* @category InitDriftControllerS1
|
|
60
60
|
* @category generated
|
|
61
61
|
*/
|
|
62
|
-
function createInitDriftControllerS1Instruction(accounts, args, programId = new web3.PublicKey('
|
|
62
|
+
function createInitDriftControllerS1Instruction(accounts, args, programId = new web3.PublicKey('rf1ctRXK4bmG5XNttAMYfB3TKd2vQjFv5cfQhDBxdAQ')) {
|
|
63
63
|
var _a;
|
|
64
64
|
const [data] = exports.initDriftControllerS1Struct.serialize(Object.assign({ instructionDiscriminator: exports.initDriftControllerS1InstructionDiscriminator }, args));
|
|
65
65
|
const keys = [
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was GENERATED using the solita package.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
|
|
4
|
+
*
|
|
5
|
+
* See: https://github.com/metaplex-foundation/solita
|
|
6
|
+
*/
|
|
7
|
+
import * as web3 from '@solana/web3.js';
|
|
8
|
+
import * as beet from '@metaplex-foundation/beet';
|
|
9
|
+
/**
|
|
10
|
+
* @category Instructions
|
|
11
|
+
* @category InitDriftControllerS3
|
|
12
|
+
* @category generated
|
|
13
|
+
*/
|
|
14
|
+
export type InitDriftControllerS3InstructionArgs = {
|
|
15
|
+
mint: web3.PublicKey;
|
|
16
|
+
recipientAddresses: web3.PublicKey[];
|
|
17
|
+
recipientCuts: number[];
|
|
18
|
+
cap: beet.bignum;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* @category Instructions
|
|
22
|
+
* @category InitDriftControllerS3
|
|
23
|
+
* @category generated
|
|
24
|
+
*/
|
|
25
|
+
export declare const initDriftControllerS3Struct: beet.FixableBeetArgsStruct<InitDriftControllerS3InstructionArgs & {
|
|
26
|
+
instructionDiscriminator: number[];
|
|
27
|
+
}>;
|
|
28
|
+
/**
|
|
29
|
+
* Accounts required by the _initDriftControllerS3_ instruction
|
|
30
|
+
*
|
|
31
|
+
* @property [_writable_] driftLstController
|
|
32
|
+
* @property [] adminPermissions
|
|
33
|
+
* @property [_writable_] main
|
|
34
|
+
* @property [_writable_, **signer**] admin
|
|
35
|
+
* @category Instructions
|
|
36
|
+
* @category InitDriftControllerS3
|
|
37
|
+
* @category generated
|
|
38
|
+
*/
|
|
39
|
+
export type InitDriftControllerS3InstructionAccounts = {
|
|
40
|
+
driftLstController: web3.PublicKey;
|
|
41
|
+
adminPermissions: web3.PublicKey;
|
|
42
|
+
main: web3.PublicKey;
|
|
43
|
+
admin: web3.PublicKey;
|
|
44
|
+
systemProgram?: web3.PublicKey;
|
|
45
|
+
anchorRemainingAccounts?: web3.AccountMeta[];
|
|
46
|
+
};
|
|
47
|
+
export declare const initDriftControllerS3InstructionDiscriminator: number[];
|
|
48
|
+
/**
|
|
49
|
+
* Creates a _InitDriftControllerS3_ 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 InitDriftControllerS3
|
|
56
|
+
* @category generated
|
|
57
|
+
*/
|
|
58
|
+
export declare function createInitDriftControllerS3Instruction(accounts: InitDriftControllerS3InstructionAccounts, args: InitDriftControllerS3InstructionArgs, programId?: web3.PublicKey): web3.TransactionInstruction;
|
|
@@ -59,7 +59,7 @@ exports.initDriftControllerS3InstructionDiscriminator = [
|
|
|
59
59
|
* @category InitDriftControllerS3
|
|
60
60
|
* @category generated
|
|
61
61
|
*/
|
|
62
|
-
function createInitDriftControllerS3Instruction(accounts, args, programId = new web3.PublicKey('
|
|
62
|
+
function createInitDriftControllerS3Instruction(accounts, args, programId = new web3.PublicKey('rf1ctRXK4bmG5XNttAMYfB3TKd2vQjFv5cfQhDBxdAQ')) {
|
|
63
63
|
var _a;
|
|
64
64
|
const [data] = exports.initDriftControllerS3Struct.serialize(Object.assign({ instructionDiscriminator: exports.initDriftControllerS3InstructionDiscriminator }, args));
|
|
65
65
|
const keys = [
|
|
@@ -0,0 +1,43 @@
|
|
|
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 InitMain
|
|
12
|
+
* @category generated
|
|
13
|
+
*/
|
|
14
|
+
export declare const initMainStruct: beet.BeetArgsStruct<{
|
|
15
|
+
instructionDiscriminator: number[];
|
|
16
|
+
}>;
|
|
17
|
+
/**
|
|
18
|
+
* Accounts required by the _initMain_ instruction
|
|
19
|
+
*
|
|
20
|
+
* @property [_writable_] main
|
|
21
|
+
* @property [_writable_] creds
|
|
22
|
+
* @property [_writable_, **signer**] admin
|
|
23
|
+
* @category Instructions
|
|
24
|
+
* @category InitMain
|
|
25
|
+
* @category generated
|
|
26
|
+
*/
|
|
27
|
+
export type InitMainInstructionAccounts = {
|
|
28
|
+
main: web3.PublicKey;
|
|
29
|
+
creds: web3.PublicKey;
|
|
30
|
+
admin: web3.PublicKey;
|
|
31
|
+
systemProgram?: web3.PublicKey;
|
|
32
|
+
anchorRemainingAccounts?: web3.AccountMeta[];
|
|
33
|
+
};
|
|
34
|
+
export declare const initMainInstructionDiscriminator: number[];
|
|
35
|
+
/**
|
|
36
|
+
* Creates a _InitMain_ instruction.
|
|
37
|
+
*
|
|
38
|
+
* @param accounts that will be accessed while the instruction is processed
|
|
39
|
+
* @category Instructions
|
|
40
|
+
* @category InitMain
|
|
41
|
+
* @category generated
|
|
42
|
+
*/
|
|
43
|
+
export declare function createInitMainInstruction(accounts: InitMainInstructionAccounts, programId?: web3.PublicKey): web3.TransactionInstruction;
|
|
@@ -50,7 +50,7 @@ exports.initMainInstructionDiscriminator = [
|
|
|
50
50
|
* @category InitMain
|
|
51
51
|
* @category generated
|
|
52
52
|
*/
|
|
53
|
-
function createInitMainInstruction(accounts, programId = new web3.PublicKey('
|
|
53
|
+
function createInitMainInstruction(accounts, programId = new web3.PublicKey('rf1ctRXK4bmG5XNttAMYfB3TKd2vQjFv5cfQhDBxdAQ')) {
|
|
54
54
|
var _a;
|
|
55
55
|
const [data] = exports.initMainStruct.serialize({
|
|
56
56
|
instructionDiscriminator: exports.initMainInstructionDiscriminator,
|
|
@@ -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 MintDriftS1
|
|
12
|
+
* @category generated
|
|
13
|
+
*/
|
|
14
|
+
export type MintDriftS1InstructionArgs = {
|
|
15
|
+
usdcAmount: beet.bignum;
|
|
16
|
+
minUsdcAmount: beet.bignum;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* @category Instructions
|
|
20
|
+
* @category MintDriftS1
|
|
21
|
+
* @category generated
|
|
22
|
+
*/
|
|
23
|
+
export declare const mintDriftS1Struct: beet.BeetArgsStruct<MintDriftS1InstructionArgs & {
|
|
24
|
+
instructionDiscriminator: number[];
|
|
25
|
+
}>;
|
|
26
|
+
/**
|
|
27
|
+
* Accounts required by the _mintDriftS1_ instruction
|
|
28
|
+
*
|
|
29
|
+
* @property [_writable_, **signer**] user
|
|
30
|
+
* @property [_writable_] main
|
|
31
|
+
* @property [_writable_] usdcController
|
|
32
|
+
* @property [] adminPermissions (optional)
|
|
33
|
+
* @property [_writable_] userReceiptAta
|
|
34
|
+
* @property [_writable_] userUsdcAta
|
|
35
|
+
* @property [_writable_] controllerUsdcAta
|
|
36
|
+
* @property [_writable_] receiptMint
|
|
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 MintDriftS1
|
|
48
|
+
* @category generated
|
|
49
|
+
*/
|
|
50
|
+
export type MintDriftS1InstructionAccounts = {
|
|
51
|
+
user: web3.PublicKey;
|
|
52
|
+
main: web3.PublicKey;
|
|
53
|
+
usdcController: web3.PublicKey;
|
|
54
|
+
adminPermissions?: web3.PublicKey;
|
|
55
|
+
userReceiptAta: web3.PublicKey;
|
|
56
|
+
userUsdcAta: web3.PublicKey;
|
|
57
|
+
controllerUsdcAta: web3.PublicKey;
|
|
58
|
+
receiptMint: 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 mintDriftS1InstructionDiscriminator: number[];
|
|
73
|
+
/**
|
|
74
|
+
* Creates a _MintDriftS1_ 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 MintDriftS1
|
|
84
|
+
* @category generated
|
|
85
|
+
*/
|
|
86
|
+
export declare function createMintDriftS1Instruction(accounts: MintDriftS1InstructionAccounts, args: MintDriftS1InstructionArgs, programId?: web3.PublicKey): web3.TransactionInstruction;
|
|
@@ -60,7 +60,7 @@ exports.mintDriftS1InstructionDiscriminator = [
|
|
|
60
60
|
* @category MintDriftS1
|
|
61
61
|
* @category generated
|
|
62
62
|
*/
|
|
63
|
-
function createMintDriftS1Instruction(accounts, args, programId = new web3.PublicKey('
|
|
63
|
+
function createMintDriftS1Instruction(accounts, args, programId = new web3.PublicKey('rf1ctRXK4bmG5XNttAMYfB3TKd2vQjFv5cfQhDBxdAQ')) {
|
|
64
64
|
var _a, _b, _c;
|
|
65
65
|
const [data] = exports.mintDriftS1Struct.serialize(Object.assign({ instructionDiscriminator: exports.mintDriftS1InstructionDiscriminator }, args));
|
|
66
66
|
const keys = [
|