@streamflow/stream 8.1.1 → 8.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/dist/cjs/{BaseStreamClient-t7I4NOSm.d.cts → BaseStreamClient-uzoqllcf.d.cts} +4 -0
  2. package/dist/cjs/aptos/index.d.cts +2 -2
  3. package/dist/cjs/evm/index.d.cts +2 -2
  4. package/dist/cjs/{index-BRL3w_PW.d.cts → index-BEQUqMyR.d.cts} +3 -1
  5. package/dist/cjs/{index-kcFtmz7O.d.cts → index-BpvTuTHx.d.cts} +1 -1
  6. package/dist/cjs/{index-DU0JxxIj.d.cts → index-CA72ko5B.d.cts} +1 -1
  7. package/dist/cjs/{index-IHOpuPSg.d.cts → index-DM9lJY7y.d.cts} +1 -1
  8. package/dist/cjs/index.cjs +320 -65
  9. package/dist/cjs/index.cjs.map +1 -1
  10. package/dist/cjs/index.d.cts +10 -10
  11. package/dist/cjs/solana/descriptor/streamflow_aligned_unlocks.d.cts +766 -517
  12. package/dist/cjs/solana/index.cjs +320 -65
  13. package/dist/cjs/solana/index.cjs.map +1 -1
  14. package/dist/cjs/solana/index.d.cts +2 -2
  15. package/dist/cjs/sui/index.d.cts +2 -2
  16. package/dist/esm/{BaseStreamClient-t7I4NOSm.d.ts → BaseStreamClient-uzoqllcf.d.ts} +4 -0
  17. package/dist/esm/aptos/index.d.ts +2 -2
  18. package/dist/esm/evm/index.d.ts +2 -2
  19. package/dist/esm/{index-B2txI-oF.d.ts → index-0fL5gH5R.d.ts} +3 -1
  20. package/dist/esm/{index-BfQ0dUgG.d.ts → index-BLMg_CgS.d.ts} +1 -1
  21. package/dist/esm/{index-C81Z69-K.d.ts → index-DJNjOKR0.d.ts} +1 -1
  22. package/dist/esm/{index-BGOG6wUc.d.ts → index-DvlYnKNo.d.ts} +1 -1
  23. package/dist/esm/index.d.ts +10 -10
  24. package/dist/esm/index.js +320 -65
  25. package/dist/esm/index.js.map +1 -1
  26. package/dist/esm/solana/descriptor/idl/streamflow_aligned_unlocks.json +569 -80
  27. package/dist/esm/solana/descriptor/streamflow_aligned_unlocks.d.ts +766 -517
  28. package/dist/esm/solana/index.d.ts +2 -2
  29. package/dist/esm/solana/index.js +320 -65
  30. package/dist/esm/solana/index.js.map +1 -1
  31. package/dist/esm/sui/index.d.ts +2 -2
  32. package/package.json +4 -4
@@ -5,45 +5,56 @@
5
5
  * IDL can be found at `target/idl/streamflow_aligned_unlocks.json`.
6
6
  */
7
7
  type StreamflowAlignedUnlocks = {
8
- address: "aSTRM2NKoKxNnkmLWk9sz3k74gKBk9t7bpPrTGxMszH";
9
- metadata: {
10
- name: "streamflowAlignedUnlocks";
11
- version: "1.1.1";
12
- spec: "0.1.0";
13
- description: "Proxy to update unlock amount within Streamflow vesting protocol according to Token performance and other metrics";
8
+ "address": "aSTRM2NKoKxNnkmLWk9sz3k74gKBk9t7bpPrTGxMszH";
9
+ "metadata": {
10
+ "name": "streamflowAlignedUnlocks";
11
+ "version": "1.2.0";
12
+ "spec": "0.1.0";
13
+ "description": "Proxy to update unlock amount within Streamflow vesting protocol according to Token performance and other metrics";
14
14
  };
15
- instructions: [
15
+ "instructions": [
16
16
  {
17
- name: "cancel";
18
- discriminator: [232, 219, 223, 41, 219, 236, 220, 190];
19
- accounts: [
17
+ "name": "cancel";
18
+ "discriminator": [
19
+ 232,
20
+ 219,
21
+ 223,
22
+ 41,
23
+ 219,
24
+ 236,
25
+ 220,
26
+ 190
27
+ ];
28
+ "accounts": [
20
29
  {
21
- name: "sender";
22
- writable: true;
23
- signer: true;
30
+ "name": "sender";
31
+ "writable": true;
32
+ "signer": true;
24
33
  },
25
34
  {
26
- name: "senderTokens";
27
- docs: ["Associated token account address of `sender`."];
28
- writable: true;
29
- pda: {
30
- seeds: [
35
+ "name": "senderTokens";
36
+ "docs": [
37
+ "Associated token account address of `sender`."
38
+ ];
39
+ "writable": true;
40
+ "pda": {
41
+ "seeds": [
31
42
  {
32
- kind: "account";
33
- path: "sender";
43
+ "kind": "account";
44
+ "path": "sender";
34
45
  },
35
46
  {
36
- kind: "account";
37
- path: "tokenProgram";
47
+ "kind": "account";
48
+ "path": "tokenProgram";
38
49
  },
39
50
  {
40
- kind: "account";
41
- path: "mint";
51
+ "kind": "account";
52
+ "path": "mint";
42
53
  }
43
54
  ];
44
- program: {
45
- kind: "const";
46
- value: [
55
+ "program": {
56
+ "kind": "const";
57
+ "value": [
47
58
  140,
48
59
  151,
49
60
  37,
@@ -81,31 +92,33 @@ type StreamflowAlignedUnlocks = {
81
92
  };
82
93
  },
83
94
  {
84
- name: "recipient";
85
- writable: true;
95
+ "name": "recipient";
96
+ "writable": true;
86
97
  },
87
98
  {
88
- name: "recipientTokens";
89
- docs: ["CHECK; Associated token account address of `recipient`."];
90
- writable: true;
91
- pda: {
92
- seeds: [
99
+ "name": "recipientTokens";
100
+ "docs": [
101
+ "CHECK; Associated token account address of `recipient`."
102
+ ];
103
+ "writable": true;
104
+ "pda": {
105
+ "seeds": [
93
106
  {
94
- kind: "account";
95
- path: "recipient";
107
+ "kind": "account";
108
+ "path": "recipient";
96
109
  },
97
110
  {
98
- kind: "account";
99
- path: "tokenProgram";
111
+ "kind": "account";
112
+ "path": "tokenProgram";
100
113
  },
101
114
  {
102
- kind: "account";
103
- path: "mint";
115
+ "kind": "account";
116
+ "path": "mint";
104
117
  }
105
118
  ];
106
- program: {
107
- kind: "const";
108
- value: [
119
+ "program": {
120
+ "kind": "const";
121
+ "value": [
109
122
  140,
110
123
  151,
111
124
  37,
@@ -143,43 +156,54 @@ type StreamflowAlignedUnlocks = {
143
156
  };
144
157
  },
145
158
  {
146
- name: "proxyMetadata";
147
- docs: ["Proxy Contract"];
148
- writable: true;
149
- pda: {
150
- seeds: [
159
+ "name": "proxyMetadata";
160
+ "docs": [
161
+ "Proxy Contract"
162
+ ];
163
+ "writable": true;
164
+ "pda": {
165
+ "seeds": [
151
166
  {
152
- kind: "const";
153
- value: [99, 111, 110, 116, 114, 97, 99, 116];
167
+ "kind": "const";
168
+ "value": [
169
+ 99,
170
+ 111,
171
+ 110,
172
+ 116,
173
+ 114,
174
+ 97,
175
+ 99,
176
+ 116
177
+ ];
154
178
  },
155
179
  {
156
- kind: "account";
157
- path: "streamMetadata";
180
+ "kind": "account";
181
+ "path": "streamMetadata";
158
182
  }
159
183
  ];
160
184
  };
161
185
  },
162
186
  {
163
- name: "proxyTokens";
164
- writable: true;
165
- pda: {
166
- seeds: [
187
+ "name": "proxyTokens";
188
+ "writable": true;
189
+ "pda": {
190
+ "seeds": [
167
191
  {
168
- kind: "account";
169
- path: "proxyMetadata";
192
+ "kind": "account";
193
+ "path": "proxyMetadata";
170
194
  },
171
195
  {
172
- kind: "account";
173
- path: "tokenProgram";
196
+ "kind": "account";
197
+ "path": "tokenProgram";
174
198
  },
175
199
  {
176
- kind: "account";
177
- path: "mint";
200
+ "kind": "account";
201
+ "path": "mint";
178
202
  }
179
203
  ];
180
- program: {
181
- kind: "const";
182
- value: [
204
+ "program": {
205
+ "kind": "const";
206
+ "value": [
183
207
  140,
184
208
  151,
185
209
  37,
@@ -217,38 +241,38 @@ type StreamflowAlignedUnlocks = {
217
241
  };
218
242
  },
219
243
  {
220
- name: "streamMetadata";
221
- writable: true;
244
+ "name": "streamMetadata";
245
+ "writable": true;
222
246
  },
223
247
  {
224
- name: "escrowTokens";
225
- writable: true;
248
+ "name": "escrowTokens";
249
+ "writable": true;
226
250
  },
227
251
  {
228
- name: "streamflowTreasury";
229
- writable: true;
252
+ "name": "streamflowTreasury";
253
+ "writable": true;
230
254
  },
231
255
  {
232
- name: "streamflowTreasuryTokens";
233
- writable: true;
234
- pda: {
235
- seeds: [
256
+ "name": "streamflowTreasuryTokens";
257
+ "writable": true;
258
+ "pda": {
259
+ "seeds": [
236
260
  {
237
- kind: "account";
238
- path: "streamflowTreasury";
261
+ "kind": "account";
262
+ "path": "streamflowTreasury";
239
263
  },
240
264
  {
241
- kind: "account";
242
- path: "tokenProgram";
265
+ "kind": "account";
266
+ "path": "tokenProgram";
243
267
  },
244
268
  {
245
- kind: "account";
246
- path: "mint";
269
+ "kind": "account";
270
+ "path": "mint";
247
271
  }
248
272
  ];
249
- program: {
250
- kind: "const";
251
- value: [
273
+ "program": {
274
+ "kind": "const";
275
+ "value": [
252
276
  140,
253
277
  151,
254
278
  37,
@@ -286,30 +310,30 @@ type StreamflowAlignedUnlocks = {
286
310
  };
287
311
  },
288
312
  {
289
- name: "partner";
290
- writable: true;
313
+ "name": "partner";
314
+ "writable": true;
291
315
  },
292
316
  {
293
- name: "partnerTokens";
294
- writable: true;
295
- pda: {
296
- seeds: [
317
+ "name": "partnerTokens";
318
+ "writable": true;
319
+ "pda": {
320
+ "seeds": [
297
321
  {
298
- kind: "account";
299
- path: "partner";
322
+ "kind": "account";
323
+ "path": "partner";
300
324
  },
301
325
  {
302
- kind: "account";
303
- path: "tokenProgram";
326
+ "kind": "account";
327
+ "path": "tokenProgram";
304
328
  },
305
329
  {
306
- kind: "account";
307
- path: "mint";
330
+ "kind": "account";
331
+ "path": "mint";
308
332
  }
309
333
  ];
310
- program: {
311
- kind: "const";
312
- value: [
334
+ "program": {
335
+ "kind": "const";
336
+ "value": [
313
337
  140,
314
338
  151,
315
339
  37,
@@ -347,87 +371,116 @@ type StreamflowAlignedUnlocks = {
347
371
  };
348
372
  },
349
373
  {
350
- name: "mint";
351
- docs: ["The SPL token mint account."];
352
- writable: true;
374
+ "name": "mint";
375
+ "docs": [
376
+ "The SPL token mint account."
377
+ ];
378
+ "writable": true;
353
379
  },
354
380
  {
355
- name: "streamflowProgram";
356
- address: "strmRqUCoQUgGUan5YhzUZa6KqdzwX5L6FpUxfmKg5m";
381
+ "name": "streamflowProgram";
382
+ "address": "strmRqUCoQUgGUan5YhzUZa6KqdzwX5L6FpUxfmKg5m";
357
383
  },
358
384
  {
359
- name: "tokenProgram";
360
- docs: ["The SPL program needed in case an associated account", "for the new recipient is being created."];
385
+ "name": "tokenProgram";
386
+ "docs": [
387
+ "The SPL program needed in case an associated account",
388
+ "for the new recipient is being created."
389
+ ];
361
390
  }
362
391
  ];
363
- args: [];
392
+ "args": [];
364
393
  },
365
394
  {
366
- name: "changeOracle";
367
- discriminator: [177, 227, 230, 103, 13, 72, 141, 248];
368
- accounts: [
395
+ "name": "changeOracle";
396
+ "discriminator": [
397
+ 177,
398
+ 227,
399
+ 230,
400
+ 103,
401
+ 13,
402
+ 72,
403
+ 141,
404
+ 248
405
+ ];
406
+ "accounts": [
369
407
  {
370
- name: "sender";
371
- writable: true;
372
- signer: true;
408
+ "name": "sender";
409
+ "writable": true;
410
+ "signer": true;
373
411
  },
374
412
  {
375
- name: "proxyMetadata";
376
- docs: ["Proxy Contract"];
377
- writable: true;
413
+ "name": "proxyMetadata";
414
+ "docs": [
415
+ "Proxy Contract"
416
+ ];
417
+ "writable": true;
378
418
  },
379
419
  {
380
- name: "newPriceOracle";
420
+ "name": "newPriceOracle";
381
421
  }
382
422
  ];
383
- args: [
423
+ "args": [
384
424
  {
385
- name: "params";
386
- type: {
387
- defined: {
388
- name: "changeOracleParams";
425
+ "name": "params";
426
+ "type": {
427
+ "defined": {
428
+ "name": "changeOracleParams";
389
429
  };
390
430
  };
391
431
  }
392
432
  ];
393
433
  },
394
434
  {
395
- name: "create";
396
- discriminator: [24, 30, 200, 40, 5, 28, 7, 119];
397
- accounts: [
435
+ "name": "create";
436
+ "discriminator": [
437
+ 24,
438
+ 30,
439
+ 200,
440
+ 40,
441
+ 5,
442
+ 28,
443
+ 7,
444
+ 119
445
+ ];
446
+ "accounts": [
398
447
  {
399
- name: "payer";
400
- docs: ["Rent payer"];
401
- writable: true;
402
- signer: true;
448
+ "name": "payer";
449
+ "docs": [
450
+ "Rent payer"
451
+ ];
452
+ "writable": true;
453
+ "signer": true;
403
454
  },
404
455
  {
405
- name: "sender";
406
- writable: true;
407
- signer: true;
456
+ "name": "sender";
457
+ "writable": true;
458
+ "signer": true;
408
459
  },
409
460
  {
410
- name: "senderTokens";
411
- docs: ["Associated token account address of `payer`."];
412
- writable: true;
413
- pda: {
414
- seeds: [
461
+ "name": "senderTokens";
462
+ "docs": [
463
+ "Associated token account address of `payer`."
464
+ ];
465
+ "writable": true;
466
+ "pda": {
467
+ "seeds": [
415
468
  {
416
- kind: "account";
417
- path: "sender";
469
+ "kind": "account";
470
+ "path": "sender";
418
471
  },
419
472
  {
420
- kind: "account";
421
- path: "tokenProgram";
473
+ "kind": "account";
474
+ "path": "tokenProgram";
422
475
  },
423
476
  {
424
- kind: "account";
425
- path: "mint";
477
+ "kind": "account";
478
+ "path": "mint";
426
479
  }
427
480
  ];
428
- program: {
429
- kind: "const";
430
- value: [
481
+ "program": {
482
+ "kind": "const";
483
+ "value": [
431
484
  140,
432
485
  151,
433
486
  37,
@@ -465,28 +518,28 @@ type StreamflowAlignedUnlocks = {
465
518
  };
466
519
  },
467
520
  {
468
- name: "recipient";
521
+ "name": "recipient";
469
522
  },
470
523
  {
471
- name: "recipientTokens";
472
- pda: {
473
- seeds: [
524
+ "name": "recipientTokens";
525
+ "pda": {
526
+ "seeds": [
474
527
  {
475
- kind: "account";
476
- path: "recipient";
528
+ "kind": "account";
529
+ "path": "recipient";
477
530
  },
478
531
  {
479
- kind: "account";
480
- path: "tokenProgram";
532
+ "kind": "account";
533
+ "path": "tokenProgram";
481
534
  },
482
535
  {
483
- kind: "account";
484
- path: "mint";
536
+ "kind": "account";
537
+ "path": "mint";
485
538
  }
486
539
  ];
487
- program: {
488
- kind: "const";
489
- value: [
540
+ "program": {
541
+ "kind": "const";
542
+ "value": [
490
543
  140,
491
544
  151,
492
545
  37,
@@ -524,42 +577,51 @@ type StreamflowAlignedUnlocks = {
524
577
  };
525
578
  },
526
579
  {
527
- name: "proxyMetadata";
528
- writable: true;
529
- pda: {
530
- seeds: [
580
+ "name": "proxyMetadata";
581
+ "writable": true;
582
+ "pda": {
583
+ "seeds": [
531
584
  {
532
- kind: "const";
533
- value: [99, 111, 110, 116, 114, 97, 99, 116];
585
+ "kind": "const";
586
+ "value": [
587
+ 99,
588
+ 111,
589
+ 110,
590
+ 116,
591
+ 114,
592
+ 97,
593
+ 99,
594
+ 116
595
+ ];
534
596
  },
535
597
  {
536
- kind: "account";
537
- path: "streamMetadata";
598
+ "kind": "account";
599
+ "path": "streamMetadata";
538
600
  }
539
601
  ];
540
602
  };
541
603
  },
542
604
  {
543
- name: "proxyTokens";
544
- writable: true;
545
- pda: {
546
- seeds: [
605
+ "name": "proxyTokens";
606
+ "writable": true;
607
+ "pda": {
608
+ "seeds": [
547
609
  {
548
- kind: "account";
549
- path: "proxyMetadata";
610
+ "kind": "account";
611
+ "path": "proxyMetadata";
550
612
  },
551
613
  {
552
- kind: "account";
553
- path: "tokenProgram";
614
+ "kind": "account";
615
+ "path": "tokenProgram";
554
616
  },
555
617
  {
556
- kind: "account";
557
- path: "mint";
618
+ "kind": "account";
619
+ "path": "mint";
558
620
  }
559
621
  ];
560
- program: {
561
- kind: "const";
562
- value: [
622
+ "program": {
623
+ "kind": "const";
624
+ "value": [
563
625
  140,
564
626
  151,
565
627
  37,
@@ -597,291 +659,380 @@ type StreamflowAlignedUnlocks = {
597
659
  };
598
660
  },
599
661
  {
600
- name: "streamMetadata";
601
- writable: true;
602
- signer: true;
662
+ "name": "streamMetadata";
663
+ "writable": true;
664
+ "signer": true;
603
665
  },
604
666
  {
605
- name: "escrowTokens";
606
- writable: true;
667
+ "name": "escrowTokens";
668
+ "writable": true;
607
669
  },
608
670
  {
609
- name: "withdrawor";
610
- writable: true;
671
+ "name": "withdrawor";
672
+ "writable": true;
611
673
  },
612
674
  {
613
- name: "partner";
675
+ "name": "partner";
614
676
  },
615
677
  {
616
- name: "mint";
678
+ "name": "mint";
617
679
  },
618
680
  {
619
- name: "feeOracle";
681
+ "name": "feeOracle";
620
682
  },
621
683
  {
622
- name: "priceOracle";
684
+ "name": "priceOracle";
623
685
  },
624
686
  {
625
- name: "rent";
626
- address: "SysvarRent111111111111111111111111111111111";
687
+ "name": "rent";
688
+ "address": "SysvarRent111111111111111111111111111111111";
627
689
  },
628
690
  {
629
- name: "streamflowProgram";
630
- address: "strmRqUCoQUgGUan5YhzUZa6KqdzwX5L6FpUxfmKg5m";
691
+ "name": "streamflowProgram";
692
+ "address": "strmRqUCoQUgGUan5YhzUZa6KqdzwX5L6FpUxfmKg5m";
631
693
  },
632
694
  {
633
- name: "tokenProgram";
695
+ "name": "tokenProgram";
634
696
  },
635
697
  {
636
- name: "associatedTokenProgram";
637
- address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
698
+ "name": "associatedTokenProgram";
699
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
638
700
  },
639
701
  {
640
- name: "systemProgram";
641
- address: "11111111111111111111111111111111";
702
+ "name": "systemProgram";
703
+ "address": "11111111111111111111111111111111";
642
704
  }
643
705
  ];
644
- args: [
706
+ "args": [
645
707
  {
646
- name: "ix";
647
- type: {
648
- defined: {
649
- name: "createParams";
708
+ "name": "ix";
709
+ "type": {
710
+ "defined": {
711
+ "name": "createParams";
650
712
  };
651
713
  };
652
714
  }
653
715
  ];
654
716
  },
655
717
  {
656
- name: "createTestOracle";
657
- discriminator: [183, 110, 4, 11, 131, 220, 84, 12];
658
- accounts: [
718
+ "name": "createTestOracle";
719
+ "discriminator": [
720
+ 183,
721
+ 110,
722
+ 4,
723
+ 11,
724
+ 131,
725
+ 220,
726
+ 84,
727
+ 12
728
+ ];
729
+ "accounts": [
659
730
  {
660
- name: "creator";
661
- writable: true;
662
- signer: true;
731
+ "name": "creator";
732
+ "writable": true;
733
+ "signer": true;
663
734
  },
664
735
  {
665
- name: "mint";
736
+ "name": "mint";
666
737
  },
667
738
  {
668
- name: "testOracle";
669
- writable: true;
670
- pda: {
671
- seeds: [
739
+ "name": "testOracle";
740
+ "writable": true;
741
+ "pda": {
742
+ "seeds": [
672
743
  {
673
- kind: "const";
674
- value: [116, 101, 115, 116, 45, 111, 114, 97, 99, 108, 101];
744
+ "kind": "const";
745
+ "value": [
746
+ 116,
747
+ 101,
748
+ 115,
749
+ 116,
750
+ 45,
751
+ 111,
752
+ 114,
753
+ 97,
754
+ 99,
755
+ 108,
756
+ 101
757
+ ];
675
758
  },
676
759
  {
677
- kind: "account";
678
- path: "mint";
760
+ "kind": "account";
761
+ "path": "mint";
679
762
  },
680
763
  {
681
- kind: "account";
682
- path: "creator";
764
+ "kind": "account";
765
+ "path": "creator";
683
766
  }
684
767
  ];
685
768
  };
686
769
  },
687
770
  {
688
- name: "systemProgram";
689
- address: "11111111111111111111111111111111";
771
+ "name": "systemProgram";
772
+ "address": "11111111111111111111111111111111";
690
773
  }
691
774
  ];
692
- args: [
775
+ "args": [
693
776
  {
694
- name: "params";
695
- type: {
696
- defined: {
697
- name: "createTestOracleParams";
777
+ "name": "params";
778
+ "type": {
779
+ "defined": {
780
+ "name": "createTestOracleParams";
698
781
  };
699
782
  };
700
783
  }
701
784
  ];
702
785
  },
703
786
  {
704
- name: "setTestOracleAuthority";
705
- discriminator: [26, 66, 233, 99, 38, 118, 181, 247];
706
- accounts: [
787
+ "name": "setTestOracleAuthority";
788
+ "discriminator": [
789
+ 26,
790
+ 66,
791
+ 233,
792
+ 99,
793
+ 38,
794
+ 118,
795
+ 181,
796
+ 247
797
+ ];
798
+ "accounts": [
707
799
  {
708
- name: "authority";
709
- writable: true;
710
- signer: true;
800
+ "name": "authority";
801
+ "writable": true;
802
+ "signer": true;
711
803
  },
712
804
  {
713
- name: "testOracle";
714
- writable: true;
805
+ "name": "testOracle";
806
+ "writable": true;
715
807
  },
716
808
  {
717
- name: "newAuthority";
809
+ "name": "newAuthority";
718
810
  }
719
811
  ];
720
- args: [];
812
+ "args": [];
721
813
  },
722
814
  {
723
- name: "updateAmount";
724
- discriminator: [212, 178, 69, 133, 251, 180, 212, 71];
725
- accounts: [
815
+ "name": "updateAmount";
816
+ "discriminator": [
817
+ 212,
818
+ 178,
819
+ 69,
820
+ 133,
821
+ 251,
822
+ 180,
823
+ 212,
824
+ 71
825
+ ];
826
+ "accounts": [
726
827
  {
727
- name: "authority";
728
- docs: ["Wallet authorised to call this method"];
729
- writable: true;
730
- signer: true;
828
+ "name": "authority";
829
+ "docs": [
830
+ "Wallet authorised to call this method"
831
+ ];
832
+ "writable": true;
833
+ "signer": true;
731
834
  },
732
835
  {
733
- name: "proxyMetadata";
734
- writable: true;
735
- pda: {
736
- seeds: [
836
+ "name": "proxyMetadata";
837
+ "writable": true;
838
+ "pda": {
839
+ "seeds": [
737
840
  {
738
- kind: "const";
739
- value: [99, 111, 110, 116, 114, 97, 99, 116];
841
+ "kind": "const";
842
+ "value": [
843
+ 99,
844
+ 111,
845
+ 110,
846
+ 116,
847
+ 114,
848
+ 97,
849
+ 99,
850
+ 116
851
+ ];
740
852
  },
741
853
  {
742
- kind: "account";
743
- path: "streamMetadata";
854
+ "kind": "account";
855
+ "path": "streamMetadata";
744
856
  }
745
857
  ];
746
858
  };
747
859
  },
748
860
  {
749
- name: "streamMetadata";
750
- writable: true;
861
+ "name": "streamMetadata";
862
+ "writable": true;
751
863
  },
752
864
  {
753
- name: "withdrawor";
754
- writable: true;
865
+ "name": "withdrawor";
866
+ "writable": true;
755
867
  },
756
868
  {
757
- name: "priceOracle";
758
- relations: ["proxyMetadata"];
869
+ "name": "priceOracle";
870
+ "relations": [
871
+ "proxyMetadata"
872
+ ];
759
873
  },
760
874
  {
761
- name: "streamflowProgram";
762
- address: "strmRqUCoQUgGUan5YhzUZa6KqdzwX5L6FpUxfmKg5m";
875
+ "name": "streamflowProgram";
876
+ "address": "strmRqUCoQUgGUan5YhzUZa6KqdzwX5L6FpUxfmKg5m";
763
877
  },
764
878
  {
765
- name: "systemProgram";
766
- address: "11111111111111111111111111111111";
879
+ "name": "systemProgram";
880
+ "address": "11111111111111111111111111111111";
767
881
  }
768
882
  ];
769
- args: [];
883
+ "args": [];
770
884
  },
771
885
  {
772
- name: "updateTestOracle";
773
- discriminator: [158, 147, 215, 74, 34, 123, 80, 76];
774
- accounts: [
886
+ "name": "updateTestOracle";
887
+ "discriminator": [
888
+ 158,
889
+ 147,
890
+ 215,
891
+ 74,
892
+ 34,
893
+ 123,
894
+ 80,
895
+ 76
896
+ ];
897
+ "accounts": [
775
898
  {
776
- name: "authority";
777
- writable: true;
778
- signer: true;
899
+ "name": "authority";
900
+ "writable": true;
901
+ "signer": true;
779
902
  },
780
903
  {
781
- name: "testOracle";
782
- writable: true;
904
+ "name": "testOracle";
905
+ "writable": true;
783
906
  }
784
907
  ];
785
- args: [
908
+ "args": [
786
909
  {
787
- name: "params";
788
- type: {
789
- defined: {
790
- name: "updateTestOracleParams";
910
+ "name": "params";
911
+ "type": {
912
+ "defined": {
913
+ "name": "updateTestOracleParams";
791
914
  };
792
915
  };
793
916
  }
794
917
  ];
795
918
  }
796
919
  ];
797
- accounts: [
920
+ "accounts": [
798
921
  {
799
- name: "contract";
800
- discriminator: [172, 138, 115, 242, 121, 67, 183, 26];
922
+ "name": "contract";
923
+ "discriminator": [
924
+ 172,
925
+ 138,
926
+ 115,
927
+ 242,
928
+ 121,
929
+ 67,
930
+ 183,
931
+ 26
932
+ ];
801
933
  },
802
934
  {
803
- name: "testOracle";
804
- discriminator: [198, 49, 63, 134, 232, 251, 168, 28];
935
+ "name": "testOracle";
936
+ "discriminator": [
937
+ 198,
938
+ 49,
939
+ 63,
940
+ 134,
941
+ 232,
942
+ 251,
943
+ 168,
944
+ 28
945
+ ];
805
946
  }
806
947
  ];
807
- errors: [
948
+ "errors": [
949
+ {
950
+ "code": 6000;
951
+ "name": "unauthorized";
952
+ "msg": "Authority does not have permission for this action";
953
+ },
954
+ {
955
+ "code": 6001;
956
+ "name": "arithmeticError";
957
+ "msg": "Arithmetic error";
958
+ },
808
959
  {
809
- code: 6000;
810
- name: "unauthorized";
811
- msg: "Authority does not have permission for this action";
960
+ "code": 6002;
961
+ "name": "unsupportedTokenExtensions";
962
+ "msg": "Mint has unsupported Token Extensions";
812
963
  },
813
964
  {
814
- code: 6001;
815
- name: "arithmeticError";
816
- msg: "Arithmetic error";
965
+ "code": 6003;
966
+ "name": "periodTooShort";
967
+ "msg": "Provided period is too short, should be equal or more than 30 seconds";
817
968
  },
818
969
  {
819
- code: 6002;
820
- name: "unsupportedTokenExtensions";
821
- msg: "Mint has unsupported Token Extensions";
970
+ "code": 6004;
971
+ "name": "invalidTickSize";
972
+ "msg": "Provided percentage tick size is invalid";
822
973
  },
823
974
  {
824
- code: 6003;
825
- name: "periodTooShort";
826
- msg: "Provided period is too short, should be equal or more than 30 seconds";
975
+ "code": 6005;
976
+ "name": "invalidPercentageBoundaries";
977
+ "msg": "Provided percentage bounds are invalid";
827
978
  },
828
979
  {
829
- code: 6004;
830
- name: "invalidTickSize";
831
- msg: "Provided percentage tick size is invalid";
980
+ "code": 6006;
981
+ "name": "invalidPriceBoundaries";
982
+ "msg": "Provided price bounds are invalid";
832
983
  },
833
984
  {
834
- code: 6005;
835
- name: "invalidPercentageBoundaries";
836
- msg: "Provided percentage bounds are invalid";
985
+ "code": 6007;
986
+ "name": "invalidExpiryDuration";
987
+ "msg": "Provided expiry time/percentage configuration is invalid";
837
988
  },
838
989
  {
839
- code: 6006;
840
- name: "invalidPriceBoundaries";
841
- msg: "Provided price bounds are invalid";
990
+ "code": 6008;
991
+ "name": "unsupportedOracle";
992
+ "msg": "Unsupported price oracle";
842
993
  },
843
994
  {
844
- code: 6007;
845
- name: "unsupportedOracle";
846
- msg: "Unsupported price oracle";
995
+ "code": 6009;
996
+ "name": "invalidOracleAccount";
997
+ "msg": "Invalid oracle account";
847
998
  },
848
999
  {
849
- code: 6008;
850
- name: "invalidOracleAccount";
851
- msg: "Invalid oracle account";
1000
+ "code": 6010;
1001
+ "name": "invalidOraclePrice";
1002
+ "msg": "Invalid oracle price";
852
1003
  },
853
1004
  {
854
- code: 6009;
855
- name: "invalidOraclePrice";
856
- msg: "Invalid oracle price";
1005
+ "code": 6011;
1006
+ "name": "invalidStreamMetadata";
1007
+ "msg": "Invalid Stream Metadata";
857
1008
  },
858
1009
  {
859
- code: 6010;
860
- name: "invalidStreamMetadata";
861
- msg: "Invalid Stream Metadata";
1010
+ "code": 6012;
1011
+ "name": "amountAlreadyUpdated";
1012
+ "msg": "Release amount has already been updated in this period";
862
1013
  },
863
1014
  {
864
- code: 6011;
865
- name: "amountAlreadyUpdated";
866
- msg: "Release amount has already been updated in this period";
1015
+ "code": 6013;
1016
+ "name": "allFundsUnlocked";
1017
+ "msg": "All funds are already unlocked";
867
1018
  },
868
1019
  {
869
- code: 6012;
870
- name: "allFundsUnlocked";
871
- msg: "All funds are already unlocked";
1020
+ "code": 6014;
1021
+ "name": "dynamicScheduleExpired";
1022
+ "msg": "Dynamic schedule expired, updates are not allowed";
872
1023
  }
873
1024
  ];
874
- types: [
1025
+ "types": [
875
1026
  {
876
- name: "changeOracleParams";
877
- type: {
878
- kind: "struct";
879
- fields: [
880
- {
881
- name: "oracleType";
882
- type: {
883
- defined: {
884
- name: "oracleType";
1027
+ "name": "changeOracleParams";
1028
+ "type": {
1029
+ "kind": "struct";
1030
+ "fields": [
1031
+ {
1032
+ "name": "oracleType";
1033
+ "type": {
1034
+ "defined": {
1035
+ "name": "oracleType";
885
1036
  };
886
1037
  };
887
1038
  }
@@ -889,341 +1040,439 @@ type StreamflowAlignedUnlocks = {
889
1040
  };
890
1041
  },
891
1042
  {
892
- name: "contract";
893
- type: {
894
- kind: "struct";
895
- fields: [
896
- {
897
- name: "bump";
898
- docs: ["Bump Seed used to sign transactions"];
899
- type: "u8";
1043
+ "name": "contract";
1044
+ "type": {
1045
+ "kind": "struct";
1046
+ "fields": [
1047
+ {
1048
+ "name": "bump";
1049
+ "docs": [
1050
+ "Bump Seed used to sign transactions"
1051
+ ];
1052
+ "type": "u8";
900
1053
  },
901
1054
  {
902
- name: "sender";
903
- docs: ["Original Contract sender"];
904
- type: "pubkey";
1055
+ "name": "sender";
1056
+ "docs": [
1057
+ "Original Contract sender"
1058
+ ];
1059
+ "type": "pubkey";
905
1060
  },
906
1061
  {
907
- name: "senderTokens";
908
- docs: ["Original Contract sender tokens address"];
909
- type: "pubkey";
1062
+ "name": "senderTokens";
1063
+ "docs": [
1064
+ "Original Contract sender tokens address"
1065
+ ];
1066
+ "type": "pubkey";
910
1067
  },
911
1068
  {
912
- name: "stream";
913
- docs: ["Vesting Stream address"];
914
- type: "pubkey";
1069
+ "name": "stream";
1070
+ "docs": [
1071
+ "Vesting Stream address"
1072
+ ];
1073
+ "type": "pubkey";
915
1074
  },
916
1075
  {
917
- name: "priceOracleType";
918
- docs: ["Type of the Oracle used to derive Token Price"];
919
- type: {
920
- defined: {
921
- name: "oracleType";
1076
+ "name": "priceOracleType";
1077
+ "docs": [
1078
+ "Type of the Oracle used to derive Token Price"
1079
+ ];
1080
+ "type": {
1081
+ "defined": {
1082
+ "name": "oracleType";
922
1083
  };
923
1084
  };
924
1085
  },
925
1086
  {
926
- name: "priceOracle";
927
- docs: ["Address of the Price Oracle"];
928
- type: "pubkey";
1087
+ "name": "priceOracle";
1088
+ "docs": [
1089
+ "Address of the Price Oracle"
1090
+ ];
1091
+ "type": "pubkey";
929
1092
  },
930
1093
  {
931
- name: "minPrice";
932
- docs: ["Min price boundary"];
933
- type: "u64";
1094
+ "name": "minPrice";
1095
+ "docs": [
1096
+ "Min price boundary"
1097
+ ];
1098
+ "type": "u64";
934
1099
  },
935
1100
  {
936
- name: "maxPrice";
937
- docs: ["Max price boundary"];
938
- type: "u64";
1101
+ "name": "maxPrice";
1102
+ "docs": [
1103
+ "Max price boundary"
1104
+ ];
1105
+ "type": "u64";
939
1106
  },
940
1107
  {
941
- name: "minPercentage";
942
- docs: ["Min percentage boundary, can be 0 that equals 1 Raw Token"];
943
- type: "u64";
1108
+ "name": "minPercentage";
1109
+ "docs": [
1110
+ "Min percentage boundary, can be 0 that equals 1 Raw Token"
1111
+ ];
1112
+ "type": "u64";
944
1113
  },
945
1114
  {
946
- name: "maxPercentage";
947
- docs: ["Max percentage boundary"];
948
- type: "u64";
1115
+ "name": "maxPercentage";
1116
+ "docs": [
1117
+ "Max percentage boundary"
1118
+ ];
1119
+ "type": "u64";
949
1120
  },
950
1121
  {
951
- name: "tickSize";
952
- docs: ["Ticket size for percentage boundaries"];
953
- type: "u64";
1122
+ "name": "tickSize";
1123
+ "docs": [
1124
+ "Ticket size for percentage boundaries"
1125
+ ];
1126
+ "type": "u64";
954
1127
  },
955
1128
  {
956
- name: "startTime";
957
- docs: [
1129
+ "name": "startTime";
1130
+ "docs": [
958
1131
  "unlock_start from Stream contract for our worker to be able to fetch it in one call with the proxy contract"
959
1132
  ];
960
- type: "u64";
1133
+ "type": "u64";
961
1134
  },
962
1135
  {
963
- name: "endTime";
964
- docs: [
1136
+ "name": "endTime";
1137
+ "docs": [
965
1138
  "Copy end_time from Stream contract for our worker to be able to fetch it in one call with the proxy contract"
966
1139
  ];
967
- type: "u64";
1140
+ "type": "u64";
968
1141
  },
969
1142
  {
970
- name: "period";
971
- docs: [
1143
+ "name": "period";
1144
+ "docs": [
972
1145
  "Copy period from Stream contract for our worker to be able to fetch it in one call with the proxy contract"
973
1146
  ];
974
- type: "u64";
1147
+ "type": "u64";
975
1148
  },
976
1149
  {
977
- name: "lastAmountUpdateTime";
978
- docs: [
1150
+ "name": "lastAmountUpdateTime";
1151
+ "docs": [
979
1152
  "Copy last_rate_change_time from Stream contract for our worker to be able to fetch it in one call with the proxy contract"
980
1153
  ];
981
- type: "u64";
1154
+ "type": "u64";
1155
+ },
1156
+ {
1157
+ "name": "lastPrice";
1158
+ "docs": [
1159
+ "Price used on last amount calculation"
1160
+ ];
1161
+ "type": "u64";
1162
+ },
1163
+ {
1164
+ "name": "streamCanceledTime";
1165
+ "docs": [
1166
+ "Timestamp when stream was cancelled"
1167
+ ];
1168
+ "type": "u64";
982
1169
  },
983
1170
  {
984
- name: "lastPrice";
985
- docs: ["Price used on last amount calculation"];
986
- type: "u64";
1171
+ "name": "initialAmountPerPeriod";
1172
+ "docs": [
1173
+ "Amount per period to use as base for calculations"
1174
+ ];
1175
+ "type": "u64";
987
1176
  },
988
1177
  {
989
- name: "streamCanceledTime";
990
- docs: ["Timestamp when stream was cancelled"];
991
- type: "u64";
1178
+ "name": "initialPrice";
1179
+ "docs": [
1180
+ "Initial token price at the time of Contract creation"
1181
+ ];
1182
+ "type": "u64";
992
1183
  },
993
1184
  {
994
- name: "initialAmountPerPeriod";
995
- docs: ["Amount per period to use as base for calculations"];
996
- type: "u64";
1185
+ "name": "initialNetAmount";
1186
+ "docs": [
1187
+ "Initial deposited amount"
1188
+ ];
1189
+ "type": "u64";
997
1190
  },
998
1191
  {
999
- name: "initialPrice";
1000
- docs: ["Initial token price at the time of Contract creation"];
1001
- type: "u64";
1192
+ "name": "mint";
1193
+ "docs": [
1194
+ "Mint for which the contract was created"
1195
+ ];
1196
+ "type": "pubkey";
1002
1197
  },
1003
1198
  {
1004
- name: "initialNetAmount";
1005
- docs: ["Initial deposited amount"];
1006
- type: "u64";
1199
+ "name": "expiryTime";
1200
+ "docs": [
1201
+ "Time when contract expires, `expiry_percentage` will be set in this case"
1202
+ ];
1203
+ "type": "u64";
1007
1204
  },
1008
1205
  {
1009
- name: "mint";
1010
- docs: ["Mint for which the contract was created"];
1011
- type: "pubkey";
1206
+ "name": "expiryPercentage";
1207
+ "docs": [
1208
+ "Percentage to set when contract expires, won't be updated after it"
1209
+ ];
1210
+ "type": "u64";
1012
1211
  },
1013
1212
  {
1014
- name: "buffer";
1015
- docs: ["Buffer for additional fields"];
1016
- type: {
1017
- array: ["u8", 32];
1213
+ "name": "buffer";
1214
+ "docs": [
1215
+ "Buffer for additional fields"
1216
+ ];
1217
+ "type": {
1218
+ "array": [
1219
+ "u8",
1220
+ 16
1221
+ ];
1018
1222
  };
1019
1223
  }
1020
1224
  ];
1021
1225
  };
1022
1226
  },
1023
1227
  {
1024
- name: "createParams";
1025
- type: {
1026
- kind: "struct";
1027
- fields: [
1028
- {
1029
- name: "startTime";
1030
- docs: ["Timestamp when the tokens start vesting"];
1031
- type: "u64";
1228
+ "name": "createParams";
1229
+ "type": {
1230
+ "kind": "struct";
1231
+ "fields": [
1232
+ {
1233
+ "name": "startTime";
1234
+ "docs": [
1235
+ "Timestamp when the tokens start vesting"
1236
+ ];
1237
+ "type": "u64";
1032
1238
  },
1033
1239
  {
1034
- name: "netAmountDeposited";
1035
- docs: ["Deposited amount of tokens"];
1036
- type: "u64";
1240
+ "name": "netAmountDeposited";
1241
+ "docs": [
1242
+ "Deposited amount of tokens"
1243
+ ];
1244
+ "type": "u64";
1037
1245
  },
1038
1246
  {
1039
- name: "period";
1040
- docs: ["Time step (period) in seconds per which the vesting/release occurs"];
1041
- type: "u64";
1247
+ "name": "period";
1248
+ "docs": [
1249
+ "Time step (period) in seconds per which the vesting/release occurs"
1250
+ ];
1251
+ "type": "u64";
1042
1252
  },
1043
1253
  {
1044
- name: "amountPerPeriod";
1045
- docs: ["Base Amount released per period. Combined with `period`, we get a release rate."];
1046
- type: "u64";
1254
+ "name": "amountPerPeriod";
1255
+ "docs": [
1256
+ "Base Amount released per period. Combined with `period`, we get a release rate."
1257
+ ];
1258
+ "type": "u64";
1047
1259
  },
1048
1260
  {
1049
- name: "cliff";
1050
- docs: ['Vesting contract "cliff" timestamp'];
1051
- type: "u64";
1261
+ "name": "cliff";
1262
+ "docs": [
1263
+ "Vesting contract \"cliff\" timestamp"
1264
+ ];
1265
+ "type": "u64";
1052
1266
  },
1053
1267
  {
1054
- name: "cliffAmount";
1055
- docs: ['Amount unlocked at the "cliff" timestamp'];
1056
- type: "u64";
1268
+ "name": "cliffAmount";
1269
+ "docs": [
1270
+ "Amount unlocked at the \"cliff\" timestamp"
1271
+ ];
1272
+ "type": "u64";
1057
1273
  },
1058
1274
  {
1059
- name: "cancelableBySender";
1060
- docs: ["Whether a stream can be canceled by a sender"];
1061
- type: "bool";
1275
+ "name": "cancelableBySender";
1276
+ "docs": [
1277
+ "Whether a stream can be canceled by a sender"
1278
+ ];
1279
+ "type": "bool";
1062
1280
  },
1063
1281
  {
1064
- name: "cancelableByRecipient";
1065
- docs: ["Whether a stream can be canceled by a recipient"];
1066
- type: "bool";
1282
+ "name": "cancelableByRecipient";
1283
+ "docs": [
1284
+ "Whether a stream can be canceled by a recipient"
1285
+ ];
1286
+ "type": "bool";
1067
1287
  },
1068
1288
  {
1069
- name: "transferableBySender";
1070
- docs: ["Whether the sender can transfer the stream"];
1071
- type: "bool";
1289
+ "name": "transferableBySender";
1290
+ "docs": [
1291
+ "Whether the sender can transfer the stream"
1292
+ ];
1293
+ "type": "bool";
1072
1294
  },
1073
1295
  {
1074
- name: "transferableByRecipient";
1075
- docs: ["Whether the recipient can transfer the stream"];
1076
- type: "bool";
1296
+ "name": "transferableByRecipient";
1297
+ "docs": [
1298
+ "Whether the recipient can transfer the stream"
1299
+ ];
1300
+ "type": "bool";
1077
1301
  },
1078
1302
  {
1079
- name: "canTopup";
1080
- docs: ["Whether topup is enabled"];
1081
- type: "bool";
1303
+ "name": "canTopup";
1304
+ "docs": [
1305
+ "Whether topup is enabled"
1306
+ ];
1307
+ "type": "bool";
1082
1308
  },
1083
1309
  {
1084
- name: "streamName";
1085
- docs: ["The name of this stream"];
1086
- type: {
1087
- array: ["u8", 64];
1310
+ "name": "streamName";
1311
+ "docs": [
1312
+ "The name of this stream"
1313
+ ];
1314
+ "type": {
1315
+ "array": [
1316
+ "u8",
1317
+ 64
1318
+ ];
1088
1319
  };
1089
1320
  },
1090
1321
  {
1091
- name: "minPrice";
1092
- type: "u64";
1322
+ "name": "minPrice";
1323
+ "type": "u64";
1093
1324
  },
1094
1325
  {
1095
- name: "maxPrice";
1096
- type: "u64";
1326
+ "name": "maxPrice";
1327
+ "type": "u64";
1097
1328
  },
1098
1329
  {
1099
- name: "minPercentage";
1100
- type: "u64";
1330
+ "name": "minPercentage";
1331
+ "type": "u64";
1101
1332
  },
1102
1333
  {
1103
- name: "maxPercentage";
1104
- type: "u64";
1334
+ "name": "maxPercentage";
1335
+ "type": "u64";
1105
1336
  },
1106
1337
  {
1107
- name: "tickSize";
1108
- type: "u64";
1338
+ "name": "tickSize";
1339
+ "type": "u64";
1109
1340
  },
1110
1341
  {
1111
- name: "skipInitial";
1112
- docs: ["Whether to skip initial calculation of amount per period"];
1113
- type: "bool";
1342
+ "name": "skipInitial";
1343
+ "docs": [
1344
+ "Whether to skip initial calculation of amount per period"
1345
+ ];
1346
+ "type": "bool";
1114
1347
  },
1115
1348
  {
1116
- name: "oracleType";
1117
- docs: ["Type of Oracle to use to derive Token Price"];
1118
- type: {
1119
- defined: {
1120
- name: "oracleType";
1349
+ "name": "oracleType";
1350
+ "docs": [
1351
+ "Type of Oracle to use to derive Token Price"
1352
+ ];
1353
+ "type": {
1354
+ "defined": {
1355
+ "name": "oracleType";
1121
1356
  };
1122
1357
  };
1358
+ },
1359
+ {
1360
+ "name": "expiryTime";
1361
+ "docs": [
1362
+ "Time when contract expires, `expiry_percentage` will be set in this case"
1363
+ ];
1364
+ "type": "u64";
1365
+ },
1366
+ {
1367
+ "name": "expiryPercentage";
1368
+ "docs": [
1369
+ "Percentage to set when contract expires, won't be updated after it"
1370
+ ];
1371
+ "type": "u64";
1123
1372
  }
1124
1373
  ];
1125
1374
  };
1126
1375
  },
1127
1376
  {
1128
- name: "createTestOracleParams";
1129
- type: {
1130
- kind: "struct";
1131
- fields: [
1377
+ "name": "createTestOracleParams";
1378
+ "type": {
1379
+ "kind": "struct";
1380
+ "fields": [
1132
1381
  {
1133
- name: "price";
1134
- type: "u64";
1382
+ "name": "price";
1383
+ "type": "u64";
1135
1384
  },
1136
1385
  {
1137
- name: "expo";
1138
- type: "i32";
1386
+ "name": "expo";
1387
+ "type": "i32";
1139
1388
  },
1140
1389
  {
1141
- name: "conf";
1142
- type: "u64";
1390
+ "name": "conf";
1391
+ "type": "u64";
1143
1392
  },
1144
1393
  {
1145
- name: "publishTime";
1146
- type: "i64";
1394
+ "name": "publishTime";
1395
+ "type": "i64";
1147
1396
  }
1148
1397
  ];
1149
1398
  };
1150
1399
  },
1151
1400
  {
1152
- name: "oracleType";
1153
- type: {
1154
- kind: "enum";
1155
- variants: [
1401
+ "name": "oracleType";
1402
+ "type": {
1403
+ "kind": "enum";
1404
+ "variants": [
1156
1405
  {
1157
- name: "none";
1406
+ "name": "none";
1158
1407
  },
1159
1408
  {
1160
- name: "test";
1409
+ "name": "test";
1161
1410
  },
1162
1411
  {
1163
- name: "pyth";
1412
+ "name": "pyth";
1164
1413
  },
1165
1414
  {
1166
- name: "switchboard";
1415
+ "name": "switchboard";
1167
1416
  }
1168
1417
  ];
1169
1418
  };
1170
1419
  },
1171
1420
  {
1172
- name: "testOracle";
1173
- type: {
1174
- kind: "struct";
1175
- fields: [
1421
+ "name": "testOracle";
1422
+ "type": {
1423
+ "kind": "struct";
1424
+ "fields": [
1176
1425
  {
1177
- name: "price";
1178
- type: "u64";
1426
+ "name": "price";
1427
+ "type": "u64";
1179
1428
  },
1180
1429
  {
1181
- name: "expo";
1182
- type: "i32";
1430
+ "name": "expo";
1431
+ "type": "i32";
1183
1432
  },
1184
1433
  {
1185
- name: "conf";
1186
- type: "u64";
1434
+ "name": "conf";
1435
+ "type": "u64";
1187
1436
  },
1188
1437
  {
1189
- name: "publishTime";
1190
- type: "i64";
1438
+ "name": "publishTime";
1439
+ "type": "i64";
1191
1440
  },
1192
1441
  {
1193
- name: "creator";
1194
- type: "pubkey";
1442
+ "name": "creator";
1443
+ "type": "pubkey";
1195
1444
  },
1196
1445
  {
1197
- name: "authority";
1198
- type: "pubkey";
1446
+ "name": "authority";
1447
+ "type": "pubkey";
1199
1448
  },
1200
1449
  {
1201
- name: "mint";
1202
- type: "pubkey";
1450
+ "name": "mint";
1451
+ "type": "pubkey";
1203
1452
  }
1204
1453
  ];
1205
1454
  };
1206
1455
  },
1207
1456
  {
1208
- name: "updateTestOracleParams";
1209
- type: {
1210
- kind: "struct";
1211
- fields: [
1457
+ "name": "updateTestOracleParams";
1458
+ "type": {
1459
+ "kind": "struct";
1460
+ "fields": [
1212
1461
  {
1213
- name: "price";
1214
- type: "u64";
1462
+ "name": "price";
1463
+ "type": "u64";
1215
1464
  },
1216
1465
  {
1217
- name: "expo";
1218
- type: "i32";
1466
+ "name": "expo";
1467
+ "type": "i32";
1219
1468
  },
1220
1469
  {
1221
- name: "conf";
1222
- type: "u64";
1470
+ "name": "conf";
1471
+ "type": "u64";
1223
1472
  },
1224
1473
  {
1225
- name: "publishTime";
1226
- type: "i64";
1474
+ "name": "publishTime";
1475
+ "type": "i64";
1227
1476
  }
1228
1477
  ];
1229
1478
  };