@reflectmoney/stable.ts 1.1.1 → 1.1.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/package.json +1 -1
- package/dist/classes/PdaClient.d.ts +0 -131
- package/dist/classes/Reflect.d.ts +0 -7
- package/dist/classes/ReflectAdmin.d.ts +0 -104
- package/dist/classes/ReflectAdmin.js +0 -219
- package/dist/classes/ReflectKeeper.d.ts +0 -107
- package/dist/classes/ReflectTokenisedBond.d.ts +0 -75
- package/dist/classes/Stablecoin.d.ts +0 -187
- package/dist/classes/index.d.ts +0 -4
- package/dist/constants/drift.d.ts +0 -6
- package/dist/constants/index.d.ts +0 -7
- package/dist/constants/jupiter.d.ts +0 -4
- package/dist/constants/lookupTables.d.ts +0 -4
- package/dist/constants/lst.d.ts +0 -3
- package/dist/constants/pyth.d.ts +0 -1
- package/dist/constants/usdc.d.ts +0 -6
- package/dist/constants/wsol.d.ts +0 -6
- package/dist/errors/ReflectError.d.ts +0 -4
- package/dist/generated/reflect_main/accounts/DriftJlpController.d.ts +0 -116
- package/dist/generated/reflect_main/accounts/DriftLstController.d.ts +0 -110
- package/dist/generated/reflect_main/accounts/DriftUsdcController.d.ts +0 -136
- package/dist/generated/reflect_main/accounts/Main.d.ts +0 -112
- package/dist/generated/reflect_main/accounts/PerpMarket.d.ts +0 -228
- package/dist/generated/reflect_main/accounts/PrelaunchOracle.d.ts +0 -132
- package/dist/generated/reflect_main/accounts/PythLazerOracle.d.ts +0 -126
- package/dist/generated/reflect_main/accounts/RebalanceLst.d.ts +0 -113
- package/dist/generated/reflect_main/accounts/SpotMarket.d.ts +0 -379
- package/dist/generated/reflect_main/accounts/User.d.ts +0 -223
- package/dist/generated/reflect_main/accounts/UserPermissions.d.ts +0 -108
- package/dist/generated/reflect_main/accounts/UserStats.d.ts +0 -213
- package/dist/generated/reflect_main/accounts/index.d.ts +0 -38
- package/dist/generated/reflect_main/errors/index.d.ts +0 -969
- package/dist/generated/reflect_main/index.d.ts +0 -19
- package/dist/generated/reflect_main/instructions/addLstDrift.d.ts +0 -49
- package/dist/generated/reflect_main/instructions/addSubAccount.d.ts +0 -54
- package/dist/generated/reflect_main/instructions/captureSpreadDrift.d.ts +0 -66
- package/dist/generated/reflect_main/instructions/captureSpreadDriftS1.d.ts +0 -58
- package/dist/generated/reflect_main/instructions/createAdminAccount.d.ts +0 -51
- package/dist/generated/reflect_main/instructions/createUserStatsAccount.d.ts +0 -52
- package/dist/generated/reflect_main/instructions/depositDrift.d.ts +0 -73
- package/dist/generated/reflect_main/instructions/freezeProgram.d.ts +0 -54
- package/dist/generated/reflect_main/instructions/freezeProtocolAction.d.ts +0 -55
- package/dist/generated/reflect_main/instructions/freezeStrategyAction.d.ts +0 -58
- package/dist/generated/reflect_main/instructions/index.d.ts +0 -34
- package/dist/generated/reflect_main/instructions/initDriftAccountsS1.d.ts +0 -54
- package/dist/generated/reflect_main/instructions/initDriftControllerS1.d.ts +0 -60
- package/dist/generated/reflect_main/instructions/initDriftControllerS3.d.ts +0 -58
- package/dist/generated/reflect_main/instructions/initMain.d.ts +0 -43
- package/dist/generated/reflect_main/instructions/mintDriftS1.d.ts +0 -86
- package/dist/generated/reflect_main/instructions/mintDriftS3.d.ts +0 -86
- package/dist/generated/reflect_main/instructions/processSwapDeposit.d.ts +0 -69
- package/dist/generated/reflect_main/instructions/processSwapWithdraw.d.ts +0 -69
- package/dist/generated/reflect_main/instructions/redeemDriftS1.d.ts +0 -87
- package/dist/generated/reflect_main/instructions/redeemDriftS3.d.ts +0 -87
- package/dist/generated/reflect_main/instructions/settlePnl.d.ts +0 -55
- package/dist/generated/reflect_main/instructions/settlePnlMulti.d.ts +0 -65
- package/dist/generated/reflect_main/instructions/suspendSplProtocol.d.ts +0 -54
- package/dist/generated/reflect_main/instructions/suspendSplStrategy.d.ts +0 -56
- package/dist/generated/reflect_main/instructions/swapOrca.d.ts +0 -81
- package/dist/generated/reflect_main/instructions/swapOrcaTwoHop.d.ts +0 -101
- package/dist/generated/reflect_main/instructions/updateActionRoleProtocol.d.ts +0 -58
- package/dist/generated/reflect_main/instructions/updateActionRoleStrategy.d.ts +0 -60
- package/dist/generated/reflect_main/instructions/updateAttenuation.d.ts +0 -57
- package/dist/generated/reflect_main/instructions/updateCap.d.ts +0 -55
- package/dist/generated/reflect_main/instructions/updateRebalanceSlippage.d.ts +0 -55
- package/dist/generated/reflect_main/instructions/updateRecipients.d.ts +0 -56
- package/dist/generated/reflect_main/instructions/updateRoleHolderProtocol.d.ts +0 -60
- package/dist/generated/reflect_main/instructions/updateRoleHolderStrategy.d.ts +0 -60
- package/dist/generated/reflect_main/types/AMM.d.ts +0 -102
- package/dist/generated/reflect_main/types/AccKey.d.ts +0 -15
- package/dist/generated/reflect_main/types/AccessControl.d.ts +0 -18
- package/dist/generated/reflect_main/types/AccessMap.d.ts +0 -17
- package/dist/generated/reflect_main/types/Action.d.ts +0 -35
- package/dist/generated/reflect_main/types/ActionMapping.d.ts +0 -19
- package/dist/generated/reflect_main/types/AssetTier.d.ts +0 -23
- package/dist/generated/reflect_main/types/Attenuation.d.ts +0 -16
- package/dist/generated/reflect_main/types/BalanceType.d.ts +0 -20
- package/dist/generated/reflect_main/types/Capture.d.ts +0 -17
- package/dist/generated/reflect_main/types/ContractTier.d.ts +0 -24
- package/dist/generated/reflect_main/types/ContractType.d.ts +0 -20
- package/dist/generated/reflect_main/types/CorpAction.d.ts +0 -19
- package/dist/generated/reflect_main/types/CustodyInfo.d.ts +0 -20
- package/dist/generated/reflect_main/types/DirectionCollateral.d.ts +0 -20
- package/dist/generated/reflect_main/types/DirectionPosition.d.ts +0 -20
- package/dist/generated/reflect_main/types/DriftControllerBase.d.ts +0 -15
- package/dist/generated/reflect_main/types/DriftJlpControllerFixedAccounts.d.ts +0 -18
- package/dist/generated/reflect_main/types/DriftLstData.d.ts +0 -17
- package/dist/generated/reflect_main/types/Ema.d.ts +0 -17
- package/dist/generated/reflect_main/types/Externals.d.ts +0 -16
- package/dist/generated/reflect_main/types/FlowControl.d.ts +0 -17
- package/dist/generated/reflect_main/types/HistoricalIndexData.d.ts +0 -19
- package/dist/generated/reflect_main/types/HistoricalOracleData.d.ts +0 -20
- package/dist/generated/reflect_main/types/Holding.d.ts +0 -21
- package/dist/generated/reflect_main/types/Holdings.d.ts +0 -17
- package/dist/generated/reflect_main/types/InsuranceClaim.d.ts +0 -19
- package/dist/generated/reflect_main/types/InsuranceFund.d.ts +0 -24
- package/dist/generated/reflect_main/types/JlpRebalanceSettings.d.ts +0 -15
- package/dist/generated/reflect_main/types/KillSwitch.d.ts +0 -15
- package/dist/generated/reflect_main/types/LevelRoles.d.ts +0 -16
- package/dist/generated/reflect_main/types/MarketStatus.d.ts +0 -27
- package/dist/generated/reflect_main/types/MarketType.d.ts +0 -20
- package/dist/generated/reflect_main/types/ModifyOrderParams.d.ts +0 -32
- package/dist/generated/reflect_main/types/ModifyOrderPolicy.d.ts +0 -20
- package/dist/generated/reflect_main/types/Movements.d.ts +0 -19
- package/dist/generated/reflect_main/types/OracleGuardRails.d.ts +0 -18
- package/dist/generated/reflect_main/types/OracleSource.d.ts +0 -34
- package/dist/generated/reflect_main/types/OracleValidity.d.ts +0 -25
- package/dist/generated/reflect_main/types/Order.d.ts +0 -43
- package/dist/generated/reflect_main/types/OrderDirection.d.ts +0 -20
- package/dist/generated/reflect_main/types/OrderParams.d.ts +0 -36
- package/dist/generated/reflect_main/types/OrderStatus.d.ts +0 -22
- package/dist/generated/reflect_main/types/OrderTriggerCondition.d.ts +0 -22
- package/dist/generated/reflect_main/types/OrderType.d.ts +0 -23
- package/dist/generated/reflect_main/types/PermissionLevel.d.ts +0 -51
- package/dist/generated/reflect_main/types/PerpHedge.d.ts +0 -17
- package/dist/generated/reflect_main/types/PerpPosition.d.ts +0 -29
- package/dist/generated/reflect_main/types/PoolBalance.d.ts +0 -17
- package/dist/generated/reflect_main/types/Position.d.ts +0 -20
- package/dist/generated/reflect_main/types/PositionDirection.d.ts +0 -20
- package/dist/generated/reflect_main/types/PositionDrift.d.ts +0 -18
- package/dist/generated/reflect_main/types/PostOnlyParam.d.ts +0 -22
- package/dist/generated/reflect_main/types/Price.d.ts +0 -41
- package/dist/generated/reflect_main/types/PriceComp.d.ts +0 -19
- package/dist/generated/reflect_main/types/PriceDivergenceGuardRails.d.ts +0 -16
- package/dist/generated/reflect_main/types/PriceInfo.d.ts +0 -21
- package/dist/generated/reflect_main/types/PriceStatus.d.ts +0 -22
- package/dist/generated/reflect_main/types/PriceType.d.ts +0 -20
- package/dist/generated/reflect_main/types/Program.d.ts +0 -19
- package/dist/generated/reflect_main/types/ProgramStatus.d.ts +0 -20
- package/dist/generated/reflect_main/types/Recipient.d.ts +0 -17
- package/dist/generated/reflect_main/types/Recipients.d.ts +0 -17
- package/dist/generated/reflect_main/types/Role.d.ts +0 -25
- package/dist/generated/reflect_main/types/ShiftCollateral.d.ts +0 -19
- package/dist/generated/reflect_main/types/ShiftPosition.d.ts +0 -17
- package/dist/generated/reflect_main/types/ShortHolding.d.ts +0 -17
- package/dist/generated/reflect_main/types/SplBase.d.ts +0 -17
- package/dist/generated/reflect_main/types/SplMain.d.ts +0 -22
- package/dist/generated/reflect_main/types/Spls.d.ts +0 -17
- package/dist/generated/reflect_main/types/SpotBalanceType.d.ts +0 -20
- package/dist/generated/reflect_main/types/SpotPosition.d.ts +0 -23
- package/dist/generated/reflect_main/types/Status.d.ts +0 -21
- package/dist/generated/reflect_main/types/Strategy.d.ts +0 -32
- package/dist/generated/reflect_main/types/StrategyPadding.d.ts +0 -15
- package/dist/generated/reflect_main/types/StrategyRoleEntry.d.ts +0 -17
- package/dist/generated/reflect_main/types/SubAccount.d.ts +0 -17
- package/dist/generated/reflect_main/types/Update.d.ts +0 -20
- package/dist/generated/reflect_main/types/UserFees.d.ts +0 -20
- package/dist/generated/reflect_main/types/ValidityGuardRails.d.ts +0 -18
- package/dist/generated/reflect_main/types/index.d.ts +0 -80
- package/dist/generated/reflect_tokenised_bonds/accounts/Admin.d.ts +0 -101
- package/dist/generated/reflect_tokenised_bonds/accounts/Config.d.ts +0 -108
- package/dist/generated/reflect_tokenised_bonds/accounts/Vault.d.ts +0 -116
- package/dist/generated/reflect_tokenised_bonds/accounts/index.d.ts +0 -11
- package/dist/generated/reflect_tokenised_bonds/errors/index.d.ts +0 -144
- package/dist/generated/reflect_tokenised_bonds/index.d.ts +0 -19
- package/dist/generated/reflect_tokenised_bonds/instructions/createVault.d.ts +0 -50
- package/dist/generated/reflect_tokenised_bonds/instructions/deposit.d.ts +0 -62
- package/dist/generated/reflect_tokenised_bonds/instructions/index.d.ts +0 -4
- package/dist/generated/reflect_tokenised_bonds/instructions/initialize.d.ts +0 -43
- package/dist/generated/reflect_tokenised_bonds/instructions/withdraw.d.ts +0 -62
- package/dist/generated/reflect_tokenised_bonds/types/DepositArgs.d.ts +0 -17
- package/dist/generated/reflect_tokenised_bonds/types/Permissions.d.ts +0 -21
- package/dist/generated/reflect_tokenised_bonds/types/WithdrawArgs.d.ts +0 -16
- package/dist/generated/reflect_tokenised_bonds/types/index.d.ts +0 -3
- package/dist/helpers/getOrcaQuote.d.ts +0 -3
- package/dist/idl/perpetuals.d.ts +0 -5771
- package/dist/index.d.ts +0 -8
- package/dist/stablecoins/JlpStablecoin.d.ts +0 -1
- package/dist/stablecoins/JlpStablecoin.js +0 -44
- package/dist/stablecoins/LstStablecoin.d.ts +0 -65
- package/dist/stablecoins/UsdcPlusStablecoin.d.ts +0 -68
- package/dist/stablecoins/UsdcStablecoin.d.ts +0 -64
- package/dist/stablecoins/UsdcStablecoin.js +0 -145
- package/dist/stablecoins/UsdjStablecoin.d.ts +0 -1
- package/dist/stablecoins/index.d.ts +0 -3
|
@@ -1,144 +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
|
-
type ErrorWithCode = Error & {
|
|
8
|
-
code: number;
|
|
9
|
-
};
|
|
10
|
-
type MaybeErrorWithCode = ErrorWithCode | null | undefined;
|
|
11
|
-
/**
|
|
12
|
-
* InvalidSigner: 'Invalid transaction signer.'
|
|
13
|
-
*
|
|
14
|
-
* @category Errors
|
|
15
|
-
* @category generated
|
|
16
|
-
*/
|
|
17
|
-
export declare class InvalidSignerError extends Error {
|
|
18
|
-
readonly code: number;
|
|
19
|
-
readonly name: string;
|
|
20
|
-
constructor();
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* ProgramAccountsMismatch: 'ProgramAccountsMismatch'
|
|
24
|
-
*
|
|
25
|
-
* @category Errors
|
|
26
|
-
* @category generated
|
|
27
|
-
*/
|
|
28
|
-
export declare class ProgramAccountsMismatchError extends Error {
|
|
29
|
-
readonly code: number;
|
|
30
|
-
readonly name: string;
|
|
31
|
-
constructor();
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* InvalidReceiptTokenSupply: 'InvalidReceiptTokenSupply'
|
|
35
|
-
*
|
|
36
|
-
* @category Errors
|
|
37
|
-
* @category generated
|
|
38
|
-
*/
|
|
39
|
-
export declare class InvalidReceiptTokenSupplyError extends Error {
|
|
40
|
-
readonly code: number;
|
|
41
|
-
readonly name: string;
|
|
42
|
-
constructor();
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* InvalidReceiptTokenMintAuthority: 'InvalidReceiptTokenMintAuthority'
|
|
46
|
-
*
|
|
47
|
-
* @category Errors
|
|
48
|
-
* @category generated
|
|
49
|
-
*/
|
|
50
|
-
export declare class InvalidReceiptTokenMintAuthorityError extends Error {
|
|
51
|
-
readonly code: number;
|
|
52
|
-
readonly name: string;
|
|
53
|
-
constructor();
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* InvalidReceiptTokenFreezeAuthority: 'InvalidReceiptTokenFreezeAuthority'
|
|
57
|
-
*
|
|
58
|
-
* @category Errors
|
|
59
|
-
* @category generated
|
|
60
|
-
*/
|
|
61
|
-
export declare class InvalidReceiptTokenFreezeAuthorityError extends Error {
|
|
62
|
-
readonly code: number;
|
|
63
|
-
readonly name: string;
|
|
64
|
-
constructor();
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* InvalidReceiptTokenSetup: 'InvalidReceiptTokenSetup'
|
|
68
|
-
*
|
|
69
|
-
* @category Errors
|
|
70
|
-
* @category generated
|
|
71
|
-
*/
|
|
72
|
-
export declare class InvalidReceiptTokenSetupError extends Error {
|
|
73
|
-
readonly code: number;
|
|
74
|
-
readonly name: string;
|
|
75
|
-
constructor();
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* InvalidReceiptTokenDecimals: 'InvalidReceiptTokenDecimals'
|
|
79
|
-
*
|
|
80
|
-
* @category Errors
|
|
81
|
-
* @category generated
|
|
82
|
-
*/
|
|
83
|
-
export declare class InvalidReceiptTokenDecimalsError extends Error {
|
|
84
|
-
readonly code: number;
|
|
85
|
-
readonly name: string;
|
|
86
|
-
constructor();
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* ZeroDivision: 'ZeroDivision'
|
|
90
|
-
*
|
|
91
|
-
* @category Errors
|
|
92
|
-
* @category generated
|
|
93
|
-
*/
|
|
94
|
-
export declare class ZeroDivisionError extends Error {
|
|
95
|
-
readonly code: number;
|
|
96
|
-
readonly name: string;
|
|
97
|
-
constructor();
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* MathOverflow: 'MathOverflow'
|
|
101
|
-
*
|
|
102
|
-
* @category Errors
|
|
103
|
-
* @category generated
|
|
104
|
-
*/
|
|
105
|
-
export declare class MathOverflowError extends Error {
|
|
106
|
-
readonly code: number;
|
|
107
|
-
readonly name: string;
|
|
108
|
-
constructor();
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* MissingAccounts: 'MissingAccounts'
|
|
112
|
-
*
|
|
113
|
-
* @category Errors
|
|
114
|
-
* @category generated
|
|
115
|
-
*/
|
|
116
|
-
export declare class MissingAccountsError extends Error {
|
|
117
|
-
readonly code: number;
|
|
118
|
-
readonly name: string;
|
|
119
|
-
constructor();
|
|
120
|
-
}
|
|
121
|
-
/**
|
|
122
|
-
* AmountTooLow: 'AmountTooLow'
|
|
123
|
-
*
|
|
124
|
-
* @category Errors
|
|
125
|
-
* @category generated
|
|
126
|
-
*/
|
|
127
|
-
export declare class AmountTooLowError extends Error {
|
|
128
|
-
readonly code: number;
|
|
129
|
-
readonly name: string;
|
|
130
|
-
constructor();
|
|
131
|
-
}
|
|
132
|
-
/**
|
|
133
|
-
* Attempts to resolve a custom program error from the provided error code.
|
|
134
|
-
* @category Errors
|
|
135
|
-
* @category generated
|
|
136
|
-
*/
|
|
137
|
-
export declare function errorFromCode(code: number): MaybeErrorWithCode;
|
|
138
|
-
/**
|
|
139
|
-
* Attempts to resolve a custom program error from the provided error name, i.e. 'Unauthorized'.
|
|
140
|
-
* @category Errors
|
|
141
|
-
* @category generated
|
|
142
|
-
*/
|
|
143
|
-
export declare function errorFromName(name: string): MaybeErrorWithCode;
|
|
144
|
-
export {};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { PublicKey } from '@solana/web3.js';
|
|
2
|
-
export * from './accounts';
|
|
3
|
-
export * from './errors';
|
|
4
|
-
export * from './instructions';
|
|
5
|
-
export * from './types';
|
|
6
|
-
/**
|
|
7
|
-
* Program address
|
|
8
|
-
*
|
|
9
|
-
* @category constants
|
|
10
|
-
* @category generated
|
|
11
|
-
*/
|
|
12
|
-
export declare const PROGRAM_ADDRESS = "3y4JooLs5Y2QQY5gqt49WPoeBirThj7GgQYamia5HxZd";
|
|
13
|
-
/**
|
|
14
|
-
* Program public key
|
|
15
|
-
*
|
|
16
|
-
* @category constants
|
|
17
|
-
* @category generated
|
|
18
|
-
*/
|
|
19
|
-
export declare const PROGRAM_ID: PublicKey;
|
|
@@ -1,50 +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 CreateVault
|
|
12
|
-
* @category generated
|
|
13
|
-
*/
|
|
14
|
-
export declare const createVaultStruct: beet.BeetArgsStruct<{
|
|
15
|
-
instructionDiscriminator: number[];
|
|
16
|
-
}>;
|
|
17
|
-
/**
|
|
18
|
-
* Accounts required by the _createVault_ instruction
|
|
19
|
-
*
|
|
20
|
-
* @property [_writable_, **signer**] signer
|
|
21
|
-
* @property [_writable_] config
|
|
22
|
-
* @property [_writable_] vault
|
|
23
|
-
* @property [] depositMint
|
|
24
|
-
* @property [] receiptMint
|
|
25
|
-
* @property [_writable_] vaultPool
|
|
26
|
-
* @category Instructions
|
|
27
|
-
* @category CreateVault
|
|
28
|
-
* @category generated
|
|
29
|
-
*/
|
|
30
|
-
export type CreateVaultInstructionAccounts = {
|
|
31
|
-
signer: web3.PublicKey;
|
|
32
|
-
config: web3.PublicKey;
|
|
33
|
-
vault: web3.PublicKey;
|
|
34
|
-
depositMint: web3.PublicKey;
|
|
35
|
-
receiptMint: web3.PublicKey;
|
|
36
|
-
vaultPool: web3.PublicKey;
|
|
37
|
-
tokenProgram?: web3.PublicKey;
|
|
38
|
-
systemProgram?: web3.PublicKey;
|
|
39
|
-
anchorRemainingAccounts?: web3.AccountMeta[];
|
|
40
|
-
};
|
|
41
|
-
export declare const createVaultInstructionDiscriminator: number[];
|
|
42
|
-
/**
|
|
43
|
-
* Creates a _CreateVault_ instruction.
|
|
44
|
-
*
|
|
45
|
-
* @param accounts that will be accessed while the instruction is processed
|
|
46
|
-
* @category Instructions
|
|
47
|
-
* @category CreateVault
|
|
48
|
-
* @category generated
|
|
49
|
-
*/
|
|
50
|
-
export declare function createCreateVaultInstruction(accounts: CreateVaultInstructionAccounts, programId?: web3.PublicKey): web3.TransactionInstruction;
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This code was GENERATED using the solita package.
|
|
3
|
-
* Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
|
|
4
|
-
*
|
|
5
|
-
* See: https://github.com/metaplex-foundation/solita
|
|
6
|
-
*/
|
|
7
|
-
import * as beet from '@metaplex-foundation/beet';
|
|
8
|
-
import * as web3 from '@solana/web3.js';
|
|
9
|
-
import { DepositArgs } from '../types/DepositArgs';
|
|
10
|
-
/**
|
|
11
|
-
* @category Instructions
|
|
12
|
-
* @category Deposit
|
|
13
|
-
* @category generated
|
|
14
|
-
*/
|
|
15
|
-
export type DepositInstructionArgs = {
|
|
16
|
-
args: DepositArgs;
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* @category Instructions
|
|
20
|
-
* @category Deposit
|
|
21
|
-
* @category generated
|
|
22
|
-
*/
|
|
23
|
-
export declare const depositStruct: beet.BeetArgsStruct<DepositInstructionArgs & {
|
|
24
|
-
instructionDiscriminator: number[];
|
|
25
|
-
}>;
|
|
26
|
-
/**
|
|
27
|
-
* Accounts required by the _deposit_ instruction
|
|
28
|
-
*
|
|
29
|
-
* @property [**signer**] signer
|
|
30
|
-
* @property [] vault
|
|
31
|
-
* @property [_writable_] pool
|
|
32
|
-
* @property [] depositToken
|
|
33
|
-
* @property [_writable_] signerDepositTokenAccount
|
|
34
|
-
* @property [_writable_] receiptToken
|
|
35
|
-
* @property [_writable_] signerReceiptTokenAccount
|
|
36
|
-
* @category Instructions
|
|
37
|
-
* @category Deposit
|
|
38
|
-
* @category generated
|
|
39
|
-
*/
|
|
40
|
-
export type DepositInstructionAccounts = {
|
|
41
|
-
signer: web3.PublicKey;
|
|
42
|
-
vault: web3.PublicKey;
|
|
43
|
-
pool: web3.PublicKey;
|
|
44
|
-
depositToken: web3.PublicKey;
|
|
45
|
-
signerDepositTokenAccount: web3.PublicKey;
|
|
46
|
-
receiptToken: web3.PublicKey;
|
|
47
|
-
signerReceiptTokenAccount: web3.PublicKey;
|
|
48
|
-
tokenProgram?: web3.PublicKey;
|
|
49
|
-
anchorRemainingAccounts?: web3.AccountMeta[];
|
|
50
|
-
};
|
|
51
|
-
export declare const depositInstructionDiscriminator: number[];
|
|
52
|
-
/**
|
|
53
|
-
* Creates a _Deposit_ instruction.
|
|
54
|
-
*
|
|
55
|
-
* @param accounts that will be accessed while the instruction is processed
|
|
56
|
-
* @param args to provide as instruction data to the program
|
|
57
|
-
*
|
|
58
|
-
* @category Instructions
|
|
59
|
-
* @category Deposit
|
|
60
|
-
* @category generated
|
|
61
|
-
*/
|
|
62
|
-
export declare function createDepositInstruction(accounts: DepositInstructionAccounts, args: DepositInstructionArgs, programId?: web3.PublicKey): web3.TransactionInstruction;
|
|
@@ -1,43 +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 Initialize
|
|
12
|
-
* @category generated
|
|
13
|
-
*/
|
|
14
|
-
export declare const initializeStruct: beet.BeetArgsStruct<{
|
|
15
|
-
instructionDiscriminator: number[];
|
|
16
|
-
}>;
|
|
17
|
-
/**
|
|
18
|
-
* Accounts required by the _initialize_ instruction
|
|
19
|
-
*
|
|
20
|
-
* @property [_writable_, **signer**] signer
|
|
21
|
-
* @property [_writable_] admin
|
|
22
|
-
* @property [_writable_] config
|
|
23
|
-
* @category Instructions
|
|
24
|
-
* @category Initialize
|
|
25
|
-
* @category generated
|
|
26
|
-
*/
|
|
27
|
-
export type InitializeInstructionAccounts = {
|
|
28
|
-
signer: web3.PublicKey;
|
|
29
|
-
admin: web3.PublicKey;
|
|
30
|
-
config: web3.PublicKey;
|
|
31
|
-
systemProgram?: web3.PublicKey;
|
|
32
|
-
anchorRemainingAccounts?: web3.AccountMeta[];
|
|
33
|
-
};
|
|
34
|
-
export declare const initializeInstructionDiscriminator: number[];
|
|
35
|
-
/**
|
|
36
|
-
* Creates a _Initialize_ instruction.
|
|
37
|
-
*
|
|
38
|
-
* @param accounts that will be accessed while the instruction is processed
|
|
39
|
-
* @category Instructions
|
|
40
|
-
* @category Initialize
|
|
41
|
-
* @category generated
|
|
42
|
-
*/
|
|
43
|
-
export declare function createInitializeInstruction(accounts: InitializeInstructionAccounts, programId?: web3.PublicKey): web3.TransactionInstruction;
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This code was GENERATED using the solita package.
|
|
3
|
-
* Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
|
|
4
|
-
*
|
|
5
|
-
* See: https://github.com/metaplex-foundation/solita
|
|
6
|
-
*/
|
|
7
|
-
import * as beet from '@metaplex-foundation/beet';
|
|
8
|
-
import * as web3 from '@solana/web3.js';
|
|
9
|
-
import { WithdrawArgs } from '../types/WithdrawArgs';
|
|
10
|
-
/**
|
|
11
|
-
* @category Instructions
|
|
12
|
-
* @category Withdraw
|
|
13
|
-
* @category generated
|
|
14
|
-
*/
|
|
15
|
-
export type WithdrawInstructionArgs = {
|
|
16
|
-
args: WithdrawArgs;
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* @category Instructions
|
|
20
|
-
* @category Withdraw
|
|
21
|
-
* @category generated
|
|
22
|
-
*/
|
|
23
|
-
export declare const withdrawStruct: beet.BeetArgsStruct<WithdrawInstructionArgs & {
|
|
24
|
-
instructionDiscriminator: number[];
|
|
25
|
-
}>;
|
|
26
|
-
/**
|
|
27
|
-
* Accounts required by the _withdraw_ instruction
|
|
28
|
-
*
|
|
29
|
-
* @property [_writable_, **signer**] signer
|
|
30
|
-
* @property [_writable_] vault
|
|
31
|
-
* @property [_writable_] pool
|
|
32
|
-
* @property [_writable_] receiptMint
|
|
33
|
-
* @property [] depositMint
|
|
34
|
-
* @property [_writable_] signerDepositTokenAccount
|
|
35
|
-
* @property [_writable_] signerReceiptTokenAccount
|
|
36
|
-
* @category Instructions
|
|
37
|
-
* @category Withdraw
|
|
38
|
-
* @category generated
|
|
39
|
-
*/
|
|
40
|
-
export type WithdrawInstructionAccounts = {
|
|
41
|
-
signer: web3.PublicKey;
|
|
42
|
-
vault: web3.PublicKey;
|
|
43
|
-
pool: web3.PublicKey;
|
|
44
|
-
receiptMint: web3.PublicKey;
|
|
45
|
-
depositMint: web3.PublicKey;
|
|
46
|
-
signerDepositTokenAccount: web3.PublicKey;
|
|
47
|
-
signerReceiptTokenAccount: web3.PublicKey;
|
|
48
|
-
tokenProgram?: web3.PublicKey;
|
|
49
|
-
anchorRemainingAccounts?: web3.AccountMeta[];
|
|
50
|
-
};
|
|
51
|
-
export declare const withdrawInstructionDiscriminator: number[];
|
|
52
|
-
/**
|
|
53
|
-
* Creates a _Withdraw_ instruction.
|
|
54
|
-
*
|
|
55
|
-
* @param accounts that will be accessed while the instruction is processed
|
|
56
|
-
* @param args to provide as instruction data to the program
|
|
57
|
-
*
|
|
58
|
-
* @category Instructions
|
|
59
|
-
* @category Withdraw
|
|
60
|
-
* @category generated
|
|
61
|
-
*/
|
|
62
|
-
export declare function createWithdrawInstruction(accounts: WithdrawInstructionAccounts, args: WithdrawInstructionArgs, programId?: web3.PublicKey): web3.TransactionInstruction;
|
|
@@ -1,17 +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
|
-
export type DepositArgs = {
|
|
9
|
-
vaultId: beet.bignum;
|
|
10
|
-
amount: beet.bignum;
|
|
11
|
-
isRewards: boolean;
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
* @category userTypes
|
|
15
|
-
* @category generated
|
|
16
|
-
*/
|
|
17
|
-
export declare const depositArgsBeet: beet.BeetArgsStruct<DepositArgs>;
|
|
@@ -1,21 +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
|
-
/**
|
|
9
|
-
* @category enums
|
|
10
|
-
* @category generated
|
|
11
|
-
*/
|
|
12
|
-
export declare enum Permissions {
|
|
13
|
-
InitializeVaults = 0,
|
|
14
|
-
Freeze = 1,
|
|
15
|
-
Superadmin = 2
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* @category userTypes
|
|
19
|
-
* @category generated
|
|
20
|
-
*/
|
|
21
|
-
export declare const permissionsBeet: beet.FixedSizeBeet<Permissions, Permissions>;
|
|
@@ -1,16 +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
|
-
export type WithdrawArgs = {
|
|
9
|
-
vaultId: beet.bignum;
|
|
10
|
-
amount: beet.bignum;
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
* @category userTypes
|
|
14
|
-
* @category generated
|
|
15
|
-
*/
|
|
16
|
-
export declare const withdrawArgsBeet: beet.BeetArgsStruct<WithdrawArgs>;
|