lez-programs/artifacts/mock_oracle-idl.json
Ricardo Guilherme Schmidt 8f85b06a99
feat(oracle): add mock oracle feed program
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
2026-05-14 01:24:57 -03:00

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"
}