@drift-labs/sdk
Version:
SDK for Drift Protocol
142 lines • 2.36 kB
JSON
{
"version": "0.1.0",
"name": "pyth",
"instructions": [
{
"name": "initialize",
"accounts": [
{
"name": "price",
"isMut": true,
"isSigner": false
}
],
"args": [
{
"name": "price",
"type": "i64"
},
{
"name": "expo",
"type": "i32"
},
{
"name": "conf",
"type": "u64"
}
]
},
{
"name": "setPrice",
"accounts": [
{
"name": "price",
"isMut": true,
"isSigner": false
}
],
"args": [
{
"name": "price",
"type": "i64"
}
]
},
{
"name": "setPriceInfo",
"accounts": [
{
"name": "price",
"isMut": true,
"isSigner": false
}
],
"args": [
{
"name": "price",
"type": "i64"
},
{
"name": "conf",
"type": "u64"
},
{
"name": "slot",
"type": "u64"
}
]
},
{
"name": "setTwap",
"accounts": [
{
"name": "price",
"isMut": true,
"isSigner": false
}
],
"args": [
{
"name": "twap",
"type": "i64"
}
]
}
],
"types": [
{
"name": "PriceStatus",
"type": {
"kind": "enum",
"variants": [
{
"name": "Unknown"
},
{
"name": "Trading"
},
{
"name": "Halted"
},
{
"name": "Auction"
}
]
}
},
{
"name": "CorpAction",
"type": {
"kind": "enum",
"variants": [
{
"name": "NoCorpAct"
}
]
}
},
{
"name": "PriceType",
"type": {
"kind": "enum",
"variants": [
{
"name": "Unknown"
},
{
"name": "Price"
},
{
"name": "TWAP"
},
{
"name": "Volatility"
}
]
}
}
],
"metadata": {
"address": "gSbePebfvPy7tRqimPoVecS2UsBvYv46ynrzWocc92s"
}
}