@velocity-exchange/sdk 0.3.0 → 0.4.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/CHANGELOG.md +51 -0
- package/lib/browser/accounts/basicUserAccountSubscriber.d.ts +18 -0
- package/lib/browser/accounts/basicUserAccountSubscriber.js +18 -0
- package/lib/browser/accounts/basicUserStatsAccountSubscriber.d.ts +18 -0
- package/lib/browser/accounts/basicUserStatsAccountSubscriber.js +18 -0
- package/lib/browser/accounts/bulkAccountLoader.d.ts +52 -0
- package/lib/browser/accounts/bulkAccountLoader.js +51 -0
- package/lib/browser/accounts/bulkUserStatsSubscription.d.ts +9 -2
- package/lib/browser/accounts/bulkUserStatsSubscription.js +9 -2
- package/lib/browser/accounts/bulkUserSubscription.d.ts +8 -2
- package/lib/browser/accounts/bulkUserSubscription.js +8 -2
- package/lib/browser/accounts/customizedCadenceBulkAccountLoader.d.ts +37 -0
- package/lib/browser/accounts/customizedCadenceBulkAccountLoader.js +37 -0
- package/lib/browser/accounts/fetch.d.ts +59 -2
- package/lib/browser/accounts/fetch.js +57 -2
- package/lib/browser/accounts/grpcAccountSubscriber.d.ts +30 -0
- package/lib/browser/accounts/grpcAccountSubscriber.js +30 -0
- package/lib/browser/accounts/grpcInsuranceFundStakeAccountSubscriber.d.ts +16 -0
- package/lib/browser/accounts/grpcInsuranceFundStakeAccountSubscriber.js +16 -0
- package/lib/browser/accounts/grpcMultiAccountSubscriber.d.ts +60 -1
- package/lib/browser/accounts/grpcMultiAccountSubscriber.js +118 -37
- package/lib/browser/accounts/grpcMultiUserAccountSubscriber.d.ts +32 -0
- package/lib/browser/accounts/grpcMultiUserAccountSubscriber.js +40 -12
- package/lib/browser/accounts/grpcProgramAccountSubscriber.d.ts +33 -0
- package/lib/browser/accounts/grpcProgramAccountSubscriber.js +33 -0
- package/lib/browser/accounts/grpcUserAccountSubscriber.d.ts +15 -0
- package/lib/browser/accounts/grpcUserAccountSubscriber.js +15 -0
- package/lib/browser/accounts/grpcUserStatsAccountSubscriber.d.ts +15 -0
- package/lib/browser/accounts/grpcUserStatsAccountSubscriber.js +15 -0
- package/lib/browser/accounts/grpcVelocityClientAccountSubscriber.d.ts +41 -0
- package/lib/browser/accounts/grpcVelocityClientAccountSubscriber.js +41 -0
- package/lib/browser/accounts/grpcVelocityClientAccountSubscriberV2.d.ts +116 -0
- package/lib/browser/accounts/grpcVelocityClientAccountSubscriberV2.js +152 -1
- package/lib/browser/accounts/laserProgramAccountSubscriber.d.ts +34 -0
- package/lib/browser/accounts/laserProgramAccountSubscriber.js +34 -0
- package/lib/browser/accounts/oneShotUserAccountSubscriber.d.ts +19 -0
- package/lib/browser/accounts/oneShotUserAccountSubscriber.js +19 -0
- package/lib/browser/accounts/oneShotUserStatsAccountSubscriber.d.ts +19 -0
- package/lib/browser/accounts/oneShotUserStatsAccountSubscriber.js +19 -0
- package/lib/browser/accounts/pollingInsuranceFundStakeAccountSubscriber.d.ts +31 -0
- package/lib/browser/accounts/pollingInsuranceFundStakeAccountSubscriber.js +31 -0
- package/lib/browser/accounts/pollingOracleAccountSubscriber.d.ts +19 -0
- package/lib/browser/accounts/pollingOracleAccountSubscriber.js +21 -2
- package/lib/browser/accounts/pollingTokenAccountSubscriber.d.ts +22 -0
- package/lib/browser/accounts/pollingTokenAccountSubscriber.js +22 -0
- package/lib/browser/accounts/pollingUserAccountSubscriber.d.ts +32 -0
- package/lib/browser/accounts/pollingUserAccountSubscriber.js +32 -0
- package/lib/browser/accounts/pollingUserStatsAccountSubscriber.d.ts +22 -0
- package/lib/browser/accounts/pollingUserStatsAccountSubscriber.js +22 -0
- package/lib/browser/accounts/pollingVelocityClientAccountSubscriber.d.ts +83 -0
- package/lib/browser/accounts/pollingVelocityClientAccountSubscriber.js +84 -1
- package/lib/browser/accounts/testBulkAccountLoader.d.ts +8 -0
- package/lib/browser/accounts/testBulkAccountLoader.js +8 -0
- package/lib/browser/accounts/types.d.ts +149 -0
- package/lib/browser/accounts/types.js +13 -0
- package/lib/browser/accounts/utils.d.ts +18 -0
- package/lib/browser/accounts/utils.js +32 -16
- package/lib/browser/accounts/webSocketAccountSubscriber.d.ts +41 -0
- package/lib/browser/accounts/webSocketAccountSubscriber.js +41 -0
- package/lib/browser/accounts/webSocketAccountSubscriberV2.d.ts +31 -0
- package/lib/browser/accounts/webSocketAccountSubscriberV2.js +31 -23
- package/lib/browser/accounts/webSocketInsuranceFundStakeAccountSubscriber.d.ts +27 -0
- package/lib/browser/accounts/webSocketInsuranceFundStakeAccountSubscriber.js +27 -0
- package/lib/browser/accounts/webSocketProgramAccountSubscriber.d.ts +36 -0
- package/lib/browser/accounts/webSocketProgramAccountSubscriber.js +36 -0
- package/lib/browser/accounts/webSocketProgramAccountSubscriberV2.d.ts +21 -0
- package/lib/browser/accounts/webSocketProgramAccountSubscriberV2.js +25 -0
- package/lib/browser/accounts/webSocketProgramAccountsSubscriberV2.d.ts +21 -0
- package/lib/browser/accounts/webSocketProgramAccountsSubscriberV2.js +21 -0
- package/lib/browser/accounts/webSocketUserAccountSubscriber.d.ts +26 -0
- package/lib/browser/accounts/webSocketUserAccountSubscriber.js +26 -0
- package/lib/browser/accounts/webSocketUserStatsAccountSubsriber.d.ts +20 -0
- package/lib/browser/accounts/webSocketUserStatsAccountSubsriber.js +20 -0
- package/lib/browser/accounts/webSocketVelocityClientAccountSubscriber.d.ts +121 -0
- package/lib/browser/accounts/webSocketVelocityClientAccountSubscriber.js +123 -2
- package/lib/browser/accounts/webSocketVelocityClientAccountSubscriberV2.d.ts +96 -0
- package/lib/browser/accounts/webSocketVelocityClientAccountSubscriberV2.js +108 -0
- package/lib/browser/accounts/websocketProgramUserAccountSubscriber.d.ts +28 -0
- package/lib/browser/accounts/websocketProgramUserAccountSubscriber.js +33 -0
- package/lib/browser/addresses/marketAddresses.d.ts +10 -0
- package/lib/browser/addresses/marketAddresses.js +10 -0
- package/lib/browser/addresses/pda.d.ts +214 -2
- package/lib/browser/addresses/pda.js +217 -5
- package/lib/browser/adminClient.d.ts +2136 -4
- package/lib/browser/adminClient.js +2150 -4
- package/lib/browser/auctionSubscriber/auctionSubscriber.d.ts +15 -0
- package/lib/browser/auctionSubscriber/auctionSubscriber.js +15 -0
- package/lib/browser/auctionSubscriber/auctionSubscriberGrpc.d.ts +19 -0
- package/lib/browser/auctionSubscriber/auctionSubscriberGrpc.js +19 -0
- package/lib/browser/auctionSubscriber/index.d.ts +6 -0
- package/lib/browser/auctionSubscriber/index.js +6 -0
- package/lib/browser/auctionSubscriber/types.d.ts +7 -0
- package/lib/browser/blockhashSubscriber/BlockhashSubscriber.d.ts +33 -0
- package/lib/browser/blockhashSubscriber/BlockhashSubscriber.js +33 -0
- package/lib/browser/blockhashSubscriber/index.d.ts +5 -0
- package/lib/browser/blockhashSubscriber/index.js +5 -0
- package/lib/browser/blockhashSubscriber/types.d.ts +5 -0
- package/lib/browser/clock/clockSubscriber.d.ts +24 -0
- package/lib/browser/clock/clockSubscriber.js +22 -0
- package/lib/browser/config.d.ts +58 -4
- package/lib/browser/config.js +88 -21
- package/lib/browser/constants/numericConstants.d.ts +67 -0
- package/lib/browser/constants/numericConstants.js +68 -1
- package/lib/browser/constants/perpMarkets.d.ts +10 -0
- package/lib/browser/constants/perpMarkets.js +40 -908
- package/lib/browser/constants/spotMarkets.d.ts +13 -0
- package/lib/browser/constants/spotMarkets.js +16 -742
- package/lib/browser/constants/txConstants.d.ts +1 -0
- package/lib/browser/constants/txConstants.js +1 -0
- package/lib/browser/core/VelocityCore.d.ts +285 -8
- package/lib/browser/core/VelocityCore.js +281 -8
- package/lib/browser/core/instructions/deposit.d.ts +22 -0
- package/lib/browser/core/instructions/deposit.js +22 -0
- package/lib/browser/core/instructions/fill.d.ts +17 -0
- package/lib/browser/core/instructions/fill.js +17 -0
- package/lib/browser/core/instructions/funding.d.ts +12 -0
- package/lib/browser/core/instructions/funding.js +12 -0
- package/lib/browser/core/instructions/liquidation.d.ts +18 -0
- package/lib/browser/core/instructions/liquidation.js +18 -0
- package/lib/browser/core/instructions/orders.d.ts +28 -0
- package/lib/browser/core/instructions/orders.js +28 -0
- package/lib/browser/core/instructions/perpOrders.d.ts +106 -0
- package/lib/browser/core/instructions/perpOrders.js +106 -0
- package/lib/browser/core/instructions/settlement.d.ts +14 -0
- package/lib/browser/core/instructions/settlement.js +14 -0
- package/lib/browser/core/instructions/trigger.d.ts +15 -0
- package/lib/browser/core/instructions/trigger.js +15 -0
- package/lib/browser/core/instructions/withdraw.d.ts +21 -0
- package/lib/browser/core/instructions/withdraw.js +21 -0
- package/lib/browser/core/remainingAccounts.d.ts +47 -3
- package/lib/browser/core/remainingAccounts.js +20 -0
- package/lib/browser/core/signedMsg.d.ts +38 -0
- package/lib/browser/core/signedMsg.js +33 -0
- package/lib/browser/decode/customCoder.d.ts +39 -3
- package/lib/browser/decode/customCoder.js +45 -3
- package/lib/browser/decode/user.d.ts +22 -0
- package/lib/browser/decode/user.js +22 -0
- package/lib/browser/dlob/DLOB.d.ts +502 -53
- package/lib/browser/dlob/DLOB.js +540 -98
- package/lib/browser/dlob/DLOBNode.d.ts +86 -4
- package/lib/browser/dlob/DLOBNode.js +37 -4
- package/lib/browser/dlob/DLOBSubscriber.d.ts +39 -12
- package/lib/browser/dlob/DLOBSubscriber.js +42 -12
- package/lib/browser/dlob/NodeList.d.ts +69 -0
- package/lib/browser/dlob/NodeList.js +66 -0
- package/lib/browser/dlob/orderBookLevels.d.ts +106 -13
- package/lib/browser/dlob/orderBookLevels.js +84 -14
- package/lib/browser/dlob/types.d.ts +15 -0
- package/lib/browser/events/eventList.d.ts +14 -0
- package/lib/browser/events/eventList.js +14 -0
- package/lib/browser/events/eventSubscriber.d.ts +87 -10
- package/lib/browser/events/eventSubscriber.js +93 -8
- package/lib/browser/events/eventsServerLogProvider.d.ts +22 -0
- package/lib/browser/events/eventsServerLogProvider.js +27 -0
- package/lib/browser/events/fetchLogs.d.ts +31 -0
- package/lib/browser/events/fetchLogs.js +46 -1
- package/lib/browser/events/parse.d.ts +23 -0
- package/lib/browser/events/parse.js +23 -0
- package/lib/browser/events/pollingLogProvider.d.ts +24 -0
- package/lib/browser/events/pollingLogProvider.js +24 -0
- package/lib/browser/events/sort.d.ts +11 -0
- package/lib/browser/events/sort.js +12 -0
- package/lib/browser/events/txEventCache.d.ts +13 -3
- package/lib/browser/events/txEventCache.js +19 -7
- package/lib/browser/events/types.d.ts +118 -2
- package/lib/browser/events/types.js +11 -0
- package/lib/browser/events/webSocketLogProvider.d.ts +23 -0
- package/lib/browser/events/webSocketLogProvider.js +28 -0
- package/lib/browser/factory/oracleClient.js +2 -2
- package/lib/browser/idl/velocity.d.ts +4 -4
- package/lib/browser/idl/velocity.json +4 -4
- package/lib/browser/keypair.d.ts +8 -0
- package/lib/browser/keypair.js +8 -0
- package/lib/browser/marginCalculation.d.ts +134 -2
- package/lib/browser/marginCalculation.js +121 -0
- package/lib/browser/math/amm.d.ts +348 -29
- package/lib/browser/math/amm.js +310 -32
- package/lib/browser/math/auction.d.ts +95 -19
- package/lib/browser/math/auction.js +118 -28
- package/lib/browser/math/bankruptcy.d.ts +46 -0
- package/lib/browser/math/bankruptcy.js +89 -1
- package/lib/browser/math/builder.d.ts +64 -8
- package/lib/browser/math/builder.js +71 -9
- package/lib/browser/math/conversion.d.ts +21 -0
- package/lib/browser/math/conversion.js +21 -0
- package/lib/browser/math/exchangeStatus.d.ts +91 -0
- package/lib/browser/math/exchangeStatus.js +106 -3
- package/lib/browser/math/funding.d.ts +57 -20
- package/lib/browser/math/funding.js +63 -23
- package/lib/browser/math/insurance.d.ts +62 -0
- package/lib/browser/math/insurance.js +62 -0
- package/lib/browser/math/liquidation.d.ts +127 -11
- package/lib/browser/math/liquidation.js +182 -19
- package/lib/browser/math/margin.d.ts +79 -13
- package/lib/browser/math/margin.js +80 -14
- package/lib/browser/math/market.d.ts +135 -15
- package/lib/browser/math/market.js +145 -17
- package/lib/browser/math/oracles.d.ts +113 -0
- package/lib/browser/math/oracles.js +118 -1
- package/lib/browser/math/orders.d.ts +115 -10
- package/lib/browser/math/orders.js +130 -19
- package/lib/browser/math/position.d.ts +80 -33
- package/lib/browser/math/position.js +80 -33
- package/lib/browser/math/repeg.d.ts +48 -10
- package/lib/browser/math/repeg.js +48 -10
- package/lib/browser/math/spotBalance.d.ts +200 -5
- package/lib/browser/math/spotBalance.js +239 -10
- package/lib/browser/math/spotMarket.d.ts +36 -3
- package/lib/browser/math/spotMarket.js +36 -3
- package/lib/browser/math/spotPosition.d.ts +72 -0
- package/lib/browser/math/spotPosition.js +62 -0
- package/lib/browser/math/state.d.ts +31 -0
- package/lib/browser/math/state.js +31 -0
- package/lib/browser/math/superStake.d.ts +126 -2
- package/lib/browser/math/superStake.js +123 -3
- package/lib/browser/math/tiers.d.ts +29 -0
- package/lib/browser/math/tiers.js +29 -0
- package/lib/browser/math/trade.d.ts +102 -51
- package/lib/browser/math/trade.js +101 -55
- package/lib/browser/math/utils.d.ts +71 -9
- package/lib/browser/math/utils.js +71 -9
- package/lib/browser/memcmp.d.ts +94 -0
- package/lib/browser/memcmp.js +103 -2
- package/lib/browser/oracles/oracleClientCache.d.ts +16 -0
- package/lib/browser/oracles/oracleClientCache.js +16 -0
- package/lib/browser/oracles/oracleId.d.ts +31 -0
- package/lib/browser/oracles/oracleId.js +39 -8
- package/lib/browser/oracles/prelaunchOracleClient.d.ts +20 -0
- package/lib/browser/oracles/prelaunchOracleClient.js +20 -0
- package/lib/browser/oracles/pythClient.d.ts +31 -0
- package/lib/browser/oracles/pythClient.js +32 -1
- package/lib/browser/oracles/pythLazerClient.d.ts +34 -0
- package/lib/browser/oracles/pythLazerClient.js +35 -1
- package/lib/browser/oracles/quoteAssetOracleClient.d.ts +18 -0
- package/lib/browser/oracles/quoteAssetOracleClient.js +18 -0
- package/lib/browser/oracles/strictOraclePrice.d.ts +21 -0
- package/lib/browser/oracles/strictOraclePrice.js +21 -0
- package/lib/browser/oracles/types.d.ts +45 -0
- package/lib/browser/oracles/utils.d.ts +20 -0
- package/lib/browser/oracles/utils.js +20 -0
- package/lib/browser/orderParams.d.ts +42 -4
- package/lib/browser/orderParams.js +42 -4
- package/lib/browser/orderSubscriber/OrderSubscriber.d.ts +56 -0
- package/lib/browser/orderSubscriber/OrderSubscriber.js +56 -0
- package/lib/browser/orderSubscriber/PollingSubscription.d.ts +11 -0
- package/lib/browser/orderSubscriber/PollingSubscription.js +11 -0
- package/lib/browser/orderSubscriber/WebsocketSubscription.d.ts +18 -0
- package/lib/browser/orderSubscriber/WebsocketSubscription.js +18 -0
- package/lib/browser/orderSubscriber/grpcSubscription.d.ts +16 -0
- package/lib/browser/orderSubscriber/grpcSubscription.js +16 -0
- package/lib/browser/orderSubscriber/types.d.ts +9 -0
- package/lib/browser/priorityFee/averageOverSlotsStrategy.d.ts +1 -0
- package/lib/browser/priorityFee/averageOverSlotsStrategy.js +1 -0
- package/lib/browser/priorityFee/averageStrategy.d.ts +1 -0
- package/lib/browser/priorityFee/averageStrategy.js +1 -0
- package/lib/browser/priorityFee/ewmaStrategy.d.ts +10 -0
- package/lib/browser/priorityFee/ewmaStrategy.js +10 -0
- package/lib/browser/priorityFee/heliusPriorityFeeMethod.d.ts +13 -0
- package/lib/browser/priorityFee/heliusPriorityFeeMethod.js +9 -2
- package/lib/browser/priorityFee/maxOverSlotsStrategy.d.ts +1 -0
- package/lib/browser/priorityFee/maxOverSlotsStrategy.js +1 -0
- package/lib/browser/priorityFee/maxStrategy.d.ts +1 -0
- package/lib/browser/priorityFee/maxStrategy.js +1 -0
- package/lib/browser/priorityFee/priorityFeeSubscriber.d.ts +39 -0
- package/lib/browser/priorityFee/priorityFeeSubscriber.js +39 -0
- package/lib/browser/priorityFee/priorityFeeSubscriberMap.d.ts +20 -1
- package/lib/browser/priorityFee/priorityFeeSubscriberMap.js +21 -2
- package/lib/browser/priorityFee/solanaPriorityFeeMethod.d.ts +12 -0
- package/lib/browser/priorityFee/solanaPriorityFeeMethod.js +10 -0
- package/lib/browser/priorityFee/types.d.ts +32 -0
- package/lib/browser/priorityFee/types.js +5 -0
- package/lib/browser/priorityFee/velocityPriorityFeeMethod.d.ts +11 -0
- package/lib/browser/priorityFee/velocityPriorityFeeMethod.js +8 -0
- package/lib/browser/slot/SlotSubscriber.d.ts +18 -0
- package/lib/browser/slot/SlotSubscriber.js +16 -0
- package/lib/browser/slot/SlothashSubscriber.d.ts +26 -0
- package/lib/browser/slot/SlothashSubscriber.js +25 -1
- package/lib/browser/tx/baseTxSender.d.ts +163 -0
- package/lib/browser/tx/baseTxSender.js +174 -6
- package/lib/browser/tx/blockhashFetcher/baseBlockhashFetcher.d.ts +12 -0
- package/lib/browser/tx/blockhashFetcher/baseBlockhashFetcher.js +12 -0
- package/lib/browser/tx/blockhashFetcher/cachedBlockhashFetcher.d.ts +15 -0
- package/lib/browser/tx/blockhashFetcher/cachedBlockhashFetcher.js +15 -0
- package/lib/browser/tx/blockhashFetcher/types.d.ts +4 -0
- package/lib/browser/tx/fastSingleTxSender.d.ts +47 -0
- package/lib/browser/tx/fastSingleTxSender.js +48 -1
- package/lib/browser/tx/forwardOnlyTxSender.d.ts +48 -0
- package/lib/browser/tx/forwardOnlyTxSender.js +48 -0
- package/lib/browser/tx/reportTransactionError.d.ts +18 -6
- package/lib/browser/tx/reportTransactionError.js +18 -6
- package/lib/browser/tx/retryTxSender.d.ts +40 -0
- package/lib/browser/tx/retryTxSender.js +39 -0
- package/lib/browser/tx/txHandler.d.ts +146 -35
- package/lib/browser/tx/txHandler.js +132 -32
- package/lib/browser/tx/txParamProcessor.d.ts +47 -0
- package/lib/browser/tx/txParamProcessor.js +47 -0
- package/lib/browser/tx/types.d.ts +46 -0
- package/lib/browser/tx/types.js +5 -0
- package/lib/browser/tx/utils.d.ts +26 -0
- package/lib/browser/tx/utils.js +26 -0
- package/lib/browser/tx/whileValidTxSender.d.ts +82 -0
- package/lib/browser/tx/whileValidTxSender.js +81 -0
- package/lib/browser/types.d.ts +781 -13
- package/lib/browser/types.js +126 -9
- package/lib/browser/user.d.ts +645 -84
- package/lib/browser/user.js +779 -96
- package/lib/browser/userMap/PollingSubscription.d.ts +10 -0
- package/lib/browser/userMap/PollingSubscription.js +14 -2
- package/lib/browser/userMap/WebsocketSubscription.d.ts +9 -0
- package/lib/browser/userMap/WebsocketSubscription.js +9 -0
- package/lib/browser/userMap/grpcSubscription.d.ts +8 -0
- package/lib/browser/userMap/grpcSubscription.js +8 -0
- package/lib/browser/userMap/referrerMap.d.ts +72 -2
- package/lib/browser/userMap/referrerMap.js +84 -2
- package/lib/browser/userMap/revenueShareEscrowMap.d.ts +37 -10
- package/lib/browser/userMap/revenueShareEscrowMap.js +38 -11
- package/lib/browser/userMap/userMap.d.ts +81 -3
- package/lib/browser/userMap/userMap.js +81 -4
- package/lib/browser/userMap/userMapConfig.d.ts +23 -0
- package/lib/browser/userMap/userStatsMap.d.ts +22 -0
- package/lib/browser/userMap/userStatsMap.js +22 -0
- package/lib/browser/userName.d.ts +16 -0
- package/lib/browser/userName.js +16 -0
- package/lib/browser/userStats.d.ts +28 -1
- package/lib/browser/userStats.js +28 -1
- package/lib/browser/util/TransactionConfirmationManager.d.ts +33 -0
- package/lib/browser/util/TransactionConfirmationManager.js +33 -0
- package/lib/browser/util/chainClock.d.ts +24 -0
- package/lib/browser/util/chainClock.js +20 -0
- package/lib/browser/util/computeUnits.d.ts +32 -0
- package/lib/browser/util/computeUnits.js +32 -0
- package/lib/browser/util/digest.d.ts +17 -0
- package/lib/browser/util/digest.js +17 -0
- package/lib/browser/util/ed25519Utils.d.ts +12 -2
- package/lib/browser/util/ed25519Utils.js +12 -2
- package/lib/browser/util/promiseTimeout.d.ts +9 -0
- package/lib/browser/util/promiseTimeout.js +9 -0
- package/lib/browser/velocityClient.d.ts +3322 -215
- package/lib/browser/velocityClient.js +3412 -245
- package/lib/browser/wallet.d.ts +37 -0
- package/lib/browser/wallet.js +37 -0
- package/lib/node/accounts/basicUserAccountSubscriber.d.ts +18 -0
- package/lib/node/accounts/basicUserAccountSubscriber.d.ts.map +1 -1
- package/lib/node/accounts/basicUserAccountSubscriber.js +18 -0
- package/lib/node/accounts/basicUserStatsAccountSubscriber.d.ts +18 -0
- package/lib/node/accounts/basicUserStatsAccountSubscriber.d.ts.map +1 -1
- package/lib/node/accounts/basicUserStatsAccountSubscriber.js +18 -0
- package/lib/node/accounts/bulkAccountLoader.d.ts +52 -0
- package/lib/node/accounts/bulkAccountLoader.d.ts.map +1 -1
- package/lib/node/accounts/bulkAccountLoader.js +51 -0
- package/lib/node/accounts/bulkUserStatsSubscription.d.ts +9 -2
- package/lib/node/accounts/bulkUserStatsSubscription.d.ts.map +1 -1
- package/lib/node/accounts/bulkUserStatsSubscription.js +9 -2
- package/lib/node/accounts/bulkUserSubscription.d.ts +8 -2
- package/lib/node/accounts/bulkUserSubscription.d.ts.map +1 -1
- package/lib/node/accounts/bulkUserSubscription.js +8 -2
- package/lib/node/accounts/customizedCadenceBulkAccountLoader.d.ts +37 -0
- package/lib/node/accounts/customizedCadenceBulkAccountLoader.d.ts.map +1 -1
- package/lib/node/accounts/customizedCadenceBulkAccountLoader.js +37 -0
- package/lib/node/accounts/fetch.d.ts +59 -2
- package/lib/node/accounts/fetch.d.ts.map +1 -1
- package/lib/node/accounts/fetch.js +57 -2
- package/lib/node/accounts/grpcAccountSubscriber.d.ts +30 -0
- package/lib/node/accounts/grpcAccountSubscriber.d.ts.map +1 -1
- package/lib/node/accounts/grpcAccountSubscriber.js +30 -0
- package/lib/node/accounts/grpcInsuranceFundStakeAccountSubscriber.d.ts +16 -0
- package/lib/node/accounts/grpcInsuranceFundStakeAccountSubscriber.d.ts.map +1 -1
- package/lib/node/accounts/grpcInsuranceFundStakeAccountSubscriber.js +16 -0
- package/lib/node/accounts/grpcMultiAccountSubscriber.d.ts +60 -1
- package/lib/node/accounts/grpcMultiAccountSubscriber.d.ts.map +1 -1
- package/lib/node/accounts/grpcMultiAccountSubscriber.js +118 -37
- package/lib/node/accounts/grpcMultiUserAccountSubscriber.d.ts +32 -0
- package/lib/node/accounts/grpcMultiUserAccountSubscriber.d.ts.map +1 -1
- package/lib/node/accounts/grpcMultiUserAccountSubscriber.js +40 -12
- package/lib/node/accounts/grpcProgramAccountSubscriber.d.ts +33 -0
- package/lib/node/accounts/grpcProgramAccountSubscriber.d.ts.map +1 -1
- package/lib/node/accounts/grpcProgramAccountSubscriber.js +33 -0
- package/lib/node/accounts/grpcUserAccountSubscriber.d.ts +15 -0
- package/lib/node/accounts/grpcUserAccountSubscriber.d.ts.map +1 -1
- package/lib/node/accounts/grpcUserAccountSubscriber.js +15 -0
- package/lib/node/accounts/grpcUserStatsAccountSubscriber.d.ts +15 -0
- package/lib/node/accounts/grpcUserStatsAccountSubscriber.d.ts.map +1 -1
- package/lib/node/accounts/grpcUserStatsAccountSubscriber.js +15 -0
- package/lib/node/accounts/grpcVelocityClientAccountSubscriber.d.ts +41 -0
- package/lib/node/accounts/grpcVelocityClientAccountSubscriber.d.ts.map +1 -1
- package/lib/node/accounts/grpcVelocityClientAccountSubscriber.js +41 -0
- package/lib/node/accounts/grpcVelocityClientAccountSubscriberV2.d.ts +116 -0
- package/lib/node/accounts/grpcVelocityClientAccountSubscriberV2.d.ts.map +1 -1
- package/lib/node/accounts/grpcVelocityClientAccountSubscriberV2.js +152 -1
- package/lib/node/accounts/laserProgramAccountSubscriber.d.ts +34 -0
- package/lib/node/accounts/laserProgramAccountSubscriber.d.ts.map +1 -1
- package/lib/node/accounts/laserProgramAccountSubscriber.js +34 -0
- package/lib/node/accounts/oneShotUserAccountSubscriber.d.ts +19 -0
- package/lib/node/accounts/oneShotUserAccountSubscriber.d.ts.map +1 -1
- package/lib/node/accounts/oneShotUserAccountSubscriber.js +19 -0
- package/lib/node/accounts/oneShotUserStatsAccountSubscriber.d.ts +19 -0
- package/lib/node/accounts/oneShotUserStatsAccountSubscriber.d.ts.map +1 -1
- package/lib/node/accounts/oneShotUserStatsAccountSubscriber.js +19 -0
- package/lib/node/accounts/pollingInsuranceFundStakeAccountSubscriber.d.ts +31 -0
- package/lib/node/accounts/pollingInsuranceFundStakeAccountSubscriber.d.ts.map +1 -1
- package/lib/node/accounts/pollingInsuranceFundStakeAccountSubscriber.js +31 -0
- package/lib/node/accounts/pollingOracleAccountSubscriber.d.ts +19 -0
- package/lib/node/accounts/pollingOracleAccountSubscriber.d.ts.map +1 -1
- package/lib/node/accounts/pollingOracleAccountSubscriber.js +21 -2
- package/lib/node/accounts/pollingTokenAccountSubscriber.d.ts +22 -0
- package/lib/node/accounts/pollingTokenAccountSubscriber.d.ts.map +1 -1
- package/lib/node/accounts/pollingTokenAccountSubscriber.js +22 -0
- package/lib/node/accounts/pollingUserAccountSubscriber.d.ts +32 -0
- package/lib/node/accounts/pollingUserAccountSubscriber.d.ts.map +1 -1
- package/lib/node/accounts/pollingUserAccountSubscriber.js +32 -0
- package/lib/node/accounts/pollingUserStatsAccountSubscriber.d.ts +22 -0
- package/lib/node/accounts/pollingUserStatsAccountSubscriber.d.ts.map +1 -1
- package/lib/node/accounts/pollingUserStatsAccountSubscriber.js +22 -0
- package/lib/node/accounts/pollingVelocityClientAccountSubscriber.d.ts +83 -0
- package/lib/node/accounts/pollingVelocityClientAccountSubscriber.d.ts.map +1 -1
- package/lib/node/accounts/pollingVelocityClientAccountSubscriber.js +84 -1
- package/lib/node/accounts/testBulkAccountLoader.d.ts +8 -0
- package/lib/node/accounts/testBulkAccountLoader.d.ts.map +1 -1
- package/lib/node/accounts/testBulkAccountLoader.js +8 -0
- package/lib/node/accounts/types.d.ts +149 -0
- package/lib/node/accounts/types.d.ts.map +1 -1
- package/lib/node/accounts/types.js +13 -0
- package/lib/node/accounts/utils.d.ts +18 -0
- package/lib/node/accounts/utils.d.ts.map +1 -1
- package/lib/node/accounts/utils.js +32 -16
- package/lib/node/accounts/webSocketAccountSubscriber.d.ts +41 -0
- package/lib/node/accounts/webSocketAccountSubscriber.d.ts.map +1 -1
- package/lib/node/accounts/webSocketAccountSubscriber.js +41 -0
- package/lib/node/accounts/webSocketAccountSubscriberV2.d.ts +31 -0
- package/lib/node/accounts/webSocketAccountSubscriberV2.d.ts.map +1 -1
- package/lib/node/accounts/webSocketAccountSubscriberV2.js +31 -23
- package/lib/node/accounts/webSocketInsuranceFundStakeAccountSubscriber.d.ts +27 -0
- package/lib/node/accounts/webSocketInsuranceFundStakeAccountSubscriber.d.ts.map +1 -1
- package/lib/node/accounts/webSocketInsuranceFundStakeAccountSubscriber.js +27 -0
- package/lib/node/accounts/webSocketProgramAccountSubscriber.d.ts +36 -0
- package/lib/node/accounts/webSocketProgramAccountSubscriber.d.ts.map +1 -1
- package/lib/node/accounts/webSocketProgramAccountSubscriber.js +36 -0
- package/lib/node/accounts/webSocketProgramAccountSubscriberV2.d.ts +21 -0
- package/lib/node/accounts/webSocketProgramAccountSubscriberV2.d.ts.map +1 -1
- package/lib/node/accounts/webSocketProgramAccountSubscriberV2.js +25 -0
- package/lib/node/accounts/webSocketProgramAccountsSubscriberV2.d.ts +21 -0
- package/lib/node/accounts/webSocketProgramAccountsSubscriberV2.d.ts.map +1 -1
- package/lib/node/accounts/webSocketProgramAccountsSubscriberV2.js +21 -0
- package/lib/node/accounts/webSocketUserAccountSubscriber.d.ts +26 -0
- package/lib/node/accounts/webSocketUserAccountSubscriber.d.ts.map +1 -1
- package/lib/node/accounts/webSocketUserAccountSubscriber.js +26 -0
- package/lib/node/accounts/webSocketUserStatsAccountSubsriber.d.ts +20 -0
- package/lib/node/accounts/webSocketUserStatsAccountSubsriber.d.ts.map +1 -1
- package/lib/node/accounts/webSocketUserStatsAccountSubsriber.js +20 -0
- package/lib/node/accounts/webSocketVelocityClientAccountSubscriber.d.ts +121 -0
- package/lib/node/accounts/webSocketVelocityClientAccountSubscriber.d.ts.map +1 -1
- package/lib/node/accounts/webSocketVelocityClientAccountSubscriber.js +123 -2
- package/lib/node/accounts/webSocketVelocityClientAccountSubscriberV2.d.ts +96 -0
- package/lib/node/accounts/webSocketVelocityClientAccountSubscriberV2.d.ts.map +1 -1
- package/lib/node/accounts/webSocketVelocityClientAccountSubscriberV2.js +108 -0
- package/lib/node/accounts/websocketProgramUserAccountSubscriber.d.ts +28 -0
- package/lib/node/accounts/websocketProgramUserAccountSubscriber.d.ts.map +1 -1
- package/lib/node/accounts/websocketProgramUserAccountSubscriber.js +33 -0
- package/lib/node/addresses/marketAddresses.d.ts +10 -0
- package/lib/node/addresses/marketAddresses.d.ts.map +1 -1
- package/lib/node/addresses/marketAddresses.js +10 -0
- package/lib/node/addresses/pda.d.ts +214 -2
- package/lib/node/addresses/pda.d.ts.map +1 -1
- package/lib/node/addresses/pda.js +217 -5
- package/lib/node/adminClient.d.ts +2136 -4
- package/lib/node/adminClient.d.ts.map +1 -1
- package/lib/node/adminClient.js +2150 -4
- package/lib/node/auctionSubscriber/auctionSubscriber.d.ts +15 -0
- package/lib/node/auctionSubscriber/auctionSubscriber.d.ts.map +1 -1
- package/lib/node/auctionSubscriber/auctionSubscriber.js +15 -0
- package/lib/node/auctionSubscriber/auctionSubscriberGrpc.d.ts +19 -0
- package/lib/node/auctionSubscriber/auctionSubscriberGrpc.d.ts.map +1 -1
- package/lib/node/auctionSubscriber/auctionSubscriberGrpc.js +19 -0
- package/lib/node/auctionSubscriber/index.d.ts +6 -0
- package/lib/node/auctionSubscriber/index.d.ts.map +1 -1
- package/lib/node/auctionSubscriber/index.js +6 -0
- package/lib/node/auctionSubscriber/types.d.ts +7 -0
- package/lib/node/auctionSubscriber/types.d.ts.map +1 -1
- package/lib/node/blockhashSubscriber/BlockhashSubscriber.d.ts +33 -0
- package/lib/node/blockhashSubscriber/BlockhashSubscriber.d.ts.map +1 -1
- package/lib/node/blockhashSubscriber/BlockhashSubscriber.js +33 -0
- package/lib/node/blockhashSubscriber/index.d.ts +5 -0
- package/lib/node/blockhashSubscriber/index.d.ts.map +1 -1
- package/lib/node/blockhashSubscriber/index.js +5 -0
- package/lib/node/blockhashSubscriber/types.d.ts +5 -0
- package/lib/node/blockhashSubscriber/types.d.ts.map +1 -1
- package/lib/node/clock/clockSubscriber.d.ts +24 -0
- package/lib/node/clock/clockSubscriber.d.ts.map +1 -1
- package/lib/node/clock/clockSubscriber.js +22 -0
- package/lib/node/config.d.ts +58 -4
- package/lib/node/config.d.ts.map +1 -1
- package/lib/node/config.js +88 -21
- package/lib/node/constants/numericConstants.d.ts +67 -0
- package/lib/node/constants/numericConstants.d.ts.map +1 -1
- package/lib/node/constants/numericConstants.js +68 -1
- package/lib/node/constants/perpMarkets.d.ts +10 -0
- package/lib/node/constants/perpMarkets.d.ts.map +1 -1
- package/lib/node/constants/perpMarkets.js +40 -908
- package/lib/node/constants/spotMarkets.d.ts +13 -0
- package/lib/node/constants/spotMarkets.d.ts.map +1 -1
- package/lib/node/constants/spotMarkets.js +16 -742
- package/lib/node/constants/txConstants.d.ts +1 -0
- package/lib/node/constants/txConstants.d.ts.map +1 -1
- package/lib/node/constants/txConstants.js +1 -0
- package/lib/node/core/VelocityCore.d.ts +285 -8
- package/lib/node/core/VelocityCore.d.ts.map +1 -1
- package/lib/node/core/VelocityCore.js +281 -8
- package/lib/node/core/instructions/deposit.d.ts +22 -0
- package/lib/node/core/instructions/deposit.d.ts.map +1 -1
- package/lib/node/core/instructions/deposit.js +22 -0
- package/lib/node/core/instructions/fill.d.ts +17 -0
- package/lib/node/core/instructions/fill.d.ts.map +1 -1
- package/lib/node/core/instructions/fill.js +17 -0
- package/lib/node/core/instructions/funding.d.ts +12 -0
- package/lib/node/core/instructions/funding.d.ts.map +1 -1
- package/lib/node/core/instructions/funding.js +12 -0
- package/lib/node/core/instructions/liquidation.d.ts +18 -0
- package/lib/node/core/instructions/liquidation.d.ts.map +1 -1
- package/lib/node/core/instructions/liquidation.js +18 -0
- package/lib/node/core/instructions/orders.d.ts +28 -0
- package/lib/node/core/instructions/orders.d.ts.map +1 -1
- package/lib/node/core/instructions/orders.js +28 -0
- package/lib/node/core/instructions/perpOrders.d.ts +106 -0
- package/lib/node/core/instructions/perpOrders.d.ts.map +1 -1
- package/lib/node/core/instructions/perpOrders.js +106 -0
- package/lib/node/core/instructions/settlement.d.ts +14 -0
- package/lib/node/core/instructions/settlement.d.ts.map +1 -1
- package/lib/node/core/instructions/settlement.js +14 -0
- package/lib/node/core/instructions/trigger.d.ts +15 -0
- package/lib/node/core/instructions/trigger.d.ts.map +1 -1
- package/lib/node/core/instructions/trigger.js +15 -0
- package/lib/node/core/instructions/withdraw.d.ts +21 -0
- package/lib/node/core/instructions/withdraw.d.ts.map +1 -1
- package/lib/node/core/instructions/withdraw.js +21 -0
- package/lib/node/core/remainingAccounts.d.ts +47 -3
- package/lib/node/core/remainingAccounts.d.ts.map +1 -1
- package/lib/node/core/remainingAccounts.js +20 -0
- package/lib/node/core/signedMsg.d.ts +38 -0
- package/lib/node/core/signedMsg.d.ts.map +1 -1
- package/lib/node/core/signedMsg.js +33 -0
- package/lib/node/decode/customCoder.d.ts +39 -3
- package/lib/node/decode/customCoder.d.ts.map +1 -1
- package/lib/node/decode/customCoder.js +45 -3
- package/lib/node/decode/user.d.ts +22 -0
- package/lib/node/decode/user.d.ts.map +1 -1
- package/lib/node/decode/user.js +22 -0
- package/lib/node/dlob/DLOB.d.ts +502 -53
- package/lib/node/dlob/DLOB.d.ts.map +1 -1
- package/lib/node/dlob/DLOB.js +540 -98
- package/lib/node/dlob/DLOBNode.d.ts +86 -4
- package/lib/node/dlob/DLOBNode.d.ts.map +1 -1
- package/lib/node/dlob/DLOBNode.js +37 -4
- package/lib/node/dlob/DLOBSubscriber.d.ts +39 -12
- package/lib/node/dlob/DLOBSubscriber.d.ts.map +1 -1
- package/lib/node/dlob/DLOBSubscriber.js +42 -12
- package/lib/node/dlob/NodeList.d.ts +69 -0
- package/lib/node/dlob/NodeList.d.ts.map +1 -1
- package/lib/node/dlob/NodeList.js +66 -0
- package/lib/node/dlob/orderBookLevels.d.ts +106 -13
- package/lib/node/dlob/orderBookLevels.d.ts.map +1 -1
- package/lib/node/dlob/orderBookLevels.js +84 -14
- package/lib/node/dlob/types.d.ts +15 -0
- package/lib/node/dlob/types.d.ts.map +1 -1
- package/lib/node/events/eventList.d.ts +14 -0
- package/lib/node/events/eventList.d.ts.map +1 -1
- package/lib/node/events/eventList.js +14 -0
- package/lib/node/events/eventSubscriber.d.ts +87 -10
- package/lib/node/events/eventSubscriber.d.ts.map +1 -1
- package/lib/node/events/eventSubscriber.js +93 -8
- package/lib/node/events/eventsServerLogProvider.d.ts +22 -0
- package/lib/node/events/eventsServerLogProvider.d.ts.map +1 -1
- package/lib/node/events/eventsServerLogProvider.js +27 -0
- package/lib/node/events/fetchLogs.d.ts +31 -0
- package/lib/node/events/fetchLogs.d.ts.map +1 -1
- package/lib/node/events/fetchLogs.js +46 -1
- package/lib/node/events/parse.d.ts +23 -0
- package/lib/node/events/parse.d.ts.map +1 -1
- package/lib/node/events/parse.js +23 -0
- package/lib/node/events/pollingLogProvider.d.ts +24 -0
- package/lib/node/events/pollingLogProvider.d.ts.map +1 -1
- package/lib/node/events/pollingLogProvider.js +24 -0
- package/lib/node/events/sort.d.ts +11 -0
- package/lib/node/events/sort.d.ts.map +1 -1
- package/lib/node/events/sort.js +12 -0
- package/lib/node/events/txEventCache.d.ts +13 -3
- package/lib/node/events/txEventCache.d.ts.map +1 -1
- package/lib/node/events/txEventCache.js +19 -7
- package/lib/node/events/types.d.ts +118 -2
- package/lib/node/events/types.d.ts.map +1 -1
- package/lib/node/events/types.js +11 -0
- package/lib/node/events/webSocketLogProvider.d.ts +23 -0
- package/lib/node/events/webSocketLogProvider.d.ts.map +1 -1
- package/lib/node/events/webSocketLogProvider.js +28 -0
- package/lib/node/factory/oracleClient.js +2 -2
- package/lib/node/idl/velocity.d.ts +4 -4
- package/lib/node/idl/velocity.d.ts.map +1 -1
- package/lib/node/idl/velocity.json +4 -4
- package/lib/node/keypair.d.ts +8 -0
- package/lib/node/keypair.d.ts.map +1 -1
- package/lib/node/keypair.js +8 -0
- package/lib/node/marginCalculation.d.ts +134 -2
- package/lib/node/marginCalculation.d.ts.map +1 -1
- package/lib/node/marginCalculation.js +121 -0
- package/lib/node/math/amm.d.ts +348 -29
- package/lib/node/math/amm.d.ts.map +1 -1
- package/lib/node/math/amm.js +310 -32
- package/lib/node/math/auction.d.ts +95 -19
- package/lib/node/math/auction.d.ts.map +1 -1
- package/lib/node/math/auction.js +118 -28
- package/lib/node/math/bankruptcy.d.ts +46 -0
- package/lib/node/math/bankruptcy.d.ts.map +1 -1
- package/lib/node/math/bankruptcy.js +89 -1
- package/lib/node/math/builder.d.ts +64 -8
- package/lib/node/math/builder.d.ts.map +1 -1
- package/lib/node/math/builder.js +71 -9
- package/lib/node/math/conversion.d.ts +21 -0
- package/lib/node/math/conversion.d.ts.map +1 -1
- package/lib/node/math/conversion.js +21 -0
- package/lib/node/math/exchangeStatus.d.ts +91 -0
- package/lib/node/math/exchangeStatus.d.ts.map +1 -1
- package/lib/node/math/exchangeStatus.js +106 -3
- package/lib/node/math/funding.d.ts +57 -20
- package/lib/node/math/funding.d.ts.map +1 -1
- package/lib/node/math/funding.js +63 -23
- package/lib/node/math/insurance.d.ts +62 -0
- package/lib/node/math/insurance.d.ts.map +1 -1
- package/lib/node/math/insurance.js +62 -0
- package/lib/node/math/liquidation.d.ts +127 -11
- package/lib/node/math/liquidation.d.ts.map +1 -1
- package/lib/node/math/liquidation.js +182 -19
- package/lib/node/math/margin.d.ts +79 -13
- package/lib/node/math/margin.d.ts.map +1 -1
- package/lib/node/math/margin.js +80 -14
- package/lib/node/math/market.d.ts +135 -15
- package/lib/node/math/market.d.ts.map +1 -1
- package/lib/node/math/market.js +145 -17
- package/lib/node/math/oracles.d.ts +113 -0
- package/lib/node/math/oracles.d.ts.map +1 -1
- package/lib/node/math/oracles.js +118 -1
- package/lib/node/math/orders.d.ts +115 -10
- package/lib/node/math/orders.d.ts.map +1 -1
- package/lib/node/math/orders.js +130 -19
- package/lib/node/math/position.d.ts +80 -33
- package/lib/node/math/position.d.ts.map +1 -1
- package/lib/node/math/position.js +80 -33
- package/lib/node/math/repeg.d.ts +48 -10
- package/lib/node/math/repeg.d.ts.map +1 -1
- package/lib/node/math/repeg.js +48 -10
- package/lib/node/math/spotBalance.d.ts +200 -5
- package/lib/node/math/spotBalance.d.ts.map +1 -1
- package/lib/node/math/spotBalance.js +239 -10
- package/lib/node/math/spotMarket.d.ts +36 -3
- package/lib/node/math/spotMarket.d.ts.map +1 -1
- package/lib/node/math/spotMarket.js +36 -3
- package/lib/node/math/spotPosition.d.ts +72 -0
- package/lib/node/math/spotPosition.d.ts.map +1 -1
- package/lib/node/math/spotPosition.js +62 -0
- package/lib/node/math/state.d.ts +31 -0
- package/lib/node/math/state.d.ts.map +1 -1
- package/lib/node/math/state.js +31 -0
- package/lib/node/math/superStake.d.ts +126 -2
- package/lib/node/math/superStake.d.ts.map +1 -1
- package/lib/node/math/superStake.js +123 -3
- package/lib/node/math/tiers.d.ts +29 -0
- package/lib/node/math/tiers.d.ts.map +1 -1
- package/lib/node/math/tiers.js +29 -0
- package/lib/node/math/trade.d.ts +102 -51
- package/lib/node/math/trade.d.ts.map +1 -1
- package/lib/node/math/trade.js +101 -55
- package/lib/node/math/utils.d.ts +71 -9
- package/lib/node/math/utils.d.ts.map +1 -1
- package/lib/node/math/utils.js +71 -9
- package/lib/node/memcmp.d.ts +94 -0
- package/lib/node/memcmp.d.ts.map +1 -1
- package/lib/node/memcmp.js +103 -2
- package/lib/node/oracles/oracleClientCache.d.ts +16 -0
- package/lib/node/oracles/oracleClientCache.d.ts.map +1 -1
- package/lib/node/oracles/oracleClientCache.js +16 -0
- package/lib/node/oracles/oracleId.d.ts +31 -0
- package/lib/node/oracles/oracleId.d.ts.map +1 -1
- package/lib/node/oracles/oracleId.js +39 -8
- package/lib/node/oracles/prelaunchOracleClient.d.ts +20 -0
- package/lib/node/oracles/prelaunchOracleClient.d.ts.map +1 -1
- package/lib/node/oracles/prelaunchOracleClient.js +20 -0
- package/lib/node/oracles/pythClient.d.ts +31 -0
- package/lib/node/oracles/pythClient.d.ts.map +1 -1
- package/lib/node/oracles/pythClient.js +32 -1
- package/lib/node/oracles/pythLazerClient.d.ts +34 -0
- package/lib/node/oracles/pythLazerClient.d.ts.map +1 -1
- package/lib/node/oracles/pythLazerClient.js +35 -1
- package/lib/node/oracles/quoteAssetOracleClient.d.ts +18 -0
- package/lib/node/oracles/quoteAssetOracleClient.d.ts.map +1 -1
- package/lib/node/oracles/quoteAssetOracleClient.js +18 -0
- package/lib/node/oracles/strictOraclePrice.d.ts +21 -0
- package/lib/node/oracles/strictOraclePrice.d.ts.map +1 -1
- package/lib/node/oracles/strictOraclePrice.js +21 -0
- package/lib/node/oracles/types.d.ts +45 -0
- package/lib/node/oracles/types.d.ts.map +1 -1
- package/lib/node/oracles/utils.d.ts +20 -0
- package/lib/node/oracles/utils.d.ts.map +1 -1
- package/lib/node/oracles/utils.js +20 -0
- package/lib/node/orderParams.d.ts +42 -4
- package/lib/node/orderParams.d.ts.map +1 -1
- package/lib/node/orderParams.js +42 -4
- package/lib/node/orderSubscriber/OrderSubscriber.d.ts +56 -0
- package/lib/node/orderSubscriber/OrderSubscriber.d.ts.map +1 -1
- package/lib/node/orderSubscriber/OrderSubscriber.js +56 -0
- package/lib/node/orderSubscriber/PollingSubscription.d.ts +11 -0
- package/lib/node/orderSubscriber/PollingSubscription.d.ts.map +1 -1
- package/lib/node/orderSubscriber/PollingSubscription.js +11 -0
- package/lib/node/orderSubscriber/WebsocketSubscription.d.ts +18 -0
- package/lib/node/orderSubscriber/WebsocketSubscription.d.ts.map +1 -1
- package/lib/node/orderSubscriber/WebsocketSubscription.js +18 -0
- package/lib/node/orderSubscriber/grpcSubscription.d.ts +16 -0
- package/lib/node/orderSubscriber/grpcSubscription.d.ts.map +1 -1
- package/lib/node/orderSubscriber/grpcSubscription.js +16 -0
- package/lib/node/orderSubscriber/types.d.ts +9 -0
- package/lib/node/orderSubscriber/types.d.ts.map +1 -1
- package/lib/node/priorityFee/averageOverSlotsStrategy.d.ts +1 -0
- package/lib/node/priorityFee/averageOverSlotsStrategy.d.ts.map +1 -1
- package/lib/node/priorityFee/averageOverSlotsStrategy.js +1 -0
- package/lib/node/priorityFee/averageStrategy.d.ts +1 -0
- package/lib/node/priorityFee/averageStrategy.d.ts.map +1 -1
- package/lib/node/priorityFee/averageStrategy.js +1 -0
- package/lib/node/priorityFee/ewmaStrategy.d.ts +10 -0
- package/lib/node/priorityFee/ewmaStrategy.d.ts.map +1 -1
- package/lib/node/priorityFee/ewmaStrategy.js +10 -0
- package/lib/node/priorityFee/heliusPriorityFeeMethod.d.ts +13 -0
- package/lib/node/priorityFee/heliusPriorityFeeMethod.d.ts.map +1 -1
- package/lib/node/priorityFee/heliusPriorityFeeMethod.js +9 -2
- package/lib/node/priorityFee/maxOverSlotsStrategy.d.ts +1 -0
- package/lib/node/priorityFee/maxOverSlotsStrategy.d.ts.map +1 -1
- package/lib/node/priorityFee/maxOverSlotsStrategy.js +1 -0
- package/lib/node/priorityFee/maxStrategy.d.ts +1 -0
- package/lib/node/priorityFee/maxStrategy.d.ts.map +1 -1
- package/lib/node/priorityFee/maxStrategy.js +1 -0
- package/lib/node/priorityFee/priorityFeeSubscriber.d.ts +39 -0
- package/lib/node/priorityFee/priorityFeeSubscriber.d.ts.map +1 -1
- package/lib/node/priorityFee/priorityFeeSubscriber.js +39 -0
- package/lib/node/priorityFee/priorityFeeSubscriberMap.d.ts +20 -1
- package/lib/node/priorityFee/priorityFeeSubscriberMap.d.ts.map +1 -1
- package/lib/node/priorityFee/priorityFeeSubscriberMap.js +21 -2
- package/lib/node/priorityFee/solanaPriorityFeeMethod.d.ts +12 -0
- package/lib/node/priorityFee/solanaPriorityFeeMethod.d.ts.map +1 -1
- package/lib/node/priorityFee/solanaPriorityFeeMethod.js +10 -0
- package/lib/node/priorityFee/types.d.ts +32 -0
- package/lib/node/priorityFee/types.d.ts.map +1 -1
- package/lib/node/priorityFee/types.js +5 -0
- package/lib/node/priorityFee/velocityPriorityFeeMethod.d.ts +11 -0
- package/lib/node/priorityFee/velocityPriorityFeeMethod.d.ts.map +1 -1
- package/lib/node/priorityFee/velocityPriorityFeeMethod.js +8 -0
- package/lib/node/slot/SlotSubscriber.d.ts +18 -0
- package/lib/node/slot/SlotSubscriber.d.ts.map +1 -1
- package/lib/node/slot/SlotSubscriber.js +16 -0
- package/lib/node/slot/SlothashSubscriber.d.ts +26 -0
- package/lib/node/slot/SlothashSubscriber.d.ts.map +1 -1
- package/lib/node/slot/SlothashSubscriber.js +25 -1
- package/lib/node/tx/baseTxSender.d.ts +163 -0
- package/lib/node/tx/baseTxSender.d.ts.map +1 -1
- package/lib/node/tx/baseTxSender.js +174 -6
- package/lib/node/tx/blockhashFetcher/baseBlockhashFetcher.d.ts +12 -0
- package/lib/node/tx/blockhashFetcher/baseBlockhashFetcher.d.ts.map +1 -1
- package/lib/node/tx/blockhashFetcher/baseBlockhashFetcher.js +12 -0
- package/lib/node/tx/blockhashFetcher/cachedBlockhashFetcher.d.ts +15 -0
- package/lib/node/tx/blockhashFetcher/cachedBlockhashFetcher.d.ts.map +1 -1
- package/lib/node/tx/blockhashFetcher/cachedBlockhashFetcher.js +15 -0
- package/lib/node/tx/blockhashFetcher/types.d.ts +4 -0
- package/lib/node/tx/blockhashFetcher/types.d.ts.map +1 -1
- package/lib/node/tx/fastSingleTxSender.d.ts +47 -0
- package/lib/node/tx/fastSingleTxSender.d.ts.map +1 -1
- package/lib/node/tx/fastSingleTxSender.js +48 -1
- package/lib/node/tx/forwardOnlyTxSender.d.ts +48 -0
- package/lib/node/tx/forwardOnlyTxSender.d.ts.map +1 -1
- package/lib/node/tx/forwardOnlyTxSender.js +48 -0
- package/lib/node/tx/reportTransactionError.d.ts +18 -6
- package/lib/node/tx/reportTransactionError.d.ts.map +1 -1
- package/lib/node/tx/reportTransactionError.js +18 -6
- package/lib/node/tx/retryTxSender.d.ts +40 -0
- package/lib/node/tx/retryTxSender.d.ts.map +1 -1
- package/lib/node/tx/retryTxSender.js +39 -0
- package/lib/node/tx/txHandler.d.ts +146 -35
- package/lib/node/tx/txHandler.d.ts.map +1 -1
- package/lib/node/tx/txHandler.js +132 -32
- package/lib/node/tx/txParamProcessor.d.ts +47 -0
- package/lib/node/tx/txParamProcessor.d.ts.map +1 -1
- package/lib/node/tx/txParamProcessor.js +47 -0
- package/lib/node/tx/types.d.ts +46 -0
- package/lib/node/tx/types.d.ts.map +1 -1
- package/lib/node/tx/types.js +5 -0
- package/lib/node/tx/utils.d.ts +26 -0
- package/lib/node/tx/utils.d.ts.map +1 -1
- package/lib/node/tx/utils.js +26 -0
- package/lib/node/tx/whileValidTxSender.d.ts +82 -0
- package/lib/node/tx/whileValidTxSender.d.ts.map +1 -1
- package/lib/node/tx/whileValidTxSender.js +81 -0
- package/lib/node/types.d.ts +781 -13
- package/lib/node/types.d.ts.map +1 -1
- package/lib/node/types.js +126 -9
- package/lib/node/user.d.ts +645 -84
- package/lib/node/user.d.ts.map +1 -1
- package/lib/node/user.js +779 -96
- package/lib/node/userMap/PollingSubscription.d.ts +10 -0
- package/lib/node/userMap/PollingSubscription.d.ts.map +1 -1
- package/lib/node/userMap/PollingSubscription.js +14 -2
- package/lib/node/userMap/WebsocketSubscription.d.ts +9 -0
- package/lib/node/userMap/WebsocketSubscription.d.ts.map +1 -1
- package/lib/node/userMap/WebsocketSubscription.js +9 -0
- package/lib/node/userMap/grpcSubscription.d.ts +8 -0
- package/lib/node/userMap/grpcSubscription.d.ts.map +1 -1
- package/lib/node/userMap/grpcSubscription.js +8 -0
- package/lib/node/userMap/referrerMap.d.ts +72 -2
- package/lib/node/userMap/referrerMap.d.ts.map +1 -1
- package/lib/node/userMap/referrerMap.js +84 -2
- package/lib/node/userMap/revenueShareEscrowMap.d.ts +37 -10
- package/lib/node/userMap/revenueShareEscrowMap.d.ts.map +1 -1
- package/lib/node/userMap/revenueShareEscrowMap.js +38 -11
- package/lib/node/userMap/userMap.d.ts +81 -3
- package/lib/node/userMap/userMap.d.ts.map +1 -1
- package/lib/node/userMap/userMap.js +81 -4
- package/lib/node/userMap/userMapConfig.d.ts +23 -0
- package/lib/node/userMap/userMapConfig.d.ts.map +1 -1
- package/lib/node/userMap/userStatsMap.d.ts +22 -0
- package/lib/node/userMap/userStatsMap.d.ts.map +1 -1
- package/lib/node/userMap/userStatsMap.js +22 -0
- package/lib/node/userName.d.ts +16 -0
- package/lib/node/userName.d.ts.map +1 -1
- package/lib/node/userName.js +16 -0
- package/lib/node/userStats.d.ts +28 -1
- package/lib/node/userStats.d.ts.map +1 -1
- package/lib/node/userStats.js +28 -1
- package/lib/node/util/TransactionConfirmationManager.d.ts +33 -0
- package/lib/node/util/TransactionConfirmationManager.d.ts.map +1 -1
- package/lib/node/util/TransactionConfirmationManager.js +33 -0
- package/lib/node/util/chainClock.d.ts +24 -0
- package/lib/node/util/chainClock.d.ts.map +1 -1
- package/lib/node/util/chainClock.js +20 -0
- package/lib/node/util/computeUnits.d.ts +32 -0
- package/lib/node/util/computeUnits.d.ts.map +1 -1
- package/lib/node/util/computeUnits.js +32 -0
- package/lib/node/util/digest.d.ts +17 -0
- package/lib/node/util/digest.d.ts.map +1 -1
- package/lib/node/util/digest.js +17 -0
- package/lib/node/util/ed25519Utils.d.ts +12 -2
- package/lib/node/util/ed25519Utils.d.ts.map +1 -1
- package/lib/node/util/ed25519Utils.js +12 -2
- package/lib/node/util/promiseTimeout.d.ts +9 -0
- package/lib/node/util/promiseTimeout.d.ts.map +1 -1
- package/lib/node/util/promiseTimeout.js +9 -0
- package/lib/node/velocityClient.d.ts +3322 -215
- package/lib/node/velocityClient.d.ts.map +1 -1
- package/lib/node/velocityClient.js +3412 -245
- package/lib/node/wallet.d.ts +37 -0
- package/lib/node/wallet.d.ts.map +1 -1
- package/lib/node/wallet.js +37 -0
- package/package.json +2 -1
- package/src/accounts/basicUserAccountSubscriber.ts +18 -0
- package/src/accounts/basicUserStatsAccountSubscriber.ts +18 -0
- package/src/accounts/bulkAccountLoader.ts +52 -0
- package/src/accounts/bulkUserStatsSubscription.ts +9 -2
- package/src/accounts/bulkUserSubscription.ts +8 -2
- package/src/accounts/customizedCadenceBulkAccountLoader.ts +37 -0
- package/src/accounts/fetch.ts +59 -2
- package/src/accounts/grpcAccountSubscriber.ts +30 -0
- package/src/accounts/grpcInsuranceFundStakeAccountSubscriber.ts +16 -0
- package/src/accounts/grpcMultiAccountSubscriber.ts +121 -38
- package/src/accounts/grpcMultiUserAccountSubscriber.ts +49 -11
- package/src/accounts/grpcProgramAccountSubscriber.ts +33 -0
- package/src/accounts/grpcUserAccountSubscriber.ts +15 -0
- package/src/accounts/grpcUserStatsAccountSubscriber.ts +15 -0
- package/src/accounts/grpcVelocityClientAccountSubscriber.ts +41 -0
- package/src/accounts/grpcVelocityClientAccountSubscriberV2.ts +160 -1
- package/src/accounts/laserProgramAccountSubscriber.ts +34 -0
- package/src/accounts/oneShotUserAccountSubscriber.ts +19 -0
- package/src/accounts/oneShotUserStatsAccountSubscriber.ts +19 -0
- package/src/accounts/pollingInsuranceFundStakeAccountSubscriber.ts +31 -0
- package/src/accounts/pollingOracleAccountSubscriber.ts +21 -2
- package/src/accounts/pollingTokenAccountSubscriber.ts +22 -0
- package/src/accounts/pollingUserAccountSubscriber.ts +32 -0
- package/src/accounts/pollingUserStatsAccountSubscriber.ts +22 -0
- package/src/accounts/pollingVelocityClientAccountSubscriber.ts +84 -1
- package/src/accounts/testBulkAccountLoader.ts +8 -0
- package/src/accounts/types.ts +149 -0
- package/src/accounts/utils.ts +42 -24
- package/src/accounts/webSocketAccountSubscriber.ts +41 -0
- package/src/accounts/webSocketAccountSubscriberV2.ts +31 -23
- package/src/accounts/webSocketInsuranceFundStakeAccountSubscriber.ts +27 -0
- package/src/accounts/webSocketProgramAccountSubscriber.ts +36 -0
- package/src/accounts/webSocketProgramAccountSubscriberV2.ts +26 -0
- package/src/accounts/webSocketProgramAccountsSubscriberV2.ts +21 -0
- package/src/accounts/webSocketUserAccountSubscriber.ts +26 -0
- package/src/accounts/webSocketUserStatsAccountSubsriber.ts +20 -0
- package/src/accounts/webSocketVelocityClientAccountSubscriber.ts +127 -2
- package/src/accounts/webSocketVelocityClientAccountSubscriberV2.ts +110 -0
- package/src/accounts/websocketProgramUserAccountSubscriber.ts +33 -0
- package/src/addresses/marketAddresses.ts +10 -0
- package/src/addresses/pda.ts +228 -12
- package/src/adminClient.ts +2156 -4
- package/src/auctionSubscriber/auctionSubscriber.ts +15 -0
- package/src/auctionSubscriber/auctionSubscriberGrpc.ts +19 -0
- package/src/auctionSubscriber/index.ts +6 -0
- package/src/auctionSubscriber/types.ts +7 -0
- package/src/blockhashSubscriber/BlockhashSubscriber.ts +33 -0
- package/src/blockhashSubscriber/index.ts +5 -0
- package/src/blockhashSubscriber/types.ts +5 -4
- package/src/clock/clockSubscriber.ts +24 -0
- package/src/config.ts +109 -22
- package/src/constants/numericConstants.ts +70 -0
- package/src/constants/perpMarkets.ts +45 -960
- package/src/constants/spotMarkets.ts +23 -793
- package/src/constants/txConstants.ts +1 -0
- package/src/core/VelocityCore.ts +286 -8
- package/src/core/instructions/deposit.ts +22 -0
- package/src/core/instructions/fill.ts +17 -0
- package/src/core/instructions/funding.ts +12 -0
- package/src/core/instructions/liquidation.ts +18 -0
- package/src/core/instructions/orders.ts +28 -0
- package/src/core/instructions/perpOrders.ts +106 -0
- package/src/core/instructions/settlement.ts +14 -0
- package/src/core/instructions/trigger.ts +15 -0
- package/src/core/instructions/withdraw.ts +21 -0
- package/src/core/remainingAccounts.ts +47 -3
- package/src/core/signedMsg.ts +38 -0
- package/src/decode/customCoder.ts +46 -3
- package/src/decode/user.ts +22 -0
- package/src/dlob/DLOB.ts +668 -97
- package/src/dlob/DLOBNode.ts +98 -6
- package/src/dlob/DLOBSubscriber.ts +49 -12
- package/src/dlob/NodeList.ts +69 -0
- package/src/dlob/orderBookLevels.ts +108 -14
- package/src/dlob/types.ts +15 -0
- package/src/events/eventList.ts +14 -0
- package/src/events/eventSubscriber.ts +100 -19
- package/src/events/eventsServerLogProvider.ts +28 -0
- package/src/events/fetchLogs.ts +52 -2
- package/src/events/parse.ts +23 -0
- package/src/events/pollingLogProvider.ts +24 -0
- package/src/events/sort.ts +12 -0
- package/src/events/txEventCache.ts +19 -7
- package/src/events/types.ts +131 -11
- package/src/events/webSocketLogProvider.ts +29 -0
- package/src/factory/oracleClient.ts +2 -2
- package/src/idl/velocity.json +4 -4
- package/src/idl/velocity.ts +4 -4
- package/src/keypair.ts +8 -0
- package/src/marginCalculation.ts +153 -2
- package/src/math/amm.ts +371 -36
- package/src/math/auction.ts +139 -30
- package/src/math/bankruptcy.ts +104 -1
- package/src/math/builder.ts +74 -8
- package/src/math/conversion.ts +21 -0
- package/src/math/exchangeStatus.ts +117 -2
- package/src/math/funding.ts +63 -23
- package/src/math/insurance.ts +62 -0
- package/src/math/liquidation.ts +227 -17
- package/src/math/margin.ts +80 -14
- package/src/math/market.ts +148 -17
- package/src/math/oracles.ts +124 -0
- package/src/math/orders.ts +141 -19
- package/src/math/position.ts +80 -33
- package/src/math/repeg.ts +48 -10
- package/src/math/spotBalance.ts +252 -12
- package/src/math/spotMarket.ts +36 -3
- package/src/math/spotPosition.ts +72 -0
- package/src/math/state.ts +31 -0
- package/src/math/superStake.ts +126 -3
- package/src/math/tiers.ts +29 -0
- package/src/math/trade.ts +125 -55
- package/src/math/utils.ts +71 -9
- package/src/memcmp.ts +104 -2
- package/src/oracles/oracleClientCache.ts +16 -0
- package/src/oracles/oracleId.ts +39 -6
- package/src/oracles/prelaunchOracleClient.ts +20 -0
- package/src/oracles/pythClient.ts +32 -1
- package/src/oracles/pythLazerClient.ts +35 -1
- package/src/oracles/quoteAssetOracleClient.ts +18 -0
- package/src/oracles/strictOraclePrice.ts +21 -0
- package/src/oracles/types.ts +45 -0
- package/src/oracles/utils.ts +20 -0
- package/src/orderParams.ts +42 -4
- package/src/orderSubscriber/OrderSubscriber.ts +56 -0
- package/src/orderSubscriber/PollingSubscription.ts +11 -0
- package/src/orderSubscriber/WebsocketSubscription.ts +18 -0
- package/src/orderSubscriber/grpcSubscription.ts +16 -0
- package/src/orderSubscriber/types.ts +9 -0
- package/src/priorityFee/averageOverSlotsStrategy.ts +1 -0
- package/src/priorityFee/averageStrategy.ts +1 -0
- package/src/priorityFee/ewmaStrategy.ts +10 -0
- package/src/priorityFee/heliusPriorityFeeMethod.ts +13 -2
- package/src/priorityFee/maxOverSlotsStrategy.ts +1 -0
- package/src/priorityFee/maxStrategy.ts +1 -0
- package/src/priorityFee/priorityFeeSubscriber.ts +39 -0
- package/src/priorityFee/priorityFeeSubscriberMap.ts +21 -2
- package/src/priorityFee/solanaPriorityFeeMethod.ts +12 -0
- package/src/priorityFee/types.ts +33 -15
- package/src/priorityFee/velocityPriorityFeeMethod.ts +11 -0
- package/src/slot/SlotSubscriber.ts +18 -0
- package/src/slot/SlothashSubscriber.ts +27 -1
- package/src/tx/baseTxSender.ts +185 -5
- package/src/tx/blockhashFetcher/baseBlockhashFetcher.ts +12 -0
- package/src/tx/blockhashFetcher/cachedBlockhashFetcher.ts +15 -0
- package/src/tx/blockhashFetcher/types.ts +4 -0
- package/src/tx/fastSingleTxSender.ts +58 -4
- package/src/tx/forwardOnlyTxSender.ts +48 -0
- package/src/tx/reportTransactionError.ts +18 -6
- package/src/tx/retryTxSender.ts +40 -0
- package/src/tx/txHandler.ts +146 -35
- package/src/tx/txParamProcessor.ts +47 -0
- package/src/tx/types.ts +46 -0
- package/src/tx/utils.ts +26 -0
- package/src/tx/whileValidTxSender.ts +82 -0
- package/src/types.ts +777 -24
- package/src/user.ts +869 -110
- package/src/userMap/PollingSubscription.ts +16 -2
- package/src/userMap/WebsocketSubscription.ts +9 -0
- package/src/userMap/grpcSubscription.ts +8 -0
- package/src/userMap/referrerMap.ts +92 -3
- package/src/userMap/revenueShareEscrowMap.ts +38 -11
- package/src/userMap/userMap.ts +82 -4
- package/src/userMap/userMapConfig.ts +23 -10
- package/src/userMap/userStatsMap.ts +22 -0
- package/src/userName.ts +16 -0
- package/src/userStats.ts +28 -1
- package/src/util/TransactionConfirmationManager.ts +33 -0
- package/src/util/chainClock.ts +24 -0
- package/src/util/computeUnits.ts +32 -0
- package/src/util/digest.ts +17 -0
- package/src/util/ed25519Utils.ts +12 -2
- package/src/util/promiseTimeout.ts +9 -0
- package/src/velocityClient.ts +3439 -249
- package/src/wallet.ts +37 -0
- package/tests/VelocityCore/builder_escrow.test.ts +121 -0
- package/tests/amm/test.ts +102 -0
- package/tests/builder/builderFee.test.ts +42 -0
- package/tests/dlob/tickSizeStandardization.ts +545 -0
- package/tests/exchangeStatus/test.ts +45 -0
- package/tests/liquidation/test.ts +125 -0
- package/tests/oracles/mmOracleGate.test.ts +379 -0
- package/tests/oracles/pythPegSnap.test.ts +76 -0
- package/tests/sdkParity/enumParity.test.ts +84 -0
- package/tests/sdkParity/marginCategoryFill.test.ts +143 -0
- package/tests/sdkParity/memcmpOffsets.test.ts +139 -0
- package/tests/spot/test.ts +55 -0
- package/tests/user/bankruptcy.ts +165 -0
- package/tests/user/feeAndWithdrawLimits.ts +284 -0
- package/tests/user/getMarginCalculation.ts +226 -1
- package/tests/user/test.ts +8 -4
|
@@ -5,9 +5,12 @@ const web3_js_1 = require("@solana/web3.js");
|
|
|
5
5
|
const numericConstants_1 = require("./numericConstants");
|
|
6
6
|
const types_1 = require("../types");
|
|
7
7
|
const anchor_1 = require("../isomorphic/anchor");
|
|
8
|
+
/** The canonical wrapped-SOL mint address, shared across all `SOL`-symbol spot market configs. */
|
|
8
9
|
exports.WRAPPED_SOL_MINT = new web3_js_1.PublicKey('So11111111111111111111111111111111111111112');
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
/**
|
|
11
|
+
* Reflects what is actually deployed on devnet (per on-chain enumeration of
|
|
12
|
+
* `StateAccount.numberOfSpotMarkets`). Update when devnet adds/changes a spot market.
|
|
13
|
+
*/
|
|
11
14
|
exports.DevnetSpotMarkets = [
|
|
12
15
|
{
|
|
13
16
|
symbol: 'dUSDT',
|
|
@@ -32,765 +35,36 @@ exports.DevnetSpotMarkets = [
|
|
|
32
35
|
pythLazerId: 6,
|
|
33
36
|
},
|
|
34
37
|
];
|
|
38
|
+
// Relaunch set from deploy-scripts/params/relaunch-spot-markets.json (PR #188).
|
|
39
|
+
// Oracles are the velocity program's pyth_lazer PDAs:
|
|
40
|
+
// findProgramAddress(["pyth_lazer", u32le(lazerFeedId)], VELOCITY_PROGRAM_ID).
|
|
35
41
|
exports.MainnetSpotMarkets = [
|
|
36
42
|
{
|
|
37
|
-
symbol: '
|
|
43
|
+
symbol: 'USDT',
|
|
38
44
|
marketIndex: 0,
|
|
39
45
|
poolId: 0,
|
|
40
|
-
oracle: new web3_js_1.PublicKey('
|
|
46
|
+
oracle: new web3_js_1.PublicKey('Dai8hT1YRBBm5rBSJUSKcdR11psM55LVAkshbypfC4k4'),
|
|
41
47
|
oracleSource: types_1.OracleSource.PYTH_LAZER_STABLE_COIN,
|
|
42
|
-
mint: new web3_js_1.PublicKey('
|
|
48
|
+
mint: new web3_js_1.PublicKey('Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB'),
|
|
43
49
|
precision: numericConstants_1.QUOTE_PRECISION,
|
|
44
50
|
precisionExp: numericConstants_1.QUOTE_PRECISION_EXP,
|
|
45
|
-
pythFeedId: '
|
|
46
|
-
pythLazerId:
|
|
51
|
+
pythFeedId: '0x2b89b9dc8fdf9f34709a5b106b472f0f39bb6ca9ce04b0fd7f2e971688e2e53b',
|
|
52
|
+
pythLazerId: 8,
|
|
47
53
|
},
|
|
48
54
|
{
|
|
49
55
|
symbol: 'SOL',
|
|
50
56
|
marketIndex: 1,
|
|
51
57
|
poolId: 0,
|
|
52
|
-
oracle: new web3_js_1.PublicKey('
|
|
58
|
+
oracle: new web3_js_1.PublicKey('2k3UHX6ehRFzx5fTVvbL6FwXhMjkucjJDL9MuVKLo8TV'),
|
|
53
59
|
oracleSource: types_1.OracleSource.PYTH_LAZER,
|
|
54
|
-
mint:
|
|
60
|
+
mint: exports.WRAPPED_SOL_MINT,
|
|
55
61
|
precision: numericConstants_1.LAMPORTS_PRECISION,
|
|
56
62
|
precisionExp: numericConstants_1.LAMPORTS_EXP,
|
|
57
63
|
pythFeedId: '0xef0d8b6fda2ceba41da15d4095d1da392a0d2f8ed0c6c7bc0f4cfac8c280b56d',
|
|
58
64
|
pythLazerId: 6,
|
|
59
65
|
},
|
|
60
|
-
{
|
|
61
|
-
symbol: 'mSOL',
|
|
62
|
-
marketIndex: 2,
|
|
63
|
-
poolId: 0,
|
|
64
|
-
oracle: new web3_js_1.PublicKey('FY2JMi1vYz1uayVT2GJ96ysZgpagjhdPRG2upNPtSZsC'),
|
|
65
|
-
oracleSource: types_1.OracleSource.PYTH_LAZER,
|
|
66
|
-
mint: new web3_js_1.PublicKey('mSoLzYCxHdYgdzU16g5QSh3i5K3z3KZK7ytfqcJm7So'),
|
|
67
|
-
precision: new anchor_1.BN(10).pow(numericConstants_1.NINE),
|
|
68
|
-
precisionExp: numericConstants_1.NINE,
|
|
69
|
-
pythFeedId: '0xc2289a6a43d2ce91c6f55caec370f4acc38a2ed477f58813334c6d03749ff2a4',
|
|
70
|
-
pythLazerId: 503,
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
symbol: 'wBTC',
|
|
74
|
-
marketIndex: 3,
|
|
75
|
-
poolId: 0,
|
|
76
|
-
oracle: new web3_js_1.PublicKey('fqPfDa6uQr9ndMvwaFp4mUBeUrHmLop8Jxfb1XJNmVm'),
|
|
77
|
-
oracleSource: types_1.OracleSource.PYTH_LAZER,
|
|
78
|
-
mint: new web3_js_1.PublicKey('3NZ9JMVBmGAqocybic2c7LQCJScmgsAZ6vQqTDzcqmJh'),
|
|
79
|
-
precision: new anchor_1.BN(10).pow(numericConstants_1.EIGHT),
|
|
80
|
-
precisionExp: numericConstants_1.EIGHT,
|
|
81
|
-
pythFeedId: '0xc9d8b075a5c69303365ae23633d4e085199bf5c520a3b90fed1322a0342ffc33',
|
|
82
|
-
pythLazerId: 103,
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
symbol: 'wETH',
|
|
86
|
-
marketIndex: 4,
|
|
87
|
-
poolId: 0,
|
|
88
|
-
oracle: new web3_js_1.PublicKey('93FG52TzNKCnMiasV14Ba34BYcHDb9p4zK4GjZnLwqWR'),
|
|
89
|
-
oracleSource: types_1.OracleSource.PYTH_LAZER,
|
|
90
|
-
mint: new web3_js_1.PublicKey('7vfCXTUXx5WJV5JADk17DUJ4ksgau7utNKj4b963voxs'),
|
|
91
|
-
precision: new anchor_1.BN(10).pow(numericConstants_1.EIGHT),
|
|
92
|
-
precisionExp: numericConstants_1.EIGHT,
|
|
93
|
-
pythFeedId: '0xff61491a931112ddf1bd8147cd1b641375f79f5825126d665480874634fd0ace',
|
|
94
|
-
pythLazerId: 2,
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
symbol: 'USDT',
|
|
98
|
-
marketIndex: 5,
|
|
99
|
-
poolId: 0,
|
|
100
|
-
oracle: new web3_js_1.PublicKey('JDKJSkxjasBGL3ce1pkrN6tqDzuVUZPWzzkGuyX8m9yN'),
|
|
101
|
-
oracleSource: types_1.OracleSource.PYTH_LAZER_STABLE_COIN,
|
|
102
|
-
mint: new web3_js_1.PublicKey('Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB'),
|
|
103
|
-
precision: numericConstants_1.QUOTE_PRECISION,
|
|
104
|
-
precisionExp: numericConstants_1.QUOTE_PRECISION_EXP,
|
|
105
|
-
pythFeedId: '0x2b89b9dc8fdf9f34709a5b106b472f0f39bb6ca9ce04b0fd7f2e971688e2e53b',
|
|
106
|
-
pythLazerId: 8,
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
symbol: 'jitoSOL',
|
|
110
|
-
marketIndex: 6,
|
|
111
|
-
poolId: 0,
|
|
112
|
-
oracle: new web3_js_1.PublicKey('2cHCtAkMnttMh3bNKSCgSKSP5D4yN3p8bfnMdS3VZsDf'),
|
|
113
|
-
oracleSource: types_1.OracleSource.PYTH_LAZER,
|
|
114
|
-
mint: new web3_js_1.PublicKey('J1toso1uCk3RLmjorhTtrVwY9HJ7X8V9yYac6Y7kGCPn'),
|
|
115
|
-
precision: new anchor_1.BN(10).pow(numericConstants_1.NINE),
|
|
116
|
-
precisionExp: numericConstants_1.NINE,
|
|
117
|
-
pythFeedId: '0x67be9f519b95cf24338801051f9a808eff0a578ccb388db73b7f6fe1de019ffb',
|
|
118
|
-
pythLazerId: 458,
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
symbol: 'PYTH',
|
|
122
|
-
marketIndex: 7,
|
|
123
|
-
poolId: 0,
|
|
124
|
-
oracle: new web3_js_1.PublicKey('6Sfx8ZAt6xaEgMXTahR6GrT7oYB6nFBMoVyCmMyHmeJV'),
|
|
125
|
-
oracleSource: types_1.OracleSource.PYTH_LAZER,
|
|
126
|
-
mint: new web3_js_1.PublicKey('HZ1JovNiVvGrGNiiYvEozEVgZ58xaU3RKwX8eACQBCt3'),
|
|
127
|
-
precision: new anchor_1.BN(10).pow(numericConstants_1.SIX),
|
|
128
|
-
precisionExp: numericConstants_1.SIX,
|
|
129
|
-
pythFeedId: '0x0bbf28e9a841a1cc788f6a361b17ca072d0ea3098a1e5df1c3922d06719579ff',
|
|
130
|
-
pythLazerId: 3,
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
symbol: 'bSOL',
|
|
134
|
-
marketIndex: 8,
|
|
135
|
-
poolId: 0,
|
|
136
|
-
oracle: new web3_js_1.PublicKey('6YEQjxkbhfrWV2VdR9zxBJxWYshcMYRs6bpuX1ng2CbP'),
|
|
137
|
-
oracleSource: types_1.OracleSource.PYTH_LAZER,
|
|
138
|
-
mint: new web3_js_1.PublicKey('bSo13r4TkiE4KumL71LsHTPpL2euBYLFx6h9HP3piy1'),
|
|
139
|
-
precision: new anchor_1.BN(10).pow(numericConstants_1.NINE),
|
|
140
|
-
precisionExp: numericConstants_1.NINE,
|
|
141
|
-
pythFeedId: '0x89875379e70f8fbadc17aef315adf3a8d5d160b811435537e03c97e8aac97d9c',
|
|
142
|
-
pythLazerId: 389,
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
symbol: 'JTO',
|
|
146
|
-
marketIndex: 9,
|
|
147
|
-
poolId: 0,
|
|
148
|
-
oracle: new web3_js_1.PublicKey('CGCz4mB8NsDddCq6BZToRUDUuktzsAfpKYh6ATgyyCGF'),
|
|
149
|
-
oracleSource: types_1.OracleSource.PYTH_LAZER,
|
|
150
|
-
mint: new web3_js_1.PublicKey('jtojtomepa8beP8AuQc6eXt5FriJwfFMwQx2v2f9mCL'),
|
|
151
|
-
precision: new anchor_1.BN(10).pow(numericConstants_1.NINE),
|
|
152
|
-
precisionExp: numericConstants_1.NINE,
|
|
153
|
-
pythFeedId: '0xb43660a5f790c69354b0729a5ef9d50d68f1df92107540210b9cccba1f947cc2',
|
|
154
|
-
pythLazerId: 91,
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
symbol: 'WIF',
|
|
158
|
-
marketIndex: 10,
|
|
159
|
-
poolId: 0,
|
|
160
|
-
oracle: new web3_js_1.PublicKey('4QXWStoyEErTZFVsvKrvxuNa6QT8zpeA8jddZunSGvYE'),
|
|
161
|
-
oracleSource: types_1.OracleSource.PYTH_LAZER,
|
|
162
|
-
mint: new web3_js_1.PublicKey('EKpQGSJtjMFqKZ9KQanSqYXRcF8fBopzLHYxdM65zcjm'),
|
|
163
|
-
precision: new anchor_1.BN(10).pow(numericConstants_1.SIX),
|
|
164
|
-
precisionExp: numericConstants_1.SIX,
|
|
165
|
-
pythFeedId: '0x4ca4beeca86f0d164160323817a4e42b10010a724c2217c6ee41b54cd4cc61fc',
|
|
166
|
-
pythLazerId: 10,
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
symbol: 'JUP',
|
|
170
|
-
marketIndex: 11,
|
|
171
|
-
poolId: 0,
|
|
172
|
-
oracle: new web3_js_1.PublicKey('DXqKSHyhTBKEW4qgnL7ycbf3Jca5hCvUgWHFYWsh4KJa'),
|
|
173
|
-
oracleSource: types_1.OracleSource.PYTH_LAZER,
|
|
174
|
-
mint: new web3_js_1.PublicKey('JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN'),
|
|
175
|
-
precision: new anchor_1.BN(10).pow(numericConstants_1.SIX),
|
|
176
|
-
precisionExp: numericConstants_1.SIX,
|
|
177
|
-
launchTs: 1706731200000,
|
|
178
|
-
pythFeedId: '0x0a0408d619e9380abad35060f9192039ed5042fa6f82301d0e48bb52be830996',
|
|
179
|
-
pythLazerId: 92,
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
symbol: 'RENDER',
|
|
183
|
-
marketIndex: 12,
|
|
184
|
-
poolId: 0,
|
|
185
|
-
oracle: new web3_js_1.PublicKey('97EqsAGbTnShB7oYWAFFCVVAx8PWXgDYDhcpm99izNQ4'),
|
|
186
|
-
oracleSource: types_1.OracleSource.PYTH_LAZER,
|
|
187
|
-
mint: new web3_js_1.PublicKey('rndrizKT3MK1iimdxRdWabcF7Zg7AR5T4nud4EkHBof'),
|
|
188
|
-
precision: new anchor_1.BN(10).pow(numericConstants_1.EIGHT),
|
|
189
|
-
precisionExp: numericConstants_1.EIGHT,
|
|
190
|
-
launchTs: 1708964021000,
|
|
191
|
-
pythFeedId: '0x3d4a2bd9535be6ce8059d75eadeba507b043257321aa544717c56fa19b49e35d',
|
|
192
|
-
pythLazerId: 34,
|
|
193
|
-
},
|
|
194
|
-
{
|
|
195
|
-
symbol: 'W',
|
|
196
|
-
marketIndex: 13,
|
|
197
|
-
poolId: 0,
|
|
198
|
-
oracle: new web3_js_1.PublicKey('CsFUXiA5dM4eCKjVBBy8tXhXzDkDRNoYjU5rjpHyfNEZ'),
|
|
199
|
-
oracleSource: types_1.OracleSource.PYTH_LAZER,
|
|
200
|
-
mint: new web3_js_1.PublicKey('85VBFQZC9TZkfaptBWjvUw7YbZjy52A6mjtPGjstQAmQ'),
|
|
201
|
-
precision: new anchor_1.BN(10).pow(numericConstants_1.SIX),
|
|
202
|
-
precisionExp: numericConstants_1.SIX,
|
|
203
|
-
launchTs: 1712149014000,
|
|
204
|
-
pythFeedId: '0xeff7446475e218517566ea99e72a4abec2e1bd8498b43b7d8331e29dcb059389',
|
|
205
|
-
pythLazerId: 102,
|
|
206
|
-
},
|
|
207
|
-
{
|
|
208
|
-
symbol: 'TNSR',
|
|
209
|
-
marketIndex: 14,
|
|
210
|
-
poolId: 0,
|
|
211
|
-
oracle: new web3_js_1.PublicKey('EX6r1GdfsgcUsY6cQ6YsToV4RGsb4HKpjrkokK2DrmsS'),
|
|
212
|
-
oracleSource: types_1.OracleSource.PYTH_LAZER,
|
|
213
|
-
mint: new web3_js_1.PublicKey('TNSRxcUxoT9xBG3de7PiJyTDYu7kskLqcpddxnEJAS6'),
|
|
214
|
-
precision: new anchor_1.BN(10).pow(numericConstants_1.NINE),
|
|
215
|
-
precisionExp: numericConstants_1.NINE,
|
|
216
|
-
launchTs: 1712593532000,
|
|
217
|
-
pythFeedId: '0x05ecd4597cd48fe13d6cc3596c62af4f9675aee06e2e0b94c06d8bee2b659e05',
|
|
218
|
-
pythLazerId: 99,
|
|
219
|
-
},
|
|
220
|
-
{
|
|
221
|
-
symbol: 'DRIFT',
|
|
222
|
-
marketIndex: 15,
|
|
223
|
-
poolId: 0,
|
|
224
|
-
oracle: new web3_js_1.PublicKey('5VJou4ufN2vE11zyZUaLsKLTXhyzCTgiq6QDsts2YnnD'),
|
|
225
|
-
oracleSource: types_1.OracleSource.PYTH_LAZER,
|
|
226
|
-
mint: new web3_js_1.PublicKey('DriFtupJYLTosbwoN8koMbEYSx54aFAVLddWsbksjwg7'),
|
|
227
|
-
precision: new anchor_1.BN(10).pow(numericConstants_1.SIX),
|
|
228
|
-
precisionExp: numericConstants_1.SIX,
|
|
229
|
-
launchTs: 1715860800000,
|
|
230
|
-
pythFeedId: '0x5c1690b27bb02446db17cdda13ccc2c1d609ad6d2ef5bf4983a85ea8b6f19d07',
|
|
231
|
-
pythLazerId: 249,
|
|
232
|
-
},
|
|
233
|
-
{
|
|
234
|
-
symbol: 'INF',
|
|
235
|
-
marketIndex: 16,
|
|
236
|
-
poolId: 0,
|
|
237
|
-
oracle: new web3_js_1.PublicKey('7SAxf2SCJe5c72rZNo4etpGjz5TaEAqi8QkbfpRbouuT'),
|
|
238
|
-
oracleSource: types_1.OracleSource.PYTH_LAZER,
|
|
239
|
-
mint: new web3_js_1.PublicKey('5oVNBeEEQvYi1cX3ir8Dx5n1P7pdxydbGF2X4TxVusJm'),
|
|
240
|
-
precision: new anchor_1.BN(10).pow(numericConstants_1.NINE),
|
|
241
|
-
precisionExp: numericConstants_1.NINE,
|
|
242
|
-
launchTs: 1716595200000,
|
|
243
|
-
pythFeedId: '0xf51570985c642c49c2d6e50156390fdba80bb6d5f7fa389d2f012ced4f7d208f',
|
|
244
|
-
pythLazerId: 455,
|
|
245
|
-
},
|
|
246
|
-
{
|
|
247
|
-
symbol: 'dSOL',
|
|
248
|
-
marketIndex: 17,
|
|
249
|
-
poolId: 0,
|
|
250
|
-
oracle: new web3_js_1.PublicKey('EopUQMXT56Lbyg1DKDbc7VAQFcx4QGBKBepZxeKe1sJf'),
|
|
251
|
-
oracleSource: types_1.OracleSource.PYTH_LAZER,
|
|
252
|
-
mint: new web3_js_1.PublicKey('Dso1bDeDjCQxTrWHqUUi63oBvV7Mdm6WaobLbQ7gnPQ'),
|
|
253
|
-
precision: new anchor_1.BN(10).pow(numericConstants_1.NINE),
|
|
254
|
-
precisionExp: numericConstants_1.NINE,
|
|
255
|
-
launchTs: 1716595200000,
|
|
256
|
-
pythFeedId: '0x41f858bae36e7ee3f4a3a6d4f176f0893d4a261460a52763350d00f8648195ee',
|
|
257
|
-
pythLazerId: 415,
|
|
258
|
-
},
|
|
259
|
-
{
|
|
260
|
-
symbol: 'USDY',
|
|
261
|
-
marketIndex: 18,
|
|
262
|
-
poolId: 0,
|
|
263
|
-
oracle: new web3_js_1.PublicKey('9PgHM68FNGDK6nHb29ERDBcFrV6gNMD8LyUqwxbyyeb2'),
|
|
264
|
-
oracleSource: types_1.OracleSource.PYTH_LAZER,
|
|
265
|
-
mint: new web3_js_1.PublicKey('A1KLoBrKBde8Ty9qtNQUtq3C2ortoC3u7twggz7sEto6'),
|
|
266
|
-
precision: new anchor_1.BN(10).pow(numericConstants_1.SIX),
|
|
267
|
-
precisionExp: numericConstants_1.SIX,
|
|
268
|
-
launchTs: 1718811089000,
|
|
269
|
-
pythFeedId: '0xe393449f6aff8a4b6d3e1165a7c9ebec103685f3b41e60db4277b5b6d10e7326',
|
|
270
|
-
pythLazerId: 276,
|
|
271
|
-
},
|
|
272
|
-
{
|
|
273
|
-
symbol: 'JLP',
|
|
274
|
-
marketIndex: 19,
|
|
275
|
-
poolId: 0,
|
|
276
|
-
oracle: new web3_js_1.PublicKey('4VMtKepA6iFwMTJ7bBbdcGxavNRKiDjxxRr1CaB2NnFJ'),
|
|
277
|
-
oracleSource: types_1.OracleSource.PYTH_LAZER,
|
|
278
|
-
mint: new web3_js_1.PublicKey('27G8MtK7VtTcCHkpASjSDdkWWYfoqT6ggEuKidVJidD4'),
|
|
279
|
-
precision: new anchor_1.BN(10).pow(numericConstants_1.SIX),
|
|
280
|
-
precisionExp: numericConstants_1.SIX,
|
|
281
|
-
launchTs: 1719415157000,
|
|
282
|
-
pythFeedId: '0xc811abc82b4bad1f9bd711a2773ccaa935b03ecef974236942cec5e0eb845a3a',
|
|
283
|
-
pythLazerId: 459,
|
|
284
|
-
},
|
|
285
|
-
{
|
|
286
|
-
symbol: 'POPCAT',
|
|
287
|
-
marketIndex: 20,
|
|
288
|
-
poolId: 0,
|
|
289
|
-
oracle: new web3_js_1.PublicKey('C5fiAmQyjdfDR4EGepZqnEL3fJwMBav5yoAk6XyKMF6u'),
|
|
290
|
-
oracleSource: types_1.OracleSource.PYTH_LAZER,
|
|
291
|
-
mint: new web3_js_1.PublicKey('7GCihgDB8fe6KNjn2MYtkzZcRjQy3t9GHdC8uHYmW2hr'),
|
|
292
|
-
precision: new anchor_1.BN(10).pow(numericConstants_1.NINE),
|
|
293
|
-
precisionExp: numericConstants_1.NINE,
|
|
294
|
-
launchTs: 1720013054000,
|
|
295
|
-
pythFeedId: '0xb9312a7ee50e189ef045aa3c7842e099b061bd9bdc99ac645956c3b660dc8cce',
|
|
296
|
-
pythLazerId: 130,
|
|
297
|
-
},
|
|
298
|
-
{
|
|
299
|
-
symbol: 'CLOUD',
|
|
300
|
-
marketIndex: 21,
|
|
301
|
-
poolId: 0,
|
|
302
|
-
oracle: new web3_js_1.PublicKey('9Ennia27iT83kNAk3JtRKxSMzuCzsVtT4MzuxpE7anME'),
|
|
303
|
-
oracleSource: types_1.OracleSource.PYTH_LAZER,
|
|
304
|
-
pythFeedId: '0x7358313661dcd4f842a1423aa4f7a05f009001c9113201c719621d3f1aa80a73',
|
|
305
|
-
mint: new web3_js_1.PublicKey('CLoUDKc4Ane7HeQcPpE3YHnznRxhMimJ4MyaUqyHFzAu'),
|
|
306
|
-
precision: new anchor_1.BN(10).pow(numericConstants_1.NINE),
|
|
307
|
-
precisionExp: numericConstants_1.NINE,
|
|
308
|
-
launchTs: 1721316817000,
|
|
309
|
-
pythLazerId: 404,
|
|
310
|
-
},
|
|
311
|
-
{
|
|
312
|
-
symbol: 'PYUSD',
|
|
313
|
-
marketIndex: 22,
|
|
314
|
-
poolId: 0,
|
|
315
|
-
oracle: new web3_js_1.PublicKey('5QZMnsyndmphvZF4BNgoMHwVZaREXeE2rpBoCPMxgCCd'),
|
|
316
|
-
oracleSource: types_1.OracleSource.PYTH_LAZER_STABLE_COIN,
|
|
317
|
-
mint: new web3_js_1.PublicKey('2b1kV6DkPAnxd5ixfnxCpjxmKwqjjaYmCZfHsFu24GXo'),
|
|
318
|
-
precision: new anchor_1.BN(10).pow(numericConstants_1.SIX),
|
|
319
|
-
precisionExp: numericConstants_1.SIX,
|
|
320
|
-
pythFeedId: '0xc1da1b73d7f01e7ddd54b3766cf7fcd644395ad14f70aa706ec5384c59e76692',
|
|
321
|
-
pythLazerId: 156,
|
|
322
|
-
},
|
|
323
|
-
{
|
|
324
|
-
symbol: 'USDe',
|
|
325
|
-
marketIndex: 23,
|
|
326
|
-
poolId: 0,
|
|
327
|
-
oracle: new web3_js_1.PublicKey('5uR6oza6teuMRpjsbMi9fDhCDid2hoYdRBiLW7WzcK54'),
|
|
328
|
-
oracleSource: types_1.OracleSource.PYTH_LAZER_STABLE_COIN,
|
|
329
|
-
mint: new web3_js_1.PublicKey('DEkqHyPN7GMRJ5cArtQFAWefqbZb33Hyf6s5iCwjEonT'),
|
|
330
|
-
precision: new anchor_1.BN(10).pow(numericConstants_1.NINE),
|
|
331
|
-
precisionExp: numericConstants_1.NINE,
|
|
332
|
-
pythFeedId: '0x6ec879b1e9963de5ee97e9c8710b742d6228252a5e2ca12d4ae81d7fe5ee8c5d',
|
|
333
|
-
pythLazerId: 204,
|
|
334
|
-
},
|
|
335
|
-
{
|
|
336
|
-
symbol: 'sUSDe',
|
|
337
|
-
marketIndex: 24,
|
|
338
|
-
poolId: 0,
|
|
339
|
-
oracle: new web3_js_1.PublicKey('CX7JCXtUTiC43ZA4uzoH7iQBD15jtVwdBNCnjKHt1BrQ'),
|
|
340
|
-
oracleSource: types_1.OracleSource.PYTH_LAZER,
|
|
341
|
-
mint: new web3_js_1.PublicKey('Eh6XEPhSwoLv5wFApukmnaVSHQ6sAnoD9BmgmwQoN2sN'),
|
|
342
|
-
precision: new anchor_1.BN(10).pow(numericConstants_1.NINE),
|
|
343
|
-
precisionExp: numericConstants_1.NINE,
|
|
344
|
-
pythFeedId: '0xca3ba9a619a4b3755c10ac7d5e760275aa95e9823d38a84fedd416856cdba37c',
|
|
345
|
-
pythLazerId: 582,
|
|
346
|
-
},
|
|
347
|
-
{
|
|
348
|
-
symbol: 'BNSOL',
|
|
349
|
-
marketIndex: 25,
|
|
350
|
-
poolId: 0,
|
|
351
|
-
oracle: new web3_js_1.PublicKey('2LxMbHBHsw74aE3XgfthmUNkdDfUGcSEy3G3D3t642fd'),
|
|
352
|
-
oracleSource: types_1.OracleSource.PYTH_LAZER,
|
|
353
|
-
mint: new web3_js_1.PublicKey('BNso1VUJnh4zcfpZa6986Ea66P6TCp59hvtNJ8b1X85'),
|
|
354
|
-
precision: numericConstants_1.LAMPORTS_PRECISION,
|
|
355
|
-
precisionExp: numericConstants_1.LAMPORTS_EXP,
|
|
356
|
-
pythFeedId: '0x55f8289be7450f1ae564dd9798e49e7d797d89adbc54fe4f8c906b1fcb94b0c3',
|
|
357
|
-
pythLazerId: 384,
|
|
358
|
-
},
|
|
359
|
-
{
|
|
360
|
-
symbol: 'MOTHER',
|
|
361
|
-
marketIndex: 26,
|
|
362
|
-
poolId: 0,
|
|
363
|
-
oracle: new web3_js_1.PublicKey('469WQgfJ6AJ3eJ8FUcdhiZawf7yNChA3hseTSyhFatHZ'),
|
|
364
|
-
oracleSource: types_1.OracleSource.PYTH_LAZER,
|
|
365
|
-
mint: new web3_js_1.PublicKey('3S8qX1MsMqRbiwKg2cQyx7nis1oHMgaCuc9c4VfvVdPN'),
|
|
366
|
-
precision: new anchor_1.BN(10).pow(numericConstants_1.SIX),
|
|
367
|
-
precisionExp: numericConstants_1.SIX,
|
|
368
|
-
pythFeedId: '0x62742a997d01f7524f791fdb2dd43aaf0e567d765ebf8fd0406a994239e874d4',
|
|
369
|
-
pythLazerId: 501,
|
|
370
|
-
},
|
|
371
|
-
{
|
|
372
|
-
symbol: 'cbBTC',
|
|
373
|
-
marketIndex: 27,
|
|
374
|
-
poolId: 0,
|
|
375
|
-
oracle: new web3_js_1.PublicKey('D1QgWnMoPzB4wJ79Egrc6MGYYM3HHVNhpff1QQHDSoCq'),
|
|
376
|
-
oracleSource: types_1.OracleSource.PYTH_LAZER,
|
|
377
|
-
mint: new web3_js_1.PublicKey('cbbtcf3aa214zXHbiAZQwf4122FBYbraNdFqgw4iMij'),
|
|
378
|
-
precision: new anchor_1.BN(10).pow(numericConstants_1.EIGHT),
|
|
379
|
-
precisionExp: numericConstants_1.EIGHT,
|
|
380
|
-
pythFeedId: '0x2817d7bfe5c64b8ea956e9a26f573ef64e72e4d7891f2d6af9bcc93f7aff9a97',
|
|
381
|
-
pythLazerId: 397,
|
|
382
|
-
},
|
|
383
|
-
{
|
|
384
|
-
symbol: 'USDS',
|
|
385
|
-
marketIndex: 28,
|
|
386
|
-
poolId: 0,
|
|
387
|
-
oracle: new web3_js_1.PublicKey('5Km85n3s9Zs5wEoXYWuHbpoDzst4EBkS5f1XuQJGG1DL'),
|
|
388
|
-
oracleSource: types_1.OracleSource.PYTH_LAZER_STABLE_COIN,
|
|
389
|
-
mint: new web3_js_1.PublicKey('USDSwr9ApdHk5bvJKMjzff41FfuX8bSxdKcR81vTwcA'),
|
|
390
|
-
precision: new anchor_1.BN(10).pow(numericConstants_1.SIX),
|
|
391
|
-
precisionExp: numericConstants_1.SIX,
|
|
392
|
-
pythFeedId: '0x77f0971af11cc8bac224917275c1bf55f2319ed5c654a1ca955c82fa2d297ea1',
|
|
393
|
-
pythLazerId: 611,
|
|
394
|
-
},
|
|
395
|
-
{
|
|
396
|
-
symbol: 'META',
|
|
397
|
-
marketIndex: 29,
|
|
398
|
-
poolId: 0,
|
|
399
|
-
oracle: new web3_js_1.PublicKey('DwYF1yveo8XTF1oqfsqykj332rjSxAd7bR6Gu6i4iUET'),
|
|
400
|
-
oracleSource: types_1.OracleSource.SWITCHBOARD_ON_DEMAND,
|
|
401
|
-
mint: new web3_js_1.PublicKey('METADDFL6wWMWEoKTFJwcThTbUmtarRJZjRpzUvkxhr'),
|
|
402
|
-
precision: new anchor_1.BN(10).pow(numericConstants_1.NINE),
|
|
403
|
-
precisionExp: numericConstants_1.NINE,
|
|
404
|
-
},
|
|
405
|
-
{
|
|
406
|
-
symbol: 'ME',
|
|
407
|
-
marketIndex: 30,
|
|
408
|
-
poolId: 0,
|
|
409
|
-
oracle: new web3_js_1.PublicKey('BboTg1yT114FQkqT6MM3P3G3CcCktuM2RePgU8Gr3K4A'),
|
|
410
|
-
oracleSource: types_1.OracleSource.PYTH_LAZER,
|
|
411
|
-
mint: new web3_js_1.PublicKey('MEFNBXixkEbait3xn9bkm8WsJzXtVsaJEn4c8Sam21u'),
|
|
412
|
-
precision: new anchor_1.BN(10).pow(numericConstants_1.SIX),
|
|
413
|
-
precisionExp: numericConstants_1.SIX,
|
|
414
|
-
pythFeedId: '0x91519e3e48571e1232a85a938e714da19fe5ce05107f3eebb8a870b2e8020169',
|
|
415
|
-
pythLazerId: 93,
|
|
416
|
-
},
|
|
417
|
-
{
|
|
418
|
-
symbol: 'PENGU',
|
|
419
|
-
marketIndex: 31,
|
|
420
|
-
poolId: 0,
|
|
421
|
-
oracle: new web3_js_1.PublicKey('4A3KroGPjZxPAeBNF287V3NyRwV2q8iBi1vX7kHxTCh7'),
|
|
422
|
-
oracleSource: types_1.OracleSource.PYTH_LAZER,
|
|
423
|
-
mint: new web3_js_1.PublicKey('2zMMhcVQEXDtdE6vsFS7S7D5oUodfJHE8vd1gnBouauv'),
|
|
424
|
-
precision: new anchor_1.BN(10).pow(numericConstants_1.SIX),
|
|
425
|
-
precisionExp: numericConstants_1.SIX,
|
|
426
|
-
pythFeedId: '0xbed3097008b9b5e3c93bec20be79cb43986b85a996475589351a21e67bae9b61',
|
|
427
|
-
pythLazerId: 97,
|
|
428
|
-
},
|
|
429
|
-
{
|
|
430
|
-
symbol: 'BONK',
|
|
431
|
-
marketIndex: 32,
|
|
432
|
-
poolId: 0,
|
|
433
|
-
oracle: new web3_js_1.PublicKey('BERaNi6cpEresbq6HC1EQGaB1H1UjvEo4NGnmYSSJof4'),
|
|
434
|
-
oracleSource: types_1.OracleSource.PYTH_LAZER,
|
|
435
|
-
mint: new web3_js_1.PublicKey('DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263'),
|
|
436
|
-
precision: new anchor_1.BN(10).pow(numericConstants_1.FIVE),
|
|
437
|
-
precisionExp: numericConstants_1.FIVE,
|
|
438
|
-
pythFeedId: '0x72b021217ca3fe68922a19aaf990109cb9d84e9ad004b4d2025ad6f529314419',
|
|
439
|
-
launchTs: 1734717937000,
|
|
440
|
-
pythLazerId: 9,
|
|
441
|
-
},
|
|
442
|
-
{
|
|
443
|
-
symbol: 'JLP-1',
|
|
444
|
-
marketIndex: 33,
|
|
445
|
-
poolId: 1,
|
|
446
|
-
oracle: new web3_js_1.PublicKey('DtmeBbyWat6p2vSpRhuZ4MGRndXr2cdpd4GV8izCFvLb'),
|
|
447
|
-
oracleSource: types_1.OracleSource.PYTH_LAZER,
|
|
448
|
-
mint: new web3_js_1.PublicKey('27G8MtK7VtTcCHkpASjSDdkWWYfoqT6ggEuKidVJidD4'),
|
|
449
|
-
precision: new anchor_1.BN(10).pow(numericConstants_1.SIX),
|
|
450
|
-
precisionExp: numericConstants_1.SIX,
|
|
451
|
-
pythFeedId: '0x6704952e00b6a088b6dcdb8170dcd591eaf64cff9e996ca75ae0ca55bfb96687',
|
|
452
|
-
pythLazerId: 694,
|
|
453
|
-
launchTs: 1735255852000,
|
|
454
|
-
},
|
|
455
|
-
{
|
|
456
|
-
symbol: 'USDC-1',
|
|
457
|
-
marketIndex: 34,
|
|
458
|
-
poolId: 1,
|
|
459
|
-
oracle: new web3_js_1.PublicKey('9VCioxmni2gDLv11qufWzT3RDERhQE4iY5Gf7NTfYyAV'),
|
|
460
|
-
oracleSource: types_1.OracleSource.PYTH_LAZER_STABLE_COIN,
|
|
461
|
-
mint: new web3_js_1.PublicKey('EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v'),
|
|
462
|
-
precision: new anchor_1.BN(10).pow(numericConstants_1.SIX),
|
|
463
|
-
precisionExp: numericConstants_1.SIX,
|
|
464
|
-
pythFeedId: '0xeaa020c61cc479712813461ce153894a96a6c00b21ed0cfc2798d1f9a9e9c94a',
|
|
465
|
-
launchTs: 1735255852000,
|
|
466
|
-
pythLazerId: 7,
|
|
467
|
-
},
|
|
468
|
-
{
|
|
469
|
-
symbol: 'AI16Z',
|
|
470
|
-
marketIndex: 35,
|
|
471
|
-
poolId: 0,
|
|
472
|
-
oracle: new web3_js_1.PublicKey('BHqLyA9ov1VPNzt8eb5bt75X2Vk1EVKw1d9Qa78Gk5tR'),
|
|
473
|
-
oracleSource: types_1.OracleSource.SWITCHBOARD_ON_DEMAND,
|
|
474
|
-
mint: new web3_js_1.PublicKey('HeLp6NuQkmYB4pYWo2zYs22mESHXPQYzXbB8n4V98jwC'),
|
|
475
|
-
precision: new anchor_1.BN(10).pow(numericConstants_1.NINE),
|
|
476
|
-
precisionExp: numericConstants_1.NINE,
|
|
477
|
-
launchTs: 1736384970000,
|
|
478
|
-
},
|
|
479
|
-
{
|
|
480
|
-
symbol: 'TRUMP',
|
|
481
|
-
marketIndex: 36,
|
|
482
|
-
poolId: 0,
|
|
483
|
-
oracle: new web3_js_1.PublicKey('FPQjZYvHRGy51guJ77p7n9u9b8eo1ktKRc2D2g5Vysth'),
|
|
484
|
-
oracleSource: types_1.OracleSource.PYTH_LAZER,
|
|
485
|
-
mint: new web3_js_1.PublicKey('6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN'),
|
|
486
|
-
precision: new anchor_1.BN(10).pow(numericConstants_1.SIX),
|
|
487
|
-
precisionExp: numericConstants_1.SIX,
|
|
488
|
-
pythFeedId: '0x879551021853eec7a7dc827578e8e69da7e4fa8148339aa0d3d5296405be4b1a',
|
|
489
|
-
launchTs: 1737219250000,
|
|
490
|
-
pythLazerId: 203,
|
|
491
|
-
},
|
|
492
|
-
{
|
|
493
|
-
symbol: 'MELANIA',
|
|
494
|
-
marketIndex: 37,
|
|
495
|
-
poolId: 0,
|
|
496
|
-
oracle: new web3_js_1.PublicKey('3RgNWYYcZCKf5uZfriK8ASUbGQErhH6YbpdvZQ7ZKDCf'),
|
|
497
|
-
oracleSource: types_1.OracleSource.PYTH_LAZER,
|
|
498
|
-
mint: new web3_js_1.PublicKey('FUAfBo2jgks6gB4Z4LfZkqSZgzNucisEHqnNebaRxM1P'),
|
|
499
|
-
precision: new anchor_1.BN(10).pow(numericConstants_1.SIX),
|
|
500
|
-
precisionExp: numericConstants_1.SIX,
|
|
501
|
-
pythFeedId: '0x8fef7d52c7f4e3a6258d663f9d27e64a1b6fd95ab5f7d545dbf9a515353d0064',
|
|
502
|
-
launchTs: 1737360280000,
|
|
503
|
-
pythLazerId: 145,
|
|
504
|
-
},
|
|
505
|
-
{
|
|
506
|
-
symbol: 'AUSD',
|
|
507
|
-
marketIndex: 38,
|
|
508
|
-
poolId: 0,
|
|
509
|
-
oracle: new web3_js_1.PublicKey('9JYpqJfLXgrW8Wqzfd93GvJF73m2jJFjNqpQv3wQtehZ'),
|
|
510
|
-
oracleSource: types_1.OracleSource.PYTH_LAZER_STABLE_COIN,
|
|
511
|
-
mint: new web3_js_1.PublicKey('AUSD1jCcCyPLybk1YnvPWsHQSrZ46dxwoMniN4N2UEB9'),
|
|
512
|
-
precision: new anchor_1.BN(10).pow(numericConstants_1.SIX),
|
|
513
|
-
precisionExp: numericConstants_1.SIX,
|
|
514
|
-
pythFeedId: '0xd9912df360b5b7f21a122f15bdd5e27f62ce5e72bd316c291f7c86620e07fb2a',
|
|
515
|
-
launchTs: 1738255943000,
|
|
516
|
-
pythLazerId: 367,
|
|
517
|
-
},
|
|
518
|
-
{
|
|
519
|
-
symbol: 'FARTCOIN',
|
|
520
|
-
marketIndex: 39,
|
|
521
|
-
poolId: 0,
|
|
522
|
-
oracle: new web3_js_1.PublicKey('2sZomfWMDuQLcFak3nuharXorHrZ3hK8iaML6ZGSHtso'),
|
|
523
|
-
oracleSource: types_1.OracleSource.PYTH_LAZER,
|
|
524
|
-
mint: new web3_js_1.PublicKey('9BB6NFEcjBCtnNLFko2FqVQBq8HHM13kCyYcdQbgpump'),
|
|
525
|
-
precision: new anchor_1.BN(10).pow(numericConstants_1.SIX),
|
|
526
|
-
precisionExp: numericConstants_1.SIX,
|
|
527
|
-
pythLazerId: 182,
|
|
528
|
-
launchTs: 1743086746000,
|
|
529
|
-
},
|
|
530
|
-
{
|
|
531
|
-
symbol: 'JitoSOL-3',
|
|
532
|
-
marketIndex: 40,
|
|
533
|
-
poolId: 3,
|
|
534
|
-
oracle: new web3_js_1.PublicKey('Fqv8vT5fdjvBbHd5k4B4ZvnXLH6bbdKP8cMv93ybCP8W'),
|
|
535
|
-
oracleSource: types_1.OracleSource.SWITCHBOARD_ON_DEMAND,
|
|
536
|
-
mint: new web3_js_1.PublicKey('J1toso1uCk3RLmjorhTtrVwY9HJ7X8V9yYac6Y7kGCPn'),
|
|
537
|
-
precision: new anchor_1.BN(10).pow(numericConstants_1.NINE),
|
|
538
|
-
precisionExp: numericConstants_1.NINE,
|
|
539
|
-
pythFeedId: '0x67be9f519b95cf24338801051f9a808eff0a578ccb388db73b7f6fe1de019ffb',
|
|
540
|
-
},
|
|
541
|
-
{
|
|
542
|
-
symbol: 'PT-fragSOL-10JUL25-3',
|
|
543
|
-
marketIndex: 41,
|
|
544
|
-
poolId: 3,
|
|
545
|
-
oracle: new web3_js_1.PublicKey('CLjvwowzQ2L9PrmXA6zqbamxLVeDY9vE87aBxMZLJLoY'),
|
|
546
|
-
oracleSource: types_1.OracleSource.SWITCHBOARD_ON_DEMAND,
|
|
547
|
-
mint: new web3_js_1.PublicKey('8adRViFUNTe3yexj2gbQtx929zBJtWJRM8TeTzYbQBgx'),
|
|
548
|
-
precision: new anchor_1.BN(10).pow(numericConstants_1.NINE),
|
|
549
|
-
precisionExp: numericConstants_1.NINE,
|
|
550
|
-
},
|
|
551
|
-
{
|
|
552
|
-
symbol: 'PT-kySOL-15JUN25-3',
|
|
553
|
-
marketIndex: 42,
|
|
554
|
-
poolId: 3,
|
|
555
|
-
oracle: new web3_js_1.PublicKey('G4FdLzuezfaJxBd8eChuw1NU4Sq3n1rasGTwSh7dXegN'),
|
|
556
|
-
oracleSource: types_1.OracleSource.SWITCHBOARD_ON_DEMAND,
|
|
557
|
-
mint: new web3_js_1.PublicKey('FxT7bPGvkS5jKF2vgnJ16MciHqtsNqxbcWTfFg7L136h'),
|
|
558
|
-
precision: new anchor_1.BN(10).pow(numericConstants_1.NINE),
|
|
559
|
-
precisionExp: numericConstants_1.NINE,
|
|
560
|
-
},
|
|
561
|
-
{
|
|
562
|
-
symbol: 'PT-dSOL-30JUN25-3',
|
|
563
|
-
marketIndex: 43,
|
|
564
|
-
poolId: 3,
|
|
565
|
-
oracle: new web3_js_1.PublicKey('BR4NCRe2R8shvDAskUt6HE3n8Ej8HdMnVqshLz97BMm9'),
|
|
566
|
-
oracleSource: types_1.OracleSource.SWITCHBOARD_ON_DEMAND,
|
|
567
|
-
mint: new web3_js_1.PublicKey('8H3tZ7WcgYPKEQ7fCCAFQuaNqKdMH1EtBp2ovUPpRK3k'),
|
|
568
|
-
precision: new anchor_1.BN(10).pow(numericConstants_1.NINE),
|
|
569
|
-
precisionExp: numericConstants_1.NINE,
|
|
570
|
-
},
|
|
571
|
-
{
|
|
572
|
-
symbol: 'JTO-3',
|
|
573
|
-
marketIndex: 44,
|
|
574
|
-
poolId: 3,
|
|
575
|
-
oracle: new web3_js_1.PublicKey('DPvVSQYhZXQ2ygfT2Qjdg6iyeQVAyiz8okj88YRjy6NN'),
|
|
576
|
-
oracleSource: types_1.OracleSource.SWITCHBOARD_ON_DEMAND,
|
|
577
|
-
mint: new web3_js_1.PublicKey('jtojtomepa8beP8AuQc6eXt5FriJwfFMwQx2v2f9mCL'),
|
|
578
|
-
precision: new anchor_1.BN(10).pow(numericConstants_1.NINE),
|
|
579
|
-
precisionExp: numericConstants_1.NINE,
|
|
580
|
-
},
|
|
581
|
-
{
|
|
582
|
-
symbol: 'zBTC',
|
|
583
|
-
marketIndex: 45,
|
|
584
|
-
poolId: 0,
|
|
585
|
-
oracle: new web3_js_1.PublicKey('3xcpvBUVV8ALVV4Wod733Vyic3fe8iJAeXDpRdk19Z3p'),
|
|
586
|
-
oracleSource: types_1.OracleSource.PYTH_LAZER,
|
|
587
|
-
mint: new web3_js_1.PublicKey('zBTCug3er3tLyffELcvDNrKkCymbPWysGcWihESYfLg'),
|
|
588
|
-
precision: new anchor_1.BN(10).pow(numericConstants_1.EIGHT),
|
|
589
|
-
precisionExp: numericConstants_1.EIGHT,
|
|
590
|
-
pythFeedId: '0x3d824c7f7c26ed1c85421ecec8c754e6b52d66a4e45de20a9c9ea91de8b396f9',
|
|
591
|
-
launchTs: 1747155600000,
|
|
592
|
-
pythLazerId: 640,
|
|
593
|
-
},
|
|
594
|
-
{
|
|
595
|
-
symbol: 'ZEUS',
|
|
596
|
-
marketIndex: 46,
|
|
597
|
-
poolId: 0,
|
|
598
|
-
oracle: new web3_js_1.PublicKey('8cH72H3vqYPArV9QvkYJkwzTdsdNPPgVPrusz9sMmgNN'),
|
|
599
|
-
oracleSource: types_1.OracleSource.PYTH_LAZER,
|
|
600
|
-
mint: new web3_js_1.PublicKey('ZEUS1aR7aX8DFFJf5QjWj2ftDDdNTroMNGo8YoQm3Gq'),
|
|
601
|
-
precision: new anchor_1.BN(10).pow(numericConstants_1.SIX),
|
|
602
|
-
precisionExp: numericConstants_1.SIX,
|
|
603
|
-
pythFeedId: '0x31558e9ccb18c151af6c52bf78afd03098a7aca1b9cf171a65b693b464c2f066',
|
|
604
|
-
launchTs: 1747155600000,
|
|
605
|
-
pythLazerId: 643,
|
|
606
|
-
},
|
|
607
|
-
{
|
|
608
|
-
symbol: 'USDC-4',
|
|
609
|
-
marketIndex: 47,
|
|
610
|
-
poolId: 4,
|
|
611
|
-
oracle: new web3_js_1.PublicKey('9VCioxmni2gDLv11qufWzT3RDERhQE4iY5Gf7NTfYyAV'),
|
|
612
|
-
oracleSource: types_1.OracleSource.PYTH_LAZER_STABLE_COIN,
|
|
613
|
-
mint: new web3_js_1.PublicKey('EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v'),
|
|
614
|
-
precision: numericConstants_1.QUOTE_PRECISION,
|
|
615
|
-
precisionExp: numericConstants_1.QUOTE_PRECISION_EXP,
|
|
616
|
-
pythFeedId: '0xeaa020c61cc479712813461ce153894a96a6c00b21ed0cfc2798d1f9a9e9c94a',
|
|
617
|
-
pythLazerId: 7,
|
|
618
|
-
launchTs: 1747494165000,
|
|
619
|
-
},
|
|
620
|
-
{
|
|
621
|
-
symbol: 'USDT-4',
|
|
622
|
-
marketIndex: 48,
|
|
623
|
-
poolId: 4,
|
|
624
|
-
oracle: new web3_js_1.PublicKey('JDKJSkxjasBGL3ce1pkrN6tqDzuVUZPWzzkGuyX8m9yN'),
|
|
625
|
-
oracleSource: types_1.OracleSource.PYTH_LAZER_STABLE_COIN,
|
|
626
|
-
mint: new web3_js_1.PublicKey('Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB'),
|
|
627
|
-
precision: numericConstants_1.QUOTE_PRECISION,
|
|
628
|
-
precisionExp: numericConstants_1.QUOTE_PRECISION_EXP,
|
|
629
|
-
pythFeedId: '0x2b89b9dc8fdf9f34709a5b106b472f0f39bb6ca9ce04b0fd7f2e971688e2e53b',
|
|
630
|
-
pythLazerId: 8,
|
|
631
|
-
},
|
|
632
|
-
{
|
|
633
|
-
symbol: 'SOL-2',
|
|
634
|
-
marketIndex: 49,
|
|
635
|
-
poolId: 2,
|
|
636
|
-
oracle: new web3_js_1.PublicKey('3PiwrLLyiuWaxS7zJL5znGR9iYD3KWubZThdQzsCdg2e'),
|
|
637
|
-
oracleSource: types_1.OracleSource.SWITCHBOARD_ON_DEMAND,
|
|
638
|
-
mint: new web3_js_1.PublicKey(exports.WRAPPED_SOL_MINT),
|
|
639
|
-
precision: numericConstants_1.LAMPORTS_PRECISION,
|
|
640
|
-
precisionExp: numericConstants_1.LAMPORTS_EXP,
|
|
641
|
-
},
|
|
642
|
-
{
|
|
643
|
-
symbol: 'JitoSOL-2',
|
|
644
|
-
marketIndex: 50,
|
|
645
|
-
poolId: 2,
|
|
646
|
-
oracle: new web3_js_1.PublicKey('Fqv8vT5fdjvBbHd5k4B4ZvnXLH6bbdKP8cMv93ybCP8W'),
|
|
647
|
-
oracleSource: types_1.OracleSource.SWITCHBOARD_ON_DEMAND,
|
|
648
|
-
mint: new web3_js_1.PublicKey('J1toso1uCk3RLmjorhTtrVwY9HJ7X8V9yYac6Y7kGCPn'),
|
|
649
|
-
precision: new anchor_1.BN(10).pow(numericConstants_1.NINE),
|
|
650
|
-
precisionExp: numericConstants_1.NINE,
|
|
651
|
-
},
|
|
652
|
-
{
|
|
653
|
-
symbol: 'JTO-2',
|
|
654
|
-
marketIndex: 51,
|
|
655
|
-
poolId: 2,
|
|
656
|
-
oracle: new web3_js_1.PublicKey('DPvVSQYhZXQ2ygfT2Qjdg6iyeQVAyiz8okj88YRjy6NN'),
|
|
657
|
-
oracleSource: types_1.OracleSource.SWITCHBOARD_ON_DEMAND,
|
|
658
|
-
mint: new web3_js_1.PublicKey('jtojtomepa8beP8AuQc6eXt5FriJwfFMwQx2v2f9mCL'),
|
|
659
|
-
precision: new anchor_1.BN(10).pow(numericConstants_1.NINE),
|
|
660
|
-
precisionExp: numericConstants_1.NINE,
|
|
661
|
-
},
|
|
662
|
-
{
|
|
663
|
-
symbol: 'dfdvSOL',
|
|
664
|
-
marketIndex: 52,
|
|
665
|
-
poolId: 0,
|
|
666
|
-
oracle: new web3_js_1.PublicKey('EUQQD2fNN7h7su5TbWpUnf22zeGtF3RjEX2hgX2YPfLd'),
|
|
667
|
-
oracleSource: types_1.OracleSource.SWITCHBOARD_ON_DEMAND,
|
|
668
|
-
mint: new web3_js_1.PublicKey('sctmB7GPi5L2Q5G9tUSzXvhZ4YiDMEGcRov9KfArQpx'),
|
|
669
|
-
precision: new anchor_1.BN(10).pow(numericConstants_1.NINE),
|
|
670
|
-
precisionExp: numericConstants_1.NINE,
|
|
671
|
-
},
|
|
672
|
-
{
|
|
673
|
-
symbol: 'sACRED',
|
|
674
|
-
marketIndex: 53,
|
|
675
|
-
poolId: 4,
|
|
676
|
-
oracle: new web3_js_1.PublicKey('GheMfcCB49SuVCWrFReQDD2tLkcPDMG3qZEZWU44mHu'),
|
|
677
|
-
oracleSource: types_1.OracleSource.SWITCHBOARD_ON_DEMAND,
|
|
678
|
-
mint: new web3_js_1.PublicKey('59CwZq5b6drmDizgGfxECG7f16hxDpG1nXrxPoQx4y8g'),
|
|
679
|
-
precision: new anchor_1.BN(10).pow(numericConstants_1.SIX),
|
|
680
|
-
precisionExp: numericConstants_1.SIX,
|
|
681
|
-
},
|
|
682
|
-
{
|
|
683
|
-
symbol: 'EURC',
|
|
684
|
-
marketIndex: 54,
|
|
685
|
-
poolId: 0,
|
|
686
|
-
oracle: new web3_js_1.PublicKey('BkdSPLmw4W6twrJjAePw2bJAwDTBtxJ9t6LvNHfcBKg1'),
|
|
687
|
-
oracleSource: types_1.OracleSource.PYTH_LAZER,
|
|
688
|
-
mint: new web3_js_1.PublicKey('HzwqbKZw8HxMN6bF2yFZNrht3c2iXXzpKcFu7uBEDKtr'),
|
|
689
|
-
precision: new anchor_1.BN(10).pow(numericConstants_1.SIX),
|
|
690
|
-
precisionExp: numericConstants_1.SIX,
|
|
691
|
-
pythFeedId: '0x76fa85158bf14ede77087fe3ae472f66213f6ea2f5b411cb2de472794990fa5c',
|
|
692
|
-
pythLazerId: 240,
|
|
693
|
-
},
|
|
694
|
-
{
|
|
695
|
-
symbol: 'PT-fragSOL-31OCT25-3',
|
|
696
|
-
marketIndex: 55,
|
|
697
|
-
poolId: 3,
|
|
698
|
-
oracle: new web3_js_1.PublicKey('C41YpBLZfERAbV1p8DD48vDwbYhRQCbiryMx8Vp5sfo4'),
|
|
699
|
-
oracleSource: types_1.OracleSource.SWITCHBOARD_ON_DEMAND,
|
|
700
|
-
mint: new web3_js_1.PublicKey('Aby6y5DYtTrhQD8i7JXLs4H3jdUTwSXDraYqnwn5tKbt'),
|
|
701
|
-
precision: new anchor_1.BN(10).pow(numericConstants_1.NINE),
|
|
702
|
-
precisionExp: numericConstants_1.NINE,
|
|
703
|
-
},
|
|
704
|
-
{
|
|
705
|
-
symbol: 'PUMP',
|
|
706
|
-
marketIndex: 56,
|
|
707
|
-
poolId: 0,
|
|
708
|
-
oracle: new web3_js_1.PublicKey('5r8RWTaRiMgr9Lph3FTUE3sGb1vymhpCrm83Bovjfcps'),
|
|
709
|
-
oracleSource: types_1.OracleSource.PYTH_LAZER,
|
|
710
|
-
mint: new web3_js_1.PublicKey('pumpCmXqMfrsAkQ5r49WcJnRayYRqmXz6ae8H7H9Dfn'),
|
|
711
|
-
precision: new anchor_1.BN(10).pow(numericConstants_1.SIX),
|
|
712
|
-
precisionExp: numericConstants_1.SIX,
|
|
713
|
-
pythFeedId: '0x7a01fca212788bba7c5bf8c9efd576a8a722f070d2c17596ff7bb609b8d5c3b9',
|
|
714
|
-
pythLazerId: 1578,
|
|
715
|
-
},
|
|
716
|
-
{
|
|
717
|
-
symbol: 'syrupUSDC',
|
|
718
|
-
marketIndex: 57,
|
|
719
|
-
poolId: 0,
|
|
720
|
-
oracle: new web3_js_1.PublicKey('6cvX4Sgcuw53y8yYXLcpAjZ7fn1VcLKojVS23tor9sVx'),
|
|
721
|
-
oracleSource: types_1.OracleSource.PYTH_LAZER,
|
|
722
|
-
mint: new web3_js_1.PublicKey('AvZZF1YaZDziPY2RCK4oJrRVrbN3mTD9NL24hPeaZeUj'),
|
|
723
|
-
precision: new anchor_1.BN(10).pow(numericConstants_1.SIX),
|
|
724
|
-
precisionExp: numericConstants_1.SIX,
|
|
725
|
-
pythFeedId: '0x2ad31d1c4a85fbf2156ce57fab4104124c5ef76a6386375ecfc8da1ed5ce1486',
|
|
726
|
-
pythLazerId: 2941,
|
|
727
|
-
},
|
|
728
|
-
{
|
|
729
|
-
symbol: 'LBTC',
|
|
730
|
-
marketIndex: 58,
|
|
731
|
-
poolId: 0,
|
|
732
|
-
oracle: new web3_js_1.PublicKey('BmU3Hp9SZn77dUhWuED3ySuV3HenBgCoPZZP58M2ZMCr'),
|
|
733
|
-
oracleSource: types_1.OracleSource.PYTH_LAZER,
|
|
734
|
-
mint: new web3_js_1.PublicKey('LBTCgU4b3wsFKsPwBn1rRZDx5DoFutM6RPiEt1TPDsY'),
|
|
735
|
-
precision: new anchor_1.BN(10).pow(numericConstants_1.EIGHT),
|
|
736
|
-
precisionExp: numericConstants_1.EIGHT,
|
|
737
|
-
pythFeedId: '0x8f257aab6e7698bb92b15511915e593d6f8eae914452f781874754b03d0c612b',
|
|
738
|
-
launchTs: 1756392947000,
|
|
739
|
-
pythLazerId: 468,
|
|
740
|
-
},
|
|
741
|
-
{
|
|
742
|
-
symbol: '2Z',
|
|
743
|
-
marketIndex: 59,
|
|
744
|
-
poolId: 0,
|
|
745
|
-
oracle: new web3_js_1.PublicKey('4HTDpcHAwBTHCJLNMwT35w4FGc4nfA4YhT1BkcZQwQ2m'),
|
|
746
|
-
oracleSource: types_1.OracleSource.PYTH_LAZER,
|
|
747
|
-
mint: new web3_js_1.PublicKey('J6pQQ3FAcJQeWPPGppWRb4nM8jU3wLyYbRrLh7feMfvd'),
|
|
748
|
-
precision: new anchor_1.BN(10).pow(numericConstants_1.EIGHT),
|
|
749
|
-
precisionExp: numericConstants_1.EIGHT,
|
|
750
|
-
pythFeedId: '0xf2b3ab1c49e35e881003c3c0482d18b181a1560b697b844c24c8f85aba1cab95',
|
|
751
|
-
pythLazerId: 2316,
|
|
752
|
-
launchTs: 1759412919000,
|
|
753
|
-
},
|
|
754
|
-
{
|
|
755
|
-
symbol: 'MET',
|
|
756
|
-
marketIndex: 60,
|
|
757
|
-
poolId: 0,
|
|
758
|
-
oracle: new web3_js_1.PublicKey('HN7qfUNM5Q7gQTwyEucmYdCF4CjwUrspj3DbNQ4V8P52'),
|
|
759
|
-
oracleSource: types_1.OracleSource.PYTH_LAZER,
|
|
760
|
-
mint: new web3_js_1.PublicKey('METvsvVRapdj9cFLzq4Tr43xK4tAjQfwX76z3n6mWQL'),
|
|
761
|
-
precision: new anchor_1.BN(10).pow(numericConstants_1.SIX),
|
|
762
|
-
precisionExp: numericConstants_1.SIX,
|
|
763
|
-
pythFeedId: '0x0292e0f405bcd4a496d34e48307f6787349ad2bcd8505c3d3a9f77d81a67a682',
|
|
764
|
-
pythLazerId: 2382,
|
|
765
|
-
launchTs: 1761225524000,
|
|
766
|
-
},
|
|
767
|
-
{
|
|
768
|
-
symbol: 'CASH',
|
|
769
|
-
marketIndex: 61,
|
|
770
|
-
poolId: 0,
|
|
771
|
-
oracle: new web3_js_1.PublicKey('AK6coxSjfAnuDT4ZUSP3UpeQe2G1tKcALnsdd835eg7T'),
|
|
772
|
-
oracleSource: types_1.OracleSource.PYTH_LAZER_STABLE_COIN,
|
|
773
|
-
mint: new web3_js_1.PublicKey('CASHx9KJUStyftLFWGvEVf59SGeG9sh5FfcnZMVPCASH'),
|
|
774
|
-
precision: new anchor_1.BN(10).pow(numericConstants_1.SIX),
|
|
775
|
-
precisionExp: numericConstants_1.SIX,
|
|
776
|
-
pythFeedId: '0xdf3320ef0f4617337b8dbb924f2aaa4f9db08f522a5435b44f9066c1ac4c7f95',
|
|
777
|
-
pythLazerId: 2323,
|
|
778
|
-
launchTs: 1763677264000,
|
|
779
|
-
},
|
|
780
|
-
{
|
|
781
|
-
symbol: 'USD1',
|
|
782
|
-
marketIndex: 62,
|
|
783
|
-
poolId: 0,
|
|
784
|
-
oracle: new web3_js_1.PublicKey('Hk34ANkHfu4LHJhACMNCPNgGbi5ixpom2e3T7oh7EPDG'),
|
|
785
|
-
oracleSource: types_1.OracleSource.PYTH_LAZER_STABLE_COIN,
|
|
786
|
-
mint: new web3_js_1.PublicKey('USD1ttGY1N17NEEHLmELoaybftRBUSErhqYiQzvEmuB'),
|
|
787
|
-
precision: new anchor_1.BN(10).pow(numericConstants_1.SIX),
|
|
788
|
-
precisionExp: numericConstants_1.SIX,
|
|
789
|
-
pythFeedId: '0x0a2425d43486780990d8b63543029e20556be51fd756cca584212f4d539611d4',
|
|
790
|
-
pythLazerId: 604,
|
|
791
|
-
launchTs: 1764693189000,
|
|
792
|
-
},
|
|
793
66
|
];
|
|
67
|
+
/** Spot market registries keyed by `VelocityEnv`, for looking up a deployment's markets without hardcoding the environment. */
|
|
794
68
|
exports.SpotMarkets = {
|
|
795
69
|
devnet: exports.DevnetSpotMarkets,
|
|
796
70
|
'mainnet-beta': exports.MainnetSpotMarkets,
|