@exponent-labs/generic-sy-idl 0.0.3 → 0.0.4
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/build/idl.json +13 -41
- package/build/type.d.ts +13 -41
- package/package.json +1 -1
- package/src/idl.json +13 -41
- package/src/type.ts +13 -41
package/build/idl.json
CHANGED
|
@@ -264,7 +264,7 @@
|
|
|
264
264
|
"name": "yield_bearing_mint"
|
|
265
265
|
},
|
|
266
266
|
{
|
|
267
|
-
"name": "
|
|
267
|
+
"name": "token_yield_bearing_escrow"
|
|
268
268
|
},
|
|
269
269
|
{
|
|
270
270
|
"name": "token_sy_escrow",
|
|
@@ -274,7 +274,10 @@
|
|
|
274
274
|
"writable": true
|
|
275
275
|
},
|
|
276
276
|
{
|
|
277
|
-
"name": "
|
|
277
|
+
"name": "yield_bearing_token_program"
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"name": "sy_token_program"
|
|
278
281
|
},
|
|
279
282
|
{
|
|
280
283
|
"name": "system_program"
|
|
@@ -381,7 +384,7 @@
|
|
|
381
384
|
"writable": true
|
|
382
385
|
},
|
|
383
386
|
{
|
|
384
|
-
"name": "
|
|
387
|
+
"name": "token_yield_bearing_escrow",
|
|
385
388
|
"docs": [
|
|
386
389
|
"SY robot's base token account"
|
|
387
390
|
],
|
|
@@ -470,7 +473,7 @@
|
|
|
470
473
|
"writable": true
|
|
471
474
|
},
|
|
472
475
|
{
|
|
473
|
-
"name": "
|
|
476
|
+
"name": "token_yield_bearing_escrow",
|
|
474
477
|
"writable": true
|
|
475
478
|
},
|
|
476
479
|
{
|
|
@@ -482,7 +485,7 @@
|
|
|
482
485
|
"writable": true
|
|
483
486
|
},
|
|
484
487
|
{
|
|
485
|
-
"name": "
|
|
488
|
+
"name": "base_token_program",
|
|
486
489
|
"docs": [
|
|
487
490
|
"Base token program"
|
|
488
491
|
]
|
|
@@ -506,42 +509,6 @@
|
|
|
506
509
|
}
|
|
507
510
|
}
|
|
508
511
|
},
|
|
509
|
-
{
|
|
510
|
-
"name": "remove_emission",
|
|
511
|
-
"discriminator": [
|
|
512
|
-
11
|
|
513
|
-
],
|
|
514
|
-
"accounts": [
|
|
515
|
-
{
|
|
516
|
-
"name": "signer",
|
|
517
|
-
"signer": true
|
|
518
|
-
},
|
|
519
|
-
{
|
|
520
|
-
"name": "fee_payer",
|
|
521
|
-
"writable": true,
|
|
522
|
-
"signer": true
|
|
523
|
-
},
|
|
524
|
-
{
|
|
525
|
-
"name": "meta",
|
|
526
|
-
"writable": true
|
|
527
|
-
},
|
|
528
|
-
{
|
|
529
|
-
"name": "system_program",
|
|
530
|
-
"docs": [
|
|
531
|
-
"Needed for realloc'ing the emission tracker"
|
|
532
|
-
]
|
|
533
|
-
},
|
|
534
|
-
{
|
|
535
|
-
"name": "admin_state"
|
|
536
|
-
}
|
|
537
|
-
],
|
|
538
|
-
"args": [
|
|
539
|
-
{
|
|
540
|
-
"name": "index",
|
|
541
|
-
"type": "u8"
|
|
542
|
-
}
|
|
543
|
-
]
|
|
544
|
-
},
|
|
545
512
|
{
|
|
546
513
|
"name": "withdraw",
|
|
547
514
|
"discriminator": [
|
|
@@ -664,6 +631,11 @@
|
|
|
664
631
|
"code": 6004,
|
|
665
632
|
"name": "InvalidPriceFeed",
|
|
666
633
|
"msg": "Invalid price feed"
|
|
634
|
+
},
|
|
635
|
+
{
|
|
636
|
+
"code": 6005,
|
|
637
|
+
"name": "ExponentNotNegative",
|
|
638
|
+
"msg": "Pyth Exponent is not negative"
|
|
667
639
|
}
|
|
668
640
|
],
|
|
669
641
|
"types": [
|
package/build/type.d.ts
CHANGED
|
@@ -270,7 +270,7 @@ export type GenericStandard = {
|
|
|
270
270
|
"name": "yieldBearingMint";
|
|
271
271
|
},
|
|
272
272
|
{
|
|
273
|
-
"name": "
|
|
273
|
+
"name": "tokenYieldBearingEscrow";
|
|
274
274
|
},
|
|
275
275
|
{
|
|
276
276
|
"name": "tokenSyEscrow";
|
|
@@ -280,7 +280,10 @@ export type GenericStandard = {
|
|
|
280
280
|
"writable": true;
|
|
281
281
|
},
|
|
282
282
|
{
|
|
283
|
-
"name": "
|
|
283
|
+
"name": "yieldBearingTokenProgram";
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"name": "syTokenProgram";
|
|
284
287
|
},
|
|
285
288
|
{
|
|
286
289
|
"name": "systemProgram";
|
|
@@ -387,7 +390,7 @@ export type GenericStandard = {
|
|
|
387
390
|
"writable": true;
|
|
388
391
|
},
|
|
389
392
|
{
|
|
390
|
-
"name": "
|
|
393
|
+
"name": "tokenYieldBearingEscrow";
|
|
391
394
|
"docs": [
|
|
392
395
|
"SY robot's base token account"
|
|
393
396
|
];
|
|
@@ -476,7 +479,7 @@ export type GenericStandard = {
|
|
|
476
479
|
"writable": true;
|
|
477
480
|
},
|
|
478
481
|
{
|
|
479
|
-
"name": "
|
|
482
|
+
"name": "tokenYieldBearingEscrow";
|
|
480
483
|
"writable": true;
|
|
481
484
|
},
|
|
482
485
|
{
|
|
@@ -488,7 +491,7 @@ export type GenericStandard = {
|
|
|
488
491
|
"writable": true;
|
|
489
492
|
},
|
|
490
493
|
{
|
|
491
|
-
"name": "
|
|
494
|
+
"name": "baseTokenProgram";
|
|
492
495
|
"docs": [
|
|
493
496
|
"Base token program"
|
|
494
497
|
];
|
|
@@ -512,42 +515,6 @@ export type GenericStandard = {
|
|
|
512
515
|
};
|
|
513
516
|
};
|
|
514
517
|
},
|
|
515
|
-
{
|
|
516
|
-
"name": "removeEmission";
|
|
517
|
-
"discriminator": [
|
|
518
|
-
11
|
|
519
|
-
];
|
|
520
|
-
"accounts": [
|
|
521
|
-
{
|
|
522
|
-
"name": "signer";
|
|
523
|
-
"signer": true;
|
|
524
|
-
},
|
|
525
|
-
{
|
|
526
|
-
"name": "feePayer";
|
|
527
|
-
"writable": true;
|
|
528
|
-
"signer": true;
|
|
529
|
-
},
|
|
530
|
-
{
|
|
531
|
-
"name": "meta";
|
|
532
|
-
"writable": true;
|
|
533
|
-
},
|
|
534
|
-
{
|
|
535
|
-
"name": "systemProgram";
|
|
536
|
-
"docs": [
|
|
537
|
-
"Needed for realloc'ing the emission tracker"
|
|
538
|
-
];
|
|
539
|
-
},
|
|
540
|
-
{
|
|
541
|
-
"name": "adminState";
|
|
542
|
-
}
|
|
543
|
-
];
|
|
544
|
-
"args": [
|
|
545
|
-
{
|
|
546
|
-
"name": "index";
|
|
547
|
-
"type": "u8";
|
|
548
|
-
}
|
|
549
|
-
];
|
|
550
|
-
},
|
|
551
518
|
{
|
|
552
519
|
"name": "withdraw";
|
|
553
520
|
"discriminator": [
|
|
@@ -670,6 +637,11 @@ export type GenericStandard = {
|
|
|
670
637
|
"code": 6004;
|
|
671
638
|
"name": "invalidPriceFeed";
|
|
672
639
|
"msg": "Invalid price feed";
|
|
640
|
+
},
|
|
641
|
+
{
|
|
642
|
+
"code": 6005;
|
|
643
|
+
"name": "exponentNotNegative";
|
|
644
|
+
"msg": "Pyth Exponent is not negative";
|
|
673
645
|
}
|
|
674
646
|
];
|
|
675
647
|
"types": [
|
package/package.json
CHANGED
package/src/idl.json
CHANGED
|
@@ -264,7 +264,7 @@
|
|
|
264
264
|
"name": "yield_bearing_mint"
|
|
265
265
|
},
|
|
266
266
|
{
|
|
267
|
-
"name": "
|
|
267
|
+
"name": "token_yield_bearing_escrow"
|
|
268
268
|
},
|
|
269
269
|
{
|
|
270
270
|
"name": "token_sy_escrow",
|
|
@@ -274,7 +274,10 @@
|
|
|
274
274
|
"writable": true
|
|
275
275
|
},
|
|
276
276
|
{
|
|
277
|
-
"name": "
|
|
277
|
+
"name": "yield_bearing_token_program"
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"name": "sy_token_program"
|
|
278
281
|
},
|
|
279
282
|
{
|
|
280
283
|
"name": "system_program"
|
|
@@ -381,7 +384,7 @@
|
|
|
381
384
|
"writable": true
|
|
382
385
|
},
|
|
383
386
|
{
|
|
384
|
-
"name": "
|
|
387
|
+
"name": "token_yield_bearing_escrow",
|
|
385
388
|
"docs": [
|
|
386
389
|
"SY robot's base token account"
|
|
387
390
|
],
|
|
@@ -470,7 +473,7 @@
|
|
|
470
473
|
"writable": true
|
|
471
474
|
},
|
|
472
475
|
{
|
|
473
|
-
"name": "
|
|
476
|
+
"name": "token_yield_bearing_escrow",
|
|
474
477
|
"writable": true
|
|
475
478
|
},
|
|
476
479
|
{
|
|
@@ -482,7 +485,7 @@
|
|
|
482
485
|
"writable": true
|
|
483
486
|
},
|
|
484
487
|
{
|
|
485
|
-
"name": "
|
|
488
|
+
"name": "base_token_program",
|
|
486
489
|
"docs": [
|
|
487
490
|
"Base token program"
|
|
488
491
|
]
|
|
@@ -506,42 +509,6 @@
|
|
|
506
509
|
}
|
|
507
510
|
}
|
|
508
511
|
},
|
|
509
|
-
{
|
|
510
|
-
"name": "remove_emission",
|
|
511
|
-
"discriminator": [
|
|
512
|
-
11
|
|
513
|
-
],
|
|
514
|
-
"accounts": [
|
|
515
|
-
{
|
|
516
|
-
"name": "signer",
|
|
517
|
-
"signer": true
|
|
518
|
-
},
|
|
519
|
-
{
|
|
520
|
-
"name": "fee_payer",
|
|
521
|
-
"writable": true,
|
|
522
|
-
"signer": true
|
|
523
|
-
},
|
|
524
|
-
{
|
|
525
|
-
"name": "meta",
|
|
526
|
-
"writable": true
|
|
527
|
-
},
|
|
528
|
-
{
|
|
529
|
-
"name": "system_program",
|
|
530
|
-
"docs": [
|
|
531
|
-
"Needed for realloc'ing the emission tracker"
|
|
532
|
-
]
|
|
533
|
-
},
|
|
534
|
-
{
|
|
535
|
-
"name": "admin_state"
|
|
536
|
-
}
|
|
537
|
-
],
|
|
538
|
-
"args": [
|
|
539
|
-
{
|
|
540
|
-
"name": "index",
|
|
541
|
-
"type": "u8"
|
|
542
|
-
}
|
|
543
|
-
]
|
|
544
|
-
},
|
|
545
512
|
{
|
|
546
513
|
"name": "withdraw",
|
|
547
514
|
"discriminator": [
|
|
@@ -664,6 +631,11 @@
|
|
|
664
631
|
"code": 6004,
|
|
665
632
|
"name": "InvalidPriceFeed",
|
|
666
633
|
"msg": "Invalid price feed"
|
|
634
|
+
},
|
|
635
|
+
{
|
|
636
|
+
"code": 6005,
|
|
637
|
+
"name": "ExponentNotNegative",
|
|
638
|
+
"msg": "Pyth Exponent is not negative"
|
|
667
639
|
}
|
|
668
640
|
],
|
|
669
641
|
"types": [
|
package/src/type.ts
CHANGED
|
@@ -270,7 +270,7 @@ export type GenericStandard = {
|
|
|
270
270
|
"name": "yieldBearingMint"
|
|
271
271
|
},
|
|
272
272
|
{
|
|
273
|
-
"name": "
|
|
273
|
+
"name": "tokenYieldBearingEscrow"
|
|
274
274
|
},
|
|
275
275
|
{
|
|
276
276
|
"name": "tokenSyEscrow",
|
|
@@ -280,7 +280,10 @@ export type GenericStandard = {
|
|
|
280
280
|
"writable": true
|
|
281
281
|
},
|
|
282
282
|
{
|
|
283
|
-
"name": "
|
|
283
|
+
"name": "yieldBearingTokenProgram"
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"name": "syTokenProgram"
|
|
284
287
|
},
|
|
285
288
|
{
|
|
286
289
|
"name": "systemProgram"
|
|
@@ -387,7 +390,7 @@ export type GenericStandard = {
|
|
|
387
390
|
"writable": true
|
|
388
391
|
},
|
|
389
392
|
{
|
|
390
|
-
"name": "
|
|
393
|
+
"name": "tokenYieldBearingEscrow",
|
|
391
394
|
"docs": [
|
|
392
395
|
"SY robot's base token account"
|
|
393
396
|
],
|
|
@@ -476,7 +479,7 @@ export type GenericStandard = {
|
|
|
476
479
|
"writable": true
|
|
477
480
|
},
|
|
478
481
|
{
|
|
479
|
-
"name": "
|
|
482
|
+
"name": "tokenYieldBearingEscrow",
|
|
480
483
|
"writable": true
|
|
481
484
|
},
|
|
482
485
|
{
|
|
@@ -488,7 +491,7 @@ export type GenericStandard = {
|
|
|
488
491
|
"writable": true
|
|
489
492
|
},
|
|
490
493
|
{
|
|
491
|
-
"name": "
|
|
494
|
+
"name": "baseTokenProgram",
|
|
492
495
|
"docs": [
|
|
493
496
|
"Base token program"
|
|
494
497
|
]
|
|
@@ -512,42 +515,6 @@ export type GenericStandard = {
|
|
|
512
515
|
}
|
|
513
516
|
}
|
|
514
517
|
},
|
|
515
|
-
{
|
|
516
|
-
"name": "removeEmission",
|
|
517
|
-
"discriminator": [
|
|
518
|
-
11
|
|
519
|
-
],
|
|
520
|
-
"accounts": [
|
|
521
|
-
{
|
|
522
|
-
"name": "signer",
|
|
523
|
-
"signer": true
|
|
524
|
-
},
|
|
525
|
-
{
|
|
526
|
-
"name": "feePayer",
|
|
527
|
-
"writable": true,
|
|
528
|
-
"signer": true
|
|
529
|
-
},
|
|
530
|
-
{
|
|
531
|
-
"name": "meta",
|
|
532
|
-
"writable": true
|
|
533
|
-
},
|
|
534
|
-
{
|
|
535
|
-
"name": "systemProgram",
|
|
536
|
-
"docs": [
|
|
537
|
-
"Needed for realloc'ing the emission tracker"
|
|
538
|
-
]
|
|
539
|
-
},
|
|
540
|
-
{
|
|
541
|
-
"name": "adminState"
|
|
542
|
-
}
|
|
543
|
-
],
|
|
544
|
-
"args": [
|
|
545
|
-
{
|
|
546
|
-
"name": "index",
|
|
547
|
-
"type": "u8"
|
|
548
|
-
}
|
|
549
|
-
]
|
|
550
|
-
},
|
|
551
518
|
{
|
|
552
519
|
"name": "withdraw",
|
|
553
520
|
"discriminator": [
|
|
@@ -670,6 +637,11 @@ export type GenericStandard = {
|
|
|
670
637
|
"code": 6004,
|
|
671
638
|
"name": "invalidPriceFeed",
|
|
672
639
|
"msg": "Invalid price feed"
|
|
640
|
+
},
|
|
641
|
+
{
|
|
642
|
+
"code": 6005,
|
|
643
|
+
"name": "exponentNotNegative",
|
|
644
|
+
"msg": "Pyth Exponent is not negative"
|
|
673
645
|
}
|
|
674
646
|
],
|
|
675
647
|
"types": [
|