mirror of
https://github.com/logos-blockchain/lez-programs.git
synced 2026-05-19 07:29:32 +00:00
Add shared oracle_core price-feed types and account-backed validation. Wire stablecoin to re-export the shared oracle interface and add the mock_oracle program plus IDL artifact. Update ATA integration tests for the current Transfer instruction shape. Refs #96
79 lines
1.5 KiB
JSON
79 lines
1.5 KiB
JSON
{
|
|
"version": "0.1.0",
|
|
"name": "mock_oracle",
|
|
"instructions": [
|
|
{
|
|
"name": "set_price",
|
|
"accounts": [
|
|
{
|
|
"name": "price_account",
|
|
"writable": false,
|
|
"signer": false,
|
|
"init": false
|
|
}
|
|
],
|
|
"args": [
|
|
{
|
|
"name": "base_asset",
|
|
"type": "account_id"
|
|
},
|
|
{
|
|
"name": "quote_asset",
|
|
"type": "account_id"
|
|
},
|
|
{
|
|
"name": "price",
|
|
"type": "u128"
|
|
},
|
|
{
|
|
"name": "timestamp",
|
|
"type": "u64"
|
|
},
|
|
{
|
|
"name": "source_identifier",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "confidence_interval",
|
|
"type": "u128"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"accounts": [
|
|
{
|
|
"name": "OraclePriceAccount",
|
|
"type": {
|
|
"kind": "struct",
|
|
"fields": [
|
|
{
|
|
"name": "base_asset",
|
|
"type": "account_id"
|
|
},
|
|
{
|
|
"name": "quote_asset",
|
|
"type": "account_id"
|
|
},
|
|
{
|
|
"name": "price",
|
|
"type": "u128"
|
|
},
|
|
{
|
|
"name": "timestamp",
|
|
"type": "u64"
|
|
},
|
|
{
|
|
"name": "source_identifier",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "confidence_interval",
|
|
"type": "u128"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"instruction_type": "mock_oracle_core::Instruction"
|
|
}
|