@keel-fi/svm-alm-controller 1.0.1-rc.1 → 1.0.2-rc.1
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/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +216 -1
- package/dist/index.js +217 -0
- package/dist/integrations/drift/index.d.ts +2 -0
- package/dist/integrations/drift/index.d.ts.map +1 -0
- package/dist/integrations/drift/pdas.d.ts +10 -0
- package/dist/integrations/drift/pdas.d.ts.map +1 -0
- package/dist/integrations/index.d.ts +3 -0
- package/dist/integrations/index.d.ts.map +1 -0
- package/dist/integrations/kamino/index.d.ts +2 -0
- package/dist/integrations/kamino/index.d.ts.map +1 -0
- package/dist/integrations/kamino/pdas.d.ts +27 -0
- package/dist/integrations/kamino/pdas.d.ts.map +1 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC"}
|
package/dist/index.es.js
CHANGED
|
@@ -3095,4 +3095,219 @@ const deriveReservePda = async (controller, mint) => {
|
|
|
3095
3095
|
return reservePda;
|
|
3096
3096
|
};
|
|
3097
3097
|
|
|
3098
|
-
|
|
3098
|
+
const DRIFT_PROGRAM_ID = "dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH";
|
|
3099
|
+
const deriveDriftSigner = async () => {
|
|
3100
|
+
const [driftSignerPda] = await getProgramDerivedAddress({
|
|
3101
|
+
programAddress: DRIFT_PROGRAM_ID,
|
|
3102
|
+
seeds: ["drift_signer"],
|
|
3103
|
+
});
|
|
3104
|
+
return driftSignerPda;
|
|
3105
|
+
};
|
|
3106
|
+
const deriveDriftSignerNonce = async () => {
|
|
3107
|
+
const [, nonce] = await getProgramDerivedAddress({
|
|
3108
|
+
programAddress: DRIFT_PROGRAM_ID,
|
|
3109
|
+
seeds: ["drift_signer"],
|
|
3110
|
+
});
|
|
3111
|
+
return nonce;
|
|
3112
|
+
};
|
|
3113
|
+
const deriveStatePda = async () => {
|
|
3114
|
+
const [statePda] = await getProgramDerivedAddress({
|
|
3115
|
+
programAddress: DRIFT_PROGRAM_ID,
|
|
3116
|
+
seeds: ["drift_state"],
|
|
3117
|
+
});
|
|
3118
|
+
return statePda;
|
|
3119
|
+
};
|
|
3120
|
+
const deriveUserStatsPda = async (authority) => {
|
|
3121
|
+
const addressEncoder = getAddressEncoder$1();
|
|
3122
|
+
const [userStatsPda] = await getProgramDerivedAddress({
|
|
3123
|
+
programAddress: DRIFT_PROGRAM_ID,
|
|
3124
|
+
seeds: ["user_stats", addressEncoder.encode(authority)],
|
|
3125
|
+
});
|
|
3126
|
+
return userStatsPda;
|
|
3127
|
+
};
|
|
3128
|
+
const deriveUserPda = async (authority, subAccountId) => {
|
|
3129
|
+
const addressEncoder = getAddressEncoder$1();
|
|
3130
|
+
const [userPda] = await getProgramDerivedAddress({
|
|
3131
|
+
programAddress: DRIFT_PROGRAM_ID,
|
|
3132
|
+
seeds: [
|
|
3133
|
+
"user",
|
|
3134
|
+
addressEncoder.encode(authority),
|
|
3135
|
+
Buffer.from(new Uint16Array([subAccountId]).buffer),
|
|
3136
|
+
],
|
|
3137
|
+
});
|
|
3138
|
+
return userPda;
|
|
3139
|
+
};
|
|
3140
|
+
const deriveSpotMarketPda = async (marketIndex) => {
|
|
3141
|
+
const [spotMarketPda] = await getProgramDerivedAddress({
|
|
3142
|
+
programAddress: DRIFT_PROGRAM_ID,
|
|
3143
|
+
seeds: [
|
|
3144
|
+
"spot_market",
|
|
3145
|
+
Buffer.from(new Uint16Array([marketIndex]).buffer),
|
|
3146
|
+
],
|
|
3147
|
+
});
|
|
3148
|
+
return spotMarketPda;
|
|
3149
|
+
};
|
|
3150
|
+
const deriveSpotMarketVaultPda = async (marketIndex) => {
|
|
3151
|
+
const [spotMarketVaultPda] = await getProgramDerivedAddress({
|
|
3152
|
+
programAddress: DRIFT_PROGRAM_ID,
|
|
3153
|
+
seeds: [
|
|
3154
|
+
"spot_market_vault",
|
|
3155
|
+
Buffer.from(new Uint16Array([marketIndex]).buffer),
|
|
3156
|
+
],
|
|
3157
|
+
});
|
|
3158
|
+
return spotMarketVaultPda;
|
|
3159
|
+
};
|
|
3160
|
+
|
|
3161
|
+
var index$1 = /*#__PURE__*/Object.freeze({
|
|
3162
|
+
__proto__: null,
|
|
3163
|
+
DRIFT_PROGRAM_ID: DRIFT_PROGRAM_ID,
|
|
3164
|
+
deriveDriftSigner: deriveDriftSigner,
|
|
3165
|
+
deriveDriftSignerNonce: deriveDriftSignerNonce,
|
|
3166
|
+
deriveSpotMarketPda: deriveSpotMarketPda,
|
|
3167
|
+
deriveSpotMarketVaultPda: deriveSpotMarketVaultPda,
|
|
3168
|
+
deriveStatePda: deriveStatePda,
|
|
3169
|
+
deriveUserPda: deriveUserPda,
|
|
3170
|
+
deriveUserStatsPda: deriveUserStatsPda
|
|
3171
|
+
});
|
|
3172
|
+
|
|
3173
|
+
const KAMINO_LEND_PROGRAM_ID = "KLend2g3cP87fffoy8q1mQqGKjrxjC8boSyAYavgmjD";
|
|
3174
|
+
const KAMINO_FARMS_PROGRAM_ID = "FarmsPZpWu9i7Kky8tPN37rs2TpmMrAZrC7S7vJa91Hr";
|
|
3175
|
+
const DEFAULT_PUBLIC_KEY = "11111111111111111111111111111111";
|
|
3176
|
+
const deriveVanillaObligationAddress = async (obligationId, authority, market) => {
|
|
3177
|
+
const addressEncoder = getAddressEncoder$1();
|
|
3178
|
+
const [obligationPda] = await getProgramDerivedAddress({
|
|
3179
|
+
programAddress: KAMINO_LEND_PROGRAM_ID,
|
|
3180
|
+
seeds: [
|
|
3181
|
+
Buffer.from([0]),
|
|
3182
|
+
Buffer.from(new Uint8Array([obligationId])),
|
|
3183
|
+
addressEncoder.encode(authority),
|
|
3184
|
+
addressEncoder.encode(market),
|
|
3185
|
+
addressEncoder.encode(DEFAULT_PUBLIC_KEY),
|
|
3186
|
+
addressEncoder.encode(DEFAULT_PUBLIC_KEY),
|
|
3187
|
+
],
|
|
3188
|
+
});
|
|
3189
|
+
return obligationPda;
|
|
3190
|
+
};
|
|
3191
|
+
const deriveReserveLiquiditySupply = async (market, reserveLiquidityMint) => {
|
|
3192
|
+
const addressEncoder = getAddressEncoder$1();
|
|
3193
|
+
const [pda] = await getProgramDerivedAddress({
|
|
3194
|
+
programAddress: KAMINO_LEND_PROGRAM_ID,
|
|
3195
|
+
seeds: [
|
|
3196
|
+
"reserve_liq_supply",
|
|
3197
|
+
addressEncoder.encode(market),
|
|
3198
|
+
addressEncoder.encode(reserveLiquidityMint),
|
|
3199
|
+
],
|
|
3200
|
+
});
|
|
3201
|
+
return pda;
|
|
3202
|
+
};
|
|
3203
|
+
const deriveReserveCollateralMint = async (market, reserveLiquidityMint) => {
|
|
3204
|
+
const addressEncoder = getAddressEncoder$1();
|
|
3205
|
+
const [pda] = await getProgramDerivedAddress({
|
|
3206
|
+
programAddress: KAMINO_LEND_PROGRAM_ID,
|
|
3207
|
+
seeds: [
|
|
3208
|
+
"reserve_coll_mint",
|
|
3209
|
+
addressEncoder.encode(market),
|
|
3210
|
+
addressEncoder.encode(reserveLiquidityMint),
|
|
3211
|
+
],
|
|
3212
|
+
});
|
|
3213
|
+
return pda;
|
|
3214
|
+
};
|
|
3215
|
+
const deriveReserveCollateralSupply = async (market, reserveLiquidityMint) => {
|
|
3216
|
+
const addressEncoder = getAddressEncoder$1();
|
|
3217
|
+
const [pda] = await getProgramDerivedAddress({
|
|
3218
|
+
programAddress: KAMINO_LEND_PROGRAM_ID,
|
|
3219
|
+
seeds: [
|
|
3220
|
+
"reserve_coll_supply",
|
|
3221
|
+
addressEncoder.encode(market),
|
|
3222
|
+
addressEncoder.encode(reserveLiquidityMint),
|
|
3223
|
+
],
|
|
3224
|
+
});
|
|
3225
|
+
return pda;
|
|
3226
|
+
};
|
|
3227
|
+
const deriveMarketAuthorityAddress = async (market) => {
|
|
3228
|
+
const addressEncoder = getAddressEncoder$1();
|
|
3229
|
+
const [pda, bump] = await getProgramDerivedAddress({
|
|
3230
|
+
programAddress: KAMINO_LEND_PROGRAM_ID,
|
|
3231
|
+
seeds: ["lma", addressEncoder.encode(market)],
|
|
3232
|
+
});
|
|
3233
|
+
return { address: pda, bump };
|
|
3234
|
+
};
|
|
3235
|
+
const deriveObligationFarmAddress = async (reserveFarm, obligation) => {
|
|
3236
|
+
const addressEncoder = getAddressEncoder$1();
|
|
3237
|
+
const [pda] = await getProgramDerivedAddress({
|
|
3238
|
+
programAddress: KAMINO_FARMS_PROGRAM_ID,
|
|
3239
|
+
seeds: [
|
|
3240
|
+
"user",
|
|
3241
|
+
addressEncoder.encode(reserveFarm),
|
|
3242
|
+
addressEncoder.encode(obligation),
|
|
3243
|
+
],
|
|
3244
|
+
});
|
|
3245
|
+
return pda;
|
|
3246
|
+
};
|
|
3247
|
+
const deriveUserMetadataAddress = async (user) => {
|
|
3248
|
+
const addressEncoder = getAddressEncoder$1();
|
|
3249
|
+
const [pda, bump] = await getProgramDerivedAddress({
|
|
3250
|
+
programAddress: KAMINO_LEND_PROGRAM_ID,
|
|
3251
|
+
seeds: ["user_meta", addressEncoder.encode(user)],
|
|
3252
|
+
});
|
|
3253
|
+
return { address: pda, bump };
|
|
3254
|
+
};
|
|
3255
|
+
const deriveRewardsVault = async (farmState, rewardsVaultMint) => {
|
|
3256
|
+
const addressEncoder = getAddressEncoder$1();
|
|
3257
|
+
const [pda] = await getProgramDerivedAddress({
|
|
3258
|
+
programAddress: KAMINO_FARMS_PROGRAM_ID,
|
|
3259
|
+
seeds: [
|
|
3260
|
+
"rvault",
|
|
3261
|
+
addressEncoder.encode(farmState),
|
|
3262
|
+
addressEncoder.encode(rewardsVaultMint),
|
|
3263
|
+
],
|
|
3264
|
+
});
|
|
3265
|
+
return pda;
|
|
3266
|
+
};
|
|
3267
|
+
const deriveRewardsTreasuryVault = async (globalConfig, rewardsVaultMint) => {
|
|
3268
|
+
const addressEncoder = getAddressEncoder$1();
|
|
3269
|
+
const [pda] = await getProgramDerivedAddress({
|
|
3270
|
+
programAddress: KAMINO_FARMS_PROGRAM_ID,
|
|
3271
|
+
seeds: [
|
|
3272
|
+
"tvault",
|
|
3273
|
+
addressEncoder.encode(globalConfig),
|
|
3274
|
+
addressEncoder.encode(rewardsVaultMint),
|
|
3275
|
+
],
|
|
3276
|
+
});
|
|
3277
|
+
return pda;
|
|
3278
|
+
};
|
|
3279
|
+
const deriveFarmVaultsAuthority = async (farmState) => {
|
|
3280
|
+
const addressEncoder = getAddressEncoder$1();
|
|
3281
|
+
const [pda, bump] = await getProgramDerivedAddress({
|
|
3282
|
+
programAddress: KAMINO_FARMS_PROGRAM_ID,
|
|
3283
|
+
seeds: ["authority", addressEncoder.encode(farmState)],
|
|
3284
|
+
});
|
|
3285
|
+
return { address: pda, bump };
|
|
3286
|
+
};
|
|
3287
|
+
const deriveKFarmsTreasuryVaultAuthority = async (globalConfig) => {
|
|
3288
|
+
const addressEncoder = getAddressEncoder$1();
|
|
3289
|
+
const [pda, bump] = await getProgramDerivedAddress({
|
|
3290
|
+
programAddress: KAMINO_FARMS_PROGRAM_ID,
|
|
3291
|
+
seeds: ["authority", addressEncoder.encode(globalConfig)],
|
|
3292
|
+
});
|
|
3293
|
+
return { address: pda, bump };
|
|
3294
|
+
};
|
|
3295
|
+
|
|
3296
|
+
var index = /*#__PURE__*/Object.freeze({
|
|
3297
|
+
__proto__: null,
|
|
3298
|
+
KAMINO_FARMS_PROGRAM_ID: KAMINO_FARMS_PROGRAM_ID,
|
|
3299
|
+
KAMINO_LEND_PROGRAM_ID: KAMINO_LEND_PROGRAM_ID,
|
|
3300
|
+
deriveFarmVaultsAuthority: deriveFarmVaultsAuthority,
|
|
3301
|
+
deriveKFarmsTreasuryVaultAuthority: deriveKFarmsTreasuryVaultAuthority,
|
|
3302
|
+
deriveMarketAuthorityAddress: deriveMarketAuthorityAddress,
|
|
3303
|
+
deriveObligationFarmAddress: deriveObligationFarmAddress,
|
|
3304
|
+
deriveReserveCollateralMint: deriveReserveCollateralMint,
|
|
3305
|
+
deriveReserveCollateralSupply: deriveReserveCollateralSupply,
|
|
3306
|
+
deriveReserveLiquiditySupply: deriveReserveLiquiditySupply,
|
|
3307
|
+
deriveRewardsTreasuryVault: deriveRewardsTreasuryVault,
|
|
3308
|
+
deriveRewardsVault: deriveRewardsVault,
|
|
3309
|
+
deriveUserMetadataAddress: deriveUserMetadataAddress,
|
|
3310
|
+
deriveVanillaObligationAddress: deriveVanillaObligationAddress
|
|
3311
|
+
});
|
|
3312
|
+
|
|
3313
|
+
export { ATOMIC_SWAP_BORROW_DISCRIMINATOR, ATOMIC_SWAP_REPAY_DISCRIMINATOR, AccountDiscriminators, AccountingAction, AccountingDirection, CLAIM_RENT_DISCRIMINATOR, ControllerStatus, EMIT_EVENT_DISCRIMINATOR, INITIALIZE_CONTROLLER_DISCRIMINATOR, INITIALIZE_INTEGRATION_DISCRIMINATOR, INITIALIZE_ORACLE_DISCRIMINATOR, INITIALIZE_RESERVE_DISCRIMINATOR, IntegrationStatus, IntegrationType, MANAGE_CONTROLLER_DISCRIMINATOR, MANAGE_INTEGRATION_DISCRIMINATOR, MANAGE_PERMISSION_DISCRIMINATOR, MANAGE_RESERVE_DISCRIMINATOR, PULL_DISCRIMINATOR, PUSH_DISCRIMINATOR, PermissionStatus, REFRESH_ORACLE_DISCRIMINATOR, RESET_LZ_PUSH_IN_FLIGHT_DISCRIMINATOR, ReserveStatus, SVM_ALM_CONTROLLER_PROGRAM_ADDRESS, SYNC_DISCRIMINATOR, SYNC_RESERVE_DISCRIMINATOR, SvmAlmControllerAccount, SvmAlmControllerInstruction, UPDATE_ORACLE_DISCRIMINATOR, decodeController, decodeIntegration, decodeOracle, decodePermission, decodeReserve, deriveControllerAuthorityPda, deriveControllerPda, deriveIntegrationPda, derivePermissionPda, deriveReservePda, index$1 as drift, fetchAllController, fetchAllIntegration, fetchAllMaybeController, fetchAllMaybeIntegration, fetchAllMaybeOracle, fetchAllMaybePermission, fetchAllMaybeReserve, fetchAllOracle, fetchAllPermission, fetchAllReserve, fetchController, fetchIntegration, fetchMaybeController, fetchMaybeIntegration, fetchMaybeOracle, fetchMaybePermission, fetchMaybeReserve, fetchOracle, fetchPermission, fetchReserve, getAccountDiscriminatorsCodec, getAccountDiscriminatorsDecoder, getAccountDiscriminatorsEncoder, getAccountingActionCodec, getAccountingActionDecoder, getAccountingActionEncoder, getAccountingDirectionCodec, getAccountingDirectionDecoder, getAccountingDirectionEncoder, getAccountingEventCodec, getAccountingEventDecoder, getAccountingEventEncoder, getAtomicSwapBorrowDiscriminatorBytes, getAtomicSwapBorrowInstruction, getAtomicSwapBorrowInstructionDataCodec, getAtomicSwapBorrowInstructionDataDecoder, getAtomicSwapBorrowInstructionDataEncoder, getAtomicSwapConfigCodec, getAtomicSwapConfigDecoder, getAtomicSwapConfigEncoder, getAtomicSwapRepayDiscriminatorBytes, getAtomicSwapRepayInstruction, getAtomicSwapRepayInstructionDataCodec, getAtomicSwapRepayInstructionDataDecoder, getAtomicSwapRepayInstructionDataEncoder, getAtomicSwapStateCodec, getAtomicSwapStateDecoder, getAtomicSwapStateEncoder, getCctpBridgeConfigCodec, getCctpBridgeConfigDecoder, getCctpBridgeConfigEncoder, getCctpBridgeStateCodec, getCctpBridgeStateDecoder, getCctpBridgeStateEncoder, getClaimRentDiscriminatorBytes, getClaimRentInstruction, getClaimRentInstructionDataCodec, getClaimRentInstructionDataDecoder, getClaimRentInstructionDataEncoder, getControllerCodec, getControllerDecoder, getControllerEncoder, getControllerSize, getControllerStatusCodec, getControllerStatusDecoder, getControllerStatusEncoder, getControllerUpdateEventCodec, getControllerUpdateEventDecoder, getControllerUpdateEventEncoder, getDriftConfigCodec, getDriftConfigDecoder, getDriftConfigEncoder, getEmitEventDiscriminatorBytes, getEmitEventInstruction, getEmitEventInstructionDataCodec, getEmitEventInstructionDataDecoder, getEmitEventInstructionDataEncoder, getFeedArgsCodec, getFeedArgsDecoder, getFeedArgsEncoder, getFeedCodec, getFeedDecoder, getFeedEncoder, getInitializeArgsCodec, getInitializeArgsDecoder, getInitializeArgsEncoder, getInitializeControllerDiscriminatorBytes, getInitializeControllerInstruction, getInitializeControllerInstructionDataCodec, getInitializeControllerInstructionDataDecoder, getInitializeControllerInstructionDataEncoder, getInitializeIntegrationDiscriminatorBytes, getInitializeIntegrationInstruction, getInitializeIntegrationInstructionDataCodec, getInitializeIntegrationInstructionDataDecoder, getInitializeIntegrationInstructionDataEncoder, getInitializeOracleDiscriminatorBytes, getInitializeOracleInstruction, getInitializeOracleInstructionDataCodec, getInitializeOracleInstructionDataDecoder, getInitializeOracleInstructionDataEncoder, getInitializeReserveDiscriminatorBytes, getInitializeReserveInstruction, getInitializeReserveInstructionDataCodec, getInitializeReserveInstructionDataDecoder, getInitializeReserveInstructionDataEncoder, getIntegrationCodec, getIntegrationConfigCodec, getIntegrationConfigDecoder, getIntegrationConfigEncoder, getIntegrationDecoder, getIntegrationEncoder, getIntegrationSize, getIntegrationStateCodec, getIntegrationStateDecoder, getIntegrationStateEncoder, getIntegrationStatusCodec, getIntegrationStatusDecoder, getIntegrationStatusEncoder, getIntegrationTypeCodec, getIntegrationTypeDecoder, getIntegrationTypeEncoder, getIntegrationUpdateEventCodec, getIntegrationUpdateEventDecoder, getIntegrationUpdateEventEncoder, getKaminoConfigCodec, getKaminoConfigDecoder, getKaminoConfigEncoder, getLendingStateCodec, getLendingStateDecoder, getLendingStateEncoder, getLocalTokenCodec, getLocalTokenDecoder, getLocalTokenEncoder, getLzBridgeConfigCodec, getLzBridgeConfigDecoder, getLzBridgeConfigEncoder, getLzBridgeStateCodec, getLzBridgeStateDecoder, getLzBridgeStateEncoder, getManageControllerDiscriminatorBytes, getManageControllerInstruction, getManageControllerInstructionDataCodec, getManageControllerInstructionDataDecoder, getManageControllerInstructionDataEncoder, getManageIntegrationDiscriminatorBytes, getManageIntegrationInstruction, getManageIntegrationInstructionDataCodec, getManageIntegrationInstructionDataDecoder, getManageIntegrationInstructionDataEncoder, getManagePermissionDiscriminatorBytes, getManagePermissionInstruction, getManagePermissionInstructionDataCodec, getManagePermissionInstructionDataDecoder, getManagePermissionInstructionDataEncoder, getManageReserveDiscriminatorBytes, getManageReserveInstruction, getManageReserveInstructionDataCodec, getManageReserveInstructionDataDecoder, getManageReserveInstructionDataEncoder, getOFTStoreCodec, getOFTStoreDecoder, getOFTStoreEncoder, getOftSendParamsCodec, getOftSendParamsDecoder, getOftSendParamsEncoder, getOracleCodec, getOracleDecoder, getOracleEncoder, getOracleSize, getOracleUpdateEventCodec, getOracleUpdateEventDecoder, getOracleUpdateEventEncoder, getPeerConfigCodec, getPeerConfigDecoder, getPeerConfigEncoder, getPermissionCodec, getPermissionDecoder, getPermissionEncoder, getPermissionSize, getPermissionStatusCodec, getPermissionStatusDecoder, getPermissionStatusEncoder, getPermissionUpdateEventCodec, getPermissionUpdateEventDecoder, getPermissionUpdateEventEncoder, getPullArgsCodec, getPullArgsDecoder, getPullArgsEncoder, getPullDiscriminatorBytes, getPullInstruction, getPullInstructionDataCodec, getPullInstructionDataDecoder, getPullInstructionDataEncoder, getPushArgsCodec, getPushArgsDecoder, getPushArgsEncoder, getPushDiscriminatorBytes, getPushInstruction, getPushInstructionDataCodec, getPushInstructionDataDecoder, getPushInstructionDataEncoder, getRefreshOracleDiscriminatorBytes, getRefreshOracleInstruction, getRefreshOracleInstructionDataCodec, getRefreshOracleInstructionDataDecoder, getRefreshOracleInstructionDataEncoder, getRemoteTokenMessengerCodec, getRemoteTokenMessengerDecoder, getRemoteTokenMessengerEncoder, getReserveCodec, getReserveDecoder, getReserveEncoder, getReserveSize, getReserveStatusCodec, getReserveStatusDecoder, getReserveStatusEncoder, getReserveUpdateEventCodec, getReserveUpdateEventDecoder, getReserveUpdateEventEncoder, getResetLzPushInFlightDiscriminatorBytes, getResetLzPushInFlightInstruction, getResetLzPushInFlightInstructionDataCodec, getResetLzPushInFlightInstructionDataDecoder, getResetLzPushInFlightInstructionDataEncoder, getSplTokenExternalConfigCodec, getSplTokenExternalConfigDecoder, getSplTokenExternalConfigEncoder, getSplTokenExternalStateCodec, getSplTokenExternalStateDecoder, getSplTokenExternalStateEncoder, getSvmAlmControllerEventCodec, getSvmAlmControllerEventDecoder, getSvmAlmControllerEventEncoder, getSyncDiscriminatorBytes, getSyncInstruction, getSyncInstructionDataCodec, getSyncInstructionDataDecoder, getSyncInstructionDataEncoder, getSyncReserveDiscriminatorBytes, getSyncReserveInstruction, getSyncReserveInstructionDataCodec, getSyncReserveInstructionDataDecoder, getSyncReserveInstructionDataEncoder, getUpdateOracleDiscriminatorBytes, getUpdateOracleInstruction, getUpdateOracleInstructionDataCodec, getUpdateOracleInstructionDataDecoder, getUpdateOracleInstructionDataEncoder, identifySvmAlmControllerInstruction, initializeArgs, integrationConfig, integrationState, isInitializeArgs, isIntegrationConfig, isIntegrationState, isPullArgs, isPushArgs, isSvmAlmControllerEvent, index as kamino, parseAtomicSwapBorrowInstruction, parseAtomicSwapRepayInstruction, parseClaimRentInstruction, parseEmitEventInstruction, parseInitializeControllerInstruction, parseInitializeIntegrationInstruction, parseInitializeOracleInstruction, parseInitializeReserveInstruction, parseManageControllerInstruction, parseManageIntegrationInstruction, parseManagePermissionInstruction, parseManageReserveInstruction, parsePullInstruction, parsePushInstruction, parseRefreshOracleInstruction, parseResetLzPushInFlightInstruction, parseSyncInstruction, parseSyncReserveInstruction, parseUpdateOracleInstruction, pullArgs, pushArgs, svmAlmControllerEvent };
|
package/dist/index.js
CHANGED
|
@@ -3097,6 +3097,221 @@ const deriveReservePda = async (controller, mint) => {
|
|
|
3097
3097
|
return reservePda;
|
|
3098
3098
|
};
|
|
3099
3099
|
|
|
3100
|
+
const DRIFT_PROGRAM_ID = "dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH";
|
|
3101
|
+
const deriveDriftSigner = async () => {
|
|
3102
|
+
const [driftSignerPda] = await addresses.getProgramDerivedAddress({
|
|
3103
|
+
programAddress: DRIFT_PROGRAM_ID,
|
|
3104
|
+
seeds: ["drift_signer"],
|
|
3105
|
+
});
|
|
3106
|
+
return driftSignerPda;
|
|
3107
|
+
};
|
|
3108
|
+
const deriveDriftSignerNonce = async () => {
|
|
3109
|
+
const [, nonce] = await addresses.getProgramDerivedAddress({
|
|
3110
|
+
programAddress: DRIFT_PROGRAM_ID,
|
|
3111
|
+
seeds: ["drift_signer"],
|
|
3112
|
+
});
|
|
3113
|
+
return nonce;
|
|
3114
|
+
};
|
|
3115
|
+
const deriveStatePda = async () => {
|
|
3116
|
+
const [statePda] = await addresses.getProgramDerivedAddress({
|
|
3117
|
+
programAddress: DRIFT_PROGRAM_ID,
|
|
3118
|
+
seeds: ["drift_state"],
|
|
3119
|
+
});
|
|
3120
|
+
return statePda;
|
|
3121
|
+
};
|
|
3122
|
+
const deriveUserStatsPda = async (authority) => {
|
|
3123
|
+
const addressEncoder = addresses.getAddressEncoder();
|
|
3124
|
+
const [userStatsPda] = await addresses.getProgramDerivedAddress({
|
|
3125
|
+
programAddress: DRIFT_PROGRAM_ID,
|
|
3126
|
+
seeds: ["user_stats", addressEncoder.encode(authority)],
|
|
3127
|
+
});
|
|
3128
|
+
return userStatsPda;
|
|
3129
|
+
};
|
|
3130
|
+
const deriveUserPda = async (authority, subAccountId) => {
|
|
3131
|
+
const addressEncoder = addresses.getAddressEncoder();
|
|
3132
|
+
const [userPda] = await addresses.getProgramDerivedAddress({
|
|
3133
|
+
programAddress: DRIFT_PROGRAM_ID,
|
|
3134
|
+
seeds: [
|
|
3135
|
+
"user",
|
|
3136
|
+
addressEncoder.encode(authority),
|
|
3137
|
+
Buffer.from(new Uint16Array([subAccountId]).buffer),
|
|
3138
|
+
],
|
|
3139
|
+
});
|
|
3140
|
+
return userPda;
|
|
3141
|
+
};
|
|
3142
|
+
const deriveSpotMarketPda = async (marketIndex) => {
|
|
3143
|
+
const [spotMarketPda] = await addresses.getProgramDerivedAddress({
|
|
3144
|
+
programAddress: DRIFT_PROGRAM_ID,
|
|
3145
|
+
seeds: [
|
|
3146
|
+
"spot_market",
|
|
3147
|
+
Buffer.from(new Uint16Array([marketIndex]).buffer),
|
|
3148
|
+
],
|
|
3149
|
+
});
|
|
3150
|
+
return spotMarketPda;
|
|
3151
|
+
};
|
|
3152
|
+
const deriveSpotMarketVaultPda = async (marketIndex) => {
|
|
3153
|
+
const [spotMarketVaultPda] = await addresses.getProgramDerivedAddress({
|
|
3154
|
+
programAddress: DRIFT_PROGRAM_ID,
|
|
3155
|
+
seeds: [
|
|
3156
|
+
"spot_market_vault",
|
|
3157
|
+
Buffer.from(new Uint16Array([marketIndex]).buffer),
|
|
3158
|
+
],
|
|
3159
|
+
});
|
|
3160
|
+
return spotMarketVaultPda;
|
|
3161
|
+
};
|
|
3162
|
+
|
|
3163
|
+
var index$1 = /*#__PURE__*/Object.freeze({
|
|
3164
|
+
__proto__: null,
|
|
3165
|
+
DRIFT_PROGRAM_ID: DRIFT_PROGRAM_ID,
|
|
3166
|
+
deriveDriftSigner: deriveDriftSigner,
|
|
3167
|
+
deriveDriftSignerNonce: deriveDriftSignerNonce,
|
|
3168
|
+
deriveSpotMarketPda: deriveSpotMarketPda,
|
|
3169
|
+
deriveSpotMarketVaultPda: deriveSpotMarketVaultPda,
|
|
3170
|
+
deriveStatePda: deriveStatePda,
|
|
3171
|
+
deriveUserPda: deriveUserPda,
|
|
3172
|
+
deriveUserStatsPda: deriveUserStatsPda
|
|
3173
|
+
});
|
|
3174
|
+
|
|
3175
|
+
const KAMINO_LEND_PROGRAM_ID = "KLend2g3cP87fffoy8q1mQqGKjrxjC8boSyAYavgmjD";
|
|
3176
|
+
const KAMINO_FARMS_PROGRAM_ID = "FarmsPZpWu9i7Kky8tPN37rs2TpmMrAZrC7S7vJa91Hr";
|
|
3177
|
+
const DEFAULT_PUBLIC_KEY = "11111111111111111111111111111111";
|
|
3178
|
+
const deriveVanillaObligationAddress = async (obligationId, authority, market) => {
|
|
3179
|
+
const addressEncoder = addresses.getAddressEncoder();
|
|
3180
|
+
const [obligationPda] = await addresses.getProgramDerivedAddress({
|
|
3181
|
+
programAddress: KAMINO_LEND_PROGRAM_ID,
|
|
3182
|
+
seeds: [
|
|
3183
|
+
Buffer.from([0]),
|
|
3184
|
+
Buffer.from(new Uint8Array([obligationId])),
|
|
3185
|
+
addressEncoder.encode(authority),
|
|
3186
|
+
addressEncoder.encode(market),
|
|
3187
|
+
addressEncoder.encode(DEFAULT_PUBLIC_KEY),
|
|
3188
|
+
addressEncoder.encode(DEFAULT_PUBLIC_KEY),
|
|
3189
|
+
],
|
|
3190
|
+
});
|
|
3191
|
+
return obligationPda;
|
|
3192
|
+
};
|
|
3193
|
+
const deriveReserveLiquiditySupply = async (market, reserveLiquidityMint) => {
|
|
3194
|
+
const addressEncoder = addresses.getAddressEncoder();
|
|
3195
|
+
const [pda] = await addresses.getProgramDerivedAddress({
|
|
3196
|
+
programAddress: KAMINO_LEND_PROGRAM_ID,
|
|
3197
|
+
seeds: [
|
|
3198
|
+
"reserve_liq_supply",
|
|
3199
|
+
addressEncoder.encode(market),
|
|
3200
|
+
addressEncoder.encode(reserveLiquidityMint),
|
|
3201
|
+
],
|
|
3202
|
+
});
|
|
3203
|
+
return pda;
|
|
3204
|
+
};
|
|
3205
|
+
const deriveReserveCollateralMint = async (market, reserveLiquidityMint) => {
|
|
3206
|
+
const addressEncoder = addresses.getAddressEncoder();
|
|
3207
|
+
const [pda] = await addresses.getProgramDerivedAddress({
|
|
3208
|
+
programAddress: KAMINO_LEND_PROGRAM_ID,
|
|
3209
|
+
seeds: [
|
|
3210
|
+
"reserve_coll_mint",
|
|
3211
|
+
addressEncoder.encode(market),
|
|
3212
|
+
addressEncoder.encode(reserveLiquidityMint),
|
|
3213
|
+
],
|
|
3214
|
+
});
|
|
3215
|
+
return pda;
|
|
3216
|
+
};
|
|
3217
|
+
const deriveReserveCollateralSupply = async (market, reserveLiquidityMint) => {
|
|
3218
|
+
const addressEncoder = addresses.getAddressEncoder();
|
|
3219
|
+
const [pda] = await addresses.getProgramDerivedAddress({
|
|
3220
|
+
programAddress: KAMINO_LEND_PROGRAM_ID,
|
|
3221
|
+
seeds: [
|
|
3222
|
+
"reserve_coll_supply",
|
|
3223
|
+
addressEncoder.encode(market),
|
|
3224
|
+
addressEncoder.encode(reserveLiquidityMint),
|
|
3225
|
+
],
|
|
3226
|
+
});
|
|
3227
|
+
return pda;
|
|
3228
|
+
};
|
|
3229
|
+
const deriveMarketAuthorityAddress = async (market) => {
|
|
3230
|
+
const addressEncoder = addresses.getAddressEncoder();
|
|
3231
|
+
const [pda, bump] = await addresses.getProgramDerivedAddress({
|
|
3232
|
+
programAddress: KAMINO_LEND_PROGRAM_ID,
|
|
3233
|
+
seeds: ["lma", addressEncoder.encode(market)],
|
|
3234
|
+
});
|
|
3235
|
+
return { address: pda, bump };
|
|
3236
|
+
};
|
|
3237
|
+
const deriveObligationFarmAddress = async (reserveFarm, obligation) => {
|
|
3238
|
+
const addressEncoder = addresses.getAddressEncoder();
|
|
3239
|
+
const [pda] = await addresses.getProgramDerivedAddress({
|
|
3240
|
+
programAddress: KAMINO_FARMS_PROGRAM_ID,
|
|
3241
|
+
seeds: [
|
|
3242
|
+
"user",
|
|
3243
|
+
addressEncoder.encode(reserveFarm),
|
|
3244
|
+
addressEncoder.encode(obligation),
|
|
3245
|
+
],
|
|
3246
|
+
});
|
|
3247
|
+
return pda;
|
|
3248
|
+
};
|
|
3249
|
+
const deriveUserMetadataAddress = async (user) => {
|
|
3250
|
+
const addressEncoder = addresses.getAddressEncoder();
|
|
3251
|
+
const [pda, bump] = await addresses.getProgramDerivedAddress({
|
|
3252
|
+
programAddress: KAMINO_LEND_PROGRAM_ID,
|
|
3253
|
+
seeds: ["user_meta", addressEncoder.encode(user)],
|
|
3254
|
+
});
|
|
3255
|
+
return { address: pda, bump };
|
|
3256
|
+
};
|
|
3257
|
+
const deriveRewardsVault = async (farmState, rewardsVaultMint) => {
|
|
3258
|
+
const addressEncoder = addresses.getAddressEncoder();
|
|
3259
|
+
const [pda] = await addresses.getProgramDerivedAddress({
|
|
3260
|
+
programAddress: KAMINO_FARMS_PROGRAM_ID,
|
|
3261
|
+
seeds: [
|
|
3262
|
+
"rvault",
|
|
3263
|
+
addressEncoder.encode(farmState),
|
|
3264
|
+
addressEncoder.encode(rewardsVaultMint),
|
|
3265
|
+
],
|
|
3266
|
+
});
|
|
3267
|
+
return pda;
|
|
3268
|
+
};
|
|
3269
|
+
const deriveRewardsTreasuryVault = async (globalConfig, rewardsVaultMint) => {
|
|
3270
|
+
const addressEncoder = addresses.getAddressEncoder();
|
|
3271
|
+
const [pda] = await addresses.getProgramDerivedAddress({
|
|
3272
|
+
programAddress: KAMINO_FARMS_PROGRAM_ID,
|
|
3273
|
+
seeds: [
|
|
3274
|
+
"tvault",
|
|
3275
|
+
addressEncoder.encode(globalConfig),
|
|
3276
|
+
addressEncoder.encode(rewardsVaultMint),
|
|
3277
|
+
],
|
|
3278
|
+
});
|
|
3279
|
+
return pda;
|
|
3280
|
+
};
|
|
3281
|
+
const deriveFarmVaultsAuthority = async (farmState) => {
|
|
3282
|
+
const addressEncoder = addresses.getAddressEncoder();
|
|
3283
|
+
const [pda, bump] = await addresses.getProgramDerivedAddress({
|
|
3284
|
+
programAddress: KAMINO_FARMS_PROGRAM_ID,
|
|
3285
|
+
seeds: ["authority", addressEncoder.encode(farmState)],
|
|
3286
|
+
});
|
|
3287
|
+
return { address: pda, bump };
|
|
3288
|
+
};
|
|
3289
|
+
const deriveKFarmsTreasuryVaultAuthority = async (globalConfig) => {
|
|
3290
|
+
const addressEncoder = addresses.getAddressEncoder();
|
|
3291
|
+
const [pda, bump] = await addresses.getProgramDerivedAddress({
|
|
3292
|
+
programAddress: KAMINO_FARMS_PROGRAM_ID,
|
|
3293
|
+
seeds: ["authority", addressEncoder.encode(globalConfig)],
|
|
3294
|
+
});
|
|
3295
|
+
return { address: pda, bump };
|
|
3296
|
+
};
|
|
3297
|
+
|
|
3298
|
+
var index = /*#__PURE__*/Object.freeze({
|
|
3299
|
+
__proto__: null,
|
|
3300
|
+
KAMINO_FARMS_PROGRAM_ID: KAMINO_FARMS_PROGRAM_ID,
|
|
3301
|
+
KAMINO_LEND_PROGRAM_ID: KAMINO_LEND_PROGRAM_ID,
|
|
3302
|
+
deriveFarmVaultsAuthority: deriveFarmVaultsAuthority,
|
|
3303
|
+
deriveKFarmsTreasuryVaultAuthority: deriveKFarmsTreasuryVaultAuthority,
|
|
3304
|
+
deriveMarketAuthorityAddress: deriveMarketAuthorityAddress,
|
|
3305
|
+
deriveObligationFarmAddress: deriveObligationFarmAddress,
|
|
3306
|
+
deriveReserveCollateralMint: deriveReserveCollateralMint,
|
|
3307
|
+
deriveReserveCollateralSupply: deriveReserveCollateralSupply,
|
|
3308
|
+
deriveReserveLiquiditySupply: deriveReserveLiquiditySupply,
|
|
3309
|
+
deriveRewardsTreasuryVault: deriveRewardsTreasuryVault,
|
|
3310
|
+
deriveRewardsVault: deriveRewardsVault,
|
|
3311
|
+
deriveUserMetadataAddress: deriveUserMetadataAddress,
|
|
3312
|
+
deriveVanillaObligationAddress: deriveVanillaObligationAddress
|
|
3313
|
+
});
|
|
3314
|
+
|
|
3100
3315
|
exports.ATOMIC_SWAP_BORROW_DISCRIMINATOR = ATOMIC_SWAP_BORROW_DISCRIMINATOR;
|
|
3101
3316
|
exports.ATOMIC_SWAP_REPAY_DISCRIMINATOR = ATOMIC_SWAP_REPAY_DISCRIMINATOR;
|
|
3102
3317
|
exports.CLAIM_RENT_DISCRIMINATOR = CLAIM_RENT_DISCRIMINATOR;
|
|
@@ -3127,6 +3342,7 @@ exports.deriveControllerPda = deriveControllerPda;
|
|
|
3127
3342
|
exports.deriveIntegrationPda = deriveIntegrationPda;
|
|
3128
3343
|
exports.derivePermissionPda = derivePermissionPda;
|
|
3129
3344
|
exports.deriveReservePda = deriveReservePda;
|
|
3345
|
+
exports.drift = index$1;
|
|
3130
3346
|
exports.fetchAllController = fetchAllController;
|
|
3131
3347
|
exports.fetchAllIntegration = fetchAllIntegration;
|
|
3132
3348
|
exports.fetchAllMaybeController = fetchAllMaybeController;
|
|
@@ -3386,6 +3602,7 @@ exports.isIntegrationState = isIntegrationState;
|
|
|
3386
3602
|
exports.isPullArgs = isPullArgs;
|
|
3387
3603
|
exports.isPushArgs = isPushArgs;
|
|
3388
3604
|
exports.isSvmAlmControllerEvent = isSvmAlmControllerEvent;
|
|
3605
|
+
exports.kamino = index;
|
|
3389
3606
|
exports.parseAtomicSwapBorrowInstruction = parseAtomicSwapBorrowInstruction;
|
|
3390
3607
|
exports.parseAtomicSwapRepayInstruction = parseAtomicSwapRepayInstruction;
|
|
3391
3608
|
exports.parseClaimRentInstruction = parseClaimRentInstruction;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/integrations/drift/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Address } from "@solana/addresses";
|
|
2
|
+
export declare const DRIFT_PROGRAM_ID: Address;
|
|
3
|
+
export declare const deriveDriftSigner: () => Promise<Address<string>>;
|
|
4
|
+
export declare const deriveDriftSignerNonce: () => Promise<number>;
|
|
5
|
+
export declare const deriveStatePda: () => Promise<Address<string>>;
|
|
6
|
+
export declare const deriveUserStatsPda: (authority: Address) => Promise<Address<string>>;
|
|
7
|
+
export declare const deriveUserPda: (authority: Address, subAccountId: number) => Promise<Address<string>>;
|
|
8
|
+
export declare const deriveSpotMarketPda: (marketIndex: number) => Promise<Address<string>>;
|
|
9
|
+
export declare const deriveSpotMarketVaultPda: (marketIndex: number) => Promise<Address<string>>;
|
|
10
|
+
//# sourceMappingURL=pdas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pdas.d.ts","sourceRoot":"","sources":["../../../src/integrations/drift/pdas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EAGR,MAAM,mBAAmB,CAAC;AAE3B,eAAO,MAAM,gBAAgB,EACsB,OAAO,CAAC;AAG3D,eAAO,MAAM,iBAAiB,gCAO7B,CAAC;AAGF,eAAO,MAAM,sBAAsB,QAAa,OAAO,CAAC,MAAM,CAO7D,CAAC;AAGF,eAAO,MAAM,cAAc,gCAO1B,CAAC;AAGF,eAAO,MAAM,kBAAkB,GAAU,WAAW,OAAO,6BAS1D,CAAC;AAGF,eAAO,MAAM,aAAa,GACxB,WAAW,OAAO,EAClB,cAAc,MAAM,6BAcrB,CAAC;AAGF,eAAO,MAAM,mBAAmB,GAAU,aAAa,MAAM,6BAU5D,CAAC;AAGF,eAAO,MAAM,wBAAwB,GAAU,aAAa,MAAM,6BAUjE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/integrations/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/integrations/kamino/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Address } from "@solana/addresses";
|
|
2
|
+
export declare const KAMINO_LEND_PROGRAM_ID: Address;
|
|
3
|
+
export declare const KAMINO_FARMS_PROGRAM_ID: Address;
|
|
4
|
+
export declare const deriveVanillaObligationAddress: (obligationId: number, authority: Address, market: Address) => Promise<Address<string>>;
|
|
5
|
+
export declare const deriveReserveLiquiditySupply: (market: Address, reserveLiquidityMint: Address) => Promise<Address<string>>;
|
|
6
|
+
export declare const deriveReserveCollateralMint: (market: Address, reserveLiquidityMint: Address) => Promise<Address<string>>;
|
|
7
|
+
export declare const deriveReserveCollateralSupply: (market: Address, reserveLiquidityMint: Address) => Promise<Address<string>>;
|
|
8
|
+
export declare const deriveMarketAuthorityAddress: (market: Address) => Promise<{
|
|
9
|
+
address: Address<string>;
|
|
10
|
+
bump: import("@solana/addresses").ProgramDerivedAddressBump;
|
|
11
|
+
}>;
|
|
12
|
+
export declare const deriveObligationFarmAddress: (reserveFarm: Address, obligation: Address) => Promise<Address<string>>;
|
|
13
|
+
export declare const deriveUserMetadataAddress: (user: Address) => Promise<{
|
|
14
|
+
address: Address<string>;
|
|
15
|
+
bump: import("@solana/addresses").ProgramDerivedAddressBump;
|
|
16
|
+
}>;
|
|
17
|
+
export declare const deriveRewardsVault: (farmState: Address, rewardsVaultMint: Address) => Promise<Address<string>>;
|
|
18
|
+
export declare const deriveRewardsTreasuryVault: (globalConfig: Address, rewardsVaultMint: Address) => Promise<Address<string>>;
|
|
19
|
+
export declare const deriveFarmVaultsAuthority: (farmState: Address) => Promise<{
|
|
20
|
+
address: Address<string>;
|
|
21
|
+
bump: import("@solana/addresses").ProgramDerivedAddressBump;
|
|
22
|
+
}>;
|
|
23
|
+
export declare const deriveKFarmsTreasuryVaultAuthority: (globalConfig: Address) => Promise<{
|
|
24
|
+
address: Address<string>;
|
|
25
|
+
bump: import("@solana/addresses").ProgramDerivedAddressBump;
|
|
26
|
+
}>;
|
|
27
|
+
//# sourceMappingURL=pdas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pdas.d.ts","sourceRoot":"","sources":["../../../src/integrations/kamino/pdas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EAGR,MAAM,mBAAmB,CAAC;AAE3B,eAAO,MAAM,sBAAsB,EACgB,OAAO,CAAC;AAE3D,eAAO,MAAM,uBAAuB,EACgB,OAAO,CAAC;AAK5D,eAAO,MAAM,8BAA8B,GACzC,cAAc,MAAM,EACpB,WAAW,OAAO,EAClB,QAAQ,OAAO,6BAuBhB,CAAC;AAGF,eAAO,MAAM,4BAA4B,GACvC,QAAQ,OAAO,EACf,sBAAsB,OAAO,6BAc9B,CAAC;AAGF,eAAO,MAAM,2BAA2B,GACtC,QAAQ,OAAO,EACf,sBAAsB,OAAO,6BAc9B,CAAC;AAGF,eAAO,MAAM,6BAA6B,GACxC,QAAQ,OAAO,EACf,sBAAsB,OAAO,6BAc9B,CAAC;AAGF,eAAO,MAAM,4BAA4B,GAAU,QAAQ,OAAO;;;EASjE,CAAC;AAGF,eAAO,MAAM,2BAA2B,GACtC,aAAa,OAAO,EACpB,YAAY,OAAO,6BAcpB,CAAC;AAGF,eAAO,MAAM,yBAAyB,GAAU,MAAM,OAAO;;;EAS5D,CAAC;AAGF,eAAO,MAAM,kBAAkB,GAC7B,WAAW,OAAO,EAClB,kBAAkB,OAAO,6BAc1B,CAAC;AAGF,eAAO,MAAM,0BAA0B,GACrC,cAAc,OAAO,EACrB,kBAAkB,OAAO,6BAc1B,CAAC;AAGF,eAAO,MAAM,yBAAyB,GAAU,WAAW,OAAO;;;EASjE,CAAC;AAGF,eAAO,MAAM,kCAAkC,GAC7C,cAAc,OAAO;;;EAUtB,CAAC"}
|