Commit 8a11ec9
authored
Submodule protocol-v2 updated 81 files
- .github/workflows/main.yml+2
- CHANGELOG.md+30
- Cargo.lock+1-1
- programs/drift/Cargo.toml+1-1
- programs/drift/src/controller/amm.rs+21-3
- programs/drift/src/controller/insurance.rs+253-3
- programs/drift/src/controller/liquidation.rs+26-1
- programs/drift/src/controller/orders.rs+101-16
- programs/drift/src/controller/orders/tests.rs+17-2
- programs/drift/src/controller/pnl.rs+1
- programs/drift/src/controller/position/tests.rs+2-2
- programs/drift/src/controller/repeg.rs+2
- programs/drift/src/controller/repeg/tests.rs+4-2
- programs/drift/src/controller/spot_balance.rs+1
- programs/drift/src/error.rs+4
- programs/drift/src/ids.rs+5
- programs/drift/src/instructions/admin.rs+145-8
- programs/drift/src/instructions/if_staker.rs+524-1
- programs/drift/src/instructions/keeper.rs+15-15
- programs/drift/src/instructions/user.rs+34-2
- programs/drift/src/lib.rs+63-3
- programs/drift/src/math/amm_spread.rs+3-3
- programs/drift/src/math/amm_spread/tests.rs+23-23
- programs/drift/src/math/cp_curve/tests.rs+58
- programs/drift/src/math/fees/tests.rs+165
- programs/drift/src/math/insurance.rs+16-1
- programs/drift/src/math/margin.rs+6
- programs/drift/src/math/oracle.rs+7-1
- programs/drift/src/math/orders.rs+28
- programs/drift/src/math/orders/tests.rs+26
- programs/drift/src/math/repeg.rs+1
- programs/drift/src/state/events.rs+61-1
- programs/drift/src/state/if_rebalance_config.rs+108
- programs/drift/src/state/mod.rs+1
- programs/drift/src/state/oracle_map.rs+3
- programs/drift/src/state/order_params.rs+58-23
- programs/drift/src/state/order_params/tests.rs+10-8
- programs/drift/src/state/perp_market.rs+23-7
- programs/drift/src/state/perp_market/tests.rs+55
- programs/drift/src/state/perp_market_map.rs+3
- programs/drift/src/state/spot_market.rs+6
- programs/drift/src/state/user.rs+20-41
- programs/drift/src/validation/perp_market.rs+11-9
- sdk/README.md+6-7
- sdk/VERSION+1-1
- sdk/package.json+2-1
- sdk/src/accounts/bulkAccountLoader.ts+1-2
- sdk/src/accounts/customizedCadenceBulkAccountLoader.ts+213
- sdk/src/addresses/pda.ts+15
- sdk/src/adminClient.ts+179-6
- sdk/src/constants/numericConstants.ts+3-1
- sdk/src/constants/spotMarkets.ts+50
- sdk/src/decode/customCoder.ts+114
- sdk/src/dlob/DLOBSubscriber.ts+5-1
- sdk/src/dlob/orderBookLevels.ts+96-179
- sdk/src/driftClient.ts+105-7
- sdk/src/driftClientConfig.ts+2
- sdk/src/events/types.ts+9-1
- sdk/src/idl/drift.json+726-42
- sdk/src/index.ts+2
- sdk/src/indicative-quotes/indicativeQuotesSender.ts+39-25
- sdk/src/math/amm.ts+26-6
- sdk/src/math/auction.ts+96-1
- sdk/src/slot/SlotSubscriber.ts+11-4
- sdk/src/types.ts+69
- sdk/src/user.ts+69-75
- sdk/tests/accounts/customizedCadenceBulkAccountLoader.test.ts+202
- sdk/tests/ci/verifyConstants.ts+242-122
- sdk/tests/dlob/helpers.ts+3
- test-scripts/run-anchor-tests.sh+1
- test-scripts/single-anchor-test.sh+1-1
- tests/driftClient.ts+19
- tests/ifRebalance.ts+496
- tests/liquidatePerp.ts+5
- tests/oracleFillPriceGuardrails.ts+11-1
- tests/overwritePerpAccounts.ts+152
- tests/placeAndMakePerp.ts+6-1
- tests/placeAndMakeSignedMsg.ts+248-4
- tests/placeAndMakeSignedMsgBankrun.ts+3-3
- tests/switchboardTxCus.ts+1-1
- tests/testHelpers.ts+180-1
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
| |||
419 | 420 | | |
420 | 421 | | |
421 | 422 | | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
422 | 458 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1697 | 1697 | | |
1698 | 1698 | | |
1699 | 1699 | | |
1700 | | - | |
| 1700 | + | |
1701 | 1701 | | |
1702 | 1702 | | |
1703 | 1703 | | |
| |||
1707 | 1707 | | |
1708 | 1708 | | |
1709 | 1709 | | |
1710 | | - | |
1711 | | - | |
1712 | | - | |
1713 | | - | |
1714 | 1710 | | |
1715 | 1711 | | |
1716 | 1712 | | |
| |||
0 commit comments