Skip to content

Commit cdb37b5

Browse files
committed
idl changes and drift client working
1 parent 6a7b1f3 commit cdb37b5

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

sdk/src/driftClient.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,6 @@ import { findDirectionToClose, positionIsAvailable } from './math/position';
150150
import { getSignedTokenAmount, getTokenAmount } from './math/spotBalance';
151151
import { decodeName, DEFAULT_USER_NAME, encodeName } from './userName';
152152
import { MMOraclePriceData, OraclePriceData } from './oracles/types';
153-
import { MMOraclePriceData, OraclePriceData } from './oracles/types';
154153
import { DriftClientConfig } from './driftClientConfig';
155154
import { PollingDriftClientAccountSubscriber } from './accounts/pollingDriftClientAccountSubscriber';
156155
import { RetryTxSender } from './tx/retryTxSender';

sdk/src/idl/drift.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15575,6 +15575,23 @@
1557515575
]
1557615576
}
1557715577
},
15578+
{
15579+
"name": "AMMAvailability",
15580+
"type": {
15581+
"kind": "enum",
15582+
"variants": [
15583+
{
15584+
"name": "Immediate"
15585+
},
15586+
{
15587+
"name": "AfterMinDuration"
15588+
},
15589+
{
15590+
"name": "Unavailable"
15591+
}
15592+
]
15593+
}
15594+
},
1557815595
{
1557915596
"name": "RevenueShareOrderBitFlag",
1558015597
"type": {

0 commit comments

Comments
 (0)