@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.
Files changed (32) hide show
  1. package/lib/cjs/idl/circuit_breaker.json +388 -210
  2. package/lib/cjs/idl/data_credits.json +1847 -673
  3. package/lib/cjs/idl/fanout.json +1123 -328
  4. package/lib/cjs/idl/helium_entity_manager.json +4611 -2523
  5. package/lib/cjs/idl/helium_sub_daos.json +3863 -1971
  6. package/lib/cjs/idl/hexboosting.json +853 -282
  7. package/lib/cjs/idl/lazy_distributor.json +1640 -736
  8. package/lib/cjs/idl/lazy_transactions.json +341 -237
  9. package/lib/cjs/idl/mobile_entity_manager.json +2016 -602
  10. package/lib/cjs/idl/no_emit.json +168 -34
  11. package/lib/cjs/idl/price_oracle.json +179 -118
  12. package/lib/cjs/idl/rewards_oracle.json +374 -61
  13. package/lib/cjs/idl/treasury_management.json +495 -187
  14. package/lib/cjs/idl/voter_stake_registry.json +2955 -1339
  15. package/lib/cjs/transaction.js +1 -1
  16. package/lib/esm/src/idl/circuit_breaker.json +388 -210
  17. package/lib/esm/src/idl/data_credits.json +1847 -673
  18. package/lib/esm/src/idl/fanout.json +1123 -328
  19. package/lib/esm/src/idl/helium_entity_manager.json +4611 -2523
  20. package/lib/esm/src/idl/helium_sub_daos.json +3863 -1971
  21. package/lib/esm/src/idl/hexboosting.json +853 -282
  22. package/lib/esm/src/idl/lazy_distributor.json +1640 -736
  23. package/lib/esm/src/idl/lazy_transactions.json +341 -237
  24. package/lib/esm/src/idl/mobile_entity_manager.json +2016 -602
  25. package/lib/esm/src/idl/no_emit.json +168 -34
  26. package/lib/esm/src/idl/price_oracle.json +179 -118
  27. package/lib/esm/src/idl/rewards_oracle.json +374 -61
  28. package/lib/esm/src/idl/treasury_management.json +495 -187
  29. package/lib/esm/src/idl/voter_stake_registry.json +2955 -1339
  30. package/lib/esm/src/transaction.js +1 -1
  31. package/lib/esm/tsconfig.esm.tsbuildinfo +1 -1
  32. package/package.json +5 -5
@@ -1,92 +1,226 @@
1
1
  {
2
- "version": "0.0.1",
3
- "name": "no_emit",
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": "noEmitV0",
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
- "isMut": true,
11
- "isSigner": true
25
+ "writable": true,
26
+ "signer": true
12
27
  },
13
28
  {
14
- "name": "noEmitWallet",
15
- "isMut": false,
16
- "isSigner": false,
29
+ "name": "no_emit_wallet",
17
30
  "pda": {
18
31
  "seeds": [
19
32
  {
20
33
  "kind": "const",
21
- "type": "string",
22
- "value": "not_emitted"
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": "notEmittedCounter",
29
- "isMut": true,
30
- "isSigner": false,
52
+ "name": "not_emitted_counter",
53
+ "writable": true,
31
54
  "pda": {
32
55
  "seeds": [
33
56
  {
34
57
  "kind": "const",
35
- "type": "string",
36
- "value": "not_emitted_counter"
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": "tokenAccount",
49
- "isMut": true,
50
- "isSigner": false
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
- "isMut": true,
55
- "isSigner": false
179
+ "writable": true
56
180
  },
57
181
  {
58
- "name": "tokenProgram",
59
- "isMut": false,
60
- "isSigner": false
182
+ "name": "token_program",
183
+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
61
184
  },
62
185
  {
63
- "name": "systemProgram",
64
- "isMut": false,
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": "amountNotEmitted",
215
+ "name": "amount_not_emitted",
79
216
  "type": "u64"
80
217
  },
81
218
  {
82
- "name": "bumpSeed",
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
- "version": "0.2.1",
3
- "name": "price_oracle",
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": "initializePriceOracleV0",
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": "priceOracle",
10
- "isMut": true,
11
- "isSigner": true
24
+ "name": "price_oracle",
25
+ "writable": true,
26
+ "signer": true
12
27
  },
13
28
  {
14
29
  "name": "payer",
15
- "isMut": true,
16
- "isSigner": true
30
+ "writable": true,
31
+ "signer": true
17
32
  },
18
33
  {
19
- "name": "systemProgram",
20
- "isMut": false,
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": "InitializePriceOracleArgsV0"
42
+ "defined": {
43
+ "name": "InitializePriceOracleArgsV0"
44
+ }
29
45
  }
30
46
  }
31
47
  ]
32
48
  },
33
49
  {
34
- "name": "updatePriceOracleV0",
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": "priceOracle",
38
- "isMut": true,
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": "systemProgram",
51
- "isMut": false,
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": "UpdatePriceOracleArgsV0"
75
+ "defined": {
76
+ "name": "SubmitPriceArgsV0"
77
+ }
60
78
  }
61
79
  }
62
80
  ]
63
81
  },
64
82
  {
65
- "name": "submitPriceV0",
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": "priceOracle",
69
- "isMut": true,
70
- "isSigner": false
96
+ "name": "price_oracle",
97
+ "writable": true
71
98
  },
72
99
  {
73
- "name": "oracle",
74
- "isMut": false,
75
- "isSigner": true
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": "SubmitPriceArgsV0"
116
+ "defined": {
117
+ "name": "UpdatePriceOracleArgsV0"
118
+ }
83
119
  }
84
120
  }
85
121
  ]
86
122
  },
87
123
  {
88
- "name": "updatePriceV0",
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": "priceOracle",
92
- "isMut": true,
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": "authority",
107
- "type": "publicKey"
108
- },
109
- {
110
- "name": "numOracles",
111
- "type": "u8"
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": "oracles",
119
- "type": {
120
- "vec": {
121
- "defined": "OracleV0"
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": "currentPrice",
218
+ "name": "last_submitted_timestamp",
127
219
  "type": {
128
- "option": "u64"
220
+ "option": "i64"
129
221
  }
130
222
  },
131
223
  {
132
- "name": "lastCalculatedTimestamp",
224
+ "name": "last_submitted_price",
133
225
  "type": {
134
- "option": "i64"
226
+ "option": "u64"
135
227
  }
136
228
  }
137
229
  ]
138
230
  }
139
- }
140
- ],
141
- "types": [
231
+ },
142
232
  {
143
- "name": "InitializePriceOracleArgsV0",
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": "OracleV0"
253
+ "defined": {
254
+ "name": "OracleV0"
255
+ }
152
256
  }
153
257
  }
154
258
  },
155
259
  {
156
- "name": "decimals",
157
- "type": "u8"
260
+ "name": "current_price",
261
+ "type": {
262
+ "option": "u64"
263
+ }
158
264
  },
159
265
  {
160
- "name": "authority",
161
- "type": "publicKey"
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": "oracleIndex",
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": "OracleV0"
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": "publicKey"
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
  }