@helium/spl-utils 0.9.23 → 0.10.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/idl/circuit_breaker.json +388 -210
- package/lib/cjs/idl/data_credits.json +1847 -673
- package/lib/cjs/idl/fanout.json +1123 -328
- package/lib/cjs/idl/helium_entity_manager.json +4611 -2523
- package/lib/cjs/idl/helium_sub_daos.json +3863 -1971
- package/lib/cjs/idl/hexboosting.json +853 -282
- package/lib/cjs/idl/lazy_distributor.json +1640 -736
- package/lib/cjs/idl/lazy_transactions.json +341 -237
- package/lib/cjs/idl/mobile_entity_manager.json +2016 -602
- package/lib/cjs/idl/no_emit.json +168 -34
- package/lib/cjs/idl/price_oracle.json +179 -118
- package/lib/cjs/idl/rewards_oracle.json +374 -61
- package/lib/cjs/idl/treasury_management.json +495 -187
- package/lib/cjs/idl/voter_stake_registry.json +2955 -1339
- package/lib/cjs/transaction.js +1 -1
- package/lib/esm/src/idl/circuit_breaker.json +388 -210
- package/lib/esm/src/idl/data_credits.json +1847 -673
- package/lib/esm/src/idl/fanout.json +1123 -328
- package/lib/esm/src/idl/helium_entity_manager.json +4611 -2523
- package/lib/esm/src/idl/helium_sub_daos.json +3863 -1971
- package/lib/esm/src/idl/hexboosting.json +853 -282
- package/lib/esm/src/idl/lazy_distributor.json +1640 -736
- package/lib/esm/src/idl/lazy_transactions.json +341 -237
- package/lib/esm/src/idl/mobile_entity_manager.json +2016 -602
- package/lib/esm/src/idl/no_emit.json +168 -34
- package/lib/esm/src/idl/price_oracle.json +179 -118
- package/lib/esm/src/idl/rewards_oracle.json +374 -61
- package/lib/esm/src/idl/treasury_management.json +495 -187
- package/lib/esm/src/idl/voter_stake_registry.json +2955 -1339
- package/lib/esm/src/transaction.js +1 -1
- package/lib/esm/tsconfig.esm.tsbuildinfo +1 -1
- package/package.json +5 -5
package/lib/cjs/idl/no_emit.json
CHANGED
|
@@ -1,92 +1,226 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"
|
|
2
|
+
"address": "noEmmgLmQdk6DLiPV8CSwQv3qQDyGEhz9m5A4zhtByv",
|
|
3
|
+
"metadata": {
|
|
4
|
+
"name": "no_emit",
|
|
5
|
+
"version": "0.0.1",
|
|
6
|
+
"spec": "0.1.0",
|
|
7
|
+
"description": "Created with Anchor"
|
|
8
|
+
},
|
|
4
9
|
"instructions": [
|
|
5
10
|
{
|
|
6
|
-
"name": "
|
|
11
|
+
"name": "no_emit_v0",
|
|
12
|
+
"discriminator": [
|
|
13
|
+
1,
|
|
14
|
+
49,
|
|
15
|
+
211,
|
|
16
|
+
57,
|
|
17
|
+
73,
|
|
18
|
+
147,
|
|
19
|
+
227,
|
|
20
|
+
61
|
|
21
|
+
],
|
|
7
22
|
"accounts": [
|
|
8
23
|
{
|
|
9
24
|
"name": "payer",
|
|
10
|
-
"
|
|
11
|
-
"
|
|
25
|
+
"writable": true,
|
|
26
|
+
"signer": true
|
|
12
27
|
},
|
|
13
28
|
{
|
|
14
|
-
"name": "
|
|
15
|
-
"isMut": false,
|
|
16
|
-
"isSigner": false,
|
|
29
|
+
"name": "no_emit_wallet",
|
|
17
30
|
"pda": {
|
|
18
31
|
"seeds": [
|
|
19
32
|
{
|
|
20
33
|
"kind": "const",
|
|
21
|
-
"
|
|
22
|
-
|
|
34
|
+
"value": [
|
|
35
|
+
110,
|
|
36
|
+
111,
|
|
37
|
+
116,
|
|
38
|
+
95,
|
|
39
|
+
101,
|
|
40
|
+
109,
|
|
41
|
+
105,
|
|
42
|
+
116,
|
|
43
|
+
116,
|
|
44
|
+
101,
|
|
45
|
+
100
|
|
46
|
+
]
|
|
23
47
|
}
|
|
24
48
|
]
|
|
25
49
|
}
|
|
26
50
|
},
|
|
27
51
|
{
|
|
28
|
-
"name": "
|
|
29
|
-
"
|
|
30
|
-
"isSigner": false,
|
|
52
|
+
"name": "not_emitted_counter",
|
|
53
|
+
"writable": true,
|
|
31
54
|
"pda": {
|
|
32
55
|
"seeds": [
|
|
33
56
|
{
|
|
34
57
|
"kind": "const",
|
|
35
|
-
"
|
|
36
|
-
|
|
58
|
+
"value": [
|
|
59
|
+
110,
|
|
60
|
+
111,
|
|
61
|
+
116,
|
|
62
|
+
95,
|
|
63
|
+
101,
|
|
64
|
+
109,
|
|
65
|
+
105,
|
|
66
|
+
116,
|
|
67
|
+
116,
|
|
68
|
+
101,
|
|
69
|
+
100,
|
|
70
|
+
95,
|
|
71
|
+
99,
|
|
72
|
+
111,
|
|
73
|
+
117,
|
|
74
|
+
110,
|
|
75
|
+
116,
|
|
76
|
+
101,
|
|
77
|
+
114
|
|
78
|
+
]
|
|
37
79
|
},
|
|
38
80
|
{
|
|
39
81
|
"kind": "account",
|
|
40
|
-
"type": "publicKey",
|
|
41
|
-
"account": "Mint",
|
|
42
82
|
"path": "mint"
|
|
43
83
|
}
|
|
44
84
|
]
|
|
45
85
|
}
|
|
46
86
|
},
|
|
47
87
|
{
|
|
48
|
-
"name": "
|
|
49
|
-
"
|
|
50
|
-
"
|
|
88
|
+
"name": "token_account",
|
|
89
|
+
"writable": true,
|
|
90
|
+
"pda": {
|
|
91
|
+
"seeds": [
|
|
92
|
+
{
|
|
93
|
+
"kind": "account",
|
|
94
|
+
"path": "no_emit_wallet"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"kind": "const",
|
|
98
|
+
"value": [
|
|
99
|
+
6,
|
|
100
|
+
221,
|
|
101
|
+
246,
|
|
102
|
+
225,
|
|
103
|
+
215,
|
|
104
|
+
101,
|
|
105
|
+
161,
|
|
106
|
+
147,
|
|
107
|
+
217,
|
|
108
|
+
203,
|
|
109
|
+
225,
|
|
110
|
+
70,
|
|
111
|
+
206,
|
|
112
|
+
235,
|
|
113
|
+
121,
|
|
114
|
+
172,
|
|
115
|
+
28,
|
|
116
|
+
180,
|
|
117
|
+
133,
|
|
118
|
+
237,
|
|
119
|
+
95,
|
|
120
|
+
91,
|
|
121
|
+
55,
|
|
122
|
+
145,
|
|
123
|
+
58,
|
|
124
|
+
140,
|
|
125
|
+
245,
|
|
126
|
+
133,
|
|
127
|
+
126,
|
|
128
|
+
255,
|
|
129
|
+
0,
|
|
130
|
+
169
|
|
131
|
+
]
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"kind": "account",
|
|
135
|
+
"path": "mint"
|
|
136
|
+
}
|
|
137
|
+
],
|
|
138
|
+
"program": {
|
|
139
|
+
"kind": "const",
|
|
140
|
+
"value": [
|
|
141
|
+
140,
|
|
142
|
+
151,
|
|
143
|
+
37,
|
|
144
|
+
143,
|
|
145
|
+
78,
|
|
146
|
+
36,
|
|
147
|
+
137,
|
|
148
|
+
241,
|
|
149
|
+
187,
|
|
150
|
+
61,
|
|
151
|
+
16,
|
|
152
|
+
41,
|
|
153
|
+
20,
|
|
154
|
+
142,
|
|
155
|
+
13,
|
|
156
|
+
131,
|
|
157
|
+
11,
|
|
158
|
+
90,
|
|
159
|
+
19,
|
|
160
|
+
153,
|
|
161
|
+
218,
|
|
162
|
+
255,
|
|
163
|
+
16,
|
|
164
|
+
132,
|
|
165
|
+
4,
|
|
166
|
+
142,
|
|
167
|
+
123,
|
|
168
|
+
216,
|
|
169
|
+
219,
|
|
170
|
+
233,
|
|
171
|
+
248,
|
|
172
|
+
89
|
|
173
|
+
]
|
|
174
|
+
}
|
|
175
|
+
}
|
|
51
176
|
},
|
|
52
177
|
{
|
|
53
178
|
"name": "mint",
|
|
54
|
-
"
|
|
55
|
-
"isSigner": false
|
|
179
|
+
"writable": true
|
|
56
180
|
},
|
|
57
181
|
{
|
|
58
|
-
"name": "
|
|
59
|
-
"
|
|
60
|
-
"isSigner": false
|
|
182
|
+
"name": "token_program",
|
|
183
|
+
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
|
|
61
184
|
},
|
|
62
185
|
{
|
|
63
|
-
"name": "
|
|
64
|
-
"
|
|
65
|
-
"isSigner": false
|
|
186
|
+
"name": "system_program",
|
|
187
|
+
"address": "11111111111111111111111111111111"
|
|
66
188
|
}
|
|
67
189
|
],
|
|
68
190
|
"args": []
|
|
69
191
|
}
|
|
70
192
|
],
|
|
71
193
|
"accounts": [
|
|
194
|
+
{
|
|
195
|
+
"name": "NotEmittedCounterV0",
|
|
196
|
+
"discriminator": [
|
|
197
|
+
131,
|
|
198
|
+
6,
|
|
199
|
+
110,
|
|
200
|
+
176,
|
|
201
|
+
104,
|
|
202
|
+
133,
|
|
203
|
+
70,
|
|
204
|
+
109
|
|
205
|
+
]
|
|
206
|
+
}
|
|
207
|
+
],
|
|
208
|
+
"types": [
|
|
72
209
|
{
|
|
73
210
|
"name": "NotEmittedCounterV0",
|
|
74
211
|
"type": {
|
|
75
212
|
"kind": "struct",
|
|
76
213
|
"fields": [
|
|
77
214
|
{
|
|
78
|
-
"name": "
|
|
215
|
+
"name": "amount_not_emitted",
|
|
79
216
|
"type": "u64"
|
|
80
217
|
},
|
|
81
218
|
{
|
|
82
|
-
"name": "
|
|
219
|
+
"name": "bump_seed",
|
|
83
220
|
"type": "u8"
|
|
84
221
|
}
|
|
85
222
|
]
|
|
86
223
|
}
|
|
87
224
|
}
|
|
88
|
-
]
|
|
89
|
-
"metadata": {
|
|
90
|
-
"address": "noEmmgLmQdk6DLiPV8CSwQv3qQDyGEhz9m5A4zhtByv"
|
|
91
|
-
}
|
|
225
|
+
]
|
|
92
226
|
}
|
|
@@ -1,96 +1,141 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"
|
|
2
|
+
"address": "porcSnvH9pvcYPmQ65Y8qcZSRxQBiBBQX7UV5nmBegy",
|
|
3
|
+
"metadata": {
|
|
4
|
+
"name": "price_oracle",
|
|
5
|
+
"version": "0.2.1",
|
|
6
|
+
"spec": "0.1.0",
|
|
7
|
+
"description": "Created with Anchor"
|
|
8
|
+
},
|
|
4
9
|
"instructions": [
|
|
5
10
|
{
|
|
6
|
-
"name": "
|
|
11
|
+
"name": "initialize_price_oracle_v0",
|
|
12
|
+
"discriminator": [
|
|
13
|
+
127,
|
|
14
|
+
56,
|
|
15
|
+
175,
|
|
16
|
+
142,
|
|
17
|
+
51,
|
|
18
|
+
216,
|
|
19
|
+
21,
|
|
20
|
+
242
|
|
21
|
+
],
|
|
7
22
|
"accounts": [
|
|
8
23
|
{
|
|
9
|
-
"name": "
|
|
10
|
-
"
|
|
11
|
-
"
|
|
24
|
+
"name": "price_oracle",
|
|
25
|
+
"writable": true,
|
|
26
|
+
"signer": true
|
|
12
27
|
},
|
|
13
28
|
{
|
|
14
29
|
"name": "payer",
|
|
15
|
-
"
|
|
16
|
-
"
|
|
30
|
+
"writable": true,
|
|
31
|
+
"signer": true
|
|
17
32
|
},
|
|
18
33
|
{
|
|
19
|
-
"name": "
|
|
20
|
-
"
|
|
21
|
-
"isSigner": false
|
|
34
|
+
"name": "system_program",
|
|
35
|
+
"address": "11111111111111111111111111111111"
|
|
22
36
|
}
|
|
23
37
|
],
|
|
24
38
|
"args": [
|
|
25
39
|
{
|
|
26
40
|
"name": "args",
|
|
27
41
|
"type": {
|
|
28
|
-
"defined":
|
|
42
|
+
"defined": {
|
|
43
|
+
"name": "InitializePriceOracleArgsV0"
|
|
44
|
+
}
|
|
29
45
|
}
|
|
30
46
|
}
|
|
31
47
|
]
|
|
32
48
|
},
|
|
33
49
|
{
|
|
34
|
-
"name": "
|
|
50
|
+
"name": "submit_price_v0",
|
|
51
|
+
"discriminator": [
|
|
52
|
+
96,
|
|
53
|
+
43,
|
|
54
|
+
132,
|
|
55
|
+
42,
|
|
56
|
+
175,
|
|
57
|
+
38,
|
|
58
|
+
86,
|
|
59
|
+
141
|
|
60
|
+
],
|
|
35
61
|
"accounts": [
|
|
36
62
|
{
|
|
37
|
-
"name": "
|
|
38
|
-
"
|
|
39
|
-
"isSigner": false,
|
|
40
|
-
"relations": [
|
|
41
|
-
"authority"
|
|
42
|
-
]
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"name": "authority",
|
|
46
|
-
"isMut": true,
|
|
47
|
-
"isSigner": true
|
|
63
|
+
"name": "price_oracle",
|
|
64
|
+
"writable": true
|
|
48
65
|
},
|
|
49
66
|
{
|
|
50
|
-
"name": "
|
|
51
|
-
"
|
|
52
|
-
"isSigner": false
|
|
67
|
+
"name": "oracle",
|
|
68
|
+
"signer": true
|
|
53
69
|
}
|
|
54
70
|
],
|
|
55
71
|
"args": [
|
|
56
72
|
{
|
|
57
73
|
"name": "args",
|
|
58
74
|
"type": {
|
|
59
|
-
"defined":
|
|
75
|
+
"defined": {
|
|
76
|
+
"name": "SubmitPriceArgsV0"
|
|
77
|
+
}
|
|
60
78
|
}
|
|
61
79
|
}
|
|
62
80
|
]
|
|
63
81
|
},
|
|
64
82
|
{
|
|
65
|
-
"name": "
|
|
83
|
+
"name": "update_price_oracle_v0",
|
|
84
|
+
"discriminator": [
|
|
85
|
+
120,
|
|
86
|
+
111,
|
|
87
|
+
175,
|
|
88
|
+
119,
|
|
89
|
+
196,
|
|
90
|
+
216,
|
|
91
|
+
121,
|
|
92
|
+
192
|
|
93
|
+
],
|
|
66
94
|
"accounts": [
|
|
67
95
|
{
|
|
68
|
-
"name": "
|
|
69
|
-
"
|
|
70
|
-
"isSigner": false
|
|
96
|
+
"name": "price_oracle",
|
|
97
|
+
"writable": true
|
|
71
98
|
},
|
|
72
99
|
{
|
|
73
|
-
"name": "
|
|
74
|
-
"
|
|
75
|
-
"
|
|
100
|
+
"name": "authority",
|
|
101
|
+
"writable": true,
|
|
102
|
+
"signer": true,
|
|
103
|
+
"relations": [
|
|
104
|
+
"price_oracle"
|
|
105
|
+
]
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"name": "system_program",
|
|
109
|
+
"address": "11111111111111111111111111111111"
|
|
76
110
|
}
|
|
77
111
|
],
|
|
78
112
|
"args": [
|
|
79
113
|
{
|
|
80
114
|
"name": "args",
|
|
81
115
|
"type": {
|
|
82
|
-
"defined":
|
|
116
|
+
"defined": {
|
|
117
|
+
"name": "UpdatePriceOracleArgsV0"
|
|
118
|
+
}
|
|
83
119
|
}
|
|
84
120
|
}
|
|
85
121
|
]
|
|
86
122
|
},
|
|
87
123
|
{
|
|
88
|
-
"name": "
|
|
124
|
+
"name": "update_price_v0",
|
|
125
|
+
"discriminator": [
|
|
126
|
+
70,
|
|
127
|
+
164,
|
|
128
|
+
118,
|
|
129
|
+
16,
|
|
130
|
+
169,
|
|
131
|
+
137,
|
|
132
|
+
66,
|
|
133
|
+
40
|
|
134
|
+
],
|
|
89
135
|
"accounts": [
|
|
90
136
|
{
|
|
91
|
-
"name": "
|
|
92
|
-
"
|
|
93
|
-
"isSigner": false
|
|
137
|
+
"name": "price_oracle",
|
|
138
|
+
"writable": true
|
|
94
139
|
}
|
|
95
140
|
],
|
|
96
141
|
"args": []
|
|
@@ -99,66 +144,129 @@
|
|
|
99
144
|
"accounts": [
|
|
100
145
|
{
|
|
101
146
|
"name": "PriceOracleV0",
|
|
147
|
+
"discriminator": [
|
|
148
|
+
131,
|
|
149
|
+
27,
|
|
150
|
+
117,
|
|
151
|
+
250,
|
|
152
|
+
250,
|
|
153
|
+
178,
|
|
154
|
+
196,
|
|
155
|
+
60
|
|
156
|
+
]
|
|
157
|
+
}
|
|
158
|
+
],
|
|
159
|
+
"errors": [
|
|
160
|
+
{
|
|
161
|
+
"code": 6000,
|
|
162
|
+
"name": "InvalidDataIncrease",
|
|
163
|
+
"msg": "The realloc increase was too large"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"code": 6001,
|
|
167
|
+
"name": "UnauthorisedOracle",
|
|
168
|
+
"msg": "Not authorised to submit a price"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"code": 6002,
|
|
172
|
+
"name": "InvalidPriceUpdate",
|
|
173
|
+
"msg": "Unable to update price"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"code": 6003,
|
|
177
|
+
"name": "InvalidArgs",
|
|
178
|
+
"msg": "Invalid argument"
|
|
179
|
+
}
|
|
180
|
+
],
|
|
181
|
+
"types": [
|
|
182
|
+
{
|
|
183
|
+
"name": "InitializePriceOracleArgsV0",
|
|
102
184
|
"type": {
|
|
103
185
|
"kind": "struct",
|
|
104
186
|
"fields": [
|
|
105
187
|
{
|
|
106
|
-
"name": "
|
|
107
|
-
"type":
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
188
|
+
"name": "oracles",
|
|
189
|
+
"type": {
|
|
190
|
+
"vec": {
|
|
191
|
+
"defined": {
|
|
192
|
+
"name": "OracleV0"
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
112
196
|
},
|
|
113
197
|
{
|
|
114
198
|
"name": "decimals",
|
|
115
199
|
"type": "u8"
|
|
116
200
|
},
|
|
117
201
|
{
|
|
118
|
-
"name": "
|
|
119
|
-
"type":
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
202
|
+
"name": "authority",
|
|
203
|
+
"type": "pubkey"
|
|
204
|
+
}
|
|
205
|
+
]
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"name": "OracleV0",
|
|
210
|
+
"type": {
|
|
211
|
+
"kind": "struct",
|
|
212
|
+
"fields": [
|
|
213
|
+
{
|
|
214
|
+
"name": "authority",
|
|
215
|
+
"type": "pubkey"
|
|
124
216
|
},
|
|
125
217
|
{
|
|
126
|
-
"name": "
|
|
218
|
+
"name": "last_submitted_timestamp",
|
|
127
219
|
"type": {
|
|
128
|
-
"option": "
|
|
220
|
+
"option": "i64"
|
|
129
221
|
}
|
|
130
222
|
},
|
|
131
223
|
{
|
|
132
|
-
"name": "
|
|
224
|
+
"name": "last_submitted_price",
|
|
133
225
|
"type": {
|
|
134
|
-
"option": "
|
|
226
|
+
"option": "u64"
|
|
135
227
|
}
|
|
136
228
|
}
|
|
137
229
|
]
|
|
138
230
|
}
|
|
139
|
-
}
|
|
140
|
-
],
|
|
141
|
-
"types": [
|
|
231
|
+
},
|
|
142
232
|
{
|
|
143
|
-
"name": "
|
|
233
|
+
"name": "PriceOracleV0",
|
|
144
234
|
"type": {
|
|
145
235
|
"kind": "struct",
|
|
146
236
|
"fields": [
|
|
237
|
+
{
|
|
238
|
+
"name": "authority",
|
|
239
|
+
"type": "pubkey"
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"name": "num_oracles",
|
|
243
|
+
"type": "u8"
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"name": "decimals",
|
|
247
|
+
"type": "u8"
|
|
248
|
+
},
|
|
147
249
|
{
|
|
148
250
|
"name": "oracles",
|
|
149
251
|
"type": {
|
|
150
252
|
"vec": {
|
|
151
|
-
"defined":
|
|
253
|
+
"defined": {
|
|
254
|
+
"name": "OracleV0"
|
|
255
|
+
}
|
|
152
256
|
}
|
|
153
257
|
}
|
|
154
258
|
},
|
|
155
259
|
{
|
|
156
|
-
"name": "
|
|
157
|
-
"type":
|
|
260
|
+
"name": "current_price",
|
|
261
|
+
"type": {
|
|
262
|
+
"option": "u64"
|
|
263
|
+
}
|
|
158
264
|
},
|
|
159
265
|
{
|
|
160
|
-
"name": "
|
|
161
|
-
"type":
|
|
266
|
+
"name": "last_calculated_timestamp",
|
|
267
|
+
"type": {
|
|
268
|
+
"option": "i64"
|
|
269
|
+
}
|
|
162
270
|
}
|
|
163
271
|
]
|
|
164
272
|
}
|
|
@@ -169,7 +277,7 @@
|
|
|
169
277
|
"kind": "struct",
|
|
170
278
|
"fields": [
|
|
171
279
|
{
|
|
172
|
-
"name": "
|
|
280
|
+
"name": "oracle_index",
|
|
173
281
|
"type": "u8"
|
|
174
282
|
},
|
|
175
283
|
{
|
|
@@ -189,7 +297,9 @@
|
|
|
189
297
|
"type": {
|
|
190
298
|
"option": {
|
|
191
299
|
"vec": {
|
|
192
|
-
"defined":
|
|
300
|
+
"defined": {
|
|
301
|
+
"name": "OracleV0"
|
|
302
|
+
}
|
|
193
303
|
}
|
|
194
304
|
}
|
|
195
305
|
}
|
|
@@ -197,60 +307,11 @@
|
|
|
197
307
|
{
|
|
198
308
|
"name": "authority",
|
|
199
309
|
"type": {
|
|
200
|
-
"option": "
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
]
|
|
204
|
-
}
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
"name": "OracleV0",
|
|
208
|
-
"type": {
|
|
209
|
-
"kind": "struct",
|
|
210
|
-
"fields": [
|
|
211
|
-
{
|
|
212
|
-
"name": "authority",
|
|
213
|
-
"type": "publicKey"
|
|
214
|
-
},
|
|
215
|
-
{
|
|
216
|
-
"name": "lastSubmittedTimestamp",
|
|
217
|
-
"type": {
|
|
218
|
-
"option": "i64"
|
|
219
|
-
}
|
|
220
|
-
},
|
|
221
|
-
{
|
|
222
|
-
"name": "lastSubmittedPrice",
|
|
223
|
-
"type": {
|
|
224
|
-
"option": "u64"
|
|
310
|
+
"option": "pubkey"
|
|
225
311
|
}
|
|
226
312
|
}
|
|
227
313
|
]
|
|
228
314
|
}
|
|
229
315
|
}
|
|
230
|
-
]
|
|
231
|
-
"errors": [
|
|
232
|
-
{
|
|
233
|
-
"code": 6000,
|
|
234
|
-
"name": "InvalidDataIncrease",
|
|
235
|
-
"msg": "The realloc increase was too large"
|
|
236
|
-
},
|
|
237
|
-
{
|
|
238
|
-
"code": 6001,
|
|
239
|
-
"name": "UnauthorisedOracle",
|
|
240
|
-
"msg": "Not authorised to submit a price"
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
"code": 6002,
|
|
244
|
-
"name": "InvalidPriceUpdate",
|
|
245
|
-
"msg": "Unable to update price"
|
|
246
|
-
},
|
|
247
|
-
{
|
|
248
|
-
"code": 6003,
|
|
249
|
-
"name": "InvalidArgs",
|
|
250
|
-
"msg": "Invalid argument"
|
|
251
|
-
}
|
|
252
|
-
],
|
|
253
|
-
"metadata": {
|
|
254
|
-
"address": "porcSnvH9pvcYPmQ65Y8qcZSRxQBiBBQX7UV5nmBegy"
|
|
255
|
-
}
|
|
316
|
+
]
|
|
256
317
|
}
|