@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,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This code was GENERATED using the solita package.
|
|
3
|
-
* Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
|
|
4
|
-
*
|
|
5
|
-
* See: https://github.com/metaplex-foundation/solita
|
|
6
|
-
*/
|
|
7
|
-
import * as web3 from '@solana/web3.js';
|
|
8
|
-
import * as beet from '@metaplex-foundation/beet';
|
|
9
|
-
import { Status } from './Status';
|
|
10
|
-
import { AccessControl } from './AccessControl';
|
|
11
|
-
import { FlowControl } from './FlowControl';
|
|
12
|
-
import { Spls } from './Spls';
|
|
13
|
-
import { Recipients } from './Recipients';
|
|
14
|
-
import { StrategyPadding } from './StrategyPadding';
|
|
15
|
-
export type Strategy = {
|
|
16
|
-
bump: number;
|
|
17
|
-
index: number;
|
|
18
|
-
status: Status;
|
|
19
|
-
mint: web3.PublicKey;
|
|
20
|
-
cap: beet.bignum;
|
|
21
|
-
accessControl: AccessControl;
|
|
22
|
-
flow: FlowControl;
|
|
23
|
-
spls: Spls;
|
|
24
|
-
recipients: Recipients;
|
|
25
|
-
rebalanceSlipagge: number;
|
|
26
|
-
reserved: StrategyPadding;
|
|
27
|
-
};
|
|
28
|
-
/**
|
|
29
|
-
* @category userTypes
|
|
30
|
-
* @category generated
|
|
31
|
-
*/
|
|
32
|
-
export declare const strategyBeet: beet.BeetArgsStruct<Strategy>;
|
|
@@ -1,15 +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 StrategyPadding = {
|
|
9
|
-
reserved: number[];
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* @category userTypes
|
|
13
|
-
* @category generated
|
|
14
|
-
*/
|
|
15
|
-
export declare const strategyPaddingBeet: beet.BeetArgsStruct<StrategyPadding>;
|
|
@@ -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
|
-
import { LevelRoles } from './LevelRoles';
|
|
9
|
-
export type StrategyRoleEntry = {
|
|
10
|
-
strategyId: number;
|
|
11
|
-
roles: LevelRoles;
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
* @category userTypes
|
|
15
|
-
* @category generated
|
|
16
|
-
*/
|
|
17
|
-
export declare const strategyRoleEntryBeet: beet.FixableBeetArgsStruct<StrategyRoleEntry>;
|
|
@@ -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 SubAccount = {
|
|
9
|
-
subAccountIdx: number;
|
|
10
|
-
lstsLoaded: number;
|
|
11
|
-
driftTokenLoaded: boolean;
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
* @category userTypes
|
|
15
|
-
* @category generated
|
|
16
|
-
*/
|
|
17
|
-
export declare const subAccountBeet: beet.BeetArgsStruct<SubAccount>;
|
|
@@ -1,20 +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 Update {
|
|
13
|
-
Add = 0,
|
|
14
|
-
Remove = 1
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* @category userTypes
|
|
18
|
-
* @category generated
|
|
19
|
-
*/
|
|
20
|
-
export declare const updateBeet: beet.FixedSizeBeet<Update, Update>;
|
|
@@ -1,20 +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 UserFees = {
|
|
9
|
-
totalFeePaid: beet.bignum;
|
|
10
|
-
totalFeeRebate: beet.bignum;
|
|
11
|
-
totalTokenDiscount: beet.bignum;
|
|
12
|
-
totalRefereeDiscount: beet.bignum;
|
|
13
|
-
totalReferrerReward: beet.bignum;
|
|
14
|
-
currentEpochReferrerReward: beet.bignum;
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* @category userTypes
|
|
18
|
-
* @category generated
|
|
19
|
-
*/
|
|
20
|
-
export declare const userFeesBeet: beet.BeetArgsStruct<UserFees>;
|
|
@@ -1,18 +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 ValidityGuardRails = {
|
|
9
|
-
slotsBeforeStaleForAmm: beet.bignum;
|
|
10
|
-
slotsBeforeStaleForMargin: beet.bignum;
|
|
11
|
-
confidenceIntervalMaxSize: beet.bignum;
|
|
12
|
-
tooVolatileRatio: beet.bignum;
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* @category userTypes
|
|
16
|
-
* @category generated
|
|
17
|
-
*/
|
|
18
|
-
export declare const validityGuardRailsBeet: beet.BeetArgsStruct<ValidityGuardRails>;
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
export * from './AMM';
|
|
2
|
-
export * from './AccKey';
|
|
3
|
-
export * from './AccessControl';
|
|
4
|
-
export * from './AccessMap';
|
|
5
|
-
export * from './Action';
|
|
6
|
-
export * from './ActionMapping';
|
|
7
|
-
export * from './AssetTier';
|
|
8
|
-
export * from './Attenuation';
|
|
9
|
-
export * from './BalanceType';
|
|
10
|
-
export * from './Capture';
|
|
11
|
-
export * from './ContractTier';
|
|
12
|
-
export * from './ContractType';
|
|
13
|
-
export * from './CorpAction';
|
|
14
|
-
export * from './CustodyInfo';
|
|
15
|
-
export * from './DirectionCollateral';
|
|
16
|
-
export * from './DirectionPosition';
|
|
17
|
-
export * from './DriftControllerBase';
|
|
18
|
-
export * from './DriftJlpControllerFixedAccounts';
|
|
19
|
-
export * from './DriftLstData';
|
|
20
|
-
export * from './Ema';
|
|
21
|
-
export * from './Externals';
|
|
22
|
-
export * from './FlowControl';
|
|
23
|
-
export * from './HistoricalIndexData';
|
|
24
|
-
export * from './HistoricalOracleData';
|
|
25
|
-
export * from './Holding';
|
|
26
|
-
export * from './Holdings';
|
|
27
|
-
export * from './InsuranceClaim';
|
|
28
|
-
export * from './InsuranceFund';
|
|
29
|
-
export * from './JlpRebalanceSettings';
|
|
30
|
-
export * from './KillSwitch';
|
|
31
|
-
export * from './LevelRoles';
|
|
32
|
-
export * from './MarketStatus';
|
|
33
|
-
export * from './MarketType';
|
|
34
|
-
export * from './ModifyOrderParams';
|
|
35
|
-
export * from './ModifyOrderPolicy';
|
|
36
|
-
export * from './Movements';
|
|
37
|
-
export * from './OracleGuardRails';
|
|
38
|
-
export * from './OracleSource';
|
|
39
|
-
export * from './OracleValidity';
|
|
40
|
-
export * from './Order';
|
|
41
|
-
export * from './OrderDirection';
|
|
42
|
-
export * from './OrderParams';
|
|
43
|
-
export * from './OrderStatus';
|
|
44
|
-
export * from './OrderTriggerCondition';
|
|
45
|
-
export * from './OrderType';
|
|
46
|
-
export * from './PermissionLevel';
|
|
47
|
-
export * from './PerpHedge';
|
|
48
|
-
export * from './PerpPosition';
|
|
49
|
-
export * from './PoolBalance';
|
|
50
|
-
export * from './Position';
|
|
51
|
-
export * from './PositionDirection';
|
|
52
|
-
export * from './PositionDrift';
|
|
53
|
-
export * from './PostOnlyParam';
|
|
54
|
-
export * from './Price';
|
|
55
|
-
export * from './PriceComp';
|
|
56
|
-
export * from './PriceDivergenceGuardRails';
|
|
57
|
-
export * from './PriceInfo';
|
|
58
|
-
export * from './PriceStatus';
|
|
59
|
-
export * from './PriceType';
|
|
60
|
-
export * from './Program';
|
|
61
|
-
export * from './ProgramStatus';
|
|
62
|
-
export * from './Recipient';
|
|
63
|
-
export * from './Recipients';
|
|
64
|
-
export * from './Role';
|
|
65
|
-
export * from './ShiftCollateral';
|
|
66
|
-
export * from './ShiftPosition';
|
|
67
|
-
export * from './ShortHolding';
|
|
68
|
-
export * from './SplBase';
|
|
69
|
-
export * from './SplMain';
|
|
70
|
-
export * from './Spls';
|
|
71
|
-
export * from './SpotBalanceType';
|
|
72
|
-
export * from './SpotPosition';
|
|
73
|
-
export * from './Status';
|
|
74
|
-
export * from './Strategy';
|
|
75
|
-
export * from './StrategyPadding';
|
|
76
|
-
export * from './StrategyRoleEntry';
|
|
77
|
-
export * from './SubAccount';
|
|
78
|
-
export * from './Update';
|
|
79
|
-
export * from './UserFees';
|
|
80
|
-
export * from './ValidityGuardRails';
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This code was GENERATED using the solita package.
|
|
3
|
-
* Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
|
|
4
|
-
*
|
|
5
|
-
* See: https://github.com/metaplex-foundation/solita
|
|
6
|
-
*/
|
|
7
|
-
/// <reference types="node" />
|
|
8
|
-
/// <reference types="node" />
|
|
9
|
-
import * as web3 from '@solana/web3.js';
|
|
10
|
-
import * as beetSolana from '@metaplex-foundation/beet-solana';
|
|
11
|
-
import * as beet from '@metaplex-foundation/beet';
|
|
12
|
-
import { Permissions } from '../types/Permissions';
|
|
13
|
-
/**
|
|
14
|
-
* Arguments used to create {@link Admin}
|
|
15
|
-
* @category Accounts
|
|
16
|
-
* @category generated
|
|
17
|
-
*/
|
|
18
|
-
export type AdminArgs = {
|
|
19
|
-
pubkey: web3.PublicKey;
|
|
20
|
-
permissions: Permissions[];
|
|
21
|
-
};
|
|
22
|
-
export declare const adminDiscriminator: number[];
|
|
23
|
-
/**
|
|
24
|
-
* Holds the data for the {@link Admin} Account and provides de/serialization
|
|
25
|
-
* functionality for that data
|
|
26
|
-
*
|
|
27
|
-
* @category Accounts
|
|
28
|
-
* @category generated
|
|
29
|
-
*/
|
|
30
|
-
export declare class Admin implements AdminArgs {
|
|
31
|
-
readonly pubkey: web3.PublicKey;
|
|
32
|
-
readonly permissions: Permissions[];
|
|
33
|
-
private constructor();
|
|
34
|
-
/**
|
|
35
|
-
* Creates a {@link Admin} instance from the provided args.
|
|
36
|
-
*/
|
|
37
|
-
static fromArgs(args: AdminArgs): Admin;
|
|
38
|
-
/**
|
|
39
|
-
* Deserializes the {@link Admin} from the data of the provided {@link web3.AccountInfo}.
|
|
40
|
-
* @returns a tuple of the account data and the offset up to which the buffer was read to obtain it.
|
|
41
|
-
*/
|
|
42
|
-
static fromAccountInfo(accountInfo: web3.AccountInfo<Buffer>, offset?: number): [Admin, number];
|
|
43
|
-
/**
|
|
44
|
-
* Retrieves the account info from the provided address and deserializes
|
|
45
|
-
* the {@link Admin} from its data.
|
|
46
|
-
*
|
|
47
|
-
* @throws Error if no account info is found at the address or if deserialization fails
|
|
48
|
-
*/
|
|
49
|
-
static fromAccountAddress(connection: web3.Connection, address: web3.PublicKey, commitmentOrConfig?: web3.Commitment | web3.GetAccountInfoConfig): Promise<Admin>;
|
|
50
|
-
/**
|
|
51
|
-
* Provides a {@link web3.Connection.getProgramAccounts} config builder,
|
|
52
|
-
* to fetch accounts matching filters that can be specified via that builder.
|
|
53
|
-
*
|
|
54
|
-
* @param programId - the program that owns the accounts we are filtering
|
|
55
|
-
*/
|
|
56
|
-
static gpaBuilder(programId?: web3.PublicKey): beetSolana.GpaBuilder<AdminArgs & {
|
|
57
|
-
accountDiscriminator: number[];
|
|
58
|
-
}>;
|
|
59
|
-
/**
|
|
60
|
-
* Deserializes the {@link Admin} from the provided data Buffer.
|
|
61
|
-
* @returns a tuple of the account data and the offset up to which the buffer was read to obtain it.
|
|
62
|
-
*/
|
|
63
|
-
static deserialize(buf: Buffer, offset?: number): [Admin, number];
|
|
64
|
-
/**
|
|
65
|
-
* Serializes the {@link Admin} into a Buffer.
|
|
66
|
-
* @returns a tuple of the created Buffer and the offset up to which the buffer was written to store it.
|
|
67
|
-
*/
|
|
68
|
-
serialize(): [Buffer, number];
|
|
69
|
-
/**
|
|
70
|
-
* Returns the byteSize of a {@link Buffer} holding the serialized data of
|
|
71
|
-
* {@link Admin} for the provided args.
|
|
72
|
-
*
|
|
73
|
-
* @param args need to be provided since the byte size for this account
|
|
74
|
-
* depends on them
|
|
75
|
-
*/
|
|
76
|
-
static byteSize(args: AdminArgs): number;
|
|
77
|
-
/**
|
|
78
|
-
* Fetches the minimum balance needed to exempt an account holding
|
|
79
|
-
* {@link Admin} data from rent
|
|
80
|
-
*
|
|
81
|
-
* @param args need to be provided since the byte size for this account
|
|
82
|
-
* depends on them
|
|
83
|
-
* @param connection used to retrieve the rent exemption information
|
|
84
|
-
*/
|
|
85
|
-
static getMinimumBalanceForRentExemption(args: AdminArgs, connection: web3.Connection, commitment?: web3.Commitment): Promise<number>;
|
|
86
|
-
/**
|
|
87
|
-
* Returns a readable version of {@link Admin} properties
|
|
88
|
-
* and can be used to convert to JSON and/or logging
|
|
89
|
-
*/
|
|
90
|
-
pretty(): {
|
|
91
|
-
pubkey: string;
|
|
92
|
-
permissions: Permissions[];
|
|
93
|
-
};
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* @category Accounts
|
|
97
|
-
* @category generated
|
|
98
|
-
*/
|
|
99
|
-
export declare const adminBeet: beet.FixableBeetStruct<Admin, AdminArgs & {
|
|
100
|
-
accountDiscriminator: number[];
|
|
101
|
-
}>;
|
|
@@ -1,108 +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
|
-
/// <reference types="node" />
|
|
8
|
-
/// <reference types="node" />
|
|
9
|
-
import * as beet from '@metaplex-foundation/beet';
|
|
10
|
-
import * as web3 from '@solana/web3.js';
|
|
11
|
-
import * as beetSolana from '@metaplex-foundation/beet-solana';
|
|
12
|
-
/**
|
|
13
|
-
* Arguments used to create {@link Config}
|
|
14
|
-
* @category Accounts
|
|
15
|
-
* @category generated
|
|
16
|
-
*/
|
|
17
|
-
export type ConfigArgs = {
|
|
18
|
-
bump: number;
|
|
19
|
-
vaults: beet.bignum;
|
|
20
|
-
frozen: boolean;
|
|
21
|
-
};
|
|
22
|
-
export declare const configDiscriminator: number[];
|
|
23
|
-
/**
|
|
24
|
-
* Holds the data for the {@link Config} Account and provides de/serialization
|
|
25
|
-
* functionality for that data
|
|
26
|
-
*
|
|
27
|
-
* @category Accounts
|
|
28
|
-
* @category generated
|
|
29
|
-
*/
|
|
30
|
-
export declare class Config implements ConfigArgs {
|
|
31
|
-
readonly bump: number;
|
|
32
|
-
readonly vaults: beet.bignum;
|
|
33
|
-
readonly frozen: boolean;
|
|
34
|
-
private constructor();
|
|
35
|
-
/**
|
|
36
|
-
* Creates a {@link Config} instance from the provided args.
|
|
37
|
-
*/
|
|
38
|
-
static fromArgs(args: ConfigArgs): Config;
|
|
39
|
-
/**
|
|
40
|
-
* Deserializes the {@link Config} from the data of the provided {@link web3.AccountInfo}.
|
|
41
|
-
* @returns a tuple of the account data and the offset up to which the buffer was read to obtain it.
|
|
42
|
-
*/
|
|
43
|
-
static fromAccountInfo(accountInfo: web3.AccountInfo<Buffer>, offset?: number): [Config, number];
|
|
44
|
-
/**
|
|
45
|
-
* Retrieves the account info from the provided address and deserializes
|
|
46
|
-
* the {@link Config} from its data.
|
|
47
|
-
*
|
|
48
|
-
* @throws Error if no account info is found at the address or if deserialization fails
|
|
49
|
-
*/
|
|
50
|
-
static fromAccountAddress(connection: web3.Connection, address: web3.PublicKey, commitmentOrConfig?: web3.Commitment | web3.GetAccountInfoConfig): Promise<Config>;
|
|
51
|
-
/**
|
|
52
|
-
* Provides a {@link web3.Connection.getProgramAccounts} config builder,
|
|
53
|
-
* to fetch accounts matching filters that can be specified via that builder.
|
|
54
|
-
*
|
|
55
|
-
* @param programId - the program that owns the accounts we are filtering
|
|
56
|
-
*/
|
|
57
|
-
static gpaBuilder(programId?: web3.PublicKey): beetSolana.GpaBuilder<{
|
|
58
|
-
frozen: any;
|
|
59
|
-
bump: any;
|
|
60
|
-
accountDiscriminator: any;
|
|
61
|
-
vaults: any;
|
|
62
|
-
}>;
|
|
63
|
-
/**
|
|
64
|
-
* Deserializes the {@link Config} from the provided data Buffer.
|
|
65
|
-
* @returns a tuple of the account data and the offset up to which the buffer was read to obtain it.
|
|
66
|
-
*/
|
|
67
|
-
static deserialize(buf: Buffer, offset?: number): [Config, number];
|
|
68
|
-
/**
|
|
69
|
-
* Serializes the {@link Config} into a Buffer.
|
|
70
|
-
* @returns a tuple of the created Buffer and the offset up to which the buffer was written to store it.
|
|
71
|
-
*/
|
|
72
|
-
serialize(): [Buffer, number];
|
|
73
|
-
/**
|
|
74
|
-
* Returns the byteSize of a {@link Buffer} holding the serialized data of
|
|
75
|
-
* {@link Config}
|
|
76
|
-
*/
|
|
77
|
-
static get byteSize(): number;
|
|
78
|
-
/**
|
|
79
|
-
* Fetches the minimum balance needed to exempt an account holding
|
|
80
|
-
* {@link Config} data from rent
|
|
81
|
-
*
|
|
82
|
-
* @param connection used to retrieve the rent exemption information
|
|
83
|
-
*/
|
|
84
|
-
static getMinimumBalanceForRentExemption(connection: web3.Connection, commitment?: web3.Commitment): Promise<number>;
|
|
85
|
-
/**
|
|
86
|
-
* Determines if the provided {@link Buffer} has the correct byte size to
|
|
87
|
-
* hold {@link Config} data.
|
|
88
|
-
*/
|
|
89
|
-
static hasCorrectByteSize(buf: Buffer, offset?: number): boolean;
|
|
90
|
-
/**
|
|
91
|
-
* Returns a readable version of {@link Config} properties
|
|
92
|
-
* and can be used to convert to JSON and/or logging
|
|
93
|
-
*/
|
|
94
|
-
pretty(): {
|
|
95
|
-
bump: number;
|
|
96
|
-
vaults: number | {
|
|
97
|
-
toNumber: () => number;
|
|
98
|
-
};
|
|
99
|
-
frozen: boolean;
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* @category Accounts
|
|
104
|
-
* @category generated
|
|
105
|
-
*/
|
|
106
|
-
export declare const configBeet: beet.BeetStruct<Config, ConfigArgs & {
|
|
107
|
-
accountDiscriminator: number[];
|
|
108
|
-
}>;
|
|
@@ -1,116 +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
|
-
/// <reference types="node" />
|
|
8
|
-
/// <reference types="node" />
|
|
9
|
-
import * as beet from '@metaplex-foundation/beet';
|
|
10
|
-
import * as web3 from '@solana/web3.js';
|
|
11
|
-
import * as beetSolana from '@metaplex-foundation/beet-solana';
|
|
12
|
-
/**
|
|
13
|
-
* Arguments used to create {@link Vault}
|
|
14
|
-
* @category Accounts
|
|
15
|
-
* @category generated
|
|
16
|
-
*/
|
|
17
|
-
export type VaultArgs = {
|
|
18
|
-
bump: number;
|
|
19
|
-
index: beet.bignum;
|
|
20
|
-
creator: web3.PublicKey;
|
|
21
|
-
depositTokenMint: web3.PublicKey;
|
|
22
|
-
receiptTokenMint: web3.PublicKey;
|
|
23
|
-
};
|
|
24
|
-
export declare const vaultDiscriminator: number[];
|
|
25
|
-
/**
|
|
26
|
-
* Holds the data for the {@link Vault} Account and provides de/serialization
|
|
27
|
-
* functionality for that data
|
|
28
|
-
*
|
|
29
|
-
* @category Accounts
|
|
30
|
-
* @category generated
|
|
31
|
-
*/
|
|
32
|
-
export declare class Vault implements VaultArgs {
|
|
33
|
-
readonly bump: number;
|
|
34
|
-
readonly index: beet.bignum;
|
|
35
|
-
readonly creator: web3.PublicKey;
|
|
36
|
-
readonly depositTokenMint: web3.PublicKey;
|
|
37
|
-
readonly receiptTokenMint: web3.PublicKey;
|
|
38
|
-
private constructor();
|
|
39
|
-
/**
|
|
40
|
-
* Creates a {@link Vault} instance from the provided args.
|
|
41
|
-
*/
|
|
42
|
-
static fromArgs(args: VaultArgs): Vault;
|
|
43
|
-
/**
|
|
44
|
-
* Deserializes the {@link Vault} from the data of the provided {@link web3.AccountInfo}.
|
|
45
|
-
* @returns a tuple of the account data and the offset up to which the buffer was read to obtain it.
|
|
46
|
-
*/
|
|
47
|
-
static fromAccountInfo(accountInfo: web3.AccountInfo<Buffer>, offset?: number): [Vault, number];
|
|
48
|
-
/**
|
|
49
|
-
* Retrieves the account info from the provided address and deserializes
|
|
50
|
-
* the {@link Vault} from its data.
|
|
51
|
-
*
|
|
52
|
-
* @throws Error if no account info is found at the address or if deserialization fails
|
|
53
|
-
*/
|
|
54
|
-
static fromAccountAddress(connection: web3.Connection, address: web3.PublicKey, commitmentOrConfig?: web3.Commitment | web3.GetAccountInfoConfig): Promise<Vault>;
|
|
55
|
-
/**
|
|
56
|
-
* Provides a {@link web3.Connection.getProgramAccounts} config builder,
|
|
57
|
-
* to fetch accounts matching filters that can be specified via that builder.
|
|
58
|
-
*
|
|
59
|
-
* @param programId - the program that owns the accounts we are filtering
|
|
60
|
-
*/
|
|
61
|
-
static gpaBuilder(programId?: web3.PublicKey): beetSolana.GpaBuilder<{
|
|
62
|
-
index: any;
|
|
63
|
-
bump: any;
|
|
64
|
-
accountDiscriminator: any;
|
|
65
|
-
creator: any;
|
|
66
|
-
depositTokenMint: any;
|
|
67
|
-
receiptTokenMint: any;
|
|
68
|
-
}>;
|
|
69
|
-
/**
|
|
70
|
-
* Deserializes the {@link Vault} from the provided data Buffer.
|
|
71
|
-
* @returns a tuple of the account data and the offset up to which the buffer was read to obtain it.
|
|
72
|
-
*/
|
|
73
|
-
static deserialize(buf: Buffer, offset?: number): [Vault, number];
|
|
74
|
-
/**
|
|
75
|
-
* Serializes the {@link Vault} into a Buffer.
|
|
76
|
-
* @returns a tuple of the created Buffer and the offset up to which the buffer was written to store it.
|
|
77
|
-
*/
|
|
78
|
-
serialize(): [Buffer, number];
|
|
79
|
-
/**
|
|
80
|
-
* Returns the byteSize of a {@link Buffer} holding the serialized data of
|
|
81
|
-
* {@link Vault}
|
|
82
|
-
*/
|
|
83
|
-
static get byteSize(): number;
|
|
84
|
-
/**
|
|
85
|
-
* Fetches the minimum balance needed to exempt an account holding
|
|
86
|
-
* {@link Vault} data from rent
|
|
87
|
-
*
|
|
88
|
-
* @param connection used to retrieve the rent exemption information
|
|
89
|
-
*/
|
|
90
|
-
static getMinimumBalanceForRentExemption(connection: web3.Connection, commitment?: web3.Commitment): Promise<number>;
|
|
91
|
-
/**
|
|
92
|
-
* Determines if the provided {@link Buffer} has the correct byte size to
|
|
93
|
-
* hold {@link Vault} data.
|
|
94
|
-
*/
|
|
95
|
-
static hasCorrectByteSize(buf: Buffer, offset?: number): boolean;
|
|
96
|
-
/**
|
|
97
|
-
* Returns a readable version of {@link Vault} properties
|
|
98
|
-
* and can be used to convert to JSON and/or logging
|
|
99
|
-
*/
|
|
100
|
-
pretty(): {
|
|
101
|
-
bump: number;
|
|
102
|
-
index: number | {
|
|
103
|
-
toNumber: () => number;
|
|
104
|
-
};
|
|
105
|
-
creator: string;
|
|
106
|
-
depositTokenMint: string;
|
|
107
|
-
receiptTokenMint: string;
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* @category Accounts
|
|
112
|
-
* @category generated
|
|
113
|
-
*/
|
|
114
|
-
export declare const vaultBeet: beet.BeetStruct<Vault, VaultArgs & {
|
|
115
|
-
accountDiscriminator: number[];
|
|
116
|
-
}>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export * from './Admin';
|
|
2
|
-
export * from './Config';
|
|
3
|
-
export * from './Vault';
|
|
4
|
-
import { Admin } from './Admin';
|
|
5
|
-
import { Config } from './Config';
|
|
6
|
-
import { Vault } from './Vault';
|
|
7
|
-
export declare const accountProviders: {
|
|
8
|
-
Admin: typeof Admin;
|
|
9
|
-
Config: typeof Config;
|
|
10
|
-
Vault: typeof Vault;
|
|
11
|
-
};
|