neo3/neo_builder/transaction/
oracle_response_code.rs

1use num_enum::{IntoPrimitive, TryFromPrimitive};
2use serde::{Deserialize, Serialize};
3use strum_macros::{Display, EnumString};
4
5#[derive(
6	Display,
7	EnumString,
8	TryFromPrimitive,
9	IntoPrimitive,
10	Serialize,
11	Deserialize,
12	PartialEq,
13	Eq,
14	Copy,
15	Clone,
16	Hash,
17	Debug,
18)]
19#[repr(u8)]
20pub enum OracleResponseCode {
21	#[strum(serialize = "Success")]
22	Success = 0x00,
23	#[strum(serialize = "ProtocolNotSupported")]
24	ProtocolNotSupported = 0x10,
25	#[strum(serialize = "ConsensusUnreachable")]
26	ConsensusUnreachable = 0x12,
27	#[strum(serialize = "NotFound")]
28	NotFound = 0x14,
29	#[strum(serialize = "Timeout")]
30	Timeout = 0x16,
31	#[strum(serialize = "Forbidden")]
32	Forbidden = 0x18,
33	#[strum(serialize = "ResponseTooLarge")]
34	ResponseTooLarge = 0x1A,
35	#[strum(serialize = "InsufficientFunds")]
36	InsufficientFunds = 0x1C,
37	#[strum(serialize = "ContentTypeNotSupported")]
38	ContentTypeNotSupported = 0x1F,
39	#[strum(serialize = "Error")]
40	Error = 0xFF,
41}