@metadaoproject/futarchy 0.7.0-alpha.4 → 0.7.0-alpha.5
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/dist/v0.7/BidWallClient.d.ts +357 -0
- package/dist/v0.7/BidWallClient.js +131 -0
- package/dist/v0.7/BidWallClient.js.map +1 -0
- package/dist/v0.7/ConditionalVaultClient.d.ts +169 -169
- package/dist/v0.7/FutarchyClient.d.ts +570 -570
- package/dist/v0.7/LaunchpadClient.d.ts +536 -372
- package/dist/v0.7/LaunchpadClient.js +83 -10
- package/dist/v0.7/LaunchpadClient.js.map +1 -1
- package/dist/v0.7/PriceBasedPerformancePackageClient.d.ts +171 -171
- package/dist/v0.7/constants.d.ts +2 -0
- package/dist/v0.7/constants.js +4 -1
- package/dist/v0.7/constants.js.map +1 -1
- package/dist/v0.7/index.d.ts +1 -0
- package/dist/v0.7/index.js +1 -0
- package/dist/v0.7/index.js.map +1 -1
- package/dist/v0.7/types/bid_wall.d.ts +733 -0
- package/dist/v0.7/types/bid_wall.js +733 -0
- package/dist/v0.7/types/bid_wall.js.map +1 -0
- package/dist/v0.7/types/conditional_vault.d.ts +525 -516
- package/dist/v0.7/types/conditional_vault.js +595 -586
- package/dist/v0.7/types/conditional_vault.js.map +1 -1
- package/dist/v0.7/types/futarchy.d.ts +1709 -1487
- package/dist/v0.7/types/futarchy.js +1881 -1659
- package/dist/v0.7/types/futarchy.js.map +1 -1
- package/dist/v0.7/types/index.d.ts +15 -2
- package/dist/v0.7/types/index.js +2 -0
- package/dist/v0.7/types/index.js.map +1 -1
- package/dist/v0.7/types/launchpad_v7.d.ts +1131 -779
- package/dist/v0.7/types/launchpad_v7.js +1195 -843
- package/dist/v0.7/types/launchpad_v7.js.map +1 -1
- package/dist/v0.7/types/price_based_performance_package.d.ts +543 -485
- package/dist/v0.7/types/price_based_performance_package.js +640 -582
- package/dist/v0.7/types/price_based_performance_package.js.map +1 -1
- package/dist/v0.7/utils/pda.d.ts +6 -0
- package/dist/v0.7/utils/pda.js +9 -1
- package/dist/v0.7/utils/pda.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,524 +1,574 @@
|
|
|
1
1
|
export const IDL = {
|
|
2
|
-
version: "0.6.0",
|
|
3
|
-
name: "price_based_performance_package",
|
|
4
|
-
constants: [
|
|
2
|
+
"version": "0.6.0",
|
|
3
|
+
"name": "price_based_performance_package",
|
|
4
|
+
"constants": [
|
|
5
5
|
{
|
|
6
|
-
name: "MAX_TRANCHES",
|
|
7
|
-
type: {
|
|
8
|
-
defined: "usize"
|
|
6
|
+
"name": "MAX_TRANCHES",
|
|
7
|
+
"type": {
|
|
8
|
+
"defined": "usize"
|
|
9
9
|
},
|
|
10
|
-
value: "10"
|
|
11
|
-
}
|
|
10
|
+
"value": "10"
|
|
11
|
+
}
|
|
12
12
|
],
|
|
13
|
-
instructions: [
|
|
13
|
+
"instructions": [
|
|
14
14
|
{
|
|
15
|
-
name: "initializePerformancePackage",
|
|
16
|
-
accounts: [
|
|
15
|
+
"name": "initializePerformancePackage",
|
|
16
|
+
"accounts": [
|
|
17
17
|
{
|
|
18
|
-
name: "performancePackage",
|
|
19
|
-
isMut: true,
|
|
20
|
-
isSigner: false
|
|
18
|
+
"name": "performancePackage",
|
|
19
|
+
"isMut": true,
|
|
20
|
+
"isSigner": false
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
|
-
name: "createKey",
|
|
24
|
-
isMut: false,
|
|
25
|
-
isSigner: true,
|
|
26
|
-
docs: [
|
|
23
|
+
"name": "createKey",
|
|
24
|
+
"isMut": false,
|
|
25
|
+
"isSigner": true,
|
|
26
|
+
"docs": [
|
|
27
|
+
"Used to derive the PDA"
|
|
28
|
+
]
|
|
27
29
|
},
|
|
28
30
|
{
|
|
29
|
-
name: "tokenMint",
|
|
30
|
-
isMut: false,
|
|
31
|
-
isSigner: false,
|
|
32
|
-
docs: [
|
|
31
|
+
"name": "tokenMint",
|
|
32
|
+
"isMut": false,
|
|
33
|
+
"isSigner": false,
|
|
34
|
+
"docs": [
|
|
35
|
+
"The mint of the tokens to be locked"
|
|
36
|
+
]
|
|
33
37
|
},
|
|
34
38
|
{
|
|
35
|
-
name: "grantorTokenAccount",
|
|
36
|
-
isMut: true,
|
|
37
|
-
isSigner: false,
|
|
38
|
-
docs: [
|
|
39
|
+
"name": "grantorTokenAccount",
|
|
40
|
+
"isMut": true,
|
|
41
|
+
"isSigner": false,
|
|
42
|
+
"docs": [
|
|
43
|
+
"The token account containing the tokens to be locked"
|
|
44
|
+
]
|
|
39
45
|
},
|
|
40
46
|
{
|
|
41
|
-
name: "grantor",
|
|
42
|
-
isMut: false,
|
|
43
|
-
isSigner: true,
|
|
44
|
-
docs: [
|
|
47
|
+
"name": "grantor",
|
|
48
|
+
"isMut": false,
|
|
49
|
+
"isSigner": true,
|
|
50
|
+
"docs": [
|
|
51
|
+
"The authority of the token account"
|
|
52
|
+
]
|
|
45
53
|
},
|
|
46
54
|
{
|
|
47
|
-
name: "performancePackageTokenVault",
|
|
48
|
-
isMut: true,
|
|
49
|
-
isSigner: false,
|
|
50
|
-
docs: [
|
|
55
|
+
"name": "performancePackageTokenVault",
|
|
56
|
+
"isMut": true,
|
|
57
|
+
"isSigner": false,
|
|
58
|
+
"docs": [
|
|
59
|
+
"The locker's token account where tokens will be stored"
|
|
60
|
+
]
|
|
51
61
|
},
|
|
52
62
|
{
|
|
53
|
-
name: "payer",
|
|
54
|
-
isMut: true,
|
|
55
|
-
isSigner: true
|
|
63
|
+
"name": "payer",
|
|
64
|
+
"isMut": true,
|
|
65
|
+
"isSigner": true
|
|
56
66
|
},
|
|
57
67
|
{
|
|
58
|
-
name: "systemProgram",
|
|
59
|
-
isMut: false,
|
|
60
|
-
isSigner: false
|
|
68
|
+
"name": "systemProgram",
|
|
69
|
+
"isMut": false,
|
|
70
|
+
"isSigner": false
|
|
61
71
|
},
|
|
62
72
|
{
|
|
63
|
-
name: "tokenProgram",
|
|
64
|
-
isMut: false,
|
|
65
|
-
isSigner: false
|
|
73
|
+
"name": "tokenProgram",
|
|
74
|
+
"isMut": false,
|
|
75
|
+
"isSigner": false
|
|
66
76
|
},
|
|
67
77
|
{
|
|
68
|
-
name: "associatedTokenProgram",
|
|
69
|
-
isMut: false,
|
|
70
|
-
isSigner: false
|
|
78
|
+
"name": "associatedTokenProgram",
|
|
79
|
+
"isMut": false,
|
|
80
|
+
"isSigner": false
|
|
71
81
|
},
|
|
72
82
|
{
|
|
73
|
-
name: "eventAuthority",
|
|
74
|
-
isMut: false,
|
|
75
|
-
isSigner: false
|
|
83
|
+
"name": "eventAuthority",
|
|
84
|
+
"isMut": false,
|
|
85
|
+
"isSigner": false
|
|
76
86
|
},
|
|
77
87
|
{
|
|
78
|
-
name: "program",
|
|
79
|
-
isMut: false,
|
|
80
|
-
isSigner: false
|
|
81
|
-
}
|
|
88
|
+
"name": "program",
|
|
89
|
+
"isMut": false,
|
|
90
|
+
"isSigner": false
|
|
91
|
+
}
|
|
82
92
|
],
|
|
83
|
-
args: [
|
|
93
|
+
"args": [
|
|
84
94
|
{
|
|
85
|
-
name: "params",
|
|
86
|
-
type: {
|
|
87
|
-
defined: "InitializePerformancePackageParams"
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
]
|
|
95
|
+
"name": "params",
|
|
96
|
+
"type": {
|
|
97
|
+
"defined": "InitializePerformancePackageParams"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
]
|
|
91
101
|
},
|
|
92
102
|
{
|
|
93
|
-
name: "startUnlock",
|
|
94
|
-
accounts: [
|
|
103
|
+
"name": "startUnlock",
|
|
104
|
+
"accounts": [
|
|
95
105
|
{
|
|
96
|
-
name: "performancePackage",
|
|
97
|
-
isMut: true,
|
|
98
|
-
isSigner: false
|
|
106
|
+
"name": "performancePackage",
|
|
107
|
+
"isMut": true,
|
|
108
|
+
"isSigner": false
|
|
99
109
|
},
|
|
100
110
|
{
|
|
101
|
-
name: "oracleAccount",
|
|
102
|
-
isMut: false,
|
|
103
|
-
isSigner: false
|
|
111
|
+
"name": "oracleAccount",
|
|
112
|
+
"isMut": false,
|
|
113
|
+
"isSigner": false
|
|
104
114
|
},
|
|
105
115
|
{
|
|
106
|
-
name: "recipient",
|
|
107
|
-
isMut: false,
|
|
108
|
-
isSigner: true,
|
|
109
|
-
docs: [
|
|
116
|
+
"name": "recipient",
|
|
117
|
+
"isMut": false,
|
|
118
|
+
"isSigner": true,
|
|
119
|
+
"docs": [
|
|
120
|
+
"Only the token recipient can start unlock"
|
|
121
|
+
]
|
|
110
122
|
},
|
|
111
123
|
{
|
|
112
|
-
name: "eventAuthority",
|
|
113
|
-
isMut: false,
|
|
114
|
-
isSigner: false
|
|
124
|
+
"name": "eventAuthority",
|
|
125
|
+
"isMut": false,
|
|
126
|
+
"isSigner": false
|
|
115
127
|
},
|
|
116
128
|
{
|
|
117
|
-
name: "program",
|
|
118
|
-
isMut: false,
|
|
119
|
-
isSigner: false
|
|
120
|
-
}
|
|
129
|
+
"name": "program",
|
|
130
|
+
"isMut": false,
|
|
131
|
+
"isSigner": false
|
|
132
|
+
}
|
|
121
133
|
],
|
|
122
|
-
args: []
|
|
134
|
+
"args": []
|
|
123
135
|
},
|
|
124
136
|
{
|
|
125
|
-
name: "completeUnlock",
|
|
126
|
-
accounts: [
|
|
137
|
+
"name": "completeUnlock",
|
|
138
|
+
"accounts": [
|
|
127
139
|
{
|
|
128
|
-
name: "performancePackage",
|
|
129
|
-
isMut: true,
|
|
130
|
-
isSigner: false
|
|
140
|
+
"name": "performancePackage",
|
|
141
|
+
"isMut": true,
|
|
142
|
+
"isSigner": false
|
|
131
143
|
},
|
|
132
144
|
{
|
|
133
|
-
name: "oracleAccount",
|
|
134
|
-
isMut: false,
|
|
135
|
-
isSigner: false
|
|
145
|
+
"name": "oracleAccount",
|
|
146
|
+
"isMut": false,
|
|
147
|
+
"isSigner": false
|
|
136
148
|
},
|
|
137
149
|
{
|
|
138
|
-
name: "performancePackageTokenVault",
|
|
139
|
-
isMut: true,
|
|
140
|
-
isSigner: false,
|
|
141
|
-
docs: [
|
|
150
|
+
"name": "performancePackageTokenVault",
|
|
151
|
+
"isMut": true,
|
|
152
|
+
"isSigner": false,
|
|
153
|
+
"docs": [
|
|
154
|
+
"The token account where locked tokens are stored"
|
|
155
|
+
]
|
|
142
156
|
},
|
|
143
157
|
{
|
|
144
|
-
name: "tokenMint",
|
|
145
|
-
isMut: false,
|
|
146
|
-
isSigner: false,
|
|
147
|
-
docs: [
|
|
158
|
+
"name": "tokenMint",
|
|
159
|
+
"isMut": false,
|
|
160
|
+
"isSigner": false,
|
|
161
|
+
"docs": [
|
|
162
|
+
"The token mint - validated via has_one constraint on locker"
|
|
163
|
+
]
|
|
148
164
|
},
|
|
149
165
|
{
|
|
150
|
-
name: "recipientTokenAccount",
|
|
151
|
-
isMut: true,
|
|
152
|
-
isSigner: false,
|
|
153
|
-
docs: [
|
|
154
|
-
"The recipient's ATA where tokens will be sent - created if needed"
|
|
155
|
-
]
|
|
166
|
+
"name": "recipientTokenAccount",
|
|
167
|
+
"isMut": true,
|
|
168
|
+
"isSigner": false,
|
|
169
|
+
"docs": [
|
|
170
|
+
"The recipient's ATA where tokens will be sent - created if needed"
|
|
171
|
+
]
|
|
156
172
|
},
|
|
157
173
|
{
|
|
158
|
-
name: "tokenRecipient",
|
|
159
|
-
isMut: false,
|
|
160
|
-
isSigner: false
|
|
174
|
+
"name": "tokenRecipient",
|
|
175
|
+
"isMut": false,
|
|
176
|
+
"isSigner": false
|
|
161
177
|
},
|
|
162
178
|
{
|
|
163
|
-
name: "payer",
|
|
164
|
-
isMut: true,
|
|
165
|
-
isSigner: true,
|
|
166
|
-
docs: [
|
|
179
|
+
"name": "payer",
|
|
180
|
+
"isMut": true,
|
|
181
|
+
"isSigner": true,
|
|
182
|
+
"docs": [
|
|
183
|
+
"Payer for creating the ATA if needed"
|
|
184
|
+
]
|
|
167
185
|
},
|
|
168
186
|
{
|
|
169
|
-
name: "systemProgram",
|
|
170
|
-
isMut: false,
|
|
171
|
-
isSigner: false
|
|
187
|
+
"name": "systemProgram",
|
|
188
|
+
"isMut": false,
|
|
189
|
+
"isSigner": false
|
|
172
190
|
},
|
|
173
191
|
{
|
|
174
|
-
name: "tokenProgram",
|
|
175
|
-
isMut: false,
|
|
176
|
-
isSigner: false
|
|
192
|
+
"name": "tokenProgram",
|
|
193
|
+
"isMut": false,
|
|
194
|
+
"isSigner": false
|
|
177
195
|
},
|
|
178
196
|
{
|
|
179
|
-
name: "associatedTokenProgram",
|
|
180
|
-
isMut: false,
|
|
181
|
-
isSigner: false
|
|
197
|
+
"name": "associatedTokenProgram",
|
|
198
|
+
"isMut": false,
|
|
199
|
+
"isSigner": false
|
|
182
200
|
},
|
|
183
201
|
{
|
|
184
|
-
name: "eventAuthority",
|
|
185
|
-
isMut: false,
|
|
186
|
-
isSigner: false
|
|
202
|
+
"name": "eventAuthority",
|
|
203
|
+
"isMut": false,
|
|
204
|
+
"isSigner": false
|
|
187
205
|
},
|
|
188
206
|
{
|
|
189
|
-
name: "program",
|
|
190
|
-
isMut: false,
|
|
191
|
-
isSigner: false
|
|
192
|
-
}
|
|
207
|
+
"name": "program",
|
|
208
|
+
"isMut": false,
|
|
209
|
+
"isSigner": false
|
|
210
|
+
}
|
|
193
211
|
],
|
|
194
|
-
args: []
|
|
212
|
+
"args": []
|
|
195
213
|
},
|
|
196
214
|
{
|
|
197
|
-
name: "proposeChange",
|
|
198
|
-
accounts: [
|
|
215
|
+
"name": "proposeChange",
|
|
216
|
+
"accounts": [
|
|
199
217
|
{
|
|
200
|
-
name: "changeRequest",
|
|
201
|
-
isMut: true,
|
|
202
|
-
isSigner: false
|
|
218
|
+
"name": "changeRequest",
|
|
219
|
+
"isMut": true,
|
|
220
|
+
"isSigner": false
|
|
203
221
|
},
|
|
204
222
|
{
|
|
205
|
-
name: "performancePackage",
|
|
206
|
-
isMut: true,
|
|
207
|
-
isSigner: false
|
|
223
|
+
"name": "performancePackage",
|
|
224
|
+
"isMut": true,
|
|
225
|
+
"isSigner": false
|
|
208
226
|
},
|
|
209
227
|
{
|
|
210
|
-
name: "proposer",
|
|
211
|
-
isMut: false,
|
|
212
|
-
isSigner: true
|
|
228
|
+
"name": "proposer",
|
|
229
|
+
"isMut": false,
|
|
230
|
+
"isSigner": true
|
|
213
231
|
},
|
|
214
232
|
{
|
|
215
|
-
name: "payer",
|
|
216
|
-
isMut: true,
|
|
217
|
-
isSigner: true
|
|
233
|
+
"name": "payer",
|
|
234
|
+
"isMut": true,
|
|
235
|
+
"isSigner": true
|
|
218
236
|
},
|
|
219
237
|
{
|
|
220
|
-
name: "systemProgram",
|
|
221
|
-
isMut: false,
|
|
222
|
-
isSigner: false
|
|
238
|
+
"name": "systemProgram",
|
|
239
|
+
"isMut": false,
|
|
240
|
+
"isSigner": false
|
|
223
241
|
},
|
|
224
242
|
{
|
|
225
|
-
name: "eventAuthority",
|
|
226
|
-
isMut: false,
|
|
227
|
-
isSigner: false
|
|
243
|
+
"name": "eventAuthority",
|
|
244
|
+
"isMut": false,
|
|
245
|
+
"isSigner": false
|
|
228
246
|
},
|
|
229
247
|
{
|
|
230
|
-
name: "program",
|
|
231
|
-
isMut: false,
|
|
232
|
-
isSigner: false
|
|
233
|
-
}
|
|
248
|
+
"name": "program",
|
|
249
|
+
"isMut": false,
|
|
250
|
+
"isSigner": false
|
|
251
|
+
}
|
|
234
252
|
],
|
|
235
|
-
args: [
|
|
253
|
+
"args": [
|
|
236
254
|
{
|
|
237
|
-
name: "params",
|
|
238
|
-
type: {
|
|
239
|
-
defined: "ProposeChangeParams"
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
]
|
|
255
|
+
"name": "params",
|
|
256
|
+
"type": {
|
|
257
|
+
"defined": "ProposeChangeParams"
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
]
|
|
243
261
|
},
|
|
244
262
|
{
|
|
245
|
-
name: "executeChange",
|
|
246
|
-
accounts: [
|
|
263
|
+
"name": "executeChange",
|
|
264
|
+
"accounts": [
|
|
247
265
|
{
|
|
248
|
-
name: "changeRequest",
|
|
249
|
-
isMut: true,
|
|
250
|
-
isSigner: false
|
|
266
|
+
"name": "changeRequest",
|
|
267
|
+
"isMut": true,
|
|
268
|
+
"isSigner": false
|
|
251
269
|
},
|
|
252
270
|
{
|
|
253
|
-
name: "performancePackage",
|
|
254
|
-
isMut: true,
|
|
255
|
-
isSigner: false
|
|
271
|
+
"name": "performancePackage",
|
|
272
|
+
"isMut": true,
|
|
273
|
+
"isSigner": false
|
|
256
274
|
},
|
|
257
275
|
{
|
|
258
|
-
name: "executor",
|
|
259
|
-
isMut: true,
|
|
260
|
-
isSigner: true,
|
|
261
|
-
docs: [
|
|
262
|
-
"The party executing the change (must be opposite of proposer)"
|
|
263
|
-
]
|
|
264
|
-
}
|
|
276
|
+
"name": "executor",
|
|
277
|
+
"isMut": true,
|
|
278
|
+
"isSigner": true,
|
|
279
|
+
"docs": [
|
|
280
|
+
"The party executing the change (must be opposite of proposer)"
|
|
281
|
+
]
|
|
282
|
+
}
|
|
265
283
|
],
|
|
266
|
-
args: []
|
|
284
|
+
"args": []
|
|
267
285
|
},
|
|
268
286
|
{
|
|
269
|
-
name: "changePerformancePackageAuthority",
|
|
270
|
-
accounts: [
|
|
271
|
-
{
|
|
272
|
-
name: "performancePackage",
|
|
273
|
-
isMut: true,
|
|
274
|
-
isSigner: false,
|
|
275
|
-
},
|
|
287
|
+
"name": "changePerformancePackageAuthority",
|
|
288
|
+
"accounts": [
|
|
276
289
|
{
|
|
277
|
-
name: "
|
|
278
|
-
isMut:
|
|
279
|
-
isSigner:
|
|
290
|
+
"name": "performancePackage",
|
|
291
|
+
"isMut": true,
|
|
292
|
+
"isSigner": false
|
|
280
293
|
},
|
|
281
|
-
],
|
|
282
|
-
args: [
|
|
283
294
|
{
|
|
284
|
-
name: "
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
},
|
|
295
|
+
"name": "currentAuthority",
|
|
296
|
+
"isMut": false,
|
|
297
|
+
"isSigner": true
|
|
298
|
+
}
|
|
289
299
|
],
|
|
290
|
-
|
|
300
|
+
"args": [
|
|
301
|
+
{
|
|
302
|
+
"name": "params",
|
|
303
|
+
"type": {
|
|
304
|
+
"defined": "ChangePerformancePackageAuthorityParams"
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
]
|
|
308
|
+
}
|
|
291
309
|
],
|
|
292
|
-
accounts: [
|
|
293
|
-
{
|
|
294
|
-
name: "performancePackage",
|
|
295
|
-
type: {
|
|
296
|
-
kind: "struct",
|
|
297
|
-
fields: [
|
|
298
|
-
{
|
|
299
|
-
name: "tranches",
|
|
300
|
-
docs: ["The tranches that make up the performance package"],
|
|
301
|
-
type: {
|
|
302
|
-
vec: {
|
|
303
|
-
defined: "StoredTranche",
|
|
304
|
-
},
|
|
305
|
-
},
|
|
306
|
-
},
|
|
310
|
+
"accounts": [
|
|
311
|
+
{
|
|
312
|
+
"name": "performancePackage",
|
|
313
|
+
"type": {
|
|
314
|
+
"kind": "struct",
|
|
315
|
+
"fields": [
|
|
307
316
|
{
|
|
308
|
-
name: "
|
|
309
|
-
docs: [
|
|
310
|
-
|
|
317
|
+
"name": "tranches",
|
|
318
|
+
"docs": [
|
|
319
|
+
"The tranches that make up the performance package"
|
|
320
|
+
],
|
|
321
|
+
"type": {
|
|
322
|
+
"vec": {
|
|
323
|
+
"defined": "StoredTranche"
|
|
324
|
+
}
|
|
325
|
+
}
|
|
311
326
|
},
|
|
312
327
|
{
|
|
313
|
-
name: "
|
|
314
|
-
docs: [
|
|
315
|
-
|
|
328
|
+
"name": "totalTokenAmount",
|
|
329
|
+
"docs": [
|
|
330
|
+
"Total amount of tokens in the performance package"
|
|
331
|
+
],
|
|
332
|
+
"type": "u64"
|
|
316
333
|
},
|
|
317
334
|
{
|
|
318
|
-
name: "
|
|
319
|
-
docs: [
|
|
320
|
-
|
|
335
|
+
"name": "alreadyUnlockedAmount",
|
|
336
|
+
"docs": [
|
|
337
|
+
"Amount of tokens already unlocked"
|
|
338
|
+
],
|
|
339
|
+
"type": "u64"
|
|
321
340
|
},
|
|
322
341
|
{
|
|
323
|
-
name: "
|
|
324
|
-
docs: [
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
342
|
+
"name": "minUnlockTimestamp",
|
|
343
|
+
"docs": [
|
|
344
|
+
"The timestamp when unlocking can begin"
|
|
345
|
+
],
|
|
346
|
+
"type": "i64"
|
|
328
347
|
},
|
|
329
348
|
{
|
|
330
|
-
name: "
|
|
331
|
-
docs: [
|
|
332
|
-
"
|
|
349
|
+
"name": "oracleConfig",
|
|
350
|
+
"docs": [
|
|
351
|
+
"Where to pull price data from"
|
|
333
352
|
],
|
|
334
|
-
type:
|
|
353
|
+
"type": {
|
|
354
|
+
"defined": "OracleConfig"
|
|
355
|
+
}
|
|
335
356
|
},
|
|
336
357
|
{
|
|
337
|
-
name: "
|
|
338
|
-
docs: [
|
|
339
|
-
|
|
358
|
+
"name": "twapLengthSeconds",
|
|
359
|
+
"docs": [
|
|
360
|
+
"Length of time in seconds for TWAP calculation, between 1 day and 1 year"
|
|
361
|
+
],
|
|
362
|
+
"type": "u32"
|
|
340
363
|
},
|
|
341
364
|
{
|
|
342
|
-
name: "
|
|
343
|
-
docs: [
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
365
|
+
"name": "recipient",
|
|
366
|
+
"docs": [
|
|
367
|
+
"The recipient of the tokens when unlocked"
|
|
368
|
+
],
|
|
369
|
+
"type": "publicKey"
|
|
347
370
|
},
|
|
348
371
|
{
|
|
349
|
-
name: "
|
|
350
|
-
docs: [
|
|
351
|
-
|
|
372
|
+
"name": "state",
|
|
373
|
+
"docs": [
|
|
374
|
+
"The current state of the locker"
|
|
375
|
+
],
|
|
376
|
+
"type": {
|
|
377
|
+
"defined": "PerformancePackageState"
|
|
378
|
+
}
|
|
352
379
|
},
|
|
353
380
|
{
|
|
354
|
-
name: "
|
|
355
|
-
docs: [
|
|
356
|
-
|
|
381
|
+
"name": "createKey",
|
|
382
|
+
"docs": [
|
|
383
|
+
"Used to derive the PDA"
|
|
384
|
+
],
|
|
385
|
+
"type": "publicKey"
|
|
357
386
|
},
|
|
358
387
|
{
|
|
359
|
-
name: "
|
|
360
|
-
docs: [
|
|
361
|
-
"The
|
|
388
|
+
"name": "pdaBump",
|
|
389
|
+
"docs": [
|
|
390
|
+
"The PDA bump"
|
|
362
391
|
],
|
|
363
|
-
type: "
|
|
392
|
+
"type": "u8"
|
|
364
393
|
},
|
|
365
394
|
{
|
|
366
|
-
name: "
|
|
367
|
-
docs: [
|
|
368
|
-
|
|
395
|
+
"name": "performancePackageAuthority",
|
|
396
|
+
"docs": [
|
|
397
|
+
"The authorized locker authority that can execute changes, usually the organization"
|
|
398
|
+
],
|
|
399
|
+
"type": "publicKey"
|
|
369
400
|
},
|
|
370
401
|
{
|
|
371
|
-
name: "
|
|
372
|
-
docs: [
|
|
373
|
-
"The
|
|
402
|
+
"name": "tokenMint",
|
|
403
|
+
"docs": [
|
|
404
|
+
"The mint of the locked tokens"
|
|
374
405
|
],
|
|
375
|
-
type: "
|
|
406
|
+
"type": "publicKey"
|
|
376
407
|
},
|
|
377
408
|
{
|
|
378
|
-
name: "
|
|
379
|
-
docs: [
|
|
380
|
-
|
|
409
|
+
"name": "seqNum",
|
|
410
|
+
"docs": [
|
|
411
|
+
"The sequence number of the performance package, used for indexing events"
|
|
412
|
+
],
|
|
413
|
+
"type": "u64"
|
|
381
414
|
},
|
|
382
|
-
|
|
383
|
-
|
|
415
|
+
{
|
|
416
|
+
"name": "performancePackageTokenVault",
|
|
417
|
+
"docs": [
|
|
418
|
+
"The vault that stores the tokens"
|
|
419
|
+
],
|
|
420
|
+
"type": "publicKey"
|
|
421
|
+
}
|
|
422
|
+
]
|
|
423
|
+
}
|
|
384
424
|
},
|
|
385
425
|
{
|
|
386
|
-
name: "changeRequest",
|
|
387
|
-
type: {
|
|
388
|
-
kind: "struct",
|
|
389
|
-
fields: [
|
|
426
|
+
"name": "changeRequest",
|
|
427
|
+
"type": {
|
|
428
|
+
"kind": "struct",
|
|
429
|
+
"fields": [
|
|
390
430
|
{
|
|
391
|
-
name: "performancePackage",
|
|
392
|
-
docs: [
|
|
393
|
-
|
|
431
|
+
"name": "performancePackage",
|
|
432
|
+
"docs": [
|
|
433
|
+
"The performance package this change applies to"
|
|
434
|
+
],
|
|
435
|
+
"type": "publicKey"
|
|
394
436
|
},
|
|
395
437
|
{
|
|
396
|
-
name: "changeType",
|
|
397
|
-
docs: [
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
438
|
+
"name": "changeType",
|
|
439
|
+
"docs": [
|
|
440
|
+
"What is being changed"
|
|
441
|
+
],
|
|
442
|
+
"type": {
|
|
443
|
+
"defined": "ChangeType"
|
|
444
|
+
}
|
|
401
445
|
},
|
|
402
446
|
{
|
|
403
|
-
name: "proposedAt",
|
|
404
|
-
docs: [
|
|
405
|
-
|
|
447
|
+
"name": "proposedAt",
|
|
448
|
+
"docs": [
|
|
449
|
+
"When the change was proposed"
|
|
450
|
+
],
|
|
451
|
+
"type": "i64"
|
|
406
452
|
},
|
|
407
453
|
{
|
|
408
|
-
name: "proposerType",
|
|
409
|
-
docs: [
|
|
410
|
-
"Who proposed this change (either token_recipient or locker_authority)"
|
|
454
|
+
"name": "proposerType",
|
|
455
|
+
"docs": [
|
|
456
|
+
"Who proposed this change (either token_recipient or locker_authority)"
|
|
411
457
|
],
|
|
412
|
-
type: {
|
|
413
|
-
defined: "ProposerType"
|
|
414
|
-
}
|
|
458
|
+
"type": {
|
|
459
|
+
"defined": "ProposerType"
|
|
460
|
+
}
|
|
415
461
|
},
|
|
416
462
|
{
|
|
417
|
-
name: "pdaNonce",
|
|
418
|
-
docs: [
|
|
419
|
-
|
|
463
|
+
"name": "pdaNonce",
|
|
464
|
+
"docs": [
|
|
465
|
+
"Used to derive the PDA along with the proposer"
|
|
466
|
+
],
|
|
467
|
+
"type": "u32"
|
|
420
468
|
},
|
|
421
469
|
{
|
|
422
|
-
name: "pdaBump",
|
|
423
|
-
docs: [
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
470
|
+
"name": "pdaBump",
|
|
471
|
+
"docs": [
|
|
472
|
+
"The PDA bump"
|
|
473
|
+
],
|
|
474
|
+
"type": "u8"
|
|
475
|
+
}
|
|
476
|
+
]
|
|
477
|
+
}
|
|
478
|
+
}
|
|
429
479
|
],
|
|
430
|
-
types: [
|
|
480
|
+
"types": [
|
|
431
481
|
{
|
|
432
|
-
name: "CommonFields",
|
|
433
|
-
type: {
|
|
434
|
-
kind: "struct",
|
|
435
|
-
fields: [
|
|
482
|
+
"name": "CommonFields",
|
|
483
|
+
"type": {
|
|
484
|
+
"kind": "struct",
|
|
485
|
+
"fields": [
|
|
436
486
|
{
|
|
437
|
-
name: "slot",
|
|
438
|
-
type: "u64"
|
|
487
|
+
"name": "slot",
|
|
488
|
+
"type": "u64"
|
|
439
489
|
},
|
|
440
490
|
{
|
|
441
|
-
name: "unixTimestamp",
|
|
442
|
-
type: "i64"
|
|
491
|
+
"name": "unixTimestamp",
|
|
492
|
+
"type": "i64"
|
|
443
493
|
},
|
|
444
494
|
{
|
|
445
|
-
name: "performancePackageSeqNum",
|
|
446
|
-
type: "u64"
|
|
447
|
-
}
|
|
448
|
-
]
|
|
449
|
-
}
|
|
495
|
+
"name": "performancePackageSeqNum",
|
|
496
|
+
"type": "u64"
|
|
497
|
+
}
|
|
498
|
+
]
|
|
499
|
+
}
|
|
450
500
|
},
|
|
451
501
|
{
|
|
452
|
-
name: "ChangePerformancePackageAuthorityParams",
|
|
453
|
-
type: {
|
|
454
|
-
kind: "struct",
|
|
455
|
-
fields: [
|
|
502
|
+
"name": "ChangePerformancePackageAuthorityParams",
|
|
503
|
+
"type": {
|
|
504
|
+
"kind": "struct",
|
|
505
|
+
"fields": [
|
|
456
506
|
{
|
|
457
|
-
name: "newPerformancePackageAuthority",
|
|
458
|
-
type: "publicKey"
|
|
459
|
-
}
|
|
460
|
-
]
|
|
461
|
-
}
|
|
507
|
+
"name": "newPerformancePackageAuthority",
|
|
508
|
+
"type": "publicKey"
|
|
509
|
+
}
|
|
510
|
+
]
|
|
511
|
+
}
|
|
462
512
|
},
|
|
463
513
|
{
|
|
464
|
-
name: "InitializePerformancePackageParams",
|
|
465
|
-
type: {
|
|
466
|
-
kind: "struct",
|
|
467
|
-
fields: [
|
|
514
|
+
"name": "InitializePerformancePackageParams",
|
|
515
|
+
"type": {
|
|
516
|
+
"kind": "struct",
|
|
517
|
+
"fields": [
|
|
468
518
|
{
|
|
469
|
-
name: "tranches",
|
|
470
|
-
type: {
|
|
471
|
-
vec: {
|
|
472
|
-
defined: "Tranche"
|
|
473
|
-
}
|
|
474
|
-
}
|
|
519
|
+
"name": "tranches",
|
|
520
|
+
"type": {
|
|
521
|
+
"vec": {
|
|
522
|
+
"defined": "Tranche"
|
|
523
|
+
}
|
|
524
|
+
}
|
|
475
525
|
},
|
|
476
526
|
{
|
|
477
|
-
name: "minUnlockTimestamp",
|
|
478
|
-
type: "i64"
|
|
527
|
+
"name": "minUnlockTimestamp",
|
|
528
|
+
"type": "i64"
|
|
479
529
|
},
|
|
480
530
|
{
|
|
481
|
-
name: "oracleConfig",
|
|
482
|
-
type: {
|
|
483
|
-
defined: "OracleConfig"
|
|
484
|
-
}
|
|
531
|
+
"name": "oracleConfig",
|
|
532
|
+
"type": {
|
|
533
|
+
"defined": "OracleConfig"
|
|
534
|
+
}
|
|
485
535
|
},
|
|
486
536
|
{
|
|
487
|
-
name: "twapLengthSeconds",
|
|
488
|
-
type: "u32"
|
|
537
|
+
"name": "twapLengthSeconds",
|
|
538
|
+
"type": "u32"
|
|
489
539
|
},
|
|
490
540
|
{
|
|
491
|
-
name: "grantee",
|
|
492
|
-
type: "publicKey"
|
|
541
|
+
"name": "grantee",
|
|
542
|
+
"type": "publicKey"
|
|
493
543
|
},
|
|
494
544
|
{
|
|
495
|
-
name: "performancePackageAuthority",
|
|
496
|
-
type: "publicKey"
|
|
497
|
-
}
|
|
498
|
-
]
|
|
499
|
-
}
|
|
545
|
+
"name": "performancePackageAuthority",
|
|
546
|
+
"type": "publicKey"
|
|
547
|
+
}
|
|
548
|
+
]
|
|
549
|
+
}
|
|
500
550
|
},
|
|
501
551
|
{
|
|
502
|
-
name: "ProposeChangeParams",
|
|
503
|
-
type: {
|
|
504
|
-
kind: "struct",
|
|
505
|
-
fields: [
|
|
552
|
+
"name": "ProposeChangeParams",
|
|
553
|
+
"type": {
|
|
554
|
+
"kind": "struct",
|
|
555
|
+
"fields": [
|
|
506
556
|
{
|
|
507
|
-
name: "changeType",
|
|
508
|
-
type: {
|
|
509
|
-
defined: "ChangeType"
|
|
510
|
-
}
|
|
557
|
+
"name": "changeType",
|
|
558
|
+
"type": {
|
|
559
|
+
"defined": "ChangeType"
|
|
560
|
+
}
|
|
511
561
|
},
|
|
512
562
|
{
|
|
513
|
-
name: "pdaNonce",
|
|
514
|
-
type: "u32"
|
|
515
|
-
}
|
|
516
|
-
]
|
|
517
|
-
}
|
|
563
|
+
"name": "pdaNonce",
|
|
564
|
+
"type": "u32"
|
|
565
|
+
}
|
|
566
|
+
]
|
|
567
|
+
}
|
|
518
568
|
},
|
|
519
569
|
{
|
|
520
|
-
name: "OracleConfig",
|
|
521
|
-
docs: [
|
|
570
|
+
"name": "OracleConfig",
|
|
571
|
+
"docs": [
|
|
522
572
|
"Starting at `byte_offset` in `oracle_account`, this program expects to read:",
|
|
523
573
|
"- 16 bytes for the aggregator, stored as a little endian u128",
|
|
524
574
|
"- 8 bytes for the slot that the aggregator was last updated, stored as a",
|
|
@@ -533,364 +583,372 @@ export const IDL = {
|
|
|
533
583
|
"",
|
|
534
584
|
"This allows our program to read a TWAP over a time period by reading the",
|
|
535
585
|
"aggregator value at the beginning and at the end, and dividing the difference",
|
|
536
|
-
"by the number of seconds between the two."
|
|
586
|
+
"by the number of seconds between the two."
|
|
537
587
|
],
|
|
538
|
-
type: {
|
|
539
|
-
kind: "struct",
|
|
540
|
-
fields: [
|
|
588
|
+
"type": {
|
|
589
|
+
"kind": "struct",
|
|
590
|
+
"fields": [
|
|
541
591
|
{
|
|
542
|
-
name: "oracleAccount",
|
|
543
|
-
type: "publicKey"
|
|
592
|
+
"name": "oracleAccount",
|
|
593
|
+
"type": "publicKey"
|
|
544
594
|
},
|
|
545
595
|
{
|
|
546
|
-
name: "byteOffset",
|
|
547
|
-
type: "u32"
|
|
548
|
-
}
|
|
549
|
-
]
|
|
550
|
-
}
|
|
596
|
+
"name": "byteOffset",
|
|
597
|
+
"type": "u32"
|
|
598
|
+
}
|
|
599
|
+
]
|
|
600
|
+
}
|
|
551
601
|
},
|
|
552
602
|
{
|
|
553
|
-
name: "Tranche",
|
|
554
|
-
type: {
|
|
555
|
-
kind: "struct",
|
|
556
|
-
fields: [
|
|
603
|
+
"name": "Tranche",
|
|
604
|
+
"type": {
|
|
605
|
+
"kind": "struct",
|
|
606
|
+
"fields": [
|
|
557
607
|
{
|
|
558
|
-
name: "priceThreshold",
|
|
559
|
-
docs: [
|
|
560
|
-
|
|
608
|
+
"name": "priceThreshold",
|
|
609
|
+
"docs": [
|
|
610
|
+
"The price at which this tranch unlocks"
|
|
611
|
+
],
|
|
612
|
+
"type": "u128"
|
|
561
613
|
},
|
|
562
614
|
{
|
|
563
|
-
name: "tokenAmount",
|
|
564
|
-
docs: [
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
615
|
+
"name": "tokenAmount",
|
|
616
|
+
"docs": [
|
|
617
|
+
"The amount of tokens in this tranch"
|
|
618
|
+
],
|
|
619
|
+
"type": "u64"
|
|
620
|
+
}
|
|
621
|
+
]
|
|
622
|
+
}
|
|
569
623
|
},
|
|
570
624
|
{
|
|
571
|
-
name: "StoredTranche",
|
|
572
|
-
type: {
|
|
573
|
-
kind: "struct",
|
|
574
|
-
fields: [
|
|
625
|
+
"name": "StoredTranche",
|
|
626
|
+
"type": {
|
|
627
|
+
"kind": "struct",
|
|
628
|
+
"fields": [
|
|
575
629
|
{
|
|
576
|
-
name: "priceThreshold",
|
|
577
|
-
type: "u128"
|
|
630
|
+
"name": "priceThreshold",
|
|
631
|
+
"type": "u128"
|
|
578
632
|
},
|
|
579
633
|
{
|
|
580
|
-
name: "tokenAmount",
|
|
581
|
-
type: "u64"
|
|
634
|
+
"name": "tokenAmount",
|
|
635
|
+
"type": "u64"
|
|
582
636
|
},
|
|
583
637
|
{
|
|
584
|
-
name: "isUnlocked",
|
|
585
|
-
type: "bool"
|
|
586
|
-
}
|
|
587
|
-
]
|
|
588
|
-
}
|
|
638
|
+
"name": "isUnlocked",
|
|
639
|
+
"type": "bool"
|
|
640
|
+
}
|
|
641
|
+
]
|
|
642
|
+
}
|
|
589
643
|
},
|
|
590
644
|
{
|
|
591
|
-
name: "PerformancePackageState",
|
|
592
|
-
type: {
|
|
593
|
-
kind: "enum",
|
|
594
|
-
variants: [
|
|
645
|
+
"name": "PerformancePackageState",
|
|
646
|
+
"type": {
|
|
647
|
+
"kind": "enum",
|
|
648
|
+
"variants": [
|
|
595
649
|
{
|
|
596
|
-
name: "Locked"
|
|
650
|
+
"name": "Locked"
|
|
597
651
|
},
|
|
598
652
|
{
|
|
599
|
-
name: "Unlocking",
|
|
600
|
-
fields: [
|
|
653
|
+
"name": "Unlocking",
|
|
654
|
+
"fields": [
|
|
601
655
|
{
|
|
602
|
-
name: "startAggregator",
|
|
603
|
-
docs: [
|
|
604
|
-
|
|
656
|
+
"name": "startAggregator",
|
|
657
|
+
"docs": [
|
|
658
|
+
"The aggregator value when unlocking started"
|
|
659
|
+
],
|
|
660
|
+
"type": "u128"
|
|
605
661
|
},
|
|
606
662
|
{
|
|
607
|
-
name: "startTimestamp",
|
|
608
|
-
docs: [
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
663
|
+
"name": "startTimestamp",
|
|
664
|
+
"docs": [
|
|
665
|
+
"The timestamp when unlocking started"
|
|
666
|
+
],
|
|
667
|
+
"type": "i64"
|
|
668
|
+
}
|
|
669
|
+
]
|
|
612
670
|
},
|
|
613
671
|
{
|
|
614
|
-
name: "Unlocked"
|
|
615
|
-
}
|
|
616
|
-
]
|
|
617
|
-
}
|
|
672
|
+
"name": "Unlocked"
|
|
673
|
+
}
|
|
674
|
+
]
|
|
675
|
+
}
|
|
618
676
|
},
|
|
619
677
|
{
|
|
620
|
-
name: "ChangeType",
|
|
621
|
-
type: {
|
|
622
|
-
kind: "enum",
|
|
623
|
-
variants: [
|
|
678
|
+
"name": "ChangeType",
|
|
679
|
+
"type": {
|
|
680
|
+
"kind": "enum",
|
|
681
|
+
"variants": [
|
|
624
682
|
{
|
|
625
|
-
name: "Oracle",
|
|
626
|
-
fields: [
|
|
683
|
+
"name": "Oracle",
|
|
684
|
+
"fields": [
|
|
627
685
|
{
|
|
628
|
-
name: "newOracleConfig",
|
|
629
|
-
type: {
|
|
630
|
-
defined: "OracleConfig"
|
|
631
|
-
}
|
|
632
|
-
}
|
|
633
|
-
]
|
|
686
|
+
"name": "newOracleConfig",
|
|
687
|
+
"type": {
|
|
688
|
+
"defined": "OracleConfig"
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
]
|
|
634
692
|
},
|
|
635
693
|
{
|
|
636
|
-
name: "Recipient",
|
|
637
|
-
fields: [
|
|
694
|
+
"name": "Recipient",
|
|
695
|
+
"fields": [
|
|
638
696
|
{
|
|
639
|
-
name: "newRecipient",
|
|
640
|
-
type: "publicKey"
|
|
641
|
-
}
|
|
642
|
-
]
|
|
643
|
-
}
|
|
644
|
-
]
|
|
645
|
-
}
|
|
697
|
+
"name": "newRecipient",
|
|
698
|
+
"type": "publicKey"
|
|
699
|
+
}
|
|
700
|
+
]
|
|
701
|
+
}
|
|
702
|
+
]
|
|
703
|
+
}
|
|
646
704
|
},
|
|
647
705
|
{
|
|
648
|
-
name: "ProposerType",
|
|
649
|
-
type: {
|
|
650
|
-
kind: "enum",
|
|
651
|
-
variants: [
|
|
706
|
+
"name": "ProposerType",
|
|
707
|
+
"type": {
|
|
708
|
+
"kind": "enum",
|
|
709
|
+
"variants": [
|
|
652
710
|
{
|
|
653
|
-
name: "Recipient"
|
|
711
|
+
"name": "Recipient"
|
|
654
712
|
},
|
|
655
713
|
{
|
|
656
|
-
name: "Authority"
|
|
657
|
-
}
|
|
658
|
-
]
|
|
659
|
-
}
|
|
660
|
-
}
|
|
714
|
+
"name": "Authority"
|
|
715
|
+
}
|
|
716
|
+
]
|
|
717
|
+
}
|
|
718
|
+
}
|
|
661
719
|
],
|
|
662
|
-
events: [
|
|
720
|
+
"events": [
|
|
663
721
|
{
|
|
664
|
-
name: "PerformancePackageInitialized",
|
|
665
|
-
fields: [
|
|
722
|
+
"name": "PerformancePackageInitialized",
|
|
723
|
+
"fields": [
|
|
666
724
|
{
|
|
667
|
-
name: "common",
|
|
668
|
-
type: {
|
|
669
|
-
defined: "CommonFields"
|
|
725
|
+
"name": "common",
|
|
726
|
+
"type": {
|
|
727
|
+
"defined": "CommonFields"
|
|
670
728
|
},
|
|
671
|
-
index: false
|
|
729
|
+
"index": false
|
|
672
730
|
},
|
|
673
731
|
{
|
|
674
|
-
name: "performancePackage",
|
|
675
|
-
type: "publicKey",
|
|
676
|
-
index: false
|
|
677
|
-
}
|
|
678
|
-
]
|
|
732
|
+
"name": "performancePackage",
|
|
733
|
+
"type": "publicKey",
|
|
734
|
+
"index": false
|
|
735
|
+
}
|
|
736
|
+
]
|
|
679
737
|
},
|
|
680
738
|
{
|
|
681
|
-
name: "UnlockStarted",
|
|
682
|
-
fields: [
|
|
739
|
+
"name": "UnlockStarted",
|
|
740
|
+
"fields": [
|
|
683
741
|
{
|
|
684
|
-
name: "common",
|
|
685
|
-
type: {
|
|
686
|
-
defined: "CommonFields"
|
|
742
|
+
"name": "common",
|
|
743
|
+
"type": {
|
|
744
|
+
"defined": "CommonFields"
|
|
687
745
|
},
|
|
688
|
-
index: false
|
|
746
|
+
"index": false
|
|
689
747
|
},
|
|
690
748
|
{
|
|
691
|
-
name: "performancePackage",
|
|
692
|
-
type: "publicKey",
|
|
693
|
-
index: false
|
|
749
|
+
"name": "performancePackage",
|
|
750
|
+
"type": "publicKey",
|
|
751
|
+
"index": false
|
|
694
752
|
},
|
|
695
753
|
{
|
|
696
|
-
name: "startAggregator",
|
|
697
|
-
type: "u128",
|
|
698
|
-
index: false
|
|
754
|
+
"name": "startAggregator",
|
|
755
|
+
"type": "u128",
|
|
756
|
+
"index": false
|
|
699
757
|
},
|
|
700
758
|
{
|
|
701
|
-
name: "startTimestamp",
|
|
702
|
-
type: "i64",
|
|
703
|
-
index: false
|
|
704
|
-
}
|
|
705
|
-
]
|
|
759
|
+
"name": "startTimestamp",
|
|
760
|
+
"type": "i64",
|
|
761
|
+
"index": false
|
|
762
|
+
}
|
|
763
|
+
]
|
|
706
764
|
},
|
|
707
765
|
{
|
|
708
|
-
name: "UnlockCompleted",
|
|
709
|
-
fields: [
|
|
766
|
+
"name": "UnlockCompleted",
|
|
767
|
+
"fields": [
|
|
710
768
|
{
|
|
711
|
-
name: "common",
|
|
712
|
-
type: {
|
|
713
|
-
defined: "CommonFields"
|
|
769
|
+
"name": "common",
|
|
770
|
+
"type": {
|
|
771
|
+
"defined": "CommonFields"
|
|
714
772
|
},
|
|
715
|
-
index: false
|
|
773
|
+
"index": false
|
|
716
774
|
},
|
|
717
775
|
{
|
|
718
|
-
name: "performancePackage",
|
|
719
|
-
type: "publicKey",
|
|
720
|
-
index: false
|
|
776
|
+
"name": "performancePackage",
|
|
777
|
+
"type": "publicKey",
|
|
778
|
+
"index": false
|
|
721
779
|
},
|
|
722
780
|
{
|
|
723
|
-
name: "tokenAmount",
|
|
724
|
-
type: "u64",
|
|
725
|
-
index: false
|
|
781
|
+
"name": "tokenAmount",
|
|
782
|
+
"type": "u64",
|
|
783
|
+
"index": false
|
|
726
784
|
},
|
|
727
785
|
{
|
|
728
|
-
name: "recipient",
|
|
729
|
-
type: "publicKey",
|
|
730
|
-
index: false
|
|
786
|
+
"name": "recipient",
|
|
787
|
+
"type": "publicKey",
|
|
788
|
+
"index": false
|
|
731
789
|
},
|
|
732
790
|
{
|
|
733
|
-
name: "twapPrice",
|
|
734
|
-
type: "u128",
|
|
735
|
-
index: false
|
|
736
|
-
}
|
|
737
|
-
]
|
|
791
|
+
"name": "twapPrice",
|
|
792
|
+
"type": "u128",
|
|
793
|
+
"index": false
|
|
794
|
+
}
|
|
795
|
+
]
|
|
738
796
|
},
|
|
739
797
|
{
|
|
740
|
-
name: "ChangeProposed",
|
|
741
|
-
fields: [
|
|
798
|
+
"name": "ChangeProposed",
|
|
799
|
+
"fields": [
|
|
742
800
|
{
|
|
743
|
-
name: "locker",
|
|
744
|
-
type: "publicKey",
|
|
745
|
-
index: false
|
|
801
|
+
"name": "locker",
|
|
802
|
+
"type": "publicKey",
|
|
803
|
+
"index": false
|
|
746
804
|
},
|
|
747
805
|
{
|
|
748
|
-
name: "changeRequest",
|
|
749
|
-
type: "publicKey",
|
|
750
|
-
index: false
|
|
806
|
+
"name": "changeRequest",
|
|
807
|
+
"type": "publicKey",
|
|
808
|
+
"index": false
|
|
751
809
|
},
|
|
752
810
|
{
|
|
753
|
-
name: "proposer",
|
|
754
|
-
type: "publicKey",
|
|
755
|
-
index: false
|
|
811
|
+
"name": "proposer",
|
|
812
|
+
"type": "publicKey",
|
|
813
|
+
"index": false
|
|
756
814
|
},
|
|
757
815
|
{
|
|
758
|
-
name: "changeType",
|
|
759
|
-
type: {
|
|
760
|
-
defined: "ChangeType"
|
|
816
|
+
"name": "changeType",
|
|
817
|
+
"type": {
|
|
818
|
+
"defined": "ChangeType"
|
|
761
819
|
},
|
|
762
|
-
index: false
|
|
763
|
-
}
|
|
764
|
-
]
|
|
820
|
+
"index": false
|
|
821
|
+
}
|
|
822
|
+
]
|
|
765
823
|
},
|
|
766
824
|
{
|
|
767
|
-
name: "ChangeExecuted",
|
|
768
|
-
fields: [
|
|
825
|
+
"name": "ChangeExecuted",
|
|
826
|
+
"fields": [
|
|
769
827
|
{
|
|
770
|
-
name: "common",
|
|
771
|
-
type: {
|
|
772
|
-
defined: "CommonFields"
|
|
828
|
+
"name": "common",
|
|
829
|
+
"type": {
|
|
830
|
+
"defined": "CommonFields"
|
|
773
831
|
},
|
|
774
|
-
index: false
|
|
832
|
+
"index": false
|
|
775
833
|
},
|
|
776
834
|
{
|
|
777
|
-
name: "performancePackage",
|
|
778
|
-
type: "publicKey",
|
|
779
|
-
index: false
|
|
835
|
+
"name": "performancePackage",
|
|
836
|
+
"type": "publicKey",
|
|
837
|
+
"index": false
|
|
780
838
|
},
|
|
781
839
|
{
|
|
782
|
-
name: "changeRequest",
|
|
783
|
-
type: "publicKey",
|
|
784
|
-
index: false
|
|
840
|
+
"name": "changeRequest",
|
|
841
|
+
"type": "publicKey",
|
|
842
|
+
"index": false
|
|
785
843
|
},
|
|
786
844
|
{
|
|
787
|
-
name: "executor",
|
|
788
|
-
type: "publicKey",
|
|
789
|
-
index: false
|
|
845
|
+
"name": "executor",
|
|
846
|
+
"type": "publicKey",
|
|
847
|
+
"index": false
|
|
790
848
|
},
|
|
791
849
|
{
|
|
792
|
-
name: "changeType",
|
|
793
|
-
type: {
|
|
794
|
-
defined: "ChangeType"
|
|
850
|
+
"name": "changeType",
|
|
851
|
+
"type": {
|
|
852
|
+
"defined": "ChangeType"
|
|
795
853
|
},
|
|
796
|
-
index: false
|
|
797
|
-
}
|
|
798
|
-
]
|
|
854
|
+
"index": false
|
|
855
|
+
}
|
|
856
|
+
]
|
|
799
857
|
},
|
|
800
858
|
{
|
|
801
|
-
name: "PerformancePackageAuthorityChanged",
|
|
802
|
-
fields: [
|
|
859
|
+
"name": "PerformancePackageAuthorityChanged",
|
|
860
|
+
"fields": [
|
|
803
861
|
{
|
|
804
|
-
name: "common",
|
|
805
|
-
type: {
|
|
806
|
-
defined: "CommonFields"
|
|
862
|
+
"name": "common",
|
|
863
|
+
"type": {
|
|
864
|
+
"defined": "CommonFields"
|
|
807
865
|
},
|
|
808
|
-
index: false
|
|
866
|
+
"index": false
|
|
809
867
|
},
|
|
810
868
|
{
|
|
811
|
-
name: "locker",
|
|
812
|
-
type: "publicKey",
|
|
813
|
-
index: false
|
|
869
|
+
"name": "locker",
|
|
870
|
+
"type": "publicKey",
|
|
871
|
+
"index": false
|
|
814
872
|
},
|
|
815
873
|
{
|
|
816
|
-
name: "oldAuthority",
|
|
817
|
-
type: "publicKey",
|
|
818
|
-
index: false
|
|
874
|
+
"name": "oldAuthority",
|
|
875
|
+
"type": "publicKey",
|
|
876
|
+
"index": false
|
|
819
877
|
},
|
|
820
878
|
{
|
|
821
|
-
name: "newAuthority",
|
|
822
|
-
type: "publicKey",
|
|
823
|
-
index: false
|
|
824
|
-
}
|
|
825
|
-
]
|
|
826
|
-
}
|
|
879
|
+
"name": "newAuthority",
|
|
880
|
+
"type": "publicKey",
|
|
881
|
+
"index": false
|
|
882
|
+
}
|
|
883
|
+
]
|
|
884
|
+
}
|
|
827
885
|
],
|
|
828
|
-
errors: [
|
|
886
|
+
"errors": [
|
|
829
887
|
{
|
|
830
|
-
code: 6000,
|
|
831
|
-
name: "UnlockTimestampNotReached",
|
|
832
|
-
msg: "Unlock timestamp has not been reached yet"
|
|
888
|
+
"code": 6000,
|
|
889
|
+
"name": "UnlockTimestampNotReached",
|
|
890
|
+
"msg": "Unlock timestamp has not been reached yet"
|
|
833
891
|
},
|
|
834
892
|
{
|
|
835
|
-
code: 6001,
|
|
836
|
-
name: "UnlockTimestampInThePast",
|
|
837
|
-
msg: "Unlock timestamp must be in the future"
|
|
893
|
+
"code": 6001,
|
|
894
|
+
"name": "UnlockTimestampInThePast",
|
|
895
|
+
"msg": "Unlock timestamp must be in the future"
|
|
838
896
|
},
|
|
839
897
|
{
|
|
840
|
-
code: 6002,
|
|
841
|
-
name: "InvalidPerformancePackageState",
|
|
842
|
-
msg: "Performance package is not in the expected state"
|
|
898
|
+
"code": 6002,
|
|
899
|
+
"name": "InvalidPerformancePackageState",
|
|
900
|
+
"msg": "Performance package is not in the expected state"
|
|
843
901
|
},
|
|
844
902
|
{
|
|
845
|
-
code: 6003,
|
|
846
|
-
name: "TwapPeriodNotElapsed",
|
|
847
|
-
msg: "TWAP calculation failed"
|
|
903
|
+
"code": 6003,
|
|
904
|
+
"name": "TwapPeriodNotElapsed",
|
|
905
|
+
"msg": "TWAP calculation failed"
|
|
848
906
|
},
|
|
849
907
|
{
|
|
850
|
-
code: 6004,
|
|
851
|
-
name: "PriceThresholdNotMet",
|
|
852
|
-
msg: "Price threshold not met"
|
|
908
|
+
"code": 6004,
|
|
909
|
+
"name": "PriceThresholdNotMet",
|
|
910
|
+
"msg": "Price threshold not met"
|
|
853
911
|
},
|
|
854
912
|
{
|
|
855
|
-
code: 6005,
|
|
856
|
-
name: "InvalidOracleData",
|
|
857
|
-
msg: "Invalid oracle account data"
|
|
913
|
+
"code": 6005,
|
|
914
|
+
"name": "InvalidOracleData",
|
|
915
|
+
"msg": "Invalid oracle account data"
|
|
858
916
|
},
|
|
859
917
|
{
|
|
860
|
-
code: 6006,
|
|
861
|
-
name: "UnauthorizedChangeRequest",
|
|
862
|
-
msg: "Unauthorized to create or execute change request"
|
|
918
|
+
"code": 6006,
|
|
919
|
+
"name": "UnauthorizedChangeRequest",
|
|
920
|
+
"msg": "Unauthorized to create or execute change request"
|
|
863
921
|
},
|
|
864
922
|
{
|
|
865
|
-
code: 6007,
|
|
866
|
-
name: "InvalidChangeRequest",
|
|
867
|
-
msg: "Change request does not match locker"
|
|
923
|
+
"code": 6007,
|
|
924
|
+
"name": "InvalidChangeRequest",
|
|
925
|
+
"msg": "Change request does not match locker"
|
|
868
926
|
},
|
|
869
927
|
{
|
|
870
|
-
code: 6008,
|
|
871
|
-
name: "UnauthorizedLockerAuthority",
|
|
872
|
-
msg: "Unauthorized locker authority"
|
|
928
|
+
"code": 6008,
|
|
929
|
+
"name": "UnauthorizedLockerAuthority",
|
|
930
|
+
"msg": "Unauthorized locker authority"
|
|
873
931
|
},
|
|
874
932
|
{
|
|
875
|
-
code: 6009,
|
|
876
|
-
name: "InvariantViolated",
|
|
877
|
-
msg: "An invariant was violated. You should get in contact with the MetaDAO team if you see this"
|
|
933
|
+
"code": 6009,
|
|
934
|
+
"name": "InvariantViolated",
|
|
935
|
+
"msg": "An invariant was violated. You should get in contact with the MetaDAO team if you see this"
|
|
878
936
|
},
|
|
879
937
|
{
|
|
880
|
-
code: 6010,
|
|
881
|
-
name: "TranchePriceThresholdsNotMonotonic",
|
|
882
|
-
msg: "Tranche price thresholds must be monotonically increasing"
|
|
938
|
+
"code": 6010,
|
|
939
|
+
"name": "TranchePriceThresholdsNotMonotonic",
|
|
940
|
+
"msg": "Tranche price thresholds must be monotonically increasing"
|
|
883
941
|
},
|
|
884
942
|
{
|
|
885
|
-
code: 6011,
|
|
886
|
-
name: "TrancheTokenAmountZero",
|
|
887
|
-
msg: "Tranche token amount must be greater than 0"
|
|
943
|
+
"code": 6011,
|
|
944
|
+
"name": "TrancheTokenAmountZero",
|
|
945
|
+
"msg": "Tranche token amount must be greater than 0"
|
|
888
946
|
},
|
|
889
947
|
{
|
|
890
|
-
code: 6012,
|
|
891
|
-
name: "InvalidTwapLength",
|
|
892
|
-
msg: "TWAP length must be greater than or equal to 1 day and less than 1 year"
|
|
893
|
-
}
|
|
894
|
-
]
|
|
948
|
+
"code": 6012,
|
|
949
|
+
"name": "InvalidTwapLength",
|
|
950
|
+
"msg": "TWAP length must be greater than or equal to 1 day and less than 1 year"
|
|
951
|
+
}
|
|
952
|
+
]
|
|
895
953
|
};
|
|
896
954
|
//# sourceMappingURL=price_based_performance_package.js.map
|