Appearance
Oracle Calls
Calls on the oracle module, submitted Borsh-encoded to the single Submit Transaction endpoint. Fields are listed in Borsh serialization order; see Encoding and Data Structures & Constants.
Register Oracle Feed
oracle.register_oracle_feed
Register a new oracle feed (admin only)
Protocol / admin operation.
| Field | Type | Required | Description |
|---|---|---|---|
oracle_id | OracleId | yes | The oracle identifier (source + feed id) |
symbol | SafeVec_32_of_uint8 | yes | Human-readable symbol as bytes (e.g., b"BTC/USD") |
max_confidence_basis_points | uint32 | yes | Maximum confidence in basis points |
max_staleness_ms | uint64 | yes | Maximum allowed age in milliseconds before price is considered stale |
exponent | int16 | yes | Fixed decimal exponent for this feed |
Submit Oracle Price Update
oracle.submit_oracle_price_update
Submit a price update for a specific oracle source
Protocol / admin operation.
| Field | Type | Required | Description |
|---|---|---|---|
source | OracleSource | yes | Oracle source |
update | SafeVec_5981_of_uint8 | yes | Oracle update payload (source-specific) |
Add Oracle Signer
oracle.add_oracle_signer
Add a trusted signer for an oracle source (admin only)
Protocol / admin operation.
| Field | Type | Required | Description |
|---|---|---|---|
source | OracleSource | yes | Oracle source |
public_key | Vec<uint8> | yes | Ed25519 public key to add to trusted signers |
Remove Oracle Signer
oracle.remove_oracle_signer
Remove a trusted signer for an oracle source (admin only)
Protocol / admin operation.
| Field | Type | Required | Description |
|---|---|---|---|
source | OracleSource | yes | Oracle source |
public_key | Vec<uint8> | yes | Ed25519 public key to remove from trusted signers |
Update Oracle Feed
oracle.update_oracle_feed
Update oracle feed parameters (admin only)
Protocol / admin operation.
| Field | Type | Required | Description |
|---|---|---|---|
oracle_id | OracleId | yes | The oracle identifier (source + feed id) |
max_confidence_basis_points | Option<uint32> | no | New maximum confidence in basis points (if Some) |
max_staleness_ms | Option<uint64> | no | New maximum staleness in milliseconds (if Some) |