@@ -23,34 +23,36 @@ pub enum OracleCommand {
23
23
/// Initialize first mapping list account
24
24
// account[0] funding account [signer writable]
25
25
// account[1] mapping account [signer writable]
26
+ // account[2] permissions account []
26
27
InitMapping = 0 ,
27
- /// Initialize and add new mapping account
28
- // account[0] funding account [signer writable]
29
- // account[1] tail mapping account [signer writable]
30
- // account[2] new mapping account [signer writable]
28
+ /// deprecated
31
29
AddMapping = 1 ,
32
30
/// Initialize and add new product reference data account
33
31
// account[0] funding account [signer writable]
34
32
// account[1] mapping account [signer writable]
35
33
// account[2] new product account [signer writable]
34
+ // account[3] permissions account []
36
35
AddProduct = 2 ,
37
36
/// Update product account
38
37
// account[0] funding account [signer writable]
39
38
// account[1] product account [signer writable]
39
+ // account[2] permissions account []
40
40
UpdProduct = 3 ,
41
41
/// Add new price account to a product account
42
- // account[0] funding account [signer writable]
43
- // account[1] product account [writable]
44
- // account[2] new price account [writable]
45
- // account[3] permissions account [writable]
42
+ // account[0] funding account [signer writable]
43
+ // account[1] product account [writable]
44
+ // account[2] new price account [writable]
45
+ // account[3] permissions account [writable]
46
46
AddPrice = 4 ,
47
47
/// Add publisher to symbol account
48
48
// account[0] funding account [signer writable]
49
49
// account[1] price account [signer writable]
50
+ // account[2] permissions account []
50
51
AddPublisher = 5 ,
51
52
/// Delete publisher from symbol account
52
53
// account[0] funding account [signer writable]
53
54
// account[1] price account [signer writable]
55
+ // account[2] permissions account []
54
56
DelPublisher = 6 ,
55
57
/// Publish component price
56
58
// account[0] funding account [signer writable]
@@ -65,6 +67,7 @@ pub enum OracleCommand {
65
67
/// (Re)initialize price account
66
68
// account[0] funding account [signer writable]
67
69
// account[1] new price account [signer writable]
70
+ // account[2] permissions account []
68
71
InitPrice = 9 ,
69
72
/// deprecated
70
73
InitTest = 10 ,
@@ -73,41 +76,42 @@ pub enum OracleCommand {
73
76
/// Set min publishers
74
77
// account[0] funding account [signer writable]
75
78
// account[1] price account [signer writable]
79
+ // account[2] permissions account []
76
80
SetMinPub = 12 ,
77
81
/// Publish component price, never returning an error even if the update failed
78
82
// account[0] funding account [signer writable]
79
83
// account[1] price account [writable]
80
84
// account[2] sysvar_clock account []
81
85
UpdPriceNoFailOnError = 13 ,
82
- /// Resizes a price account so that it fits the Time Machine
83
- // account[0] funding account [signer writable]
84
- // account[1] price account [signer writable]
85
- // account[2] system program []
86
+ /// deprecated
86
87
ResizePriceAccount = 14 ,
87
88
/// Deletes a price account
88
89
// account[0] funding account [signer writable]
89
90
// account[1] product account [signer writable]
90
91
// account[2] price account [signer writable]
92
+ // account[3] permissions account []
91
93
DelPrice = 15 ,
92
94
/// Deletes a product account
93
- // key[0] funding account [signer writable]
94
- // key[1] mapping account [signer writable]
95
- // key[2] product account [signer writable]
95
+ // account[0] funding account [signer writable]
96
+ // account[1] mapping account [signer writable]
97
+ // account[2] product account [signer writable]
98
+ // account[3] permissions account []
96
99
DelProduct = 16 ,
97
100
/// Update authorities
98
- // key [0] upgrade authority [signer writable]
99
- // key [1] programdata account []
100
- // key [2] permissions account [writable]
101
- // key [3] system program []
101
+ // account [0] upgrade authority [signer writable]
102
+ // account [1] programdata account []
103
+ // account [2] permissions account [writable]
104
+ // account [3] system program []
102
105
UpdPermissions = 17 ,
103
106
/// Set max latency
104
107
// account[0] funding account [signer writable]
105
108
// account[1] price account [signer writable]
109
+ // account[2] permissions account []
106
110
SetMaxLatency = 18 ,
107
111
/// Init price feed index
108
- // account[0] funding account [signer writable]
109
- // account[1] price account [writable]
110
- // account[2] permissions account [writable]
112
+ // account[0] funding account [signer writable]
113
+ // account[1] price account [writable]
114
+ // account[2] permissions account [writable]
111
115
InitPriceFeedIndex = 19 ,
112
116
// account[0] mapping account [writable]
113
117
ResizeMapping = 20 ,
0 commit comments