@reflectmoney/stable.ts 2.8.4 → 2.9.0
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/helpers/drift/accounts/index.d.ts +10 -0
- package/dist/helpers/drift/accounts/index.js +26 -0
- package/dist/helpers/drift/accounts/spotMarket.d.ts +541 -0
- package/dist/helpers/drift/accounts/spotMarket.js +213 -0
- package/dist/helpers/drift/accounts/user.d.ts +193 -0
- package/dist/helpers/drift/accounts/user.js +147 -0
- package/dist/helpers/drift/accounts/userStats.d.ts +165 -0
- package/dist/helpers/drift/accounts/userStats.js +137 -0
- package/dist/helpers/drift/index.d.ts +10 -0
- package/dist/helpers/drift/index.js +26 -0
- package/dist/helpers/drift/mappers.d.ts +14 -0
- package/dist/helpers/drift/mappers.js +137 -0
- package/dist/helpers/drift/types/aMM.d.ts +656 -0
- package/dist/helpers/drift/types/aMM.js +199 -0
- package/dist/helpers/drift/types/addAmmConstituentMappingDatum.d.ts +21 -0
- package/dist/helpers/drift/types/addAmmConstituentMappingDatum.js +30 -0
- package/dist/helpers/drift/types/ammCacheFixed.d.ts +17 -0
- package/dist/helpers/drift/types/ammCacheFixed.js +30 -0
- package/dist/helpers/drift/types/ammConstituentDatum.d.ts +27 -0
- package/dist/helpers/drift/types/ammConstituentDatum.js +34 -0
- package/dist/helpers/drift/types/ammConstituentMappingFixed.d.ts +18 -0
- package/dist/helpers/drift/types/ammConstituentMappingFixed.js +32 -0
- package/dist/helpers/drift/types/assetTier.d.ts +19 -0
- package/dist/helpers/drift/types/assetTier.js +31 -0
- package/dist/helpers/drift/types/assetType.d.ts +16 -0
- package/dist/helpers/drift/types/assetType.js +28 -0
- package/dist/helpers/drift/types/builderInfo.d.ts +17 -0
- package/dist/helpers/drift/types/builderInfo.js +30 -0
- package/dist/helpers/drift/types/cacheInfo.d.ts +59 -0
- package/dist/helpers/drift/types/cacheInfo.js +66 -0
- package/dist/helpers/drift/types/constituentCorrelationsFixed.d.ts +19 -0
- package/dist/helpers/drift/types/constituentCorrelationsFixed.js +32 -0
- package/dist/helpers/drift/types/constituentLpOperation.d.ts +17 -0
- package/dist/helpers/drift/types/constituentLpOperation.js +29 -0
- package/dist/helpers/drift/types/constituentSpotBalance.d.ts +48 -0
- package/dist/helpers/drift/types/constituentSpotBalance.js +35 -0
- package/dist/helpers/drift/types/constituentStatus.d.ts +16 -0
- package/dist/helpers/drift/types/constituentStatus.js +28 -0
- package/dist/helpers/drift/types/constituentTargetBaseFixed.d.ts +19 -0
- package/dist/helpers/drift/types/constituentTargetBaseFixed.js +32 -0
- package/dist/helpers/drift/types/contractTier.d.ts +20 -0
- package/dist/helpers/drift/types/contractTier.js +32 -0
- package/dist/helpers/drift/types/contractType.d.ts +17 -0
- package/dist/helpers/drift/types/contractType.js +29 -0
- package/dist/helpers/drift/types/depositDirection.d.ts +16 -0
- package/dist/helpers/drift/types/depositDirection.js +28 -0
- package/dist/helpers/drift/types/depositExplanation.d.ts +19 -0
- package/dist/helpers/drift/types/depositExplanation.js +31 -0
- package/dist/helpers/drift/types/driftAction.d.ts +29 -0
- package/dist/helpers/drift/types/driftAction.js +41 -0
- package/dist/helpers/drift/types/exchangeStatus.d.ts +22 -0
- package/dist/helpers/drift/types/exchangeStatus.js +34 -0
- package/dist/helpers/drift/types/featureBitFlags.d.ts +18 -0
- package/dist/helpers/drift/types/featureBitFlags.js +30 -0
- package/dist/helpers/drift/types/feeStructure.d.ts +24 -0
- package/dist/helpers/drift/types/feeStructure.js +33 -0
- package/dist/helpers/drift/types/feeTier.d.ts +22 -0
- package/dist/helpers/drift/types/feeTier.js +40 -0
- package/dist/helpers/drift/types/fillMode.d.ts +29 -0
- package/dist/helpers/drift/types/fillMode.js +52 -0
- package/dist/helpers/drift/types/fuelOverflowStatus.d.ts +15 -0
- package/dist/helpers/drift/types/fuelOverflowStatus.js +27 -0
- package/dist/helpers/drift/types/historicalIndexData.d.ts +35 -0
- package/dist/helpers/drift/types/historicalIndexData.js +34 -0
- package/dist/helpers/drift/types/historicalOracleData.d.ts +39 -0
- package/dist/helpers/drift/types/historicalOracleData.js +36 -0
- package/dist/helpers/drift/types/ifRebalanceConfigParams.d.ts +31 -0
- package/dist/helpers/drift/types/ifRebalanceConfigParams.js +40 -0
- package/dist/helpers/drift/types/index.d.ts +114 -0
- package/dist/helpers/drift/types/index.js +130 -0
- package/dist/helpers/drift/types/insuranceClaim.d.ts +63 -0
- package/dist/helpers/drift/types/insuranceClaim.js +34 -0
- package/dist/helpers/drift/types/insuranceFund.d.ts +33 -0
- package/dist/helpers/drift/types/insuranceFund.js +42 -0
- package/dist/helpers/drift/types/insuranceFundOperation.d.ts +18 -0
- package/dist/helpers/drift/types/insuranceFundOperation.js +30 -0
- package/dist/helpers/drift/types/lPAction.d.ts +18 -0
- package/dist/helpers/drift/types/lPAction.js +30 -0
- package/dist/helpers/drift/types/liquidateBorrowForPerpPnlRecord.d.ts +27 -0
- package/dist/helpers/drift/types/liquidateBorrowForPerpPnlRecord.js +36 -0
- package/dist/helpers/drift/types/liquidatePerpPnlForDepositRecord.d.ts +27 -0
- package/dist/helpers/drift/types/liquidatePerpPnlForDepositRecord.js +36 -0
- package/dist/helpers/drift/types/liquidatePerpRecord.d.ts +41 -0
- package/dist/helpers/drift/types/liquidatePerpRecord.js +44 -0
- package/dist/helpers/drift/types/liquidateSpotRecord.d.ts +33 -0
- package/dist/helpers/drift/types/liquidateSpotRecord.js +38 -0
- package/dist/helpers/drift/types/liquidationBitFlag.d.ts +15 -0
- package/dist/helpers/drift/types/liquidationBitFlag.js +27 -0
- package/dist/helpers/drift/types/liquidationMultiplierType.d.ts +16 -0
- package/dist/helpers/drift/types/liquidationMultiplierType.js +28 -0
- package/dist/helpers/drift/types/liquidationType.d.ts +20 -0
- package/dist/helpers/drift/types/liquidationType.js +32 -0
- package/dist/helpers/drift/types/logMode.d.ts +19 -0
- package/dist/helpers/drift/types/logMode.js +31 -0
- package/dist/helpers/drift/types/lpPoolFeatureBitFlags.d.ts +17 -0
- package/dist/helpers/drift/types/lpPoolFeatureBitFlags.js +29 -0
- package/dist/helpers/drift/types/lpStatus.d.ts +17 -0
- package/dist/helpers/drift/types/lpStatus.js +29 -0
- package/dist/helpers/drift/types/marginCalculationMode.d.ts +29 -0
- package/dist/helpers/drift/types/marginCalculationMode.js +55 -0
- package/dist/helpers/drift/types/marginMode.d.ts +17 -0
- package/dist/helpers/drift/types/marginMode.js +29 -0
- package/dist/helpers/drift/types/marginRequirementType.d.ts +17 -0
- package/dist/helpers/drift/types/marginRequirementType.js +29 -0
- package/dist/helpers/drift/types/marketIdentifier.d.ts +20 -0
- package/dist/helpers/drift/types/marketIdentifier.js +29 -0
- package/dist/helpers/drift/types/marketStatus.d.ts +23 -0
- package/dist/helpers/drift/types/marketStatus.js +35 -0
- package/dist/helpers/drift/types/marketType.d.ts +16 -0
- package/dist/helpers/drift/types/marketType.js +28 -0
- package/dist/helpers/drift/types/modifyOrderId.d.ts +24 -0
- package/dist/helpers/drift/types/modifyOrderId.js +50 -0
- package/dist/helpers/drift/types/modifyOrderParams.d.ts +44 -0
- package/dist/helpers/drift/types/modifyOrderParams.js +53 -0
- package/dist/helpers/drift/types/modifyOrderPolicy.d.ts +16 -0
- package/dist/helpers/drift/types/modifyOrderPolicy.js +28 -0
- package/dist/helpers/drift/types/oracleGuardRails.d.ts +20 -0
- package/dist/helpers/drift/types/oracleGuardRails.js +29 -0
- package/dist/helpers/drift/types/oracleSource.d.ts +30 -0
- package/dist/helpers/drift/types/oracleSource.js +42 -0
- package/dist/helpers/drift/types/oracleValidity.d.ts +39 -0
- package/dist/helpers/drift/types/oracleValidity.js +60 -0
- package/dist/helpers/drift/types/order.d.ts +178 -0
- package/dist/helpers/drift/types/order.js +77 -0
- package/dist/helpers/drift/types/orderAction.d.ts +19 -0
- package/dist/helpers/drift/types/orderAction.js +31 -0
- package/dist/helpers/drift/types/orderActionExplanation.d.ts +35 -0
- package/dist/helpers/drift/types/orderActionExplanation.js +47 -0
- package/dist/helpers/drift/types/orderBitFlag.d.ts +20 -0
- package/dist/helpers/drift/types/orderBitFlag.js +32 -0
- package/dist/helpers/drift/types/orderFillerRewardStructure.d.ts +21 -0
- package/dist/helpers/drift/types/orderFillerRewardStructure.js +30 -0
- package/dist/helpers/drift/types/orderParams.d.ts +50 -0
- package/dist/helpers/drift/types/orderParams.js +59 -0
- package/dist/helpers/drift/types/orderParamsBitFlag.d.ts +16 -0
- package/dist/helpers/drift/types/orderParamsBitFlag.js +28 -0
- package/dist/helpers/drift/types/orderStatus.d.ts +18 -0
- package/dist/helpers/drift/types/orderStatus.js +30 -0
- package/dist/helpers/drift/types/orderTriggerCondition.d.ts +18 -0
- package/dist/helpers/drift/types/orderTriggerCondition.js +30 -0
- package/dist/helpers/drift/types/orderType.d.ts +19 -0
- package/dist/helpers/drift/types/orderType.js +31 -0
- package/dist/helpers/drift/types/perpBankruptcyRecord.d.ts +27 -0
- package/dist/helpers/drift/types/perpBankruptcyRecord.js +36 -0
- package/dist/helpers/drift/types/perpFulfillmentMethod.d.ts +30 -0
- package/dist/helpers/drift/types/perpFulfillmentMethod.js +72 -0
- package/dist/helpers/drift/types/perpLpOperation.d.ts +16 -0
- package/dist/helpers/drift/types/perpLpOperation.js +28 -0
- package/dist/helpers/drift/types/perpOperation.d.ts +22 -0
- package/dist/helpers/drift/types/perpOperation.js +34 -0
- package/dist/helpers/drift/types/perpPosition.d.ts +149 -0
- package/dist/helpers/drift/types/perpPosition.js +56 -0
- package/dist/helpers/drift/types/placeAndTakeOrderSuccessCondition.d.ts +16 -0
- package/dist/helpers/drift/types/placeAndTakeOrderSuccessCondition.js +28 -0
- package/dist/helpers/drift/types/poolBalance.d.ts +33 -0
- package/dist/helpers/drift/types/poolBalance.js +30 -0
- package/dist/helpers/drift/types/positionDirection.d.ts +16 -0
- package/dist/helpers/drift/types/positionDirection.js +28 -0
- package/dist/helpers/drift/types/positionFlag.d.ts +17 -0
- package/dist/helpers/drift/types/positionFlag.js +29 -0
- package/dist/helpers/drift/types/positionUpdateType.d.ts +19 -0
- package/dist/helpers/drift/types/positionUpdateType.js +31 -0
- package/dist/helpers/drift/types/postOnlyParam.d.ts +18 -0
- package/dist/helpers/drift/types/postOnlyParam.js +30 -0
- package/dist/helpers/drift/types/prelaunchOracleParams.d.ts +21 -0
- package/dist/helpers/drift/types/prelaunchOracleParams.js +30 -0
- package/dist/helpers/drift/types/priceDivergenceGuardRails.d.ts +19 -0
- package/dist/helpers/drift/types/priceDivergenceGuardRails.js +28 -0
- package/dist/helpers/drift/types/referrerStatus.d.ts +17 -0
- package/dist/helpers/drift/types/referrerStatus.js +29 -0
- package/dist/helpers/drift/types/revenueShareEscrowFixed.d.ts +21 -0
- package/dist/helpers/drift/types/revenueShareEscrowFixed.js +38 -0
- package/dist/helpers/drift/types/revenueShareOrder.d.ts +80 -0
- package/dist/helpers/drift/types/revenueShareOrder.js +45 -0
- package/dist/helpers/drift/types/revenueShareOrderBitFlag.d.ts +18 -0
- package/dist/helpers/drift/types/revenueShareOrderBitFlag.js +30 -0
- package/dist/helpers/drift/types/settlePnlExplanation.d.ts +16 -0
- package/dist/helpers/drift/types/settlePnlExplanation.js +28 -0
- package/dist/helpers/drift/types/settlePnlMode.d.ts +16 -0
- package/dist/helpers/drift/types/settlePnlMode.js +28 -0
- package/dist/helpers/drift/types/settlementDirection.d.ts +17 -0
- package/dist/helpers/drift/types/settlementDirection.js +29 -0
- package/dist/helpers/drift/types/signatureVerificationError.d.ts +26 -0
- package/dist/helpers/drift/types/signatureVerificationError.js +38 -0
- package/dist/helpers/drift/types/signedMsgOrderId.d.ts +23 -0
- package/dist/helpers/drift/types/signedMsgOrderId.js +32 -0
- package/dist/helpers/drift/types/signedMsgOrderParamsDelegateMessage.d.ts +36 -0
- package/dist/helpers/drift/types/signedMsgOrderParamsDelegateMessage.js +57 -0
- package/dist/helpers/drift/types/signedMsgOrderParamsMessage.d.ts +36 -0
- package/dist/helpers/drift/types/signedMsgOrderParamsMessage.js +57 -0
- package/dist/helpers/drift/types/signedMsgTriggerOrderParams.d.ts +19 -0
- package/dist/helpers/drift/types/signedMsgTriggerOrderParams.js +28 -0
- package/dist/helpers/drift/types/signedMsgUserOrdersFixed.d.ts +17 -0
- package/dist/helpers/drift/types/signedMsgUserOrdersFixed.js +30 -0
- package/dist/helpers/drift/types/spotBalanceType.d.ts +16 -0
- package/dist/helpers/drift/types/spotBalanceType.js +28 -0
- package/dist/helpers/drift/types/spotBankruptcyRecord.d.ts +23 -0
- package/dist/helpers/drift/types/spotBankruptcyRecord.js +32 -0
- package/dist/helpers/drift/types/spotFulfillmentConfigStatus.d.ts +16 -0
- package/dist/helpers/drift/types/spotFulfillmentConfigStatus.js +28 -0
- package/dist/helpers/drift/types/spotFulfillmentMethod.d.ts +23 -0
- package/dist/helpers/drift/types/spotFulfillmentMethod.js +48 -0
- package/dist/helpers/drift/types/spotFulfillmentType.d.ts +18 -0
- package/dist/helpers/drift/types/spotFulfillmentType.js +30 -0
- package/dist/helpers/drift/types/spotOperation.d.ts +19 -0
- package/dist/helpers/drift/types/spotOperation.js +31 -0
- package/dist/helpers/drift/types/spotPosition.d.ts +72 -0
- package/dist/helpers/drift/types/spotPosition.js +41 -0
- package/dist/helpers/drift/types/stakeAction.d.ts +21 -0
- package/dist/helpers/drift/types/stakeAction.js +33 -0
- package/dist/helpers/drift/types/swapDirection.d.ts +16 -0
- package/dist/helpers/drift/types/swapDirection.js +28 -0
- package/dist/helpers/drift/types/swapReduceOnly.d.ts +16 -0
- package/dist/helpers/drift/types/swapReduceOnly.js +28 -0
- package/dist/helpers/drift/types/targetsDatum.d.ts +25 -0
- package/dist/helpers/drift/types/targetsDatum.js +34 -0
- package/dist/helpers/drift/types/tokenProgramFlag.d.ts +16 -0
- package/dist/helpers/drift/types/tokenProgramFlag.js +28 -0
- package/dist/helpers/drift/types/twapPeriod.d.ts +16 -0
- package/dist/helpers/drift/types/twapPeriod.js +28 -0
- package/dist/helpers/drift/types/userFees.d.ts +75 -0
- package/dist/helpers/drift/types/userFees.js +36 -0
- package/dist/helpers/drift/types/userStatsPausedOperations.d.ts +17 -0
- package/dist/helpers/drift/types/userStatsPausedOperations.js +29 -0
- package/dist/helpers/drift/types/userStatus.d.ts +19 -0
- package/dist/helpers/drift/types/userStatus.js +31 -0
- package/dist/helpers/drift/types/validityGuardRails.d.ts +23 -0
- package/dist/helpers/drift/types/validityGuardRails.js +32 -0
- package/dist/helpers/index.d.ts +1 -0
- package/dist/helpers/index.js +17 -0
- package/dist/stablecoins/UsdcPlusStablecoin.d.ts +2 -1
- package/dist/stablecoins/UsdcPlusStablecoin.js +19 -23
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -2
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
4
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
5
|
+
* to add features, then rerun Codama to update it.
|
|
6
|
+
*
|
|
7
|
+
* @see https://github.com/codama-idl/codama
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.RevenueShareOrderBitFlag = void 0;
|
|
11
|
+
exports.getRevenueShareOrderBitFlagEncoder = getRevenueShareOrderBitFlagEncoder;
|
|
12
|
+
exports.getRevenueShareOrderBitFlagDecoder = getRevenueShareOrderBitFlagDecoder;
|
|
13
|
+
exports.getRevenueShareOrderBitFlagCodec = getRevenueShareOrderBitFlagCodec;
|
|
14
|
+
const kit_1 = require("@solana/kit");
|
|
15
|
+
var RevenueShareOrderBitFlag;
|
|
16
|
+
(function (RevenueShareOrderBitFlag) {
|
|
17
|
+
RevenueShareOrderBitFlag[RevenueShareOrderBitFlag["Init"] = 0] = "Init";
|
|
18
|
+
RevenueShareOrderBitFlag[RevenueShareOrderBitFlag["Open"] = 1] = "Open";
|
|
19
|
+
RevenueShareOrderBitFlag[RevenueShareOrderBitFlag["Completed"] = 2] = "Completed";
|
|
20
|
+
RevenueShareOrderBitFlag[RevenueShareOrderBitFlag["Referral"] = 3] = "Referral";
|
|
21
|
+
})(RevenueShareOrderBitFlag || (exports.RevenueShareOrderBitFlag = RevenueShareOrderBitFlag = {}));
|
|
22
|
+
function getRevenueShareOrderBitFlagEncoder() {
|
|
23
|
+
return (0, kit_1.getEnumEncoder)(RevenueShareOrderBitFlag);
|
|
24
|
+
}
|
|
25
|
+
function getRevenueShareOrderBitFlagDecoder() {
|
|
26
|
+
return (0, kit_1.getEnumDecoder)(RevenueShareOrderBitFlag);
|
|
27
|
+
}
|
|
28
|
+
function getRevenueShareOrderBitFlagCodec() {
|
|
29
|
+
return (0, kit_1.combineCodec)(getRevenueShareOrderBitFlagEncoder(), getRevenueShareOrderBitFlagDecoder());
|
|
30
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder } from "@solana/kit";
|
|
9
|
+
export declare enum SettlePnlExplanation {
|
|
10
|
+
None = 0,
|
|
11
|
+
ExpiredPosition = 1
|
|
12
|
+
}
|
|
13
|
+
export type SettlePnlExplanationArgs = SettlePnlExplanation;
|
|
14
|
+
export declare function getSettlePnlExplanationEncoder(): FixedSizeEncoder<SettlePnlExplanationArgs>;
|
|
15
|
+
export declare function getSettlePnlExplanationDecoder(): FixedSizeDecoder<SettlePnlExplanation>;
|
|
16
|
+
export declare function getSettlePnlExplanationCodec(): FixedSizeCodec<SettlePnlExplanationArgs, SettlePnlExplanation>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
4
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
5
|
+
* to add features, then rerun Codama to update it.
|
|
6
|
+
*
|
|
7
|
+
* @see https://github.com/codama-idl/codama
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.SettlePnlExplanation = void 0;
|
|
11
|
+
exports.getSettlePnlExplanationEncoder = getSettlePnlExplanationEncoder;
|
|
12
|
+
exports.getSettlePnlExplanationDecoder = getSettlePnlExplanationDecoder;
|
|
13
|
+
exports.getSettlePnlExplanationCodec = getSettlePnlExplanationCodec;
|
|
14
|
+
const kit_1 = require("@solana/kit");
|
|
15
|
+
var SettlePnlExplanation;
|
|
16
|
+
(function (SettlePnlExplanation) {
|
|
17
|
+
SettlePnlExplanation[SettlePnlExplanation["None"] = 0] = "None";
|
|
18
|
+
SettlePnlExplanation[SettlePnlExplanation["ExpiredPosition"] = 1] = "ExpiredPosition";
|
|
19
|
+
})(SettlePnlExplanation || (exports.SettlePnlExplanation = SettlePnlExplanation = {}));
|
|
20
|
+
function getSettlePnlExplanationEncoder() {
|
|
21
|
+
return (0, kit_1.getEnumEncoder)(SettlePnlExplanation);
|
|
22
|
+
}
|
|
23
|
+
function getSettlePnlExplanationDecoder() {
|
|
24
|
+
return (0, kit_1.getEnumDecoder)(SettlePnlExplanation);
|
|
25
|
+
}
|
|
26
|
+
function getSettlePnlExplanationCodec() {
|
|
27
|
+
return (0, kit_1.combineCodec)(getSettlePnlExplanationEncoder(), getSettlePnlExplanationDecoder());
|
|
28
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder } from "@solana/kit";
|
|
9
|
+
export declare enum SettlePnlMode {
|
|
10
|
+
MustSettle = 0,
|
|
11
|
+
TrySettle = 1
|
|
12
|
+
}
|
|
13
|
+
export type SettlePnlModeArgs = SettlePnlMode;
|
|
14
|
+
export declare function getSettlePnlModeEncoder(): FixedSizeEncoder<SettlePnlModeArgs>;
|
|
15
|
+
export declare function getSettlePnlModeDecoder(): FixedSizeDecoder<SettlePnlMode>;
|
|
16
|
+
export declare function getSettlePnlModeCodec(): FixedSizeCodec<SettlePnlModeArgs, SettlePnlMode>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
4
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
5
|
+
* to add features, then rerun Codama to update it.
|
|
6
|
+
*
|
|
7
|
+
* @see https://github.com/codama-idl/codama
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.SettlePnlMode = void 0;
|
|
11
|
+
exports.getSettlePnlModeEncoder = getSettlePnlModeEncoder;
|
|
12
|
+
exports.getSettlePnlModeDecoder = getSettlePnlModeDecoder;
|
|
13
|
+
exports.getSettlePnlModeCodec = getSettlePnlModeCodec;
|
|
14
|
+
const kit_1 = require("@solana/kit");
|
|
15
|
+
var SettlePnlMode;
|
|
16
|
+
(function (SettlePnlMode) {
|
|
17
|
+
SettlePnlMode[SettlePnlMode["MustSettle"] = 0] = "MustSettle";
|
|
18
|
+
SettlePnlMode[SettlePnlMode["TrySettle"] = 1] = "TrySettle";
|
|
19
|
+
})(SettlePnlMode || (exports.SettlePnlMode = SettlePnlMode = {}));
|
|
20
|
+
function getSettlePnlModeEncoder() {
|
|
21
|
+
return (0, kit_1.getEnumEncoder)(SettlePnlMode);
|
|
22
|
+
}
|
|
23
|
+
function getSettlePnlModeDecoder() {
|
|
24
|
+
return (0, kit_1.getEnumDecoder)(SettlePnlMode);
|
|
25
|
+
}
|
|
26
|
+
function getSettlePnlModeCodec() {
|
|
27
|
+
return (0, kit_1.combineCodec)(getSettlePnlModeEncoder(), getSettlePnlModeDecoder());
|
|
28
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder } from "@solana/kit";
|
|
9
|
+
export declare enum SettlementDirection {
|
|
10
|
+
ToLpPool = 0,
|
|
11
|
+
FromLpPool = 1,
|
|
12
|
+
None = 2
|
|
13
|
+
}
|
|
14
|
+
export type SettlementDirectionArgs = SettlementDirection;
|
|
15
|
+
export declare function getSettlementDirectionEncoder(): FixedSizeEncoder<SettlementDirectionArgs>;
|
|
16
|
+
export declare function getSettlementDirectionDecoder(): FixedSizeDecoder<SettlementDirection>;
|
|
17
|
+
export declare function getSettlementDirectionCodec(): FixedSizeCodec<SettlementDirectionArgs, SettlementDirection>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
4
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
5
|
+
* to add features, then rerun Codama to update it.
|
|
6
|
+
*
|
|
7
|
+
* @see https://github.com/codama-idl/codama
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.SettlementDirection = void 0;
|
|
11
|
+
exports.getSettlementDirectionEncoder = getSettlementDirectionEncoder;
|
|
12
|
+
exports.getSettlementDirectionDecoder = getSettlementDirectionDecoder;
|
|
13
|
+
exports.getSettlementDirectionCodec = getSettlementDirectionCodec;
|
|
14
|
+
const kit_1 = require("@solana/kit");
|
|
15
|
+
var SettlementDirection;
|
|
16
|
+
(function (SettlementDirection) {
|
|
17
|
+
SettlementDirection[SettlementDirection["ToLpPool"] = 0] = "ToLpPool";
|
|
18
|
+
SettlementDirection[SettlementDirection["FromLpPool"] = 1] = "FromLpPool";
|
|
19
|
+
SettlementDirection[SettlementDirection["None"] = 2] = "None";
|
|
20
|
+
})(SettlementDirection || (exports.SettlementDirection = SettlementDirection = {}));
|
|
21
|
+
function getSettlementDirectionEncoder() {
|
|
22
|
+
return (0, kit_1.getEnumEncoder)(SettlementDirection);
|
|
23
|
+
}
|
|
24
|
+
function getSettlementDirectionDecoder() {
|
|
25
|
+
return (0, kit_1.getEnumDecoder)(SettlementDirection);
|
|
26
|
+
}
|
|
27
|
+
function getSettlementDirectionCodec() {
|
|
28
|
+
return (0, kit_1.combineCodec)(getSettlementDirectionEncoder(), getSettlementDirectionDecoder());
|
|
29
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder } from "@solana/kit";
|
|
9
|
+
export declare enum SignatureVerificationError {
|
|
10
|
+
InvalidEd25519InstructionProgramId = 0,
|
|
11
|
+
InvalidEd25519InstructionDataLength = 1,
|
|
12
|
+
InvalidSignatureIndex = 2,
|
|
13
|
+
InvalidSignatureOffset = 3,
|
|
14
|
+
InvalidPublicKeyOffset = 4,
|
|
15
|
+
InvalidMessageOffset = 5,
|
|
16
|
+
InvalidMessageDataSize = 6,
|
|
17
|
+
InvalidInstructionIndex = 7,
|
|
18
|
+
MessageOffsetOverflow = 8,
|
|
19
|
+
InvalidMessageHex = 9,
|
|
20
|
+
InvalidMessageData = 10,
|
|
21
|
+
LoadInstructionAtFailed = 11
|
|
22
|
+
}
|
|
23
|
+
export type SignatureVerificationErrorArgs = SignatureVerificationError;
|
|
24
|
+
export declare function getSignatureVerificationErrorEncoder(): FixedSizeEncoder<SignatureVerificationErrorArgs>;
|
|
25
|
+
export declare function getSignatureVerificationErrorDecoder(): FixedSizeDecoder<SignatureVerificationError>;
|
|
26
|
+
export declare function getSignatureVerificationErrorCodec(): FixedSizeCodec<SignatureVerificationErrorArgs, SignatureVerificationError>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
4
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
5
|
+
* to add features, then rerun Codama to update it.
|
|
6
|
+
*
|
|
7
|
+
* @see https://github.com/codama-idl/codama
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.SignatureVerificationError = void 0;
|
|
11
|
+
exports.getSignatureVerificationErrorEncoder = getSignatureVerificationErrorEncoder;
|
|
12
|
+
exports.getSignatureVerificationErrorDecoder = getSignatureVerificationErrorDecoder;
|
|
13
|
+
exports.getSignatureVerificationErrorCodec = getSignatureVerificationErrorCodec;
|
|
14
|
+
const kit_1 = require("@solana/kit");
|
|
15
|
+
var SignatureVerificationError;
|
|
16
|
+
(function (SignatureVerificationError) {
|
|
17
|
+
SignatureVerificationError[SignatureVerificationError["InvalidEd25519InstructionProgramId"] = 0] = "InvalidEd25519InstructionProgramId";
|
|
18
|
+
SignatureVerificationError[SignatureVerificationError["InvalidEd25519InstructionDataLength"] = 1] = "InvalidEd25519InstructionDataLength";
|
|
19
|
+
SignatureVerificationError[SignatureVerificationError["InvalidSignatureIndex"] = 2] = "InvalidSignatureIndex";
|
|
20
|
+
SignatureVerificationError[SignatureVerificationError["InvalidSignatureOffset"] = 3] = "InvalidSignatureOffset";
|
|
21
|
+
SignatureVerificationError[SignatureVerificationError["InvalidPublicKeyOffset"] = 4] = "InvalidPublicKeyOffset";
|
|
22
|
+
SignatureVerificationError[SignatureVerificationError["InvalidMessageOffset"] = 5] = "InvalidMessageOffset";
|
|
23
|
+
SignatureVerificationError[SignatureVerificationError["InvalidMessageDataSize"] = 6] = "InvalidMessageDataSize";
|
|
24
|
+
SignatureVerificationError[SignatureVerificationError["InvalidInstructionIndex"] = 7] = "InvalidInstructionIndex";
|
|
25
|
+
SignatureVerificationError[SignatureVerificationError["MessageOffsetOverflow"] = 8] = "MessageOffsetOverflow";
|
|
26
|
+
SignatureVerificationError[SignatureVerificationError["InvalidMessageHex"] = 9] = "InvalidMessageHex";
|
|
27
|
+
SignatureVerificationError[SignatureVerificationError["InvalidMessageData"] = 10] = "InvalidMessageData";
|
|
28
|
+
SignatureVerificationError[SignatureVerificationError["LoadInstructionAtFailed"] = 11] = "LoadInstructionAtFailed";
|
|
29
|
+
})(SignatureVerificationError || (exports.SignatureVerificationError = SignatureVerificationError = {}));
|
|
30
|
+
function getSignatureVerificationErrorEncoder() {
|
|
31
|
+
return (0, kit_1.getEnumEncoder)(SignatureVerificationError);
|
|
32
|
+
}
|
|
33
|
+
function getSignatureVerificationErrorDecoder() {
|
|
34
|
+
return (0, kit_1.getEnumDecoder)(SignatureVerificationError);
|
|
35
|
+
}
|
|
36
|
+
function getSignatureVerificationErrorCodec() {
|
|
37
|
+
return (0, kit_1.combineCodec)(getSignatureVerificationErrorEncoder(), getSignatureVerificationErrorDecoder());
|
|
38
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type ReadonlyUint8Array } from "@solana/kit";
|
|
9
|
+
export type SignedMsgOrderId = {
|
|
10
|
+
uuid: ReadonlyUint8Array;
|
|
11
|
+
maxSlot: bigint;
|
|
12
|
+
orderId: number;
|
|
13
|
+
padding: number;
|
|
14
|
+
};
|
|
15
|
+
export type SignedMsgOrderIdArgs = {
|
|
16
|
+
uuid: ReadonlyUint8Array;
|
|
17
|
+
maxSlot: number | bigint;
|
|
18
|
+
orderId: number;
|
|
19
|
+
padding: number;
|
|
20
|
+
};
|
|
21
|
+
export declare function getSignedMsgOrderIdEncoder(): FixedSizeEncoder<SignedMsgOrderIdArgs>;
|
|
22
|
+
export declare function getSignedMsgOrderIdDecoder(): FixedSizeDecoder<SignedMsgOrderId>;
|
|
23
|
+
export declare function getSignedMsgOrderIdCodec(): FixedSizeCodec<SignedMsgOrderIdArgs, SignedMsgOrderId>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
4
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
5
|
+
* to add features, then rerun Codama to update it.
|
|
6
|
+
*
|
|
7
|
+
* @see https://github.com/codama-idl/codama
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.getSignedMsgOrderIdEncoder = getSignedMsgOrderIdEncoder;
|
|
11
|
+
exports.getSignedMsgOrderIdDecoder = getSignedMsgOrderIdDecoder;
|
|
12
|
+
exports.getSignedMsgOrderIdCodec = getSignedMsgOrderIdCodec;
|
|
13
|
+
const kit_1 = require("@solana/kit");
|
|
14
|
+
function getSignedMsgOrderIdEncoder() {
|
|
15
|
+
return (0, kit_1.getStructEncoder)([
|
|
16
|
+
["uuid", (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 8)],
|
|
17
|
+
["maxSlot", (0, kit_1.getU64Encoder)()],
|
|
18
|
+
["orderId", (0, kit_1.getU32Encoder)()],
|
|
19
|
+
["padding", (0, kit_1.getU32Encoder)()],
|
|
20
|
+
]);
|
|
21
|
+
}
|
|
22
|
+
function getSignedMsgOrderIdDecoder() {
|
|
23
|
+
return (0, kit_1.getStructDecoder)([
|
|
24
|
+
["uuid", (0, kit_1.fixDecoderSize)((0, kit_1.getBytesDecoder)(), 8)],
|
|
25
|
+
["maxSlot", (0, kit_1.getU64Decoder)()],
|
|
26
|
+
["orderId", (0, kit_1.getU32Decoder)()],
|
|
27
|
+
["padding", (0, kit_1.getU32Decoder)()],
|
|
28
|
+
]);
|
|
29
|
+
}
|
|
30
|
+
function getSignedMsgOrderIdCodec() {
|
|
31
|
+
return (0, kit_1.combineCodec)(getSignedMsgOrderIdEncoder(), getSignedMsgOrderIdDecoder());
|
|
32
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { type Address, type Codec, type Decoder, type Encoder, type Option, type OptionOrNullable, type ReadonlyUint8Array } from "@solana/kit";
|
|
9
|
+
import { type OrderParams, type OrderParamsArgs, type SignedMsgTriggerOrderParams, type SignedMsgTriggerOrderParamsArgs } from ".";
|
|
10
|
+
export type SignedMsgOrderParamsDelegateMessage = {
|
|
11
|
+
signedMsgOrderParams: OrderParams;
|
|
12
|
+
takerPubkey: Address;
|
|
13
|
+
slot: bigint;
|
|
14
|
+
uuid: ReadonlyUint8Array;
|
|
15
|
+
takeProfitOrderParams: Option<SignedMsgTriggerOrderParams>;
|
|
16
|
+
stopLossOrderParams: Option<SignedMsgTriggerOrderParams>;
|
|
17
|
+
maxMarginRatio: Option<number>;
|
|
18
|
+
builderIdx: Option<number>;
|
|
19
|
+
builderFeeTenthBps: Option<number>;
|
|
20
|
+
isolatedPositionDeposit: Option<bigint>;
|
|
21
|
+
};
|
|
22
|
+
export type SignedMsgOrderParamsDelegateMessageArgs = {
|
|
23
|
+
signedMsgOrderParams: OrderParamsArgs;
|
|
24
|
+
takerPubkey: Address;
|
|
25
|
+
slot: number | bigint;
|
|
26
|
+
uuid: ReadonlyUint8Array;
|
|
27
|
+
takeProfitOrderParams: OptionOrNullable<SignedMsgTriggerOrderParamsArgs>;
|
|
28
|
+
stopLossOrderParams: OptionOrNullable<SignedMsgTriggerOrderParamsArgs>;
|
|
29
|
+
maxMarginRatio: OptionOrNullable<number>;
|
|
30
|
+
builderIdx: OptionOrNullable<number>;
|
|
31
|
+
builderFeeTenthBps: OptionOrNullable<number>;
|
|
32
|
+
isolatedPositionDeposit: OptionOrNullable<number | bigint>;
|
|
33
|
+
};
|
|
34
|
+
export declare function getSignedMsgOrderParamsDelegateMessageEncoder(): Encoder<SignedMsgOrderParamsDelegateMessageArgs>;
|
|
35
|
+
export declare function getSignedMsgOrderParamsDelegateMessageDecoder(): Decoder<SignedMsgOrderParamsDelegateMessage>;
|
|
36
|
+
export declare function getSignedMsgOrderParamsDelegateMessageCodec(): Codec<SignedMsgOrderParamsDelegateMessageArgs, SignedMsgOrderParamsDelegateMessage>;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
4
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
5
|
+
* to add features, then rerun Codama to update it.
|
|
6
|
+
*
|
|
7
|
+
* @see https://github.com/codama-idl/codama
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.getSignedMsgOrderParamsDelegateMessageEncoder = getSignedMsgOrderParamsDelegateMessageEncoder;
|
|
11
|
+
exports.getSignedMsgOrderParamsDelegateMessageDecoder = getSignedMsgOrderParamsDelegateMessageDecoder;
|
|
12
|
+
exports.getSignedMsgOrderParamsDelegateMessageCodec = getSignedMsgOrderParamsDelegateMessageCodec;
|
|
13
|
+
const kit_1 = require("@solana/kit");
|
|
14
|
+
const _1 = require(".");
|
|
15
|
+
function getSignedMsgOrderParamsDelegateMessageEncoder() {
|
|
16
|
+
return (0, kit_1.getStructEncoder)([
|
|
17
|
+
["signedMsgOrderParams", (0, _1.getOrderParamsEncoder)()],
|
|
18
|
+
["takerPubkey", (0, kit_1.getAddressEncoder)()],
|
|
19
|
+
["slot", (0, kit_1.getU64Encoder)()],
|
|
20
|
+
["uuid", (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 8)],
|
|
21
|
+
[
|
|
22
|
+
"takeProfitOrderParams",
|
|
23
|
+
(0, kit_1.getOptionEncoder)((0, _1.getSignedMsgTriggerOrderParamsEncoder)()),
|
|
24
|
+
],
|
|
25
|
+
[
|
|
26
|
+
"stopLossOrderParams",
|
|
27
|
+
(0, kit_1.getOptionEncoder)((0, _1.getSignedMsgTriggerOrderParamsEncoder)()),
|
|
28
|
+
],
|
|
29
|
+
["maxMarginRatio", (0, kit_1.getOptionEncoder)((0, kit_1.getU16Encoder)())],
|
|
30
|
+
["builderIdx", (0, kit_1.getOptionEncoder)((0, kit_1.getU8Encoder)())],
|
|
31
|
+
["builderFeeTenthBps", (0, kit_1.getOptionEncoder)((0, kit_1.getU16Encoder)())],
|
|
32
|
+
["isolatedPositionDeposit", (0, kit_1.getOptionEncoder)((0, kit_1.getU64Encoder)())],
|
|
33
|
+
]);
|
|
34
|
+
}
|
|
35
|
+
function getSignedMsgOrderParamsDelegateMessageDecoder() {
|
|
36
|
+
return (0, kit_1.getStructDecoder)([
|
|
37
|
+
["signedMsgOrderParams", (0, _1.getOrderParamsDecoder)()],
|
|
38
|
+
["takerPubkey", (0, kit_1.getAddressDecoder)()],
|
|
39
|
+
["slot", (0, kit_1.getU64Decoder)()],
|
|
40
|
+
["uuid", (0, kit_1.fixDecoderSize)((0, kit_1.getBytesDecoder)(), 8)],
|
|
41
|
+
[
|
|
42
|
+
"takeProfitOrderParams",
|
|
43
|
+
(0, kit_1.getOptionDecoder)((0, _1.getSignedMsgTriggerOrderParamsDecoder)()),
|
|
44
|
+
],
|
|
45
|
+
[
|
|
46
|
+
"stopLossOrderParams",
|
|
47
|
+
(0, kit_1.getOptionDecoder)((0, _1.getSignedMsgTriggerOrderParamsDecoder)()),
|
|
48
|
+
],
|
|
49
|
+
["maxMarginRatio", (0, kit_1.getOptionDecoder)((0, kit_1.getU16Decoder)())],
|
|
50
|
+
["builderIdx", (0, kit_1.getOptionDecoder)((0, kit_1.getU8Decoder)())],
|
|
51
|
+
["builderFeeTenthBps", (0, kit_1.getOptionDecoder)((0, kit_1.getU16Decoder)())],
|
|
52
|
+
["isolatedPositionDeposit", (0, kit_1.getOptionDecoder)((0, kit_1.getU64Decoder)())],
|
|
53
|
+
]);
|
|
54
|
+
}
|
|
55
|
+
function getSignedMsgOrderParamsDelegateMessageCodec() {
|
|
56
|
+
return (0, kit_1.combineCodec)(getSignedMsgOrderParamsDelegateMessageEncoder(), getSignedMsgOrderParamsDelegateMessageDecoder());
|
|
57
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { type Codec, type Decoder, type Encoder, type Option, type OptionOrNullable, type ReadonlyUint8Array } from "@solana/kit";
|
|
9
|
+
import { type OrderParams, type OrderParamsArgs, type SignedMsgTriggerOrderParams, type SignedMsgTriggerOrderParamsArgs } from ".";
|
|
10
|
+
export type SignedMsgOrderParamsMessage = {
|
|
11
|
+
signedMsgOrderParams: OrderParams;
|
|
12
|
+
subAccountId: number;
|
|
13
|
+
slot: bigint;
|
|
14
|
+
uuid: ReadonlyUint8Array;
|
|
15
|
+
takeProfitOrderParams: Option<SignedMsgTriggerOrderParams>;
|
|
16
|
+
stopLossOrderParams: Option<SignedMsgTriggerOrderParams>;
|
|
17
|
+
maxMarginRatio: Option<number>;
|
|
18
|
+
builderIdx: Option<number>;
|
|
19
|
+
builderFeeTenthBps: Option<number>;
|
|
20
|
+
isolatedPositionDeposit: Option<bigint>;
|
|
21
|
+
};
|
|
22
|
+
export type SignedMsgOrderParamsMessageArgs = {
|
|
23
|
+
signedMsgOrderParams: OrderParamsArgs;
|
|
24
|
+
subAccountId: number;
|
|
25
|
+
slot: number | bigint;
|
|
26
|
+
uuid: ReadonlyUint8Array;
|
|
27
|
+
takeProfitOrderParams: OptionOrNullable<SignedMsgTriggerOrderParamsArgs>;
|
|
28
|
+
stopLossOrderParams: OptionOrNullable<SignedMsgTriggerOrderParamsArgs>;
|
|
29
|
+
maxMarginRatio: OptionOrNullable<number>;
|
|
30
|
+
builderIdx: OptionOrNullable<number>;
|
|
31
|
+
builderFeeTenthBps: OptionOrNullable<number>;
|
|
32
|
+
isolatedPositionDeposit: OptionOrNullable<number | bigint>;
|
|
33
|
+
};
|
|
34
|
+
export declare function getSignedMsgOrderParamsMessageEncoder(): Encoder<SignedMsgOrderParamsMessageArgs>;
|
|
35
|
+
export declare function getSignedMsgOrderParamsMessageDecoder(): Decoder<SignedMsgOrderParamsMessage>;
|
|
36
|
+
export declare function getSignedMsgOrderParamsMessageCodec(): Codec<SignedMsgOrderParamsMessageArgs, SignedMsgOrderParamsMessage>;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
4
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
5
|
+
* to add features, then rerun Codama to update it.
|
|
6
|
+
*
|
|
7
|
+
* @see https://github.com/codama-idl/codama
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.getSignedMsgOrderParamsMessageEncoder = getSignedMsgOrderParamsMessageEncoder;
|
|
11
|
+
exports.getSignedMsgOrderParamsMessageDecoder = getSignedMsgOrderParamsMessageDecoder;
|
|
12
|
+
exports.getSignedMsgOrderParamsMessageCodec = getSignedMsgOrderParamsMessageCodec;
|
|
13
|
+
const kit_1 = require("@solana/kit");
|
|
14
|
+
const _1 = require(".");
|
|
15
|
+
function getSignedMsgOrderParamsMessageEncoder() {
|
|
16
|
+
return (0, kit_1.getStructEncoder)([
|
|
17
|
+
["signedMsgOrderParams", (0, _1.getOrderParamsEncoder)()],
|
|
18
|
+
["subAccountId", (0, kit_1.getU16Encoder)()],
|
|
19
|
+
["slot", (0, kit_1.getU64Encoder)()],
|
|
20
|
+
["uuid", (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 8)],
|
|
21
|
+
[
|
|
22
|
+
"takeProfitOrderParams",
|
|
23
|
+
(0, kit_1.getOptionEncoder)((0, _1.getSignedMsgTriggerOrderParamsEncoder)()),
|
|
24
|
+
],
|
|
25
|
+
[
|
|
26
|
+
"stopLossOrderParams",
|
|
27
|
+
(0, kit_1.getOptionEncoder)((0, _1.getSignedMsgTriggerOrderParamsEncoder)()),
|
|
28
|
+
],
|
|
29
|
+
["maxMarginRatio", (0, kit_1.getOptionEncoder)((0, kit_1.getU16Encoder)())],
|
|
30
|
+
["builderIdx", (0, kit_1.getOptionEncoder)((0, kit_1.getU8Encoder)())],
|
|
31
|
+
["builderFeeTenthBps", (0, kit_1.getOptionEncoder)((0, kit_1.getU16Encoder)())],
|
|
32
|
+
["isolatedPositionDeposit", (0, kit_1.getOptionEncoder)((0, kit_1.getU64Encoder)())],
|
|
33
|
+
]);
|
|
34
|
+
}
|
|
35
|
+
function getSignedMsgOrderParamsMessageDecoder() {
|
|
36
|
+
return (0, kit_1.getStructDecoder)([
|
|
37
|
+
["signedMsgOrderParams", (0, _1.getOrderParamsDecoder)()],
|
|
38
|
+
["subAccountId", (0, kit_1.getU16Decoder)()],
|
|
39
|
+
["slot", (0, kit_1.getU64Decoder)()],
|
|
40
|
+
["uuid", (0, kit_1.fixDecoderSize)((0, kit_1.getBytesDecoder)(), 8)],
|
|
41
|
+
[
|
|
42
|
+
"takeProfitOrderParams",
|
|
43
|
+
(0, kit_1.getOptionDecoder)((0, _1.getSignedMsgTriggerOrderParamsDecoder)()),
|
|
44
|
+
],
|
|
45
|
+
[
|
|
46
|
+
"stopLossOrderParams",
|
|
47
|
+
(0, kit_1.getOptionDecoder)((0, _1.getSignedMsgTriggerOrderParamsDecoder)()),
|
|
48
|
+
],
|
|
49
|
+
["maxMarginRatio", (0, kit_1.getOptionDecoder)((0, kit_1.getU16Decoder)())],
|
|
50
|
+
["builderIdx", (0, kit_1.getOptionDecoder)((0, kit_1.getU8Decoder)())],
|
|
51
|
+
["builderFeeTenthBps", (0, kit_1.getOptionDecoder)((0, kit_1.getU16Decoder)())],
|
|
52
|
+
["isolatedPositionDeposit", (0, kit_1.getOptionDecoder)((0, kit_1.getU64Decoder)())],
|
|
53
|
+
]);
|
|
54
|
+
}
|
|
55
|
+
function getSignedMsgOrderParamsMessageCodec() {
|
|
56
|
+
return (0, kit_1.combineCodec)(getSignedMsgOrderParamsMessageEncoder(), getSignedMsgOrderParamsMessageDecoder());
|
|
57
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder } from "@solana/kit";
|
|
9
|
+
export type SignedMsgTriggerOrderParams = {
|
|
10
|
+
triggerPrice: bigint;
|
|
11
|
+
baseAssetAmount: bigint;
|
|
12
|
+
};
|
|
13
|
+
export type SignedMsgTriggerOrderParamsArgs = {
|
|
14
|
+
triggerPrice: number | bigint;
|
|
15
|
+
baseAssetAmount: number | bigint;
|
|
16
|
+
};
|
|
17
|
+
export declare function getSignedMsgTriggerOrderParamsEncoder(): FixedSizeEncoder<SignedMsgTriggerOrderParamsArgs>;
|
|
18
|
+
export declare function getSignedMsgTriggerOrderParamsDecoder(): FixedSizeDecoder<SignedMsgTriggerOrderParams>;
|
|
19
|
+
export declare function getSignedMsgTriggerOrderParamsCodec(): FixedSizeCodec<SignedMsgTriggerOrderParamsArgs, SignedMsgTriggerOrderParams>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
4
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
5
|
+
* to add features, then rerun Codama to update it.
|
|
6
|
+
*
|
|
7
|
+
* @see https://github.com/codama-idl/codama
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.getSignedMsgTriggerOrderParamsEncoder = getSignedMsgTriggerOrderParamsEncoder;
|
|
11
|
+
exports.getSignedMsgTriggerOrderParamsDecoder = getSignedMsgTriggerOrderParamsDecoder;
|
|
12
|
+
exports.getSignedMsgTriggerOrderParamsCodec = getSignedMsgTriggerOrderParamsCodec;
|
|
13
|
+
const kit_1 = require("@solana/kit");
|
|
14
|
+
function getSignedMsgTriggerOrderParamsEncoder() {
|
|
15
|
+
return (0, kit_1.getStructEncoder)([
|
|
16
|
+
["triggerPrice", (0, kit_1.getU64Encoder)()],
|
|
17
|
+
["baseAssetAmount", (0, kit_1.getU64Encoder)()],
|
|
18
|
+
]);
|
|
19
|
+
}
|
|
20
|
+
function getSignedMsgTriggerOrderParamsDecoder() {
|
|
21
|
+
return (0, kit_1.getStructDecoder)([
|
|
22
|
+
["triggerPrice", (0, kit_1.getU64Decoder)()],
|
|
23
|
+
["baseAssetAmount", (0, kit_1.getU64Decoder)()],
|
|
24
|
+
]);
|
|
25
|
+
}
|
|
26
|
+
function getSignedMsgTriggerOrderParamsCodec() {
|
|
27
|
+
return (0, kit_1.combineCodec)(getSignedMsgTriggerOrderParamsEncoder(), getSignedMsgTriggerOrderParamsDecoder());
|
|
28
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder } from "@solana/kit";
|
|
9
|
+
export type SignedMsgUserOrdersFixed = {
|
|
10
|
+
userPubkey: Address;
|
|
11
|
+
padding: number;
|
|
12
|
+
len: number;
|
|
13
|
+
};
|
|
14
|
+
export type SignedMsgUserOrdersFixedArgs = SignedMsgUserOrdersFixed;
|
|
15
|
+
export declare function getSignedMsgUserOrdersFixedEncoder(): FixedSizeEncoder<SignedMsgUserOrdersFixedArgs>;
|
|
16
|
+
export declare function getSignedMsgUserOrdersFixedDecoder(): FixedSizeDecoder<SignedMsgUserOrdersFixed>;
|
|
17
|
+
export declare function getSignedMsgUserOrdersFixedCodec(): FixedSizeCodec<SignedMsgUserOrdersFixedArgs, SignedMsgUserOrdersFixed>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
4
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
5
|
+
* to add features, then rerun Codama to update it.
|
|
6
|
+
*
|
|
7
|
+
* @see https://github.com/codama-idl/codama
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.getSignedMsgUserOrdersFixedEncoder = getSignedMsgUserOrdersFixedEncoder;
|
|
11
|
+
exports.getSignedMsgUserOrdersFixedDecoder = getSignedMsgUserOrdersFixedDecoder;
|
|
12
|
+
exports.getSignedMsgUserOrdersFixedCodec = getSignedMsgUserOrdersFixedCodec;
|
|
13
|
+
const kit_1 = require("@solana/kit");
|
|
14
|
+
function getSignedMsgUserOrdersFixedEncoder() {
|
|
15
|
+
return (0, kit_1.getStructEncoder)([
|
|
16
|
+
["userPubkey", (0, kit_1.getAddressEncoder)()],
|
|
17
|
+
["padding", (0, kit_1.getU32Encoder)()],
|
|
18
|
+
["len", (0, kit_1.getU32Encoder)()],
|
|
19
|
+
]);
|
|
20
|
+
}
|
|
21
|
+
function getSignedMsgUserOrdersFixedDecoder() {
|
|
22
|
+
return (0, kit_1.getStructDecoder)([
|
|
23
|
+
["userPubkey", (0, kit_1.getAddressDecoder)()],
|
|
24
|
+
["padding", (0, kit_1.getU32Decoder)()],
|
|
25
|
+
["len", (0, kit_1.getU32Decoder)()],
|
|
26
|
+
]);
|
|
27
|
+
}
|
|
28
|
+
function getSignedMsgUserOrdersFixedCodec() {
|
|
29
|
+
return (0, kit_1.combineCodec)(getSignedMsgUserOrdersFixedEncoder(), getSignedMsgUserOrdersFixedDecoder());
|
|
30
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder } from "@solana/kit";
|
|
9
|
+
export declare enum SpotBalanceType {
|
|
10
|
+
Deposit = 0,
|
|
11
|
+
Borrow = 1
|
|
12
|
+
}
|
|
13
|
+
export type SpotBalanceTypeArgs = SpotBalanceType;
|
|
14
|
+
export declare function getSpotBalanceTypeEncoder(): FixedSizeEncoder<SpotBalanceTypeArgs>;
|
|
15
|
+
export declare function getSpotBalanceTypeDecoder(): FixedSizeDecoder<SpotBalanceType>;
|
|
16
|
+
export declare function getSpotBalanceTypeCodec(): FixedSizeCodec<SpotBalanceTypeArgs, SpotBalanceType>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
4
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
5
|
+
* to add features, then rerun Codama to update it.
|
|
6
|
+
*
|
|
7
|
+
* @see https://github.com/codama-idl/codama
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.SpotBalanceType = void 0;
|
|
11
|
+
exports.getSpotBalanceTypeEncoder = getSpotBalanceTypeEncoder;
|
|
12
|
+
exports.getSpotBalanceTypeDecoder = getSpotBalanceTypeDecoder;
|
|
13
|
+
exports.getSpotBalanceTypeCodec = getSpotBalanceTypeCodec;
|
|
14
|
+
const kit_1 = require("@solana/kit");
|
|
15
|
+
var SpotBalanceType;
|
|
16
|
+
(function (SpotBalanceType) {
|
|
17
|
+
SpotBalanceType[SpotBalanceType["Deposit"] = 0] = "Deposit";
|
|
18
|
+
SpotBalanceType[SpotBalanceType["Borrow"] = 1] = "Borrow";
|
|
19
|
+
})(SpotBalanceType || (exports.SpotBalanceType = SpotBalanceType = {}));
|
|
20
|
+
function getSpotBalanceTypeEncoder() {
|
|
21
|
+
return (0, kit_1.getEnumEncoder)(SpotBalanceType);
|
|
22
|
+
}
|
|
23
|
+
function getSpotBalanceTypeDecoder() {
|
|
24
|
+
return (0, kit_1.getEnumDecoder)(SpotBalanceType);
|
|
25
|
+
}
|
|
26
|
+
function getSpotBalanceTypeCodec() {
|
|
27
|
+
return (0, kit_1.combineCodec)(getSpotBalanceTypeEncoder(), getSpotBalanceTypeDecoder());
|
|
28
|
+
}
|