@@ -23,34 +23,36 @@ pub enum OracleCommand {
2323 /// Initialize first mapping list account
2424 // account[0] funding account [signer writable]
2525 // account[1] mapping account [signer writable]
26+ // account[2] permissions account []
2627 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
3129 AddMapping = 1 ,
3230 /// Initialize and add new product reference data account
3331 // account[0] funding account [signer writable]
3432 // account[1] mapping account [signer writable]
3533 // account[2] new product account [signer writable]
34+ // account[3] permissions account []
3635 AddProduct = 2 ,
3736 /// Update product account
3837 // account[0] funding account [signer writable]
3938 // account[1] product account [signer writable]
39+ // account[2] permissions account []
4040 UpdProduct = 3 ,
4141 /// 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]
4646 AddPrice = 4 ,
4747 /// Add publisher to symbol account
4848 // account[0] funding account [signer writable]
4949 // account[1] price account [signer writable]
50+ // account[2] permissions account []
5051 AddPublisher = 5 ,
5152 /// Delete publisher from symbol account
5253 // account[0] funding account [signer writable]
5354 // account[1] price account [signer writable]
55+ // account[2] permissions account []
5456 DelPublisher = 6 ,
5557 /// Publish component price
5658 // account[0] funding account [signer writable]
@@ -65,6 +67,7 @@ pub enum OracleCommand {
6567 /// (Re)initialize price account
6668 // account[0] funding account [signer writable]
6769 // account[1] new price account [signer writable]
70+ // account[2] permissions account []
6871 InitPrice = 9 ,
6972 /// deprecated
7073 InitTest = 10 ,
@@ -73,41 +76,42 @@ pub enum OracleCommand {
7376 /// Set min publishers
7477 // account[0] funding account [signer writable]
7578 // account[1] price account [signer writable]
79+ // account[2] permissions account []
7680 SetMinPub = 12 ,
7781 /// Publish component price, never returning an error even if the update failed
7882 // account[0] funding account [signer writable]
7983 // account[1] price account [writable]
8084 // account[2] sysvar_clock account []
8185 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
8687 ResizePriceAccount = 14 ,
8788 /// Deletes a price account
8889 // account[0] funding account [signer writable]
8990 // account[1] product account [signer writable]
9091 // account[2] price account [signer writable]
92+ // account[3] permissions account []
9193 DelPrice = 15 ,
9294 /// 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 []
9699 DelProduct = 16 ,
97100 /// 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 []
102105 UpdPermissions = 17 ,
103106 /// Set max latency
104107 // account[0] funding account [signer writable]
105108 // account[1] price account [signer writable]
109+ // account[2] permissions account []
106110 SetMaxLatency = 18 ,
107111 /// 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]
111115 InitPriceFeedIndex = 19 ,
112116 // account[0] mapping account [writable]
113117 ResizeMapping = 20 ,
0 commit comments