Skip to content

Commit

Permalink
sdk: udpate idl
Browse files Browse the repository at this point in the history
  • Loading branch information
crispheaney committed Dec 5, 2024
1 parent 53bb942 commit 9a690db
Showing 1 changed file with 141 additions and 5 deletions.
146 changes: 141 additions & 5 deletions sdk/src/idl/drift.json
Original file line number Diff line number Diff line change
Expand Up @@ -1457,6 +1457,41 @@
}
]
},
{
"name": "updateUserProtectedMakerOrders",
"accounts": [
{
"name": "state",
"isMut": false,
"isSigner": false
},
{
"name": "user",
"isMut": true,
"isSigner": false
},
{
"name": "authority",
"isMut": false,
"isSigner": true
},
{
"name": "protectedMakerModeConfig",
"isMut": true,
"isSigner": false
}
],
"args": [
{
"name": "subAccountId",
"type": "u16"
},
{
"name": "protectedMakerOrders",
"type": "bool"
}
]
},
{
"name": "deleteUser",
"accounts": [
Expand Down Expand Up @@ -6466,6 +6501,72 @@
"type": "bool"
}
]
},
{
"name": "initializeProtectedMakerModeConfig",
"accounts": [
{
"name": "admin",
"isMut": true,
"isSigner": true
},
{
"name": "protectedMakerModeConfig",
"isMut": true,
"isSigner": false
},
{
"name": "state",
"isMut": false,
"isSigner": false
},
{
"name": "rent",
"isMut": false,
"isSigner": false
},
{
"name": "systemProgram",
"isMut": false,
"isSigner": false
}
],
"args": [
{
"name": "maxUsers",
"type": "u32"
}
]
},
{
"name": "updateProtectedMakerModeConfig",
"accounts": [
{
"name": "admin",
"isMut": true,
"isSigner": true
},
{
"name": "protectedMakerModeConfig",
"isMut": true,
"isSigner": false
},
{
"name": "state",
"isMut": false,
"isSigner": false
}
],
"args": [
{
"name": "maxUsers",
"type": "u32"
},
{
"name": "reduceOnly",
"type": "bool"
}
]
}
],
"accounts": [
Expand Down Expand Up @@ -7113,6 +7214,35 @@
]
}
},
{
"name": "ProtectedMakerModeConfig",
"type": {
"kind": "struct",
"fields": [
{
"name": "maxUsers",
"type": "u32"
},
{
"name": "currentUsers",
"type": "u32"
},
{
"name": "reduceOnly",
"type": "u8"
},
{
"name": "padding",
"type": {
"array": [
"u8",
31
]
}
}
]
}
},
{
"name": "RFQUser",
"type": {
Expand Down Expand Up @@ -9026,9 +9156,7 @@
{
"name": "policy",
"type": {
"option": {
"defined": "ModifyOrderPolicy"
}
"option": "u8"
}
}
]
Expand Down Expand Up @@ -11075,10 +11203,10 @@
"kind": "enum",
"variants": [
{
"name": "TryModify"
"name": "MustModify"
},
{
"name": "MustModify"
"name": "ExcludePreviousFill"
}
]
}
Expand Down Expand Up @@ -11394,6 +11522,9 @@
},
{
"name": "AdvancedLp"
},
{
"name": "ProtectedMakerOrders"
}
]
}
Expand Down Expand Up @@ -14153,6 +14284,11 @@
"code": 6302,
"name": "InvalidPoolId",
"msg": "Invalid pool id"
},
{
"code": 6303,
"name": "InvalidProtectedMakerModeConfig",
"msg": "Invalid Protected Maker Mode Config"
}
],
"metadata": {
Expand Down

0 comments on commit 9a690db

Please sign in to comment.