sablier 1.2.2-beta.1 → 1.3.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/dist/chains/data.d.ts.map +1 -1
- package/dist/chains/data.js +3 -2
- package/dist/chains/data.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +3 -22
- package/dist/types.d.ts.map +1 -1
- package/package.json +2 -26
- package/dist/solana/chains/data.d.ts +0 -4
- package/dist/solana/chains/data.d.ts.map +0 -1
- package/dist/solana/chains/data.js +0 -85
- package/dist/solana/chains/data.js.map +0 -1
- package/dist/solana/chains/index.d.ts +0 -3
- package/dist/solana/chains/index.d.ts.map +0 -1
- package/dist/solana/chains/index.js +0 -42
- package/dist/solana/chains/index.js.map +0 -1
- package/dist/solana/enums.d.ts +0 -17
- package/dist/solana/enums.d.ts.map +0 -1
- package/dist/solana/enums.js +0 -24
- package/dist/solana/enums.js.map +0 -1
- package/dist/solana/idl/airdrops/index.d.ts +0 -2
- package/dist/solana/idl/airdrops/index.d.ts.map +0 -1
- package/dist/solana/idl/airdrops/index.js +0 -18
- package/dist/solana/idl/airdrops/index.js.map +0 -1
- package/dist/solana/idl/airdrops/v1.0/SablierMerkleInstantV10.d.ts +0 -298
- package/dist/solana/idl/airdrops/v1.0/SablierMerkleInstantV10.d.ts.map +0 -1
- package/dist/solana/idl/airdrops/v1.0/SablierMerkleInstantV10.js +0 -1054
- package/dist/solana/idl/airdrops/v1.0/SablierMerkleInstantV10.js.map +0 -1
- package/dist/solana/idl/airdrops/v1.0/SablierMerkleInstantV10Type.d.ts +0 -1201
- package/dist/solana/idl/airdrops/v1.0/SablierMerkleInstantV10Type.d.ts.map +0 -1
- package/dist/solana/idl/airdrops/v1.0/SablierMerkleInstantV10Type.js +0 -3
- package/dist/solana/idl/airdrops/v1.0/SablierMerkleInstantV10Type.js.map +0 -1
- package/dist/solana/idl/airdrops/v1.0/index.d.ts +0 -3
- package/dist/solana/idl/airdrops/v1.0/index.d.ts.map +0 -1
- package/dist/solana/idl/airdrops/v1.0/index.js +0 -9
- package/dist/solana/idl/airdrops/v1.0/index.js.map +0 -1
- package/dist/solana/idl/index.d.ts +0 -3
- package/dist/solana/idl/index.d.ts.map +0 -1
- package/dist/solana/idl/index.js +0 -19
- package/dist/solana/idl/index.js.map +0 -1
- package/dist/solana/idl/lockup/index.d.ts +0 -2
- package/dist/solana/idl/lockup/index.d.ts.map +0 -1
- package/dist/solana/idl/lockup/index.js +0 -18
- package/dist/solana/idl/lockup/index.js.map +0 -1
- package/dist/solana/idl/lockup/v1.0/SablierLockupLinearV10.d.ts +0 -413
- package/dist/solana/idl/lockup/v1.0/SablierLockupLinearV10.d.ts.map +0 -1
- package/dist/solana/idl/lockup/v1.0/SablierLockupLinearV10.js +0 -2230
- package/dist/solana/idl/lockup/v1.0/SablierLockupLinearV10.js.map +0 -1
- package/dist/solana/idl/lockup/v1.0/SablierLockupLinearV10Type.d.ts +0 -2679
- package/dist/solana/idl/lockup/v1.0/SablierLockupLinearV10Type.d.ts.map +0 -1
- package/dist/solana/idl/lockup/v1.0/SablierLockupLinearV10Type.js +0 -3
- package/dist/solana/idl/lockup/v1.0/SablierLockupLinearV10Type.js.map +0 -1
- package/dist/solana/idl/lockup/v1.0/index.d.ts +0 -3
- package/dist/solana/idl/lockup/v1.0/index.d.ts.map +0 -1
- package/dist/solana/idl/lockup/v1.0/index.js +0 -9
- package/dist/solana/idl/lockup/v1.0/index.js.map +0 -1
- package/dist/solana/index.d.ts +0 -4
- package/dist/solana/index.d.ts.map +0 -1
- package/dist/solana/index.js +0 -22
- package/dist/solana/index.js.map +0 -1
- package/dist/solana/types.d.ts +0 -7
- package/dist/solana/types.d.ts.map +0 -1
- package/dist/solana/types.js +0 -3
- package/dist/solana/types.js.map +0 -1
|
@@ -1,2230 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = {
|
|
4
|
-
address: "4EauRKrNErKfsR4XetEZJNmvACGHbHnHV4R5dvJuqupC",
|
|
5
|
-
metadata: {
|
|
6
|
-
name: "sablier_lockup",
|
|
7
|
-
version: "0.1.0",
|
|
8
|
-
spec: "0.1.0",
|
|
9
|
-
description: "Created with Anchor",
|
|
10
|
-
},
|
|
11
|
-
docs: ["Sablier Lockup program for creating and managing token streams."],
|
|
12
|
-
instructions: [
|
|
13
|
-
{
|
|
14
|
-
name: "cancel",
|
|
15
|
-
docs: [
|
|
16
|
-
"Cancels the stream and refunds any remaining tokens to the sender ATA.",
|
|
17
|
-
"",
|
|
18
|
-
"# Accounts Expected",
|
|
19
|
-
"",
|
|
20
|
-
"- `sender` The transaction signer and the stream's sender.",
|
|
21
|
-
"- `deposited_token_mint` The mint of the deposited token.",
|
|
22
|
-
"- `stream_nft_mint` The stream NFT mint uniquely identifying the stream.",
|
|
23
|
-
"- `deposited_token_program` The Token Program of the deposited token.",
|
|
24
|
-
"",
|
|
25
|
-
"# Notes",
|
|
26
|
-
"",
|
|
27
|
-
"- If there are any tokens left for the recipient to withdraw, the stream is marked as canceled. Otherwise, the",
|
|
28
|
-
"stream is marked as depleted.",
|
|
29
|
-
"- If the sender does not have an ATA for the deposited token, it is created.",
|
|
30
|
-
"- Emits a [`crate::utils::events::CancelLockupStream`] event.",
|
|
31
|
-
"",
|
|
32
|
-
"# Requirements",
|
|
33
|
-
"",
|
|
34
|
-
"- The signer must be the stream's sender.",
|
|
35
|
-
"- The `stream_nft_mint` must exist.",
|
|
36
|
-
"- The stream must be cancelable.",
|
|
37
|
-
"- The stream must be Pending or Streaming.",
|
|
38
|
-
],
|
|
39
|
-
discriminator: [232, 219, 223, 41, 219, 236, 220, 190],
|
|
40
|
-
accounts: [
|
|
41
|
-
{
|
|
42
|
-
name: "sender",
|
|
43
|
-
docs: ["Write account: the sender of the stream who can cancel it."],
|
|
44
|
-
writable: true,
|
|
45
|
-
signer: true,
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
name: "sender_ata",
|
|
49
|
-
docs: ["Create if needed account: the deposited token ATA owned by the sender."],
|
|
50
|
-
writable: true,
|
|
51
|
-
pda: {
|
|
52
|
-
seeds: [
|
|
53
|
-
{
|
|
54
|
-
kind: "account",
|
|
55
|
-
path: "sender",
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
kind: "account",
|
|
59
|
-
path: "deposited_token_program",
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
kind: "account",
|
|
63
|
-
path: "deposited_token_mint",
|
|
64
|
-
},
|
|
65
|
-
],
|
|
66
|
-
program: {
|
|
67
|
-
kind: "const",
|
|
68
|
-
value: [
|
|
69
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16,
|
|
70
|
-
132, 4, 142, 123, 216, 219, 233, 248, 89,
|
|
71
|
-
],
|
|
72
|
-
},
|
|
73
|
-
},
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
name: "deposited_token_mint",
|
|
77
|
-
docs: ["Read account: the mint account of the deposited token."],
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
name: "stream_data",
|
|
81
|
-
docs: ["Write account: the stream data account storing stream details."],
|
|
82
|
-
writable: true,
|
|
83
|
-
pda: {
|
|
84
|
-
seeds: [
|
|
85
|
-
{
|
|
86
|
-
kind: "const",
|
|
87
|
-
value: [115, 116, 114, 101, 97, 109, 95, 100, 97, 116, 97],
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
kind: "account",
|
|
91
|
-
path: "stream_nft_mint",
|
|
92
|
-
},
|
|
93
|
-
],
|
|
94
|
-
},
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
name: "stream_data_ata",
|
|
98
|
-
docs: ["Write account: the deposited token ATA owned by the stream data account."],
|
|
99
|
-
writable: true,
|
|
100
|
-
pda: {
|
|
101
|
-
seeds: [
|
|
102
|
-
{
|
|
103
|
-
kind: "account",
|
|
104
|
-
path: "stream_data",
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
kind: "account",
|
|
108
|
-
path: "deposited_token_program",
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
kind: "account",
|
|
112
|
-
path: "deposited_token_mint",
|
|
113
|
-
},
|
|
114
|
-
],
|
|
115
|
-
program: {
|
|
116
|
-
kind: "const",
|
|
117
|
-
value: [
|
|
118
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16,
|
|
119
|
-
132, 4, 142, 123, 216, 219, 233, 248, 89,
|
|
120
|
-
],
|
|
121
|
-
},
|
|
122
|
-
},
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
name: "stream_nft_mint",
|
|
126
|
-
docs: ["Read account: the mint account for the stream NFT."],
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
name: "associated_token_program",
|
|
130
|
-
docs: ["Program account: the Associated Token program."],
|
|
131
|
-
address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
name: "deposited_token_program",
|
|
135
|
-
docs: ["Program account: the Token program of the deposited token."],
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
name: "system_program",
|
|
139
|
-
docs: ["Program account: the System program."],
|
|
140
|
-
address: "11111111111111111111111111111111",
|
|
141
|
-
},
|
|
142
|
-
],
|
|
143
|
-
args: [],
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
name: "collect_fees",
|
|
147
|
-
docs: [
|
|
148
|
-
"Collects the fees accumulated in the treasury by transferring them to the fee recipient.",
|
|
149
|
-
"",
|
|
150
|
-
"# Accounts Expected",
|
|
151
|
-
"",
|
|
152
|
-
"- `fee_collector` The transaction signer and the fee collector.",
|
|
153
|
-
"- `fee_recipient` The address receiving the collected fees.",
|
|
154
|
-
"",
|
|
155
|
-
"# Notes",
|
|
156
|
-
"",
|
|
157
|
-
"- Leaves a buffer of 0.001 SOL to ensure the account remains rent-exempt after the fee collection.",
|
|
158
|
-
"- Emits a [`crate::utils::events::FeesCollected`] event.",
|
|
159
|
-
"",
|
|
160
|
-
"# Requirements",
|
|
161
|
-
"",
|
|
162
|
-
"- `fee_collector` must be authorized for fee collection.",
|
|
163
|
-
],
|
|
164
|
-
discriminator: [164, 152, 207, 99, 30, 186, 19, 182],
|
|
165
|
-
accounts: [
|
|
166
|
-
{
|
|
167
|
-
name: "fee_collector",
|
|
168
|
-
docs: ["Write account: the account authorized to collect fees from the treasury."],
|
|
169
|
-
signer: true,
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
name: "fee_recipient",
|
|
173
|
-
docs: ["Write account: the address that will receive the collected fees."],
|
|
174
|
-
writable: true,
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
name: "treasury",
|
|
178
|
-
docs: ["Write account: the treasury account that holds the fees."],
|
|
179
|
-
writable: true,
|
|
180
|
-
pda: {
|
|
181
|
-
seeds: [
|
|
182
|
-
{
|
|
183
|
-
kind: "const",
|
|
184
|
-
value: [116, 114, 101, 97, 115, 117, 114, 121],
|
|
185
|
-
},
|
|
186
|
-
],
|
|
187
|
-
},
|
|
188
|
-
},
|
|
189
|
-
],
|
|
190
|
-
args: [],
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
name: "create_with_durations_ll",
|
|
194
|
-
docs: [
|
|
195
|
-
"Creates a stream by setting the start time to the current timestamp, and the end time to the sum of the",
|
|
196
|
-
"current timestamp and the total duration The stream is funded by the signer and wrapped in a Metaplex NFT.",
|
|
197
|
-
"",
|
|
198
|
-
"# Accounts Expected",
|
|
199
|
-
"",
|
|
200
|
-
"Refer to the accounts in [`fn@crate::sablier_lockup::create_with_timestamps_ll`].",
|
|
201
|
-
"",
|
|
202
|
-
"# Parameters",
|
|
203
|
-
"",
|
|
204
|
-
"Refer to the parameters in [`fn@crate::sablier_lockup::create_with_timestamps_ll`].",
|
|
205
|
-
"",
|
|
206
|
-
"# Notes",
|
|
207
|
-
"",
|
|
208
|
-
"Refer to the notes in [`fn@crate::sablier_lockup::create_with_timestamps_ll`].",
|
|
209
|
-
"",
|
|
210
|
-
"# Requirements",
|
|
211
|
-
"",
|
|
212
|
-
"Refer to the requirements in [`fn@crate::sablier_lockup::create_with_timestamps_ll`].",
|
|
213
|
-
],
|
|
214
|
-
discriminator: [87, 17, 170, 167, 156, 152, 169, 61],
|
|
215
|
-
accounts: [
|
|
216
|
-
{
|
|
217
|
-
name: "creator",
|
|
218
|
-
docs: ["Write account: the creator and funder of the stream."],
|
|
219
|
-
writable: true,
|
|
220
|
-
signer: true,
|
|
221
|
-
},
|
|
222
|
-
{
|
|
223
|
-
name: "creator_ata",
|
|
224
|
-
docs: ["Write account: the creator's ATA for the deposit token."],
|
|
225
|
-
writable: true,
|
|
226
|
-
pda: {
|
|
227
|
-
seeds: [
|
|
228
|
-
{
|
|
229
|
-
kind: "account",
|
|
230
|
-
path: "creator",
|
|
231
|
-
},
|
|
232
|
-
{
|
|
233
|
-
kind: "account",
|
|
234
|
-
path: "deposit_token_program",
|
|
235
|
-
},
|
|
236
|
-
{
|
|
237
|
-
kind: "account",
|
|
238
|
-
path: "deposit_token_mint",
|
|
239
|
-
},
|
|
240
|
-
],
|
|
241
|
-
program: {
|
|
242
|
-
kind: "const",
|
|
243
|
-
value: [
|
|
244
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16,
|
|
245
|
-
132, 4, 142, 123, 216, 219, 233, 248, 89,
|
|
246
|
-
],
|
|
247
|
-
},
|
|
248
|
-
},
|
|
249
|
-
},
|
|
250
|
-
{
|
|
251
|
-
name: "recipient",
|
|
252
|
-
docs: ["Read account: the recipient of the stream."],
|
|
253
|
-
},
|
|
254
|
-
{
|
|
255
|
-
name: "sender",
|
|
256
|
-
docs: ["Read account: the sender of the stream."],
|
|
257
|
-
},
|
|
258
|
-
{
|
|
259
|
-
name: "nft_collection_data",
|
|
260
|
-
docs: ["Write account: the NFT collection data storing the total supply."],
|
|
261
|
-
writable: true,
|
|
262
|
-
pda: {
|
|
263
|
-
seeds: [
|
|
264
|
-
{
|
|
265
|
-
kind: "const",
|
|
266
|
-
value: [110, 102, 116, 95, 99, 111, 108, 108, 101, 99, 116, 105, 111, 110, 95, 100, 97, 116, 97],
|
|
267
|
-
},
|
|
268
|
-
],
|
|
269
|
-
},
|
|
270
|
-
},
|
|
271
|
-
{
|
|
272
|
-
name: "nft_collection_master_edition",
|
|
273
|
-
docs: ["Write account: the master edition account for the NFT collection."],
|
|
274
|
-
pda: {
|
|
275
|
-
seeds: [
|
|
276
|
-
{
|
|
277
|
-
kind: "const",
|
|
278
|
-
value: [109, 101, 116, 97, 100, 97, 116, 97],
|
|
279
|
-
},
|
|
280
|
-
{
|
|
281
|
-
kind: "account",
|
|
282
|
-
path: "token_metadata_program",
|
|
283
|
-
},
|
|
284
|
-
{
|
|
285
|
-
kind: "account",
|
|
286
|
-
path: "nft_collection_mint",
|
|
287
|
-
},
|
|
288
|
-
{
|
|
289
|
-
kind: "const",
|
|
290
|
-
value: [101, 100, 105, 116, 105, 111, 110],
|
|
291
|
-
},
|
|
292
|
-
],
|
|
293
|
-
program: {
|
|
294
|
-
kind: "account",
|
|
295
|
-
path: "token_metadata_program",
|
|
296
|
-
},
|
|
297
|
-
},
|
|
298
|
-
},
|
|
299
|
-
{
|
|
300
|
-
name: "nft_collection_metadata",
|
|
301
|
-
docs: ["Write account: the metadata account for the NFT collection."],
|
|
302
|
-
writable: true,
|
|
303
|
-
pda: {
|
|
304
|
-
seeds: [
|
|
305
|
-
{
|
|
306
|
-
kind: "const",
|
|
307
|
-
value: [109, 101, 116, 97, 100, 97, 116, 97],
|
|
308
|
-
},
|
|
309
|
-
{
|
|
310
|
-
kind: "account",
|
|
311
|
-
path: "token_metadata_program",
|
|
312
|
-
},
|
|
313
|
-
{
|
|
314
|
-
kind: "account",
|
|
315
|
-
path: "nft_collection_mint",
|
|
316
|
-
},
|
|
317
|
-
],
|
|
318
|
-
program: {
|
|
319
|
-
kind: "account",
|
|
320
|
-
path: "token_metadata_program",
|
|
321
|
-
},
|
|
322
|
-
},
|
|
323
|
-
},
|
|
324
|
-
{
|
|
325
|
-
name: "nft_collection_mint",
|
|
326
|
-
docs: ["Read account: the mint account for the NFT collection."],
|
|
327
|
-
pda: {
|
|
328
|
-
seeds: [
|
|
329
|
-
{
|
|
330
|
-
kind: "const",
|
|
331
|
-
value: [110, 102, 116, 95, 99, 111, 108, 108, 101, 99, 116, 105, 111, 110, 95, 109, 105, 110, 116],
|
|
332
|
-
},
|
|
333
|
-
],
|
|
334
|
-
},
|
|
335
|
-
},
|
|
336
|
-
{
|
|
337
|
-
name: "deposit_token_mint",
|
|
338
|
-
docs: ["Read account: the mint account for the deposit token."],
|
|
339
|
-
},
|
|
340
|
-
{
|
|
341
|
-
name: "stream_nft_mint",
|
|
342
|
-
docs: ["Create account: the mint account for the stream NFT."],
|
|
343
|
-
writable: true,
|
|
344
|
-
pda: {
|
|
345
|
-
seeds: [
|
|
346
|
-
{
|
|
347
|
-
kind: "const",
|
|
348
|
-
value: [115, 116, 114, 101, 97, 109, 95, 110, 102, 116, 95, 109, 105, 110, 116],
|
|
349
|
-
},
|
|
350
|
-
{
|
|
351
|
-
kind: "account",
|
|
352
|
-
path: "sender",
|
|
353
|
-
},
|
|
354
|
-
{
|
|
355
|
-
kind: "arg",
|
|
356
|
-
path: "salt",
|
|
357
|
-
},
|
|
358
|
-
],
|
|
359
|
-
},
|
|
360
|
-
},
|
|
361
|
-
{
|
|
362
|
-
name: "recipient_stream_nft_ata",
|
|
363
|
-
docs: ["Create account: the ATA for the stream NFT owned by the recipient."],
|
|
364
|
-
writable: true,
|
|
365
|
-
pda: {
|
|
366
|
-
seeds: [
|
|
367
|
-
{
|
|
368
|
-
kind: "account",
|
|
369
|
-
path: "recipient",
|
|
370
|
-
},
|
|
371
|
-
{
|
|
372
|
-
kind: "account",
|
|
373
|
-
path: "nft_token_program",
|
|
374
|
-
},
|
|
375
|
-
{
|
|
376
|
-
kind: "account",
|
|
377
|
-
path: "stream_nft_mint",
|
|
378
|
-
},
|
|
379
|
-
],
|
|
380
|
-
program: {
|
|
381
|
-
kind: "const",
|
|
382
|
-
value: [
|
|
383
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16,
|
|
384
|
-
132, 4, 142, 123, 216, 219, 233, 248, 89,
|
|
385
|
-
],
|
|
386
|
-
},
|
|
387
|
-
},
|
|
388
|
-
},
|
|
389
|
-
{
|
|
390
|
-
name: "stream_data",
|
|
391
|
-
docs: ["Create account: the account that will store the stream data."],
|
|
392
|
-
writable: true,
|
|
393
|
-
pda: {
|
|
394
|
-
seeds: [
|
|
395
|
-
{
|
|
396
|
-
kind: "const",
|
|
397
|
-
value: [115, 116, 114, 101, 97, 109, 95, 100, 97, 116, 97],
|
|
398
|
-
},
|
|
399
|
-
{
|
|
400
|
-
kind: "account",
|
|
401
|
-
path: "stream_nft_mint",
|
|
402
|
-
},
|
|
403
|
-
],
|
|
404
|
-
},
|
|
405
|
-
},
|
|
406
|
-
{
|
|
407
|
-
name: "stream_data_ata",
|
|
408
|
-
docs: ["Create account: the ATA for deposit tokens owned by stream data account."],
|
|
409
|
-
writable: true,
|
|
410
|
-
pda: {
|
|
411
|
-
seeds: [
|
|
412
|
-
{
|
|
413
|
-
kind: "account",
|
|
414
|
-
path: "stream_data",
|
|
415
|
-
},
|
|
416
|
-
{
|
|
417
|
-
kind: "account",
|
|
418
|
-
path: "deposit_token_program",
|
|
419
|
-
},
|
|
420
|
-
{
|
|
421
|
-
kind: "account",
|
|
422
|
-
path: "deposit_token_mint",
|
|
423
|
-
},
|
|
424
|
-
],
|
|
425
|
-
program: {
|
|
426
|
-
kind: "const",
|
|
427
|
-
value: [
|
|
428
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16,
|
|
429
|
-
132, 4, 142, 123, 216, 219, 233, 248, 89,
|
|
430
|
-
],
|
|
431
|
-
},
|
|
432
|
-
},
|
|
433
|
-
},
|
|
434
|
-
{
|
|
435
|
-
name: "stream_nft_master_edition",
|
|
436
|
-
docs: ["Create account: the master edition account for the stream NFT."],
|
|
437
|
-
writable: true,
|
|
438
|
-
pda: {
|
|
439
|
-
seeds: [
|
|
440
|
-
{
|
|
441
|
-
kind: "const",
|
|
442
|
-
value: [109, 101, 116, 97, 100, 97, 116, 97],
|
|
443
|
-
},
|
|
444
|
-
{
|
|
445
|
-
kind: "account",
|
|
446
|
-
path: "token_metadata_program",
|
|
447
|
-
},
|
|
448
|
-
{
|
|
449
|
-
kind: "account",
|
|
450
|
-
path: "stream_nft_mint",
|
|
451
|
-
},
|
|
452
|
-
{
|
|
453
|
-
kind: "const",
|
|
454
|
-
value: [101, 100, 105, 116, 105, 111, 110],
|
|
455
|
-
},
|
|
456
|
-
],
|
|
457
|
-
program: {
|
|
458
|
-
kind: "account",
|
|
459
|
-
path: "token_metadata_program",
|
|
460
|
-
},
|
|
461
|
-
},
|
|
462
|
-
},
|
|
463
|
-
{
|
|
464
|
-
name: "stream_nft_metadata",
|
|
465
|
-
docs: ["Create account: the metadata account for the stream NFT."],
|
|
466
|
-
writable: true,
|
|
467
|
-
pda: {
|
|
468
|
-
seeds: [
|
|
469
|
-
{
|
|
470
|
-
kind: "const",
|
|
471
|
-
value: [109, 101, 116, 97, 100, 97, 116, 97],
|
|
472
|
-
},
|
|
473
|
-
{
|
|
474
|
-
kind: "account",
|
|
475
|
-
path: "token_metadata_program",
|
|
476
|
-
},
|
|
477
|
-
{
|
|
478
|
-
kind: "account",
|
|
479
|
-
path: "stream_nft_mint",
|
|
480
|
-
},
|
|
481
|
-
],
|
|
482
|
-
program: {
|
|
483
|
-
kind: "account",
|
|
484
|
-
path: "token_metadata_program",
|
|
485
|
-
},
|
|
486
|
-
},
|
|
487
|
-
},
|
|
488
|
-
{
|
|
489
|
-
name: "associated_token_program",
|
|
490
|
-
docs: ["Program account: the Associated Token program."],
|
|
491
|
-
address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
|
|
492
|
-
},
|
|
493
|
-
{
|
|
494
|
-
name: "deposit_token_program",
|
|
495
|
-
docs: ["Program account: the Token program of the deposit token."],
|
|
496
|
-
},
|
|
497
|
-
{
|
|
498
|
-
name: "nft_token_program",
|
|
499
|
-
docs: ["Program account: the Token program of the stream NFT."],
|
|
500
|
-
},
|
|
501
|
-
{
|
|
502
|
-
name: "token_metadata_program",
|
|
503
|
-
docs: ["Program account: the Token Metadata program."],
|
|
504
|
-
address: "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s",
|
|
505
|
-
},
|
|
506
|
-
{
|
|
507
|
-
name: "system_program",
|
|
508
|
-
docs: ["Program account: the System program."],
|
|
509
|
-
address: "11111111111111111111111111111111",
|
|
510
|
-
},
|
|
511
|
-
{
|
|
512
|
-
name: "rent",
|
|
513
|
-
docs: ["Sysvar account: Rent."],
|
|
514
|
-
address: "SysvarRent111111111111111111111111111111111",
|
|
515
|
-
},
|
|
516
|
-
],
|
|
517
|
-
args: [
|
|
518
|
-
{
|
|
519
|
-
name: "salt",
|
|
520
|
-
type: "u128",
|
|
521
|
-
},
|
|
522
|
-
{
|
|
523
|
-
name: "deposit_amount",
|
|
524
|
-
type: "u64",
|
|
525
|
-
},
|
|
526
|
-
{
|
|
527
|
-
name: "cliff_duration",
|
|
528
|
-
type: "u64",
|
|
529
|
-
},
|
|
530
|
-
{
|
|
531
|
-
name: "total_duration",
|
|
532
|
-
type: "u64",
|
|
533
|
-
},
|
|
534
|
-
{
|
|
535
|
-
name: "start_unlock_amount",
|
|
536
|
-
type: "u64",
|
|
537
|
-
},
|
|
538
|
-
{
|
|
539
|
-
name: "cliff_unlock_amount",
|
|
540
|
-
type: "u64",
|
|
541
|
-
},
|
|
542
|
-
{
|
|
543
|
-
name: "is_cancelable",
|
|
544
|
-
type: "bool",
|
|
545
|
-
},
|
|
546
|
-
],
|
|
547
|
-
},
|
|
548
|
-
{
|
|
549
|
-
name: "create_with_timestamps_ll",
|
|
550
|
-
docs: [
|
|
551
|
-
"Creates a stream with the provided start and end times. The stream is funded by the signer and wrapped in",
|
|
552
|
-
"a Metaplex NFT.",
|
|
553
|
-
"",
|
|
554
|
-
"# Accounts Expected",
|
|
555
|
-
"",
|
|
556
|
-
"- `creator` The transaction signer.",
|
|
557
|
-
"- `sender` The account that will have authority to cancel or renounce the stream.",
|
|
558
|
-
"- `deposit_token_mint` The mint of the tokens to be deposited.",
|
|
559
|
-
"- `recipient` The address receiving the tokens, as well as the NFT owner.",
|
|
560
|
-
"- `deposit_token_program` The Token Program of the deposit token.",
|
|
561
|
-
"- `nft_token_program` The Token Program of the NFT.",
|
|
562
|
-
"",
|
|
563
|
-
"# Parameters",
|
|
564
|
-
"",
|
|
565
|
-
"- `salt` A unique salt used to derive the address of the stream NFT mint.",
|
|
566
|
-
"- `deposit_amount` The deposit amount, denoted in units of the token's decimals.",
|
|
567
|
-
"- `start_time` The Unix timestamp indicating the stream's start.",
|
|
568
|
-
"- `cliff_time` The Unix timestamp indicating the stream's cliff.",
|
|
569
|
-
"- `end_time` The Unix timestamp indicating the stream's end.",
|
|
570
|
-
"- `start_unlock_amount` The amount to be unlocked at the start time.",
|
|
571
|
-
"- `cliff_unlock_amount` The amount to be unlocked at the cliff time.",
|
|
572
|
-
"- `is_cancelable` Indicates if the stream is cancelable.",
|
|
573
|
-
"",
|
|
574
|
-
"# Notes",
|
|
575
|
-
"",
|
|
576
|
-
"- The passed sender of the stream doesn't have to be the same as its creator.",
|
|
577
|
-
"- A cliff time of zero means there is no cliff.",
|
|
578
|
-
"- As long as the times are ordered, it is not an error for the start or the cliff time to be in the past.",
|
|
579
|
-
"- The stream recipient is given solely by the ownership of the stream NFT, which is minted to the passed",
|
|
580
|
-
"`recipient`.",
|
|
581
|
-
"- Emits a [`crate::utils::events::CreateLockupLinearStream`] event.",
|
|
582
|
-
"",
|
|
583
|
-
"# Requirements",
|
|
584
|
-
"",
|
|
585
|
-
"- `deposit_amount` must be greater than zero.",
|
|
586
|
-
"- `start_time` must be greater than zero and less than `end_time`.",
|
|
587
|
-
"- If set, `cliff_time` must be greater than `start_time` and less than `end_time`.",
|
|
588
|
-
"- The sum of `start_unlock_amount` and `cliff_unlock_amount` must be less than or equal to deposit amount.",
|
|
589
|
-
"- If `cliff_time` is not set, the `cliff_unlock_amount` amount must be zero.",
|
|
590
|
-
],
|
|
591
|
-
discriminator: [150, 165, 147, 28, 68, 41, 48, 41],
|
|
592
|
-
accounts: [
|
|
593
|
-
{
|
|
594
|
-
name: "creator",
|
|
595
|
-
docs: ["Write account: the creator and funder of the stream."],
|
|
596
|
-
writable: true,
|
|
597
|
-
signer: true,
|
|
598
|
-
},
|
|
599
|
-
{
|
|
600
|
-
name: "creator_ata",
|
|
601
|
-
docs: ["Write account: the creator's ATA for the deposit token."],
|
|
602
|
-
writable: true,
|
|
603
|
-
pda: {
|
|
604
|
-
seeds: [
|
|
605
|
-
{
|
|
606
|
-
kind: "account",
|
|
607
|
-
path: "creator",
|
|
608
|
-
},
|
|
609
|
-
{
|
|
610
|
-
kind: "account",
|
|
611
|
-
path: "deposit_token_program",
|
|
612
|
-
},
|
|
613
|
-
{
|
|
614
|
-
kind: "account",
|
|
615
|
-
path: "deposit_token_mint",
|
|
616
|
-
},
|
|
617
|
-
],
|
|
618
|
-
program: {
|
|
619
|
-
kind: "const",
|
|
620
|
-
value: [
|
|
621
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16,
|
|
622
|
-
132, 4, 142, 123, 216, 219, 233, 248, 89,
|
|
623
|
-
],
|
|
624
|
-
},
|
|
625
|
-
},
|
|
626
|
-
},
|
|
627
|
-
{
|
|
628
|
-
name: "recipient",
|
|
629
|
-
docs: ["Read account: the recipient of the stream."],
|
|
630
|
-
},
|
|
631
|
-
{
|
|
632
|
-
name: "sender",
|
|
633
|
-
docs: ["Read account: the sender of the stream."],
|
|
634
|
-
},
|
|
635
|
-
{
|
|
636
|
-
name: "nft_collection_data",
|
|
637
|
-
docs: ["Write account: the NFT collection data storing the total supply."],
|
|
638
|
-
writable: true,
|
|
639
|
-
pda: {
|
|
640
|
-
seeds: [
|
|
641
|
-
{
|
|
642
|
-
kind: "const",
|
|
643
|
-
value: [110, 102, 116, 95, 99, 111, 108, 108, 101, 99, 116, 105, 111, 110, 95, 100, 97, 116, 97],
|
|
644
|
-
},
|
|
645
|
-
],
|
|
646
|
-
},
|
|
647
|
-
},
|
|
648
|
-
{
|
|
649
|
-
name: "nft_collection_master_edition",
|
|
650
|
-
docs: ["Write account: the master edition account for the NFT collection."],
|
|
651
|
-
pda: {
|
|
652
|
-
seeds: [
|
|
653
|
-
{
|
|
654
|
-
kind: "const",
|
|
655
|
-
value: [109, 101, 116, 97, 100, 97, 116, 97],
|
|
656
|
-
},
|
|
657
|
-
{
|
|
658
|
-
kind: "account",
|
|
659
|
-
path: "token_metadata_program",
|
|
660
|
-
},
|
|
661
|
-
{
|
|
662
|
-
kind: "account",
|
|
663
|
-
path: "nft_collection_mint",
|
|
664
|
-
},
|
|
665
|
-
{
|
|
666
|
-
kind: "const",
|
|
667
|
-
value: [101, 100, 105, 116, 105, 111, 110],
|
|
668
|
-
},
|
|
669
|
-
],
|
|
670
|
-
program: {
|
|
671
|
-
kind: "account",
|
|
672
|
-
path: "token_metadata_program",
|
|
673
|
-
},
|
|
674
|
-
},
|
|
675
|
-
},
|
|
676
|
-
{
|
|
677
|
-
name: "nft_collection_metadata",
|
|
678
|
-
docs: ["Write account: the metadata account for the NFT collection."],
|
|
679
|
-
writable: true,
|
|
680
|
-
pda: {
|
|
681
|
-
seeds: [
|
|
682
|
-
{
|
|
683
|
-
kind: "const",
|
|
684
|
-
value: [109, 101, 116, 97, 100, 97, 116, 97],
|
|
685
|
-
},
|
|
686
|
-
{
|
|
687
|
-
kind: "account",
|
|
688
|
-
path: "token_metadata_program",
|
|
689
|
-
},
|
|
690
|
-
{
|
|
691
|
-
kind: "account",
|
|
692
|
-
path: "nft_collection_mint",
|
|
693
|
-
},
|
|
694
|
-
],
|
|
695
|
-
program: {
|
|
696
|
-
kind: "account",
|
|
697
|
-
path: "token_metadata_program",
|
|
698
|
-
},
|
|
699
|
-
},
|
|
700
|
-
},
|
|
701
|
-
{
|
|
702
|
-
name: "nft_collection_mint",
|
|
703
|
-
docs: ["Read account: the mint account for the NFT collection."],
|
|
704
|
-
pda: {
|
|
705
|
-
seeds: [
|
|
706
|
-
{
|
|
707
|
-
kind: "const",
|
|
708
|
-
value: [110, 102, 116, 95, 99, 111, 108, 108, 101, 99, 116, 105, 111, 110, 95, 109, 105, 110, 116],
|
|
709
|
-
},
|
|
710
|
-
],
|
|
711
|
-
},
|
|
712
|
-
},
|
|
713
|
-
{
|
|
714
|
-
name: "deposit_token_mint",
|
|
715
|
-
docs: ["Read account: the mint account for the deposit token."],
|
|
716
|
-
},
|
|
717
|
-
{
|
|
718
|
-
name: "stream_nft_mint",
|
|
719
|
-
docs: ["Create account: the mint account for the stream NFT."],
|
|
720
|
-
writable: true,
|
|
721
|
-
pda: {
|
|
722
|
-
seeds: [
|
|
723
|
-
{
|
|
724
|
-
kind: "const",
|
|
725
|
-
value: [115, 116, 114, 101, 97, 109, 95, 110, 102, 116, 95, 109, 105, 110, 116],
|
|
726
|
-
},
|
|
727
|
-
{
|
|
728
|
-
kind: "account",
|
|
729
|
-
path: "sender",
|
|
730
|
-
},
|
|
731
|
-
{
|
|
732
|
-
kind: "arg",
|
|
733
|
-
path: "salt",
|
|
734
|
-
},
|
|
735
|
-
],
|
|
736
|
-
},
|
|
737
|
-
},
|
|
738
|
-
{
|
|
739
|
-
name: "recipient_stream_nft_ata",
|
|
740
|
-
docs: ["Create account: the ATA for the stream NFT owned by the recipient."],
|
|
741
|
-
writable: true,
|
|
742
|
-
pda: {
|
|
743
|
-
seeds: [
|
|
744
|
-
{
|
|
745
|
-
kind: "account",
|
|
746
|
-
path: "recipient",
|
|
747
|
-
},
|
|
748
|
-
{
|
|
749
|
-
kind: "account",
|
|
750
|
-
path: "nft_token_program",
|
|
751
|
-
},
|
|
752
|
-
{
|
|
753
|
-
kind: "account",
|
|
754
|
-
path: "stream_nft_mint",
|
|
755
|
-
},
|
|
756
|
-
],
|
|
757
|
-
program: {
|
|
758
|
-
kind: "const",
|
|
759
|
-
value: [
|
|
760
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16,
|
|
761
|
-
132, 4, 142, 123, 216, 219, 233, 248, 89,
|
|
762
|
-
],
|
|
763
|
-
},
|
|
764
|
-
},
|
|
765
|
-
},
|
|
766
|
-
{
|
|
767
|
-
name: "stream_data",
|
|
768
|
-
docs: ["Create account: the account that will store the stream data."],
|
|
769
|
-
writable: true,
|
|
770
|
-
pda: {
|
|
771
|
-
seeds: [
|
|
772
|
-
{
|
|
773
|
-
kind: "const",
|
|
774
|
-
value: [115, 116, 114, 101, 97, 109, 95, 100, 97, 116, 97],
|
|
775
|
-
},
|
|
776
|
-
{
|
|
777
|
-
kind: "account",
|
|
778
|
-
path: "stream_nft_mint",
|
|
779
|
-
},
|
|
780
|
-
],
|
|
781
|
-
},
|
|
782
|
-
},
|
|
783
|
-
{
|
|
784
|
-
name: "stream_data_ata",
|
|
785
|
-
docs: ["Create account: the ATA for deposit tokens owned by stream data account."],
|
|
786
|
-
writable: true,
|
|
787
|
-
pda: {
|
|
788
|
-
seeds: [
|
|
789
|
-
{
|
|
790
|
-
kind: "account",
|
|
791
|
-
path: "stream_data",
|
|
792
|
-
},
|
|
793
|
-
{
|
|
794
|
-
kind: "account",
|
|
795
|
-
path: "deposit_token_program",
|
|
796
|
-
},
|
|
797
|
-
{
|
|
798
|
-
kind: "account",
|
|
799
|
-
path: "deposit_token_mint",
|
|
800
|
-
},
|
|
801
|
-
],
|
|
802
|
-
program: {
|
|
803
|
-
kind: "const",
|
|
804
|
-
value: [
|
|
805
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16,
|
|
806
|
-
132, 4, 142, 123, 216, 219, 233, 248, 89,
|
|
807
|
-
],
|
|
808
|
-
},
|
|
809
|
-
},
|
|
810
|
-
},
|
|
811
|
-
{
|
|
812
|
-
name: "stream_nft_master_edition",
|
|
813
|
-
docs: ["Create account: the master edition account for the stream NFT."],
|
|
814
|
-
writable: true,
|
|
815
|
-
pda: {
|
|
816
|
-
seeds: [
|
|
817
|
-
{
|
|
818
|
-
kind: "const",
|
|
819
|
-
value: [109, 101, 116, 97, 100, 97, 116, 97],
|
|
820
|
-
},
|
|
821
|
-
{
|
|
822
|
-
kind: "account",
|
|
823
|
-
path: "token_metadata_program",
|
|
824
|
-
},
|
|
825
|
-
{
|
|
826
|
-
kind: "account",
|
|
827
|
-
path: "stream_nft_mint",
|
|
828
|
-
},
|
|
829
|
-
{
|
|
830
|
-
kind: "const",
|
|
831
|
-
value: [101, 100, 105, 116, 105, 111, 110],
|
|
832
|
-
},
|
|
833
|
-
],
|
|
834
|
-
program: {
|
|
835
|
-
kind: "account",
|
|
836
|
-
path: "token_metadata_program",
|
|
837
|
-
},
|
|
838
|
-
},
|
|
839
|
-
},
|
|
840
|
-
{
|
|
841
|
-
name: "stream_nft_metadata",
|
|
842
|
-
docs: ["Create account: the metadata account for the stream NFT."],
|
|
843
|
-
writable: true,
|
|
844
|
-
pda: {
|
|
845
|
-
seeds: [
|
|
846
|
-
{
|
|
847
|
-
kind: "const",
|
|
848
|
-
value: [109, 101, 116, 97, 100, 97, 116, 97],
|
|
849
|
-
},
|
|
850
|
-
{
|
|
851
|
-
kind: "account",
|
|
852
|
-
path: "token_metadata_program",
|
|
853
|
-
},
|
|
854
|
-
{
|
|
855
|
-
kind: "account",
|
|
856
|
-
path: "stream_nft_mint",
|
|
857
|
-
},
|
|
858
|
-
],
|
|
859
|
-
program: {
|
|
860
|
-
kind: "account",
|
|
861
|
-
path: "token_metadata_program",
|
|
862
|
-
},
|
|
863
|
-
},
|
|
864
|
-
},
|
|
865
|
-
{
|
|
866
|
-
name: "associated_token_program",
|
|
867
|
-
docs: ["Program account: the Associated Token program."],
|
|
868
|
-
address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
|
|
869
|
-
},
|
|
870
|
-
{
|
|
871
|
-
name: "deposit_token_program",
|
|
872
|
-
docs: ["Program account: the Token program of the deposit token."],
|
|
873
|
-
},
|
|
874
|
-
{
|
|
875
|
-
name: "nft_token_program",
|
|
876
|
-
docs: ["Program account: the Token program of the stream NFT."],
|
|
877
|
-
},
|
|
878
|
-
{
|
|
879
|
-
name: "token_metadata_program",
|
|
880
|
-
docs: ["Program account: the Token Metadata program."],
|
|
881
|
-
address: "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s",
|
|
882
|
-
},
|
|
883
|
-
{
|
|
884
|
-
name: "system_program",
|
|
885
|
-
docs: ["Program account: the System program."],
|
|
886
|
-
address: "11111111111111111111111111111111",
|
|
887
|
-
},
|
|
888
|
-
{
|
|
889
|
-
name: "rent",
|
|
890
|
-
docs: ["Sysvar account: Rent."],
|
|
891
|
-
address: "SysvarRent111111111111111111111111111111111",
|
|
892
|
-
},
|
|
893
|
-
],
|
|
894
|
-
args: [
|
|
895
|
-
{
|
|
896
|
-
name: "salt",
|
|
897
|
-
type: "u128",
|
|
898
|
-
},
|
|
899
|
-
{
|
|
900
|
-
name: "deposit_amount",
|
|
901
|
-
type: "u64",
|
|
902
|
-
},
|
|
903
|
-
{
|
|
904
|
-
name: "start_time",
|
|
905
|
-
type: "u64",
|
|
906
|
-
},
|
|
907
|
-
{
|
|
908
|
-
name: "cliff_time",
|
|
909
|
-
type: "u64",
|
|
910
|
-
},
|
|
911
|
-
{
|
|
912
|
-
name: "end_time",
|
|
913
|
-
type: "u64",
|
|
914
|
-
},
|
|
915
|
-
{
|
|
916
|
-
name: "start_unlock_amount",
|
|
917
|
-
type: "u64",
|
|
918
|
-
},
|
|
919
|
-
{
|
|
920
|
-
name: "cliff_unlock_amount",
|
|
921
|
-
type: "u64",
|
|
922
|
-
},
|
|
923
|
-
{
|
|
924
|
-
name: "is_cancelable",
|
|
925
|
-
type: "bool",
|
|
926
|
-
},
|
|
927
|
-
],
|
|
928
|
-
},
|
|
929
|
-
{
|
|
930
|
-
name: "initialize",
|
|
931
|
-
docs: [
|
|
932
|
-
"Initializes the program with the provided fee collector address by creating a Metaplex NFT collection.",
|
|
933
|
-
"",
|
|
934
|
-
"# Accounts Expected",
|
|
935
|
-
"",
|
|
936
|
-
"- `initializer` The transaction signer.",
|
|
937
|
-
"- `nft_token_program` The Token Program of the NFT collection.",
|
|
938
|
-
"",
|
|
939
|
-
"# Parameters:",
|
|
940
|
-
"",
|
|
941
|
-
"- `fee_collector`: The address that will have the authority to collect fees.",
|
|
942
|
-
"- `chainlink_program`: The Chainlink program used to retrieve on-chain price feeds.",
|
|
943
|
-
"- `chainlink_sol_usd_feed`: The account providing the SOL/USD price feed data.",
|
|
944
|
-
],
|
|
945
|
-
discriminator: [175, 175, 109, 31, 13, 152, 155, 237],
|
|
946
|
-
accounts: [
|
|
947
|
-
{
|
|
948
|
-
name: "initializer",
|
|
949
|
-
docs: ["Write account: the initializer of the program."],
|
|
950
|
-
writable: true,
|
|
951
|
-
signer: true,
|
|
952
|
-
},
|
|
953
|
-
{
|
|
954
|
-
name: "treasury",
|
|
955
|
-
docs: ["Create account: the treasury account that will hold the fees."],
|
|
956
|
-
writable: true,
|
|
957
|
-
pda: {
|
|
958
|
-
seeds: [
|
|
959
|
-
{
|
|
960
|
-
kind: "const",
|
|
961
|
-
value: [116, 114, 101, 97, 115, 117, 114, 121],
|
|
962
|
-
},
|
|
963
|
-
],
|
|
964
|
-
},
|
|
965
|
-
},
|
|
966
|
-
{
|
|
967
|
-
name: "nft_collection_data",
|
|
968
|
-
docs: ["Create account: the NFT collection data account storing collection metadata."],
|
|
969
|
-
writable: true,
|
|
970
|
-
pda: {
|
|
971
|
-
seeds: [
|
|
972
|
-
{
|
|
973
|
-
kind: "const",
|
|
974
|
-
value: [110, 102, 116, 95, 99, 111, 108, 108, 101, 99, 116, 105, 111, 110, 95, 100, 97, 116, 97],
|
|
975
|
-
},
|
|
976
|
-
],
|
|
977
|
-
},
|
|
978
|
-
},
|
|
979
|
-
{
|
|
980
|
-
name: "nft_collection_master_edition",
|
|
981
|
-
docs: ["Create account: the master edition account for the NFT collection."],
|
|
982
|
-
writable: true,
|
|
983
|
-
pda: {
|
|
984
|
-
seeds: [
|
|
985
|
-
{
|
|
986
|
-
kind: "const",
|
|
987
|
-
value: [109, 101, 116, 97, 100, 97, 116, 97],
|
|
988
|
-
},
|
|
989
|
-
{
|
|
990
|
-
kind: "account",
|
|
991
|
-
path: "token_metadata_program",
|
|
992
|
-
},
|
|
993
|
-
{
|
|
994
|
-
kind: "account",
|
|
995
|
-
path: "nft_collection_mint",
|
|
996
|
-
},
|
|
997
|
-
{
|
|
998
|
-
kind: "const",
|
|
999
|
-
value: [101, 100, 105, 116, 105, 111, 110],
|
|
1000
|
-
},
|
|
1001
|
-
],
|
|
1002
|
-
program: {
|
|
1003
|
-
kind: "account",
|
|
1004
|
-
path: "token_metadata_program",
|
|
1005
|
-
},
|
|
1006
|
-
},
|
|
1007
|
-
},
|
|
1008
|
-
{
|
|
1009
|
-
name: "nft_collection_metadata",
|
|
1010
|
-
docs: ["Create account: the metadata account for the NFT collection."],
|
|
1011
|
-
writable: true,
|
|
1012
|
-
pda: {
|
|
1013
|
-
seeds: [
|
|
1014
|
-
{
|
|
1015
|
-
kind: "const",
|
|
1016
|
-
value: [109, 101, 116, 97, 100, 97, 116, 97],
|
|
1017
|
-
},
|
|
1018
|
-
{
|
|
1019
|
-
kind: "account",
|
|
1020
|
-
path: "token_metadata_program",
|
|
1021
|
-
},
|
|
1022
|
-
{
|
|
1023
|
-
kind: "account",
|
|
1024
|
-
path: "nft_collection_mint",
|
|
1025
|
-
},
|
|
1026
|
-
],
|
|
1027
|
-
program: {
|
|
1028
|
-
kind: "account",
|
|
1029
|
-
path: "token_metadata_program",
|
|
1030
|
-
},
|
|
1031
|
-
},
|
|
1032
|
-
},
|
|
1033
|
-
{
|
|
1034
|
-
name: "nft_collection_mint",
|
|
1035
|
-
docs: ["Create account: the mint account for the NFT collection."],
|
|
1036
|
-
writable: true,
|
|
1037
|
-
pda: {
|
|
1038
|
-
seeds: [
|
|
1039
|
-
{
|
|
1040
|
-
kind: "const",
|
|
1041
|
-
value: [110, 102, 116, 95, 99, 111, 108, 108, 101, 99, 116, 105, 111, 110, 95, 109, 105, 110, 116],
|
|
1042
|
-
},
|
|
1043
|
-
],
|
|
1044
|
-
},
|
|
1045
|
-
},
|
|
1046
|
-
{
|
|
1047
|
-
name: "nft_collection_ata",
|
|
1048
|
-
docs: ["Create account: the ATA for the NFT collection owned by treasury."],
|
|
1049
|
-
writable: true,
|
|
1050
|
-
pda: {
|
|
1051
|
-
seeds: [
|
|
1052
|
-
{
|
|
1053
|
-
kind: "account",
|
|
1054
|
-
path: "treasury",
|
|
1055
|
-
},
|
|
1056
|
-
{
|
|
1057
|
-
kind: "account",
|
|
1058
|
-
path: "nft_token_program",
|
|
1059
|
-
},
|
|
1060
|
-
{
|
|
1061
|
-
kind: "account",
|
|
1062
|
-
path: "nft_collection_mint",
|
|
1063
|
-
},
|
|
1064
|
-
],
|
|
1065
|
-
program: {
|
|
1066
|
-
kind: "const",
|
|
1067
|
-
value: [
|
|
1068
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16,
|
|
1069
|
-
132, 4, 142, 123, 216, 219, 233, 248, 89,
|
|
1070
|
-
],
|
|
1071
|
-
},
|
|
1072
|
-
},
|
|
1073
|
-
},
|
|
1074
|
-
{
|
|
1075
|
-
name: "associated_token_program",
|
|
1076
|
-
docs: ["Program account: the Associated Token program."],
|
|
1077
|
-
address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
|
|
1078
|
-
},
|
|
1079
|
-
{
|
|
1080
|
-
name: "nft_token_program",
|
|
1081
|
-
docs: ["Program account: the Token program of the collection NFT."],
|
|
1082
|
-
},
|
|
1083
|
-
{
|
|
1084
|
-
name: "token_metadata_program",
|
|
1085
|
-
docs: ["Program account: the Token Metadata program."],
|
|
1086
|
-
address: "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s",
|
|
1087
|
-
},
|
|
1088
|
-
{
|
|
1089
|
-
name: "rent",
|
|
1090
|
-
docs: ["Sysvar account: Rent."],
|
|
1091
|
-
address: "SysvarRent111111111111111111111111111111111",
|
|
1092
|
-
},
|
|
1093
|
-
{
|
|
1094
|
-
name: "system_program",
|
|
1095
|
-
docs: ["Program account: the System program."],
|
|
1096
|
-
address: "11111111111111111111111111111111",
|
|
1097
|
-
},
|
|
1098
|
-
],
|
|
1099
|
-
args: [
|
|
1100
|
-
{
|
|
1101
|
-
name: "fee_collector",
|
|
1102
|
-
type: "pubkey",
|
|
1103
|
-
},
|
|
1104
|
-
{
|
|
1105
|
-
name: "chainlink_program",
|
|
1106
|
-
type: "pubkey",
|
|
1107
|
-
},
|
|
1108
|
-
{
|
|
1109
|
-
name: "chainlink_sol_usd_feed",
|
|
1110
|
-
type: "pubkey",
|
|
1111
|
-
},
|
|
1112
|
-
],
|
|
1113
|
-
},
|
|
1114
|
-
{
|
|
1115
|
-
name: "refundable_amount_of",
|
|
1116
|
-
docs: [
|
|
1117
|
-
"Calculates the amount that the sender would be refunded if the stream were canceled, denoted in units of the",
|
|
1118
|
-
"token's decimals.",
|
|
1119
|
-
"",
|
|
1120
|
-
"# Accounts Expected",
|
|
1121
|
-
"",
|
|
1122
|
-
"- `stream_nft_mint` The stream NFT mint uniquely identifying the stream.",
|
|
1123
|
-
"",
|
|
1124
|
-
"# Requirements",
|
|
1125
|
-
"",
|
|
1126
|
-
"- The stream does not exist.",
|
|
1127
|
-
],
|
|
1128
|
-
discriminator: [160, 136, 114, 120, 234, 178, 146, 58],
|
|
1129
|
-
accounts: [
|
|
1130
|
-
{
|
|
1131
|
-
name: "stream_data",
|
|
1132
|
-
docs: ["Read account: the account storing stream details."],
|
|
1133
|
-
pda: {
|
|
1134
|
-
seeds: [
|
|
1135
|
-
{
|
|
1136
|
-
kind: "const",
|
|
1137
|
-
value: [115, 116, 114, 101, 97, 109, 95, 100, 97, 116, 97],
|
|
1138
|
-
},
|
|
1139
|
-
{
|
|
1140
|
-
kind: "account",
|
|
1141
|
-
path: "stream_nft_mint",
|
|
1142
|
-
},
|
|
1143
|
-
],
|
|
1144
|
-
},
|
|
1145
|
-
},
|
|
1146
|
-
{
|
|
1147
|
-
name: "stream_nft_mint",
|
|
1148
|
-
docs: ["Read account: the mint account for the stream NFT."],
|
|
1149
|
-
},
|
|
1150
|
-
],
|
|
1151
|
-
args: [],
|
|
1152
|
-
returns: "u64",
|
|
1153
|
-
},
|
|
1154
|
-
{
|
|
1155
|
-
name: "renounce",
|
|
1156
|
-
docs: [
|
|
1157
|
-
"Removes the right of the stream's sender to cancel the stream.",
|
|
1158
|
-
"",
|
|
1159
|
-
"# Accounts Expected",
|
|
1160
|
-
"",
|
|
1161
|
-
"- `sender` The transaction signer and the stream's sender.",
|
|
1162
|
-
"- `stream_nft_mint` The stream NFT mint uniquely identifying the stream.",
|
|
1163
|
-
"",
|
|
1164
|
-
"# Notes",
|
|
1165
|
-
"",
|
|
1166
|
-
"- Emits a [`crate::utils::events::RenounceLockupStream`] event.",
|
|
1167
|
-
],
|
|
1168
|
-
discriminator: [241, 157, 138, 210, 8, 235, 187, 123],
|
|
1169
|
-
accounts: [
|
|
1170
|
-
{
|
|
1171
|
-
name: "sender",
|
|
1172
|
-
docs: ["Write account: the sender of the stream."],
|
|
1173
|
-
signer: true,
|
|
1174
|
-
},
|
|
1175
|
-
{
|
|
1176
|
-
name: "stream_data",
|
|
1177
|
-
docs: ["Write account: the stream data account storing stream details."],
|
|
1178
|
-
writable: true,
|
|
1179
|
-
pda: {
|
|
1180
|
-
seeds: [
|
|
1181
|
-
{
|
|
1182
|
-
kind: "const",
|
|
1183
|
-
value: [115, 116, 114, 101, 97, 109, 95, 100, 97, 116, 97],
|
|
1184
|
-
},
|
|
1185
|
-
{
|
|
1186
|
-
kind: "account",
|
|
1187
|
-
path: "stream_nft_mint",
|
|
1188
|
-
},
|
|
1189
|
-
],
|
|
1190
|
-
},
|
|
1191
|
-
},
|
|
1192
|
-
{
|
|
1193
|
-
name: "stream_nft_mint",
|
|
1194
|
-
docs: ["Read account: the mint account for the stream NFT."],
|
|
1195
|
-
},
|
|
1196
|
-
],
|
|
1197
|
-
args: [],
|
|
1198
|
-
},
|
|
1199
|
-
{
|
|
1200
|
-
name: "status_of",
|
|
1201
|
-
docs: [
|
|
1202
|
-
"Retrieves the stream's status.",
|
|
1203
|
-
"",
|
|
1204
|
-
"# Accounts Expected",
|
|
1205
|
-
"",
|
|
1206
|
-
"- `stream_nft_mint` The stream NFT mint uniquely identifying the stream.",
|
|
1207
|
-
"",
|
|
1208
|
-
"# Requirements",
|
|
1209
|
-
"",
|
|
1210
|
-
"- The stream does not exist.",
|
|
1211
|
-
],
|
|
1212
|
-
discriminator: [90, 214, 253, 237, 126, 236, 132, 237],
|
|
1213
|
-
accounts: [
|
|
1214
|
-
{
|
|
1215
|
-
name: "stream_data",
|
|
1216
|
-
docs: ["Read account: the account storing stream details."],
|
|
1217
|
-
pda: {
|
|
1218
|
-
seeds: [
|
|
1219
|
-
{
|
|
1220
|
-
kind: "const",
|
|
1221
|
-
value: [115, 116, 114, 101, 97, 109, 95, 100, 97, 116, 97],
|
|
1222
|
-
},
|
|
1223
|
-
{
|
|
1224
|
-
kind: "account",
|
|
1225
|
-
path: "stream_nft_mint",
|
|
1226
|
-
},
|
|
1227
|
-
],
|
|
1228
|
-
},
|
|
1229
|
-
},
|
|
1230
|
-
{
|
|
1231
|
-
name: "stream_nft_mint",
|
|
1232
|
-
docs: ["Read account: the mint account for the stream NFT."],
|
|
1233
|
-
},
|
|
1234
|
-
],
|
|
1235
|
-
args: [],
|
|
1236
|
-
returns: {
|
|
1237
|
-
defined: {
|
|
1238
|
-
name: "StreamStatus",
|
|
1239
|
-
},
|
|
1240
|
-
},
|
|
1241
|
-
},
|
|
1242
|
-
{
|
|
1243
|
-
name: "stream_exists",
|
|
1244
|
-
docs: [
|
|
1245
|
-
"Returns a flag indicating whether a stream based on the `_sender` and the `_salt` already exists.",
|
|
1246
|
-
"",
|
|
1247
|
-
"# Parameters",
|
|
1248
|
-
"",
|
|
1249
|
-
"- `_sender` The sender of the stream.",
|
|
1250
|
-
"- `_salt` The unique salt used to derive the stream NFT mint address.",
|
|
1251
|
-
],
|
|
1252
|
-
discriminator: [104, 209, 104, 97, 122, 35, 165, 195],
|
|
1253
|
-
accounts: [
|
|
1254
|
-
{
|
|
1255
|
-
name: "stream_nft_mint",
|
|
1256
|
-
docs: ["Read account: the mint account for the stream NFT."],
|
|
1257
|
-
pda: {
|
|
1258
|
-
seeds: [
|
|
1259
|
-
{
|
|
1260
|
-
kind: "const",
|
|
1261
|
-
value: [115, 116, 114, 101, 97, 109, 95, 110, 102, 116, 95, 109, 105, 110, 116],
|
|
1262
|
-
},
|
|
1263
|
-
{
|
|
1264
|
-
kind: "arg",
|
|
1265
|
-
path: "_sender",
|
|
1266
|
-
},
|
|
1267
|
-
{
|
|
1268
|
-
kind: "arg",
|
|
1269
|
-
path: "_salt",
|
|
1270
|
-
},
|
|
1271
|
-
],
|
|
1272
|
-
},
|
|
1273
|
-
},
|
|
1274
|
-
],
|
|
1275
|
-
args: [
|
|
1276
|
-
{
|
|
1277
|
-
name: "_sender",
|
|
1278
|
-
type: "pubkey",
|
|
1279
|
-
},
|
|
1280
|
-
{
|
|
1281
|
-
name: "_salt",
|
|
1282
|
-
type: "u128",
|
|
1283
|
-
},
|
|
1284
|
-
],
|
|
1285
|
-
returns: "bool",
|
|
1286
|
-
},
|
|
1287
|
-
{
|
|
1288
|
-
name: "streamed_amount_of",
|
|
1289
|
-
docs: [
|
|
1290
|
-
"Calculates the amount streamed to the recipient, denoted in units of the token's decimals.",
|
|
1291
|
-
"",
|
|
1292
|
-
"# Accounts Expected",
|
|
1293
|
-
"",
|
|
1294
|
-
"- `stream_nft_mint` The stream NFT mint uniquely identifying the stream.",
|
|
1295
|
-
"",
|
|
1296
|
-
"# Notes",
|
|
1297
|
-
"",
|
|
1298
|
-
"- Upon cancellation of the stream, the amount streamed is calculated as the difference between the deposited",
|
|
1299
|
-
"amount and the refunded amount. Ultimately, when the stream becomes depleted, the streamed amount is equivalent",
|
|
1300
|
-
"to the total amount withdrawn.",
|
|
1301
|
-
"",
|
|
1302
|
-
"# Requirements",
|
|
1303
|
-
"",
|
|
1304
|
-
"- The stream does not exist.",
|
|
1305
|
-
],
|
|
1306
|
-
discriminator: [91, 69, 219, 48, 189, 26, 13, 33],
|
|
1307
|
-
accounts: [
|
|
1308
|
-
{
|
|
1309
|
-
name: "stream_data",
|
|
1310
|
-
docs: ["Read account: the account storing stream details."],
|
|
1311
|
-
pda: {
|
|
1312
|
-
seeds: [
|
|
1313
|
-
{
|
|
1314
|
-
kind: "const",
|
|
1315
|
-
value: [115, 116, 114, 101, 97, 109, 95, 100, 97, 116, 97],
|
|
1316
|
-
},
|
|
1317
|
-
{
|
|
1318
|
-
kind: "account",
|
|
1319
|
-
path: "stream_nft_mint",
|
|
1320
|
-
},
|
|
1321
|
-
],
|
|
1322
|
-
},
|
|
1323
|
-
},
|
|
1324
|
-
{
|
|
1325
|
-
name: "stream_nft_mint",
|
|
1326
|
-
docs: ["Read account: the mint account for the stream NFT."],
|
|
1327
|
-
},
|
|
1328
|
-
],
|
|
1329
|
-
args: [],
|
|
1330
|
-
returns: "u64",
|
|
1331
|
-
},
|
|
1332
|
-
{
|
|
1333
|
-
name: "treasury_view",
|
|
1334
|
-
docs: ["Returns the treasury details."],
|
|
1335
|
-
discriminator: [247, 160, 213, 237, 247, 121, 164, 82],
|
|
1336
|
-
accounts: [
|
|
1337
|
-
{
|
|
1338
|
-
name: "treasury",
|
|
1339
|
-
docs: ["Read account: the account storing the treasury details."],
|
|
1340
|
-
pda: {
|
|
1341
|
-
seeds: [
|
|
1342
|
-
{
|
|
1343
|
-
kind: "const",
|
|
1344
|
-
value: [116, 114, 101, 97, 115, 117, 114, 121],
|
|
1345
|
-
},
|
|
1346
|
-
],
|
|
1347
|
-
},
|
|
1348
|
-
},
|
|
1349
|
-
],
|
|
1350
|
-
args: [],
|
|
1351
|
-
returns: {
|
|
1352
|
-
defined: {
|
|
1353
|
-
name: "Treasury",
|
|
1354
|
-
},
|
|
1355
|
-
},
|
|
1356
|
-
},
|
|
1357
|
-
{
|
|
1358
|
-
name: "withdraw",
|
|
1359
|
-
docs: [
|
|
1360
|
-
"Withdraws the provided amount of tokens from the stream data ATA to the provided account.",
|
|
1361
|
-
"",
|
|
1362
|
-
"# Accounts Expected",
|
|
1363
|
-
"",
|
|
1364
|
-
"- `signer` The transaction signer.",
|
|
1365
|
-
"- `deposited_token_mint` The mint of the deposited token.",
|
|
1366
|
-
"- `stream_nft_mint` The stream NFT mint uniquely identifying the stream.",
|
|
1367
|
-
"- `withdrawal_recipient` The address of the recipient receiving the withdrawn tokens.",
|
|
1368
|
-
"- `deposited_token_program` The Token Program of the deposited token.",
|
|
1369
|
-
"- `nft_token_program` The Token Program of the NFT.",
|
|
1370
|
-
"- `chainlink_program`: The Chainlink program used to retrieve on-chain price feeds.",
|
|
1371
|
-
"- `chainlink_sol_usd_feed`: The account providing the SOL/USD price feed data.",
|
|
1372
|
-
"",
|
|
1373
|
-
"# Parameters",
|
|
1374
|
-
"",
|
|
1375
|
-
"- `amount` The amount to withdraw, denoted in units of the token's decimals.",
|
|
1376
|
-
"",
|
|
1377
|
-
"# Notes",
|
|
1378
|
-
"",
|
|
1379
|
-
"- If the withdrawal recipient does not have an ATA for the deposited token, one is created.",
|
|
1380
|
-
"- The instruction charges a fee in the native token (SOL), equivalent to $1 USD.",
|
|
1381
|
-
"- Emits [`crate::utils::events::WithdrawFromLockupStream`] event.",
|
|
1382
|
-
"",
|
|
1383
|
-
"# Requirements",
|
|
1384
|
-
"",
|
|
1385
|
-
"- `stream_nft_mint` must exist.",
|
|
1386
|
-
"- `withdrawal_recipient` must be the recipient if the signer is not the stream's recipient.",
|
|
1387
|
-
"- `amount` must be greater than zero and must not exceed the withdrawable amount.",
|
|
1388
|
-
"- The stream must not be Depleted.",
|
|
1389
|
-
"- `chainlink_program` and `chainlink_sol_usd_feed` must match the ones stored in the treasury.",
|
|
1390
|
-
],
|
|
1391
|
-
discriminator: [183, 18, 70, 156, 148, 109, 161, 34],
|
|
1392
|
-
accounts: [
|
|
1393
|
-
{
|
|
1394
|
-
name: "signer",
|
|
1395
|
-
docs: ["Write account: the signer of the withdrawal who pays the withdrawal fee."],
|
|
1396
|
-
writable: true,
|
|
1397
|
-
signer: true,
|
|
1398
|
-
},
|
|
1399
|
-
{
|
|
1400
|
-
name: "stream_recipient",
|
|
1401
|
-
docs: ["Read account: the recipient of the stream who owns the stream NFT."],
|
|
1402
|
-
},
|
|
1403
|
-
{
|
|
1404
|
-
name: "withdrawal_recipient",
|
|
1405
|
-
docs: ["Read account: the account that will receive the withdrawn tokens.", "recipient."],
|
|
1406
|
-
},
|
|
1407
|
-
{
|
|
1408
|
-
name: "withdrawal_recipient_ata",
|
|
1409
|
-
docs: ["Create if needed account: the ATA for deposited tokens owned by withdrawal recipient."],
|
|
1410
|
-
writable: true,
|
|
1411
|
-
pda: {
|
|
1412
|
-
seeds: [
|
|
1413
|
-
{
|
|
1414
|
-
kind: "account",
|
|
1415
|
-
path: "withdrawal_recipient",
|
|
1416
|
-
},
|
|
1417
|
-
{
|
|
1418
|
-
kind: "account",
|
|
1419
|
-
path: "deposited_token_program",
|
|
1420
|
-
},
|
|
1421
|
-
{
|
|
1422
|
-
kind: "account",
|
|
1423
|
-
path: "deposited_token_mint",
|
|
1424
|
-
},
|
|
1425
|
-
],
|
|
1426
|
-
program: {
|
|
1427
|
-
kind: "const",
|
|
1428
|
-
value: [
|
|
1429
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16,
|
|
1430
|
-
132, 4, 142, 123, 216, 219, 233, 248, 89,
|
|
1431
|
-
],
|
|
1432
|
-
},
|
|
1433
|
-
},
|
|
1434
|
-
},
|
|
1435
|
-
{
|
|
1436
|
-
name: "treasury",
|
|
1437
|
-
docs: ["Write account: the treasury account that receives the withdrawal fee."],
|
|
1438
|
-
writable: true,
|
|
1439
|
-
pda: {
|
|
1440
|
-
seeds: [
|
|
1441
|
-
{
|
|
1442
|
-
kind: "const",
|
|
1443
|
-
value: [116, 114, 101, 97, 115, 117, 114, 121],
|
|
1444
|
-
},
|
|
1445
|
-
],
|
|
1446
|
-
},
|
|
1447
|
-
},
|
|
1448
|
-
{
|
|
1449
|
-
name: "deposited_token_mint",
|
|
1450
|
-
docs: ["Read account: the mint account for the deposited token."],
|
|
1451
|
-
},
|
|
1452
|
-
{
|
|
1453
|
-
name: "recipient_stream_nft_ata",
|
|
1454
|
-
docs: ["Read account: the ATA for the stream NFT owned by recipient.", ""],
|
|
1455
|
-
pda: {
|
|
1456
|
-
seeds: [
|
|
1457
|
-
{
|
|
1458
|
-
kind: "account",
|
|
1459
|
-
path: "stream_recipient",
|
|
1460
|
-
},
|
|
1461
|
-
{
|
|
1462
|
-
kind: "account",
|
|
1463
|
-
path: "nft_token_program",
|
|
1464
|
-
},
|
|
1465
|
-
{
|
|
1466
|
-
kind: "account",
|
|
1467
|
-
path: "stream_nft_mint",
|
|
1468
|
-
},
|
|
1469
|
-
],
|
|
1470
|
-
program: {
|
|
1471
|
-
kind: "const",
|
|
1472
|
-
value: [
|
|
1473
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16,
|
|
1474
|
-
132, 4, 142, 123, 216, 219, 233, 248, 89,
|
|
1475
|
-
],
|
|
1476
|
-
},
|
|
1477
|
-
},
|
|
1478
|
-
},
|
|
1479
|
-
{
|
|
1480
|
-
name: "stream_data",
|
|
1481
|
-
docs: ["Write account: the account storing the stream data."],
|
|
1482
|
-
writable: true,
|
|
1483
|
-
pda: {
|
|
1484
|
-
seeds: [
|
|
1485
|
-
{
|
|
1486
|
-
kind: "const",
|
|
1487
|
-
value: [115, 116, 114, 101, 97, 109, 95, 100, 97, 116, 97],
|
|
1488
|
-
},
|
|
1489
|
-
{
|
|
1490
|
-
kind: "account",
|
|
1491
|
-
path: "stream_nft_mint",
|
|
1492
|
-
},
|
|
1493
|
-
],
|
|
1494
|
-
},
|
|
1495
|
-
},
|
|
1496
|
-
{
|
|
1497
|
-
name: "stream_data_ata",
|
|
1498
|
-
docs: ["Write account: the ATA for deposited tokens owned by stream data."],
|
|
1499
|
-
writable: true,
|
|
1500
|
-
pda: {
|
|
1501
|
-
seeds: [
|
|
1502
|
-
{
|
|
1503
|
-
kind: "account",
|
|
1504
|
-
path: "stream_data",
|
|
1505
|
-
},
|
|
1506
|
-
{
|
|
1507
|
-
kind: "account",
|
|
1508
|
-
path: "deposited_token_program",
|
|
1509
|
-
},
|
|
1510
|
-
{
|
|
1511
|
-
kind: "account",
|
|
1512
|
-
path: "deposited_token_mint",
|
|
1513
|
-
},
|
|
1514
|
-
],
|
|
1515
|
-
program: {
|
|
1516
|
-
kind: "const",
|
|
1517
|
-
value: [
|
|
1518
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16,
|
|
1519
|
-
132, 4, 142, 123, 216, 219, 233, 248, 89,
|
|
1520
|
-
],
|
|
1521
|
-
},
|
|
1522
|
-
},
|
|
1523
|
-
},
|
|
1524
|
-
{
|
|
1525
|
-
name: "stream_nft_mint",
|
|
1526
|
-
docs: ["Read account: the mint account for the stream NFT."],
|
|
1527
|
-
},
|
|
1528
|
-
{
|
|
1529
|
-
name: "associated_token_program",
|
|
1530
|
-
docs: ["Program account: the Associated Token program."],
|
|
1531
|
-
address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
|
|
1532
|
-
},
|
|
1533
|
-
{
|
|
1534
|
-
name: "chainlink_program",
|
|
1535
|
-
docs: ["Read account: The Chainlink program used to retrieve on-chain price feeds."],
|
|
1536
|
-
},
|
|
1537
|
-
{
|
|
1538
|
-
name: "chainlink_sol_usd_feed",
|
|
1539
|
-
docs: ["Read account: The account providing the SOL/USD price feed data."],
|
|
1540
|
-
},
|
|
1541
|
-
{
|
|
1542
|
-
name: "deposited_token_program",
|
|
1543
|
-
docs: ["Program account: the Token program of the deposited token."],
|
|
1544
|
-
},
|
|
1545
|
-
{
|
|
1546
|
-
name: "nft_token_program",
|
|
1547
|
-
docs: ["Program account: the Token program of the stream NFT."],
|
|
1548
|
-
},
|
|
1549
|
-
{
|
|
1550
|
-
name: "system_program",
|
|
1551
|
-
docs: ["Program account: the System program."],
|
|
1552
|
-
address: "11111111111111111111111111111111",
|
|
1553
|
-
},
|
|
1554
|
-
],
|
|
1555
|
-
args: [
|
|
1556
|
-
{
|
|
1557
|
-
name: "amount",
|
|
1558
|
-
type: "u64",
|
|
1559
|
-
},
|
|
1560
|
-
],
|
|
1561
|
-
},
|
|
1562
|
-
{
|
|
1563
|
-
name: "withdraw_max",
|
|
1564
|
-
docs: [
|
|
1565
|
-
"Withdraws the maximum withdrawable amount from the stream data ATA to the provided account.",
|
|
1566
|
-
"",
|
|
1567
|
-
"# Accounts Expected",
|
|
1568
|
-
"",
|
|
1569
|
-
"Refer to the accounts in [`fn@crate::sablier_lockup::withdraw`].",
|
|
1570
|
-
"",
|
|
1571
|
-
"# Notes",
|
|
1572
|
-
"",
|
|
1573
|
-
"Refer to the notes in [`fn@crate::sablier_lockup::withdraw`].",
|
|
1574
|
-
"",
|
|
1575
|
-
"# Requirements",
|
|
1576
|
-
"",
|
|
1577
|
-
"Refer to the requirements in [`fn@crate::sablier_lockup::withdraw`].",
|
|
1578
|
-
],
|
|
1579
|
-
discriminator: [32, 71, 46, 98, 105, 76, 85, 96],
|
|
1580
|
-
accounts: [
|
|
1581
|
-
{
|
|
1582
|
-
name: "signer",
|
|
1583
|
-
docs: ["Write account: the signer of the withdrawal who pays the withdrawal fee."],
|
|
1584
|
-
writable: true,
|
|
1585
|
-
signer: true,
|
|
1586
|
-
},
|
|
1587
|
-
{
|
|
1588
|
-
name: "stream_recipient",
|
|
1589
|
-
docs: ["Read account: the recipient of the stream who owns the stream NFT."],
|
|
1590
|
-
},
|
|
1591
|
-
{
|
|
1592
|
-
name: "withdrawal_recipient",
|
|
1593
|
-
docs: ["Read account: the account that will receive the withdrawn tokens.", "recipient."],
|
|
1594
|
-
},
|
|
1595
|
-
{
|
|
1596
|
-
name: "withdrawal_recipient_ata",
|
|
1597
|
-
docs: ["Create if needed account: the ATA for deposited tokens owned by withdrawal recipient."],
|
|
1598
|
-
writable: true,
|
|
1599
|
-
pda: {
|
|
1600
|
-
seeds: [
|
|
1601
|
-
{
|
|
1602
|
-
kind: "account",
|
|
1603
|
-
path: "withdrawal_recipient",
|
|
1604
|
-
},
|
|
1605
|
-
{
|
|
1606
|
-
kind: "account",
|
|
1607
|
-
path: "deposited_token_program",
|
|
1608
|
-
},
|
|
1609
|
-
{
|
|
1610
|
-
kind: "account",
|
|
1611
|
-
path: "deposited_token_mint",
|
|
1612
|
-
},
|
|
1613
|
-
],
|
|
1614
|
-
program: {
|
|
1615
|
-
kind: "const",
|
|
1616
|
-
value: [
|
|
1617
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16,
|
|
1618
|
-
132, 4, 142, 123, 216, 219, 233, 248, 89,
|
|
1619
|
-
],
|
|
1620
|
-
},
|
|
1621
|
-
},
|
|
1622
|
-
},
|
|
1623
|
-
{
|
|
1624
|
-
name: "treasury",
|
|
1625
|
-
docs: ["Write account: the treasury account that receives the withdrawal fee."],
|
|
1626
|
-
writable: true,
|
|
1627
|
-
pda: {
|
|
1628
|
-
seeds: [
|
|
1629
|
-
{
|
|
1630
|
-
kind: "const",
|
|
1631
|
-
value: [116, 114, 101, 97, 115, 117, 114, 121],
|
|
1632
|
-
},
|
|
1633
|
-
],
|
|
1634
|
-
},
|
|
1635
|
-
},
|
|
1636
|
-
{
|
|
1637
|
-
name: "deposited_token_mint",
|
|
1638
|
-
docs: ["Read account: the mint account for the deposited token."],
|
|
1639
|
-
},
|
|
1640
|
-
{
|
|
1641
|
-
name: "recipient_stream_nft_ata",
|
|
1642
|
-
docs: ["Read account: the ATA for the stream NFT owned by recipient.", ""],
|
|
1643
|
-
pda: {
|
|
1644
|
-
seeds: [
|
|
1645
|
-
{
|
|
1646
|
-
kind: "account",
|
|
1647
|
-
path: "stream_recipient",
|
|
1648
|
-
},
|
|
1649
|
-
{
|
|
1650
|
-
kind: "account",
|
|
1651
|
-
path: "nft_token_program",
|
|
1652
|
-
},
|
|
1653
|
-
{
|
|
1654
|
-
kind: "account",
|
|
1655
|
-
path: "stream_nft_mint",
|
|
1656
|
-
},
|
|
1657
|
-
],
|
|
1658
|
-
program: {
|
|
1659
|
-
kind: "const",
|
|
1660
|
-
value: [
|
|
1661
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16,
|
|
1662
|
-
132, 4, 142, 123, 216, 219, 233, 248, 89,
|
|
1663
|
-
],
|
|
1664
|
-
},
|
|
1665
|
-
},
|
|
1666
|
-
},
|
|
1667
|
-
{
|
|
1668
|
-
name: "stream_data",
|
|
1669
|
-
docs: ["Write account: the account storing the stream data."],
|
|
1670
|
-
writable: true,
|
|
1671
|
-
pda: {
|
|
1672
|
-
seeds: [
|
|
1673
|
-
{
|
|
1674
|
-
kind: "const",
|
|
1675
|
-
value: [115, 116, 114, 101, 97, 109, 95, 100, 97, 116, 97],
|
|
1676
|
-
},
|
|
1677
|
-
{
|
|
1678
|
-
kind: "account",
|
|
1679
|
-
path: "stream_nft_mint",
|
|
1680
|
-
},
|
|
1681
|
-
],
|
|
1682
|
-
},
|
|
1683
|
-
},
|
|
1684
|
-
{
|
|
1685
|
-
name: "stream_data_ata",
|
|
1686
|
-
docs: ["Write account: the ATA for deposited tokens owned by stream data."],
|
|
1687
|
-
writable: true,
|
|
1688
|
-
pda: {
|
|
1689
|
-
seeds: [
|
|
1690
|
-
{
|
|
1691
|
-
kind: "account",
|
|
1692
|
-
path: "stream_data",
|
|
1693
|
-
},
|
|
1694
|
-
{
|
|
1695
|
-
kind: "account",
|
|
1696
|
-
path: "deposited_token_program",
|
|
1697
|
-
},
|
|
1698
|
-
{
|
|
1699
|
-
kind: "account",
|
|
1700
|
-
path: "deposited_token_mint",
|
|
1701
|
-
},
|
|
1702
|
-
],
|
|
1703
|
-
program: {
|
|
1704
|
-
kind: "const",
|
|
1705
|
-
value: [
|
|
1706
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16,
|
|
1707
|
-
132, 4, 142, 123, 216, 219, 233, 248, 89,
|
|
1708
|
-
],
|
|
1709
|
-
},
|
|
1710
|
-
},
|
|
1711
|
-
},
|
|
1712
|
-
{
|
|
1713
|
-
name: "stream_nft_mint",
|
|
1714
|
-
docs: ["Read account: the mint account for the stream NFT."],
|
|
1715
|
-
},
|
|
1716
|
-
{
|
|
1717
|
-
name: "associated_token_program",
|
|
1718
|
-
docs: ["Program account: the Associated Token program."],
|
|
1719
|
-
address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
|
|
1720
|
-
},
|
|
1721
|
-
{
|
|
1722
|
-
name: "chainlink_program",
|
|
1723
|
-
docs: ["Read account: The Chainlink program used to retrieve on-chain price feeds."],
|
|
1724
|
-
},
|
|
1725
|
-
{
|
|
1726
|
-
name: "chainlink_sol_usd_feed",
|
|
1727
|
-
docs: ["Read account: The account providing the SOL/USD price feed data."],
|
|
1728
|
-
},
|
|
1729
|
-
{
|
|
1730
|
-
name: "deposited_token_program",
|
|
1731
|
-
docs: ["Program account: the Token program of the deposited token."],
|
|
1732
|
-
},
|
|
1733
|
-
{
|
|
1734
|
-
name: "nft_token_program",
|
|
1735
|
-
docs: ["Program account: the Token program of the stream NFT."],
|
|
1736
|
-
},
|
|
1737
|
-
{
|
|
1738
|
-
name: "system_program",
|
|
1739
|
-
docs: ["Program account: the System program."],
|
|
1740
|
-
address: "11111111111111111111111111111111",
|
|
1741
|
-
},
|
|
1742
|
-
],
|
|
1743
|
-
args: [],
|
|
1744
|
-
},
|
|
1745
|
-
{
|
|
1746
|
-
name: "withdrawable_amount_of",
|
|
1747
|
-
docs: [
|
|
1748
|
-
"Calculates the amount that the recipient can withdraw from the stream, denoted in units of the token's",
|
|
1749
|
-
"decimals.",
|
|
1750
|
-
"",
|
|
1751
|
-
"# Accounts Expected",
|
|
1752
|
-
"",
|
|
1753
|
-
"- `stream_nft_mint` The stream NFT mint uniquely identifying the stream.",
|
|
1754
|
-
"",
|
|
1755
|
-
"# Requirements",
|
|
1756
|
-
"",
|
|
1757
|
-
"- The stream does not exist.",
|
|
1758
|
-
],
|
|
1759
|
-
discriminator: [30, 195, 140, 141, 173, 123, 253, 60],
|
|
1760
|
-
accounts: [
|
|
1761
|
-
{
|
|
1762
|
-
name: "stream_data",
|
|
1763
|
-
docs: ["Read account: the account storing stream details."],
|
|
1764
|
-
pda: {
|
|
1765
|
-
seeds: [
|
|
1766
|
-
{
|
|
1767
|
-
kind: "const",
|
|
1768
|
-
value: [115, 116, 114, 101, 97, 109, 95, 100, 97, 116, 97],
|
|
1769
|
-
},
|
|
1770
|
-
{
|
|
1771
|
-
kind: "account",
|
|
1772
|
-
path: "stream_nft_mint",
|
|
1773
|
-
},
|
|
1774
|
-
],
|
|
1775
|
-
},
|
|
1776
|
-
},
|
|
1777
|
-
{
|
|
1778
|
-
name: "stream_nft_mint",
|
|
1779
|
-
docs: ["Read account: the mint account for the stream NFT."],
|
|
1780
|
-
},
|
|
1781
|
-
],
|
|
1782
|
-
args: [],
|
|
1783
|
-
returns: "u64",
|
|
1784
|
-
},
|
|
1785
|
-
{
|
|
1786
|
-
name: "withdrawal_fee_in_lamports",
|
|
1787
|
-
docs: [
|
|
1788
|
-
"Calculates the withdrawal fee in lamports, which is equivalent to $1 USD.",
|
|
1789
|
-
"",
|
|
1790
|
-
"# Accounts Expected:",
|
|
1791
|
-
"",
|
|
1792
|
-
"- `chainlink_program`: The Chainlink program used to retrieve on-chain price feeds.",
|
|
1793
|
-
"- `chainlink_sol_usd_feed`: The account providing the SOL/USD price feed data.",
|
|
1794
|
-
],
|
|
1795
|
-
discriminator: [55, 255, 88, 224, 223, 23, 97, 140],
|
|
1796
|
-
accounts: [
|
|
1797
|
-
{
|
|
1798
|
-
name: "treasury",
|
|
1799
|
-
docs: ["Read account: the treasury account that receives the withdrawal fee."],
|
|
1800
|
-
pda: {
|
|
1801
|
-
seeds: [
|
|
1802
|
-
{
|
|
1803
|
-
kind: "const",
|
|
1804
|
-
value: [116, 114, 101, 97, 115, 117, 114, 121],
|
|
1805
|
-
},
|
|
1806
|
-
],
|
|
1807
|
-
},
|
|
1808
|
-
},
|
|
1809
|
-
{
|
|
1810
|
-
name: "chainlink_program",
|
|
1811
|
-
docs: ["Read account: The Chainlink program used to retrieve on-chain price feeds."],
|
|
1812
|
-
},
|
|
1813
|
-
{
|
|
1814
|
-
name: "chainlink_sol_usd_feed",
|
|
1815
|
-
docs: ["Read account: The account providing the SOL/USD price feed data."],
|
|
1816
|
-
},
|
|
1817
|
-
],
|
|
1818
|
-
args: [],
|
|
1819
|
-
returns: "u64",
|
|
1820
|
-
},
|
|
1821
|
-
],
|
|
1822
|
-
accounts: [
|
|
1823
|
-
{
|
|
1824
|
-
name: "NftCollectionData",
|
|
1825
|
-
discriminator: [159, 26, 37, 150, 44, 84, 171, 172],
|
|
1826
|
-
},
|
|
1827
|
-
{
|
|
1828
|
-
name: "StreamData",
|
|
1829
|
-
discriminator: [61, 89, 148, 141, 154, 81, 86, 113],
|
|
1830
|
-
},
|
|
1831
|
-
{
|
|
1832
|
-
name: "Treasury",
|
|
1833
|
-
discriminator: [238, 239, 123, 238, 89, 1, 168, 253],
|
|
1834
|
-
},
|
|
1835
|
-
],
|
|
1836
|
-
events: [
|
|
1837
|
-
{
|
|
1838
|
-
name: "CancelLockupStream",
|
|
1839
|
-
discriminator: [82, 106, 117, 112, 153, 245, 190, 66],
|
|
1840
|
-
},
|
|
1841
|
-
{
|
|
1842
|
-
name: "CreateLockupLinearStream",
|
|
1843
|
-
discriminator: [234, 181, 19, 52, 67, 64, 151, 173],
|
|
1844
|
-
},
|
|
1845
|
-
{
|
|
1846
|
-
name: "FeesCollected",
|
|
1847
|
-
discriminator: [233, 23, 117, 225, 107, 178, 254, 8],
|
|
1848
|
-
},
|
|
1849
|
-
{
|
|
1850
|
-
name: "RenounceLockupStream",
|
|
1851
|
-
discriminator: [28, 66, 144, 150, 118, 56, 81, 93],
|
|
1852
|
-
},
|
|
1853
|
-
{
|
|
1854
|
-
name: "WithdrawFromLockupStream",
|
|
1855
|
-
discriminator: [232, 101, 27, 150, 85, 222, 243, 9],
|
|
1856
|
-
},
|
|
1857
|
-
],
|
|
1858
|
-
errors: [
|
|
1859
|
-
{
|
|
1860
|
-
code: 6000,
|
|
1861
|
-
name: "StreamDepleted",
|
|
1862
|
-
msg: "Can't perform the action on a depleted stream!",
|
|
1863
|
-
},
|
|
1864
|
-
{
|
|
1865
|
-
code: 6001,
|
|
1866
|
-
name: "StreamCanceled",
|
|
1867
|
-
msg: "Can't renounce an already-renounced Stream!",
|
|
1868
|
-
},
|
|
1869
|
-
{
|
|
1870
|
-
code: 6002,
|
|
1871
|
-
name: "StreamIsNotCancelable",
|
|
1872
|
-
msg: "Can't cancel a non-cancelable Stream!",
|
|
1873
|
-
},
|
|
1874
|
-
{
|
|
1875
|
-
code: 6003,
|
|
1876
|
-
name: "StreamSettled",
|
|
1877
|
-
msg: "Can't cancel a settled Stream!",
|
|
1878
|
-
},
|
|
1879
|
-
{
|
|
1880
|
-
code: 6004,
|
|
1881
|
-
name: "CantCollectZeroFees",
|
|
1882
|
-
msg: "Can't collect zero fees!",
|
|
1883
|
-
},
|
|
1884
|
-
{
|
|
1885
|
-
code: 6005,
|
|
1886
|
-
name: "CliffTimeNotLessThanEndTime",
|
|
1887
|
-
msg: "Invalid cliff time of the Stream!",
|
|
1888
|
-
},
|
|
1889
|
-
{
|
|
1890
|
-
code: 6006,
|
|
1891
|
-
name: "CliffTimeZeroUnlockAmountNotZero",
|
|
1892
|
-
msg: "Cliff time zero but unlock amount not zero!",
|
|
1893
|
-
},
|
|
1894
|
-
{
|
|
1895
|
-
code: 6007,
|
|
1896
|
-
name: "DepositAmountZero",
|
|
1897
|
-
msg: "Invalid deposit amount!",
|
|
1898
|
-
},
|
|
1899
|
-
{
|
|
1900
|
-
code: 6008,
|
|
1901
|
-
name: "StartTimeNotLessThanCliffTime",
|
|
1902
|
-
msg: "Start time must be less than cliff time!",
|
|
1903
|
-
},
|
|
1904
|
-
{
|
|
1905
|
-
code: 6009,
|
|
1906
|
-
name: "StartTimeNotLessThanEndTime",
|
|
1907
|
-
msg: "Start time must be less than end time!",
|
|
1908
|
-
},
|
|
1909
|
-
{
|
|
1910
|
-
code: 6010,
|
|
1911
|
-
name: "StartTimeZero",
|
|
1912
|
-
msg: "Start time can't be zero!",
|
|
1913
|
-
},
|
|
1914
|
-
{
|
|
1915
|
-
code: 6011,
|
|
1916
|
-
name: "UnlockAmountsSumTooHigh",
|
|
1917
|
-
msg: "Unlock amounts sum is greater than deposit amount!",
|
|
1918
|
-
},
|
|
1919
|
-
{
|
|
1920
|
-
code: 6012,
|
|
1921
|
-
name: "StreamAlreadyNonCancelable",
|
|
1922
|
-
msg: "Can't renounce a non-cancelable Stream!",
|
|
1923
|
-
},
|
|
1924
|
-
{
|
|
1925
|
-
code: 6013,
|
|
1926
|
-
name: "Overdraw",
|
|
1927
|
-
msg: "Attempting to withdraw more than available in the stream!",
|
|
1928
|
-
},
|
|
1929
|
-
{
|
|
1930
|
-
code: 6014,
|
|
1931
|
-
name: "WithdrawAmountZero",
|
|
1932
|
-
msg: "Can't withdraw a zero amount!",
|
|
1933
|
-
},
|
|
1934
|
-
],
|
|
1935
|
-
types: [
|
|
1936
|
-
{
|
|
1937
|
-
name: "Amounts",
|
|
1938
|
-
type: {
|
|
1939
|
-
kind: "struct",
|
|
1940
|
-
fields: [
|
|
1941
|
-
{
|
|
1942
|
-
name: "start_unlock",
|
|
1943
|
-
type: "u64",
|
|
1944
|
-
},
|
|
1945
|
-
{
|
|
1946
|
-
name: "cliff_unlock",
|
|
1947
|
-
type: "u64",
|
|
1948
|
-
},
|
|
1949
|
-
{
|
|
1950
|
-
name: "deposited",
|
|
1951
|
-
type: "u64",
|
|
1952
|
-
},
|
|
1953
|
-
{
|
|
1954
|
-
name: "refunded",
|
|
1955
|
-
type: "u64",
|
|
1956
|
-
},
|
|
1957
|
-
{
|
|
1958
|
-
name: "withdrawn",
|
|
1959
|
-
type: "u64",
|
|
1960
|
-
},
|
|
1961
|
-
],
|
|
1962
|
-
},
|
|
1963
|
-
},
|
|
1964
|
-
{
|
|
1965
|
-
name: "CancelLockupStream",
|
|
1966
|
-
type: {
|
|
1967
|
-
kind: "struct",
|
|
1968
|
-
fields: [
|
|
1969
|
-
{
|
|
1970
|
-
name: "deposited_token_mint",
|
|
1971
|
-
type: "pubkey",
|
|
1972
|
-
},
|
|
1973
|
-
{
|
|
1974
|
-
name: "recipient_amount",
|
|
1975
|
-
type: "u64",
|
|
1976
|
-
},
|
|
1977
|
-
{
|
|
1978
|
-
name: "sender_amount",
|
|
1979
|
-
type: "u64",
|
|
1980
|
-
},
|
|
1981
|
-
{
|
|
1982
|
-
name: "stream_data",
|
|
1983
|
-
type: "pubkey",
|
|
1984
|
-
},
|
|
1985
|
-
{
|
|
1986
|
-
name: "stream_nft_mint",
|
|
1987
|
-
type: "pubkey",
|
|
1988
|
-
},
|
|
1989
|
-
],
|
|
1990
|
-
},
|
|
1991
|
-
},
|
|
1992
|
-
{
|
|
1993
|
-
name: "CreateLockupLinearStream",
|
|
1994
|
-
type: {
|
|
1995
|
-
kind: "struct",
|
|
1996
|
-
fields: [
|
|
1997
|
-
{
|
|
1998
|
-
name: "deposit_token_decimals",
|
|
1999
|
-
type: "u8",
|
|
2000
|
-
},
|
|
2001
|
-
{
|
|
2002
|
-
name: "deposit_token_mint",
|
|
2003
|
-
type: "pubkey",
|
|
2004
|
-
},
|
|
2005
|
-
{
|
|
2006
|
-
name: "recipient",
|
|
2007
|
-
type: "pubkey",
|
|
2008
|
-
},
|
|
2009
|
-
{
|
|
2010
|
-
name: "salt",
|
|
2011
|
-
type: "u128",
|
|
2012
|
-
},
|
|
2013
|
-
{
|
|
2014
|
-
name: "stream_data",
|
|
2015
|
-
type: "pubkey",
|
|
2016
|
-
},
|
|
2017
|
-
{
|
|
2018
|
-
name: "stream_nft_mint",
|
|
2019
|
-
type: "pubkey",
|
|
2020
|
-
},
|
|
2021
|
-
],
|
|
2022
|
-
},
|
|
2023
|
-
},
|
|
2024
|
-
{
|
|
2025
|
-
name: "FeesCollected",
|
|
2026
|
-
type: {
|
|
2027
|
-
kind: "struct",
|
|
2028
|
-
fields: [
|
|
2029
|
-
{
|
|
2030
|
-
name: "fee_amount",
|
|
2031
|
-
type: "u64",
|
|
2032
|
-
},
|
|
2033
|
-
{
|
|
2034
|
-
name: "fee_collector",
|
|
2035
|
-
type: "pubkey",
|
|
2036
|
-
},
|
|
2037
|
-
{
|
|
2038
|
-
name: "fee_recipient",
|
|
2039
|
-
type: "pubkey",
|
|
2040
|
-
},
|
|
2041
|
-
],
|
|
2042
|
-
},
|
|
2043
|
-
},
|
|
2044
|
-
{
|
|
2045
|
-
name: "NftCollectionData",
|
|
2046
|
-
type: {
|
|
2047
|
-
kind: "struct",
|
|
2048
|
-
fields: [
|
|
2049
|
-
{
|
|
2050
|
-
name: "total_supply",
|
|
2051
|
-
type: "u64",
|
|
2052
|
-
},
|
|
2053
|
-
{
|
|
2054
|
-
name: "bump",
|
|
2055
|
-
type: "u8",
|
|
2056
|
-
},
|
|
2057
|
-
],
|
|
2058
|
-
},
|
|
2059
|
-
},
|
|
2060
|
-
{
|
|
2061
|
-
name: "RenounceLockupStream",
|
|
2062
|
-
type: {
|
|
2063
|
-
kind: "struct",
|
|
2064
|
-
fields: [
|
|
2065
|
-
{
|
|
2066
|
-
name: "deposited_token_mint",
|
|
2067
|
-
type: "pubkey",
|
|
2068
|
-
},
|
|
2069
|
-
{
|
|
2070
|
-
name: "stream_data",
|
|
2071
|
-
type: "pubkey",
|
|
2072
|
-
},
|
|
2073
|
-
{
|
|
2074
|
-
name: "stream_nft_mint",
|
|
2075
|
-
type: "pubkey",
|
|
2076
|
-
},
|
|
2077
|
-
],
|
|
2078
|
-
},
|
|
2079
|
-
},
|
|
2080
|
-
{
|
|
2081
|
-
name: "StreamData",
|
|
2082
|
-
type: {
|
|
2083
|
-
kind: "struct",
|
|
2084
|
-
fields: [
|
|
2085
|
-
{
|
|
2086
|
-
name: "amounts",
|
|
2087
|
-
type: {
|
|
2088
|
-
defined: {
|
|
2089
|
-
name: "Amounts",
|
|
2090
|
-
},
|
|
2091
|
-
},
|
|
2092
|
-
},
|
|
2093
|
-
{
|
|
2094
|
-
name: "deposited_token_mint",
|
|
2095
|
-
type: "pubkey",
|
|
2096
|
-
},
|
|
2097
|
-
{
|
|
2098
|
-
name: "bump",
|
|
2099
|
-
type: "u8",
|
|
2100
|
-
},
|
|
2101
|
-
{
|
|
2102
|
-
name: "salt",
|
|
2103
|
-
type: "u128",
|
|
2104
|
-
},
|
|
2105
|
-
{
|
|
2106
|
-
name: "is_cancelable",
|
|
2107
|
-
type: "bool",
|
|
2108
|
-
},
|
|
2109
|
-
{
|
|
2110
|
-
name: "is_depleted",
|
|
2111
|
-
type: "bool",
|
|
2112
|
-
},
|
|
2113
|
-
{
|
|
2114
|
-
name: "timestamps",
|
|
2115
|
-
type: {
|
|
2116
|
-
defined: {
|
|
2117
|
-
name: "Timestamps",
|
|
2118
|
-
},
|
|
2119
|
-
},
|
|
2120
|
-
},
|
|
2121
|
-
{
|
|
2122
|
-
name: "sender",
|
|
2123
|
-
type: "pubkey",
|
|
2124
|
-
},
|
|
2125
|
-
{
|
|
2126
|
-
name: "was_canceled",
|
|
2127
|
-
type: "bool",
|
|
2128
|
-
},
|
|
2129
|
-
],
|
|
2130
|
-
},
|
|
2131
|
-
},
|
|
2132
|
-
{
|
|
2133
|
-
name: "StreamStatus",
|
|
2134
|
-
type: {
|
|
2135
|
-
kind: "enum",
|
|
2136
|
-
variants: [
|
|
2137
|
-
{
|
|
2138
|
-
name: "Pending",
|
|
2139
|
-
},
|
|
2140
|
-
{
|
|
2141
|
-
name: "Streaming",
|
|
2142
|
-
},
|
|
2143
|
-
{
|
|
2144
|
-
name: "Settled",
|
|
2145
|
-
},
|
|
2146
|
-
{
|
|
2147
|
-
name: "Canceled",
|
|
2148
|
-
},
|
|
2149
|
-
{
|
|
2150
|
-
name: "Depleted",
|
|
2151
|
-
},
|
|
2152
|
-
],
|
|
2153
|
-
},
|
|
2154
|
-
},
|
|
2155
|
-
{
|
|
2156
|
-
name: "Timestamps",
|
|
2157
|
-
docs: ["Groups the timestamps for a Lockup stream."],
|
|
2158
|
-
type: {
|
|
2159
|
-
kind: "struct",
|
|
2160
|
-
fields: [
|
|
2161
|
-
{
|
|
2162
|
-
name: "cliff",
|
|
2163
|
-
type: "u64",
|
|
2164
|
-
},
|
|
2165
|
-
{
|
|
2166
|
-
name: "end",
|
|
2167
|
-
type: "u64",
|
|
2168
|
-
},
|
|
2169
|
-
{
|
|
2170
|
-
name: "start",
|
|
2171
|
-
type: "u64",
|
|
2172
|
-
},
|
|
2173
|
-
],
|
|
2174
|
-
},
|
|
2175
|
-
},
|
|
2176
|
-
{
|
|
2177
|
-
name: "Treasury",
|
|
2178
|
-
type: {
|
|
2179
|
-
kind: "struct",
|
|
2180
|
-
fields: [
|
|
2181
|
-
{
|
|
2182
|
-
name: "bump",
|
|
2183
|
-
type: "u8",
|
|
2184
|
-
},
|
|
2185
|
-
{
|
|
2186
|
-
name: "fee_collector",
|
|
2187
|
-
type: "pubkey",
|
|
2188
|
-
},
|
|
2189
|
-
{
|
|
2190
|
-
name: "chainlink_program",
|
|
2191
|
-
type: "pubkey",
|
|
2192
|
-
},
|
|
2193
|
-
{
|
|
2194
|
-
name: "chainlink_sol_usd_feed",
|
|
2195
|
-
type: "pubkey",
|
|
2196
|
-
},
|
|
2197
|
-
],
|
|
2198
|
-
},
|
|
2199
|
-
},
|
|
2200
|
-
{
|
|
2201
|
-
name: "WithdrawFromLockupStream",
|
|
2202
|
-
type: {
|
|
2203
|
-
kind: "struct",
|
|
2204
|
-
fields: [
|
|
2205
|
-
{
|
|
2206
|
-
name: "deposited_token_mint",
|
|
2207
|
-
type: "pubkey",
|
|
2208
|
-
},
|
|
2209
|
-
{
|
|
2210
|
-
name: "fee_in_lamports",
|
|
2211
|
-
type: "u64",
|
|
2212
|
-
},
|
|
2213
|
-
{
|
|
2214
|
-
name: "stream_data",
|
|
2215
|
-
type: "pubkey",
|
|
2216
|
-
},
|
|
2217
|
-
{
|
|
2218
|
-
name: "stream_nft_mint",
|
|
2219
|
-
type: "pubkey",
|
|
2220
|
-
},
|
|
2221
|
-
{
|
|
2222
|
-
name: "withdrawn_amount",
|
|
2223
|
-
type: "u64",
|
|
2224
|
-
},
|
|
2225
|
-
],
|
|
2226
|
-
},
|
|
2227
|
-
},
|
|
2228
|
-
],
|
|
2229
|
-
};
|
|
2230
|
-
//# sourceMappingURL=SablierLockupLinearV10.js.map
|