Skip to content

Commit

Permalink
stricter deps (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
wphan authored Dec 13, 2024
1 parent 8494ee2 commit 41d9466
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 104 deletions.
Binary file modified common-ts/bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion common-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"@drift-labs/sdk": "file:../protocol/sdk",
"@jest/globals": "^29.3.1",
"@slack/web-api": "^6.4.0",
"@solana/spl-token": "^0.3.8",
"@solana/spl-token": "0.3.8",
"@solana/web3.js": "1.66.2",
"bcryptjs-react": "^2.4.6",
"cerializr": "^3.1.4",
Expand Down
176 changes: 74 additions & 102 deletions common-ts/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -363,28 +363,7 @@
resolved "https://registry.yarnpkg.com/@coral-xyz/anchor-errors/-/anchor-errors-0.30.1.tgz#bdfd3a353131345244546876eb4afc0e125bec30"
integrity sha512-9Mkradf5yS5xiLWrl9WrpjqOrAV+/W2RQHDlbnAZBivoGpOs1ECjoDCkVk4aRG8ZdiFiB8zQEVlxf+8fKkmSfQ==

"@coral-xyz/[email protected]":
version "0.28.0"
resolved "https://registry.yarnpkg.com/@coral-xyz/anchor/-/anchor-0.28.0.tgz#8345c3c9186a91f095f704d7b90cd256f7e8b2dc"
integrity sha512-kQ02Hv2ZqxtWP30WN1d4xxT4QqlOXYDxmEd3k/bbneqhV3X5QMO4LAtoUFs7otxyivOgoqam5Il5qx81FuI4vw==
dependencies:
"@coral-xyz/borsh" "^0.28.0"
"@solana/web3.js" "^1.68.0"
base64-js "^1.5.1"
bn.js "^5.1.2"
bs58 "^4.0.1"
buffer-layout "^1.2.2"
camelcase "^6.3.0"
cross-fetch "^3.1.5"
crypto-hash "^1.3.0"
eventemitter3 "^4.0.7"
js-sha256 "^0.9.0"
pako "^2.0.3"
snake-case "^3.0.4"
superstruct "^0.15.4"
toml "^3.0.0"

"@coral-xyz/anchor@^0.29.0":
"@coral-xyz/[email protected]", "@coral-xyz/anchor@^0.29.0":
version "0.29.0"
resolved "https://registry.yarnpkg.com/@coral-xyz/anchor/-/anchor-0.29.0.tgz#bd0be95bedfb30a381c3e676e5926124c310ff12"
integrity sha512-eny6QNG0WOwqV0zQ7cs/b1tIuzZGmP7U7EcH+ogt4Gdbl8HDmIYVMh/9aTmYZPaFWjtUaI8qSn73uYEXWfATdA==
Expand All @@ -404,14 +383,6 @@
superstruct "^0.15.4"
toml "^3.0.0"

"@coral-xyz/borsh@^0.28.0":
version "0.28.0"
resolved "https://registry.yarnpkg.com/@coral-xyz/borsh/-/borsh-0.28.0.tgz#fa368a2f2475bbf6f828f4657f40a52102e02b6d"
integrity sha512-/u1VTzw7XooK7rqeD7JLUSwOyRSesPUk0U37BV9zK0axJc1q0nRbKFGFLYCQ16OtdOJTTwGfGp11Lx9B45bRCQ==
dependencies:
bn.js "^5.1.2"
buffer-layout "^1.2.0"

"@coral-xyz/borsh@^0.29.0":
version "0.29.0"
resolved "https://registry.yarnpkg.com/@coral-xyz/borsh/-/borsh-0.29.0.tgz#79f7045df2ef66da8006d47f5399c7190363e71f"
Expand Down Expand Up @@ -445,31 +416,32 @@
kuler "^2.0.0"

"@drift-labs/sdk@file:../protocol/sdk":
version "2.98.0-beta.12"
version "2.104.0-beta.16"
dependencies:
"@coral-xyz/anchor" "0.28.0"
"@coral-xyz/anchor" "0.29.0"
"@coral-xyz/anchor-30" "npm:@coral-xyz/[email protected]"
"@ellipsis-labs/phoenix-sdk" "^1.4.2"
"@ellipsis-labs/phoenix-sdk" "1.4.5"
"@grpc/grpc-js" "^1.8.0"
"@openbook-dex/openbook-v2" "0.2.10"
"@project-serum/serum" "^0.13.38"
"@project-serum/serum" "0.13.65"
"@pythnetwork/client" "2.5.3"
"@pythnetwork/price-service-sdk" "^1.7.1"
"@pythnetwork/pyth-solana-receiver" "^0.7.0"
"@pythnetwork/price-service-sdk" "1.7.1"
"@pythnetwork/pyth-solana-receiver" "0.7.0"
"@solana/spl-token" "0.3.7"
"@solana/web3.js" "1.92.3"
"@switchboard-xyz/on-demand" "1.2.42"
"@triton-one/yellowstone-grpc" "0.6.0"
anchor-bankrun "^0.3.0"
node-cache "^5.1.2"
"@triton-one/yellowstone-grpc" "1.3.0"
anchor-bankrun "0.3.0"
node-cache "5.1.2"
rpc-websockets "7.5.1"
solana-bankrun "^0.3.0"
strict-event-emitter-types "^2.0.0"
solana-bankrun "0.3.1"
strict-event-emitter-types "2.0.0"
tweetnacl "1.0.3"
uuid "^8.3.2"
zstddec "^0.1.0"
uuid "8.3.2"
yargs "17.7.2"
zstddec "0.1.0"

"@ellipsis-labs/phoenix-sdk@^1.4.2":
"@ellipsis-labs/[email protected].5":
version "1.4.5"
resolved "https://registry.yarnpkg.com/@ellipsis-labs/phoenix-sdk/-/phoenix-sdk-1.4.5.tgz#42cf8de8463b32c910ab8844eae71ca082a6773a"
integrity sha512-vEYgMXuV5/mpnpEi+VK4HO8f6SheHtVLdHHlULBiDN1eECYmL67gq+/cRV7Ar6jAQ7rJZL7xBxhbUW5kugMl6A==
Expand Down Expand Up @@ -1023,7 +995,7 @@
bn.js "^5.1.2"
buffer-layout "^1.2.0"

"@project-serum/serum@^0.13.38":
"@project-serum/[email protected].65":
version "0.13.65"
resolved "https://registry.yarnpkg.com/@project-serum/serum/-/serum-0.13.65.tgz#6d3cf07912f13985765237f053cca716fe84b0b0"
integrity sha512-BHRqsTqPSfFB5p+MgI2pjvMBAQtO8ibTK2fYY96boIFkCI3TTwXDt2gUmspeChKO2pqHr5aKevmexzAcXxrSRA==
Expand Down Expand Up @@ -1096,14 +1068,14 @@
assert "^2.0.0"
buffer "^6.0.1"

"@pythnetwork/price-service-sdk@>=1.6.0", "@pythnetwork/price-service-sdk@^1.7.1":
"@pythnetwork/price-service-sdk@1.7.1", "@pythnetwork/price-service-sdk@>=1.6.0":
version "1.7.1"
resolved "https://registry.yarnpkg.com/@pythnetwork/price-service-sdk/-/price-service-sdk-1.7.1.tgz#dbfc8a8c2189f526346c1f79ec3995e89b690700"
integrity sha512-xr2boVXTyv1KUt/c6llUTfbv2jpud99pWlMJbFaHGUBoygQsByuy7WbjIJKZ+0Blg1itLZl0Lp/pJGGg8SdJoQ==
dependencies:
bn.js "^5.2.1"

"@pythnetwork/pyth-solana-receiver@^0.7.0":
"@pythnetwork/[email protected]":
version "0.7.0"
resolved "https://registry.yarnpkg.com/@pythnetwork/pyth-solana-receiver/-/pyth-solana-receiver-0.7.0.tgz#253a0d15a135d625ceca7ba1b47940dd03b9cab6"
integrity sha512-OoEAHh92RPRdKkfjkcKGrjC+t0F3SEL754iKFmixN9zyS8pIfZSVfFntmkHa9pWmqEMxdx/i925a8B5ny8Tuvg==
Expand Down Expand Up @@ -1355,6 +1327,15 @@
"@solana/buffer-layout-utils" "^0.2.0"
buffer "^6.0.3"

"@solana/[email protected]", "@solana/spl-token@^0.3.7":
version "0.3.8"
resolved "https://registry.yarnpkg.com/@solana/spl-token/-/spl-token-0.3.8.tgz#8e9515ea876e40a4cc1040af865f61fc51d27edf"
integrity sha512-ogwGDcunP9Lkj+9CODOWMiVJEdRtqHAtX2rWF62KxnnSWtMZtV9rDhTrZFshiyJmxDnRL/1nKE1yJHg4jjs3gg==
dependencies:
"@solana/buffer-layout" "^4.0.0"
"@solana/buffer-layout-utils" "^0.2.0"
buffer "^6.0.3"

"@solana/spl-token@^0.1.6":
version "0.1.8"
resolved "https://registry.yarnpkg.com/@solana/spl-token/-/spl-token-0.1.8.tgz#f06e746341ef8d04165e21fc7f555492a2a0faa6"
Expand All @@ -1377,15 +1358,6 @@
"@solana/spl-token-metadata" "^0.1.2"
buffer "^6.0.3"

"@solana/spl-token@^0.3.7", "@solana/spl-token@^0.3.8":
version "0.3.8"
resolved "https://registry.yarnpkg.com/@solana/spl-token/-/spl-token-0.3.8.tgz#8e9515ea876e40a4cc1040af865f61fc51d27edf"
integrity sha512-ogwGDcunP9Lkj+9CODOWMiVJEdRtqHAtX2rWF62KxnnSWtMZtV9rDhTrZFshiyJmxDnRL/1nKE1yJHg4jjs3gg==
dependencies:
"@solana/buffer-layout" "^4.0.0"
"@solana/buffer-layout-utils" "^0.2.0"
buffer "^6.0.3"

"@solana/spl-token@^0.4.0":
version "0.4.8"
resolved "https://registry.yarnpkg.com/@solana/spl-token/-/spl-token-0.4.8.tgz#a84e4131af957fa9fbd2727e5fc45dfbf9083586"
Expand Down Expand Up @@ -1591,10 +1563,10 @@
js-yaml "^4.1.0"
protobufjs "^7.2.6"

"@triton-one/yellowstone-grpc@0.6.0":
version "0.6.0"
resolved "https://registry.yarnpkg.com/@triton-one/yellowstone-grpc/-/yellowstone-grpc-0.6.0.tgz#9e6376cec8a42284c23dc195df2c3423c87c4f27"
integrity sha512-rgdZM2N3U9/d/QKOI5PP+9rSHUl2oSI5Uwzvuss8y/mtTaHFjbOMpXpQXviIeDkusOa+mef4wLYrbjEZCwTXiw==
"@triton-one/yellowstone-grpc@1.3.0":
version "1.3.0"
resolved "https://registry.yarnpkg.com/@triton-one/yellowstone-grpc/-/yellowstone-grpc-1.3.0.tgz#7caa7006b525149b4780d1295c7d4c34bc6a6ff6"
integrity sha512-tuwHtoYzvqnahsMrecfNNkQceCYwgiY0qKS8RwqtaxvDEgjm0E+0bXwKz2eUD3ZFYifomJmRKDmSBx9yQzAeMQ==
dependencies:
"@grpc/grpc-js" "^1.8.0"

Expand Down Expand Up @@ -1849,7 +1821,7 @@ agentkeepalive@^4.3.0, agentkeepalive@^4.5.0:
dependencies:
humanize-ms "^1.2.1"

anchor-bankrun@^0.3.0:
[email protected]:
version "0.3.0"
resolved "https://registry.yarnpkg.com/anchor-bankrun/-/anchor-bankrun-0.3.0.tgz#3789fcecbc201a2334cff228b99cc0da8ef0167e"
integrity sha512-PYBW5fWX+iGicIS5MIM/omhk1tQPUc0ELAnI/IkLKQJ6d75De/CQRh8MF2bU/TgGyFi6zEel80wUe3uRol9RrQ==
Expand Down Expand Up @@ -4060,7 +4032,7 @@ no-case@^3.0.4:
lower-case "^2.0.2"
tslib "^2.0.3"

node-cache@^5.1.2:
[email protected]:
version "5.1.2"
resolved "https://registry.yarnpkg.com/node-cache/-/node-cache-5.1.2.tgz#f264dc2ccad0a780e76253a694e9fd0ed19c398d"
integrity sha512-t1QzWwnk4sjLWaQAS8CHgOJ+RAfmHpxFWmc36IWTiWHQfs0w5JDMBS1b1ZxQteo0vVVuWJvIUKHDkkeK7vIGCg==
Expand Down Expand Up @@ -4566,44 +4538,44 @@ snake-case@^3.0.4:
dot-case "^3.0.4"
tslib "^2.0.3"

[email protected].0:
version "0.3.0"
resolved "https://registry.yarnpkg.com/solana-bankrun-darwin-arm64/-/solana-bankrun-darwin-arm64-0.3.0.tgz#749ce9858bf61c4244a06c4e6d99338daa154909"
integrity sha512-+NbDncf0U6l3knuacRBiqpjZ2DSp+5lZaAU518gH7/x6qubbui/d000STaIBK+uNTPBS/AL/bCN+7PkXqmA3lA==
[email protected].1:
version "0.3.1"
resolved "https://registry.yarnpkg.com/solana-bankrun-darwin-arm64/-/solana-bankrun-darwin-arm64-0.3.1.tgz#65ab6cd2e74eef260c38251f4c53721cf5b9030f"
integrity sha512-9LWtH/3/WR9fs8Ve/srdo41mpSqVHmRqDoo69Dv1Cupi+o1zMU6HiEPUHEvH2Tn/6TDbPEDf18MYNfReLUqE6A==

[email protected].0:
version "0.3.0"
resolved "https://registry.yarnpkg.com/solana-bankrun-darwin-universal/-/solana-bankrun-darwin-universal-0.3.0.tgz#2d2932282bb1fe719430f2f53060cad3104ebb26"
integrity sha512-1/F0xdMa4qvc5o6z16FCCbZ5jbdvKvxpx5kyPcMWRiRPwyvi+zltMxciPAYMlg3wslQqGz88uFhrBEzq2eTumQ==
[email protected].1:
version "0.3.1"
resolved "https://registry.yarnpkg.com/solana-bankrun-darwin-universal/-/solana-bankrun-darwin-universal-0.3.1.tgz#bf691457cf046e8739c021ca11e48de5b4fefd45"
integrity sha512-muGHpVYWT7xCd8ZxEjs/bmsbMp8XBqroYGbE4lQPMDUuLvsJEIrjGqs3MbxEFr71sa58VpyvgywWd5ifI7sGIg==

[email protected].0:
version "0.3.0"
resolved "https://registry.yarnpkg.com/solana-bankrun-darwin-x64/-/solana-bankrun-darwin-x64-0.3.0.tgz#c814a13702a12ba085c32b20a66a063cffbe74a1"
integrity sha512-U6CANjkmMl+lgNA7UH0GKs5V7LtVIUDzJBZefGGqLfqUNv3EjA/PrrToM0hAOWJgkxSwdz6zW+p5sw5FmnbXtg==
[email protected].1:
version "0.3.1"
resolved "https://registry.yarnpkg.com/solana-bankrun-darwin-x64/-/solana-bankrun-darwin-x64-0.3.1.tgz#c6f30c0a6bc3e1621ed90ce7562f26e93bf5303f"
integrity sha512-oCaxfHyt7RC3ZMldrh5AbKfy4EH3YRMl8h6fSlMZpxvjQx7nK7PxlRwMeflMnVdkKKp7U8WIDak1lilIPd3/lg==

[email protected].0:
version "0.3.0"
resolved "https://registry.yarnpkg.com/solana-bankrun-linux-x64-gnu/-/solana-bankrun-linux-x64-gnu-0.3.0.tgz#5c5dec2d4e01f755c9cf8fe9f791a8085bf94f51"
integrity sha512-qJSkCFs0k2n4XtTnyxGMiZsuqO2TiqTYgWjQ+3mZhGNUAMys/Vq8bd7/SyBm6RR7EfVuRXRxZvh+F8oKZ77V4w==
[email protected].1:
version "0.3.1"
resolved "https://registry.yarnpkg.com/solana-bankrun-linux-x64-gnu/-/solana-bankrun-linux-x64-gnu-0.3.1.tgz#78b522f1a581955a48f43a8fb560709c11301cfd"
integrity sha512-PfRFhr7igGFNt2Ecfdzh3li9eFPB3Xhmk0Eib17EFIB62YgNUg3ItRnQQFaf0spazFjjJLnglY1TRKTuYlgSVA==

[email protected].0:
version "0.3.0"
resolved "https://registry.yarnpkg.com/solana-bankrun-linux-x64-musl/-/solana-bankrun-linux-x64-musl-0.3.0.tgz#0df9434f03d1aa704b085f82e40cc6129b8eea09"
integrity sha512-xsS2CS2xb1Sw4ivNXM0gPz/qpW9BX0neSvt/pnok5L330Nu9xlTnKAY8FhzzqOP9P9sJlGRM787Y6d0yYwt6xQ==
[email protected].1:
version "0.3.1"
resolved "https://registry.yarnpkg.com/solana-bankrun-linux-x64-musl/-/solana-bankrun-linux-x64-musl-0.3.1.tgz#1a044a132138a0084e82406ec7bf4939f06bed68"
integrity sha512-6r8i0NuXg3CGURql8ISMIUqhE7Hx/O7MlIworK4oN08jYrP0CXdLeB/hywNn7Z8d1NXrox/NpYUgvRm2yIzAsQ==

solana-bankrun@^0.3.0:
version "0.3.0"
resolved "https://registry.yarnpkg.com/solana-bankrun/-/solana-bankrun-0.3.0.tgz#1183af008e00c565d6708f0c051588589e315d1c"
integrity sha512-YkH7sa8TB/AoRPzG17CXJtYsRIQHEkEqGLz1Vwc13taXhDBkjO7z6NI5JYw7n0ybRymDHwMYTc7sd+5J40TyVQ==
[email protected].1:
version "0.3.1"
resolved "https://registry.yarnpkg.com/solana-bankrun/-/solana-bankrun-0.3.1.tgz#13665ab7c1c15ec2b3354aae56980d0ded514998"
integrity sha512-inRwON7fBU5lPC36HdEqPeDg15FXJYcf77+o0iz9amvkUMJepcwnRwEfTNyMVpVYdgjTOBW5vg+596/3fi1kGA==
dependencies:
"@solana/web3.js" "^1.68.0"
bs58 "^4.0.1"
optionalDependencies:
solana-bankrun-darwin-arm64 "0.3.0"
solana-bankrun-darwin-universal "0.3.0"
solana-bankrun-darwin-x64 "0.3.0"
solana-bankrun-linux-x64-gnu "0.3.0"
solana-bankrun-linux-x64-musl "0.3.0"
solana-bankrun-darwin-arm64 "0.3.1"
solana-bankrun-darwin-universal "0.3.1"
solana-bankrun-darwin-x64 "0.3.1"
solana-bankrun-linux-x64-gnu "0.3.1"
solana-bankrun-linux-x64-musl "0.3.1"

[email protected]:
version "0.5.13"
Expand Down Expand Up @@ -4648,7 +4620,7 @@ standard-as-callback@^2.1.0:
resolved "https://registry.yarnpkg.com/standard-as-callback/-/standard-as-callback-2.1.0.tgz#8953fc05359868a77b5b9739a665c5977bb7df45"
integrity sha512-qoRRSyROncaz1z0mvYqIE4lCd9p2R90i6GxW3uZv5ucSu8tU7B5HXUP1gG8pVZsYNVaXjk8ClXHPttLyxAL48A==

strict-event-emitter-types@^2.0.0:
[email protected]:
version "2.0.0"
resolved "https://registry.yarnpkg.com/strict-event-emitter-types/-/strict-event-emitter-types-2.0.0.tgz#05e15549cb4da1694478a53543e4e2f4abcf277f"
integrity sha512-Nk/brWYpD85WlOgzw5h173aci0Teyv8YdIAEtV+N88nDB0dLlazZyJMIsN6eo1/AR61l+p6CJTG1JIyFaoNEEA==
Expand Down Expand Up @@ -4916,7 +4888,7 @@ util@^0.12.0:
is-typed-array "^1.1.3"
which-typed-array "^1.1.2"

uuid@^8.3.2:
uuid@8.3.2, uuid@^8.3.2:
version "8.3.2"
resolved "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz"
integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==
Expand Down Expand Up @@ -5102,10 +5074,10 @@ [email protected]:
y18n "^5.0.5"
yargs-parser "^20.2.2"

yargs@^17.3.1:
version "17.6.2"
resolved "https://registry.npmjs.org/yargs/-/yargs-17.6.2.tgz"
integrity sha512-1/9UrdHjDZc0eOU0HxOHoS78C69UD3JRMvzlJ7S79S2nTaWRA/whGCTV8o9e/N/1Va9YIV7Q4sOxD8VV4pCWOw==
yargs@17.7.2, yargs@^17.7.2:
version "17.7.2"
resolved "https://registry.yarnpkg.com/yargs/-/yargs-17.7.2.tgz#991df39aca675a192b816e1e0363f9d75d2aa269"
integrity sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==
dependencies:
cliui "^8.0.1"
escalade "^3.1.1"
Expand All @@ -5115,10 +5087,10 @@ yargs@^17.3.1:
y18n "^5.0.5"
yargs-parser "^21.1.1"

yargs@^17.7.2:
version "17.7.2"
resolved "https://registry.yarnpkg.com/yargs/-/yargs-17.7.2.tgz#991df39aca675a192b816e1e0363f9d75d2aa269"
integrity sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==
yargs@^17.3.1:
version "17.6.2"
resolved "https://registry.npmjs.org/yargs/-/yargs-17.6.2.tgz"
integrity sha512-1/9UrdHjDZc0eOU0HxOHoS78C69UD3JRMvzlJ7S79S2nTaWRA/whGCTV8o9e/N/1Va9YIV7Q4sOxD8VV4pCWOw==
dependencies:
cliui "^8.0.1"
escalade "^3.1.1"
Expand All @@ -5138,7 +5110,7 @@ yocto-queue@^0.1.0:
resolved "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz"
integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==

zstddec@^0.1.0:
[email protected]:
version "0.1.0"
resolved "https://registry.yarnpkg.com/zstddec/-/zstddec-0.1.0.tgz#7050f3f0e0c3978562d0c566b3e5a427d2bad7ec"
integrity sha512-w2NTI8+3l3eeltKAdK8QpiLo/flRAr2p8AGeakfMZOXBxOg9HIu4LVDxBi81sYgVhFhdJjv1OrB5ssI8uFPoLg==
2 changes: 1 addition & 1 deletion protocol
Submodule protocol updated 61 files
+5 −1 Anchor.toml
+4 −0 CHANGELOG.md
+291 −0 Cargo.lock
+13 −0 deps/configs/pyth_lazer_storage.json
+22 −21 package.json
+1 −0 programs/drift/Cargo.toml
+10 −2 programs/drift/src/error.rs
+5 −0 programs/drift/src/ids.rs
+78 −32 programs/drift/src/instructions/admin.rs
+81 −0 programs/drift/src/instructions/keeper.rs
+2 −0 programs/drift/src/instructions/mod.rs
+136 −0 programs/drift/src/instructions/pyth_lazer_oracle.rs
+20 −0 programs/drift/src/lib.rs
+1 −1 programs/drift/src/math/constants.rs
+1 −0 programs/drift/src/state/mod.rs
+62 −14 programs/drift/src/state/oracle.rs
+29 −14 programs/drift/src/state/oracle_map.rs
+30 −14 programs/drift/src/state/perp_market.rs
+22 −0 programs/drift/src/state/pyth_lazer_oracle.rs
+1 −1 sdk/VERSION
+ sdk/bun.lockb
+27 −27 sdk/package.json
+18 −0 sdk/src/addresses/pda.ts
+32 −1 sdk/src/adminClient.ts
+21 −0 sdk/src/bankrun/bankrunConnection.ts
+5 −0 sdk/src/config.ts
+23 −1 sdk/src/constants/spotMarkets.ts
+73 −228 sdk/src/dlob/DLOB.ts
+0 −39 sdk/src/dlob/DLOBApiClient.ts
+24 −1 sdk/src/dlob/DLOBNode.ts
+0 −49 sdk/src/dlob/DLOBOrders.ts
+1 −19 sdk/src/dlob/NodeList.ts
+0 −248 sdk/src/dlob/dlobIdl.json
+105 −5 sdk/src/driftClient.ts
+5 −0 sdk/src/factory/oracleClient.ts
+145 −2 sdk/src/idl/drift.json
+2 −3 sdk/src/index.ts
+9 −0 sdk/src/memcmp.ts
+1 −0 sdk/src/oracles/oracleId.ts
+102 −0 sdk/src/oracles/pythLazerClient.ts
+4 −0 sdk/src/tx/baseTxSender.ts
+4 −1 sdk/src/tx/whileValidTxSender.ts
+2 −0 sdk/src/types.ts
+8 −1 sdk/src/userMap/WebsocketSubscription.ts
+8 −1 sdk/src/userMap/grpcSubscription.ts
+6 −1 sdk/src/userMap/userMap.ts
+3 −1 sdk/src/userMap/userMapConfig.ts
+2 −0 sdk/src/util/computeUnits.ts
+136 −0 sdk/src/util/pythOracleUtils.ts
+0 −11 sdk/src/util/pythPullOracleUtils.ts
+13 −184 sdk/tests/dlob/test.ts
+56 −110 sdk/yarn.lock
+2 −1 test-scripts/run-anchor-local-validator-tests.sh
+1 −0 test-scripts/run-anchor-tests.sh
+1 −1 test-scripts/single-anchor-test.sh
+15 −0 tests/admin.ts
+264 −29 tests/placeAndMakeSwiftPerpBankrun.ts
+147 −0 tests/pythLazer.ts
+155 −0 tests/pythLazerBankrun.ts
+10 −0 tests/pythLazerData.ts
+27 −20 yarn.lock

0 comments on commit 41d9466

Please sign in to comment.