@glamsystems/glam-sdk 1.1.0-alpha.3 → 1.1.0-alpha.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3924,7 +3924,8 @@
3924
3924
  "Price LoopScale loans for a vault",
3925
3925
  "",
3926
3926
  "Extra accounts for pricing N loans:",
3927
- "- N loan accounts"
3927
+ "- N loan accounts",
3928
+ "- M oracle accounts (one per unique mint used by the loans)"
3928
3929
  ],
3929
3930
  "discriminator": [
3930
3931
  106,
@@ -4147,6 +4148,715 @@
4147
4148
  ],
4148
4149
  "args": []
4149
4150
  },
4151
+ {
4152
+ "name": "price_loopscale_strategies",
4153
+ "docs": [
4154
+ "Price LoopScale strategy accounts for a vault",
4155
+ "",
4156
+ "Extra accounts for pricing N strategies:",
4157
+ "- N strategy accounts",
4158
+ "- M oracle accounts (one per unique principal mint used by the strategies)"
4159
+ ],
4160
+ "discriminator": [
4161
+ 169,
4162
+ 52,
4163
+ 25,
4164
+ 11,
4165
+ 96,
4166
+ 138,
4167
+ 10,
4168
+ 174
4169
+ ],
4170
+ "accounts": [
4171
+ {
4172
+ "name": "glam_state",
4173
+ "writable": true
4174
+ },
4175
+ {
4176
+ "name": "glam_vault",
4177
+ "pda": {
4178
+ "seeds": [
4179
+ {
4180
+ "kind": "const",
4181
+ "value": [
4182
+ 118,
4183
+ 97,
4184
+ 117,
4185
+ 108,
4186
+ 116
4187
+ ]
4188
+ },
4189
+ {
4190
+ "kind": "account",
4191
+ "path": "glam_state"
4192
+ }
4193
+ ],
4194
+ "program": {
4195
+ "kind": "const",
4196
+ "value": [
4197
+ 10,
4198
+ 55,
4199
+ 49,
4200
+ 193,
4201
+ 142,
4202
+ 247,
4203
+ 75,
4204
+ 193,
4205
+ 33,
4206
+ 61,
4207
+ 5,
4208
+ 218,
4209
+ 254,
4210
+ 219,
4211
+ 143,
4212
+ 206,
4213
+ 156,
4214
+ 138,
4215
+ 14,
4216
+ 32,
4217
+ 89,
4218
+ 232,
4219
+ 248,
4220
+ 173,
4221
+ 46,
4222
+ 77,
4223
+ 46,
4224
+ 206,
4225
+ 189,
4226
+ 171,
4227
+ 68,
4228
+ 237
4229
+ ]
4230
+ }
4231
+ }
4232
+ },
4233
+ {
4234
+ "name": "signer",
4235
+ "writable": true,
4236
+ "signer": true
4237
+ },
4238
+ {
4239
+ "name": "sol_usd_oracle"
4240
+ },
4241
+ {
4242
+ "name": "base_asset_oracle"
4243
+ },
4244
+ {
4245
+ "name": "integration_authority",
4246
+ "pda": {
4247
+ "seeds": [
4248
+ {
4249
+ "kind": "const",
4250
+ "value": [
4251
+ 105,
4252
+ 110,
4253
+ 116,
4254
+ 101,
4255
+ 103,
4256
+ 114,
4257
+ 97,
4258
+ 116,
4259
+ 105,
4260
+ 111,
4261
+ 110,
4262
+ 45,
4263
+ 97,
4264
+ 117,
4265
+ 116,
4266
+ 104,
4267
+ 111,
4268
+ 114,
4269
+ 105,
4270
+ 116,
4271
+ 121
4272
+ ]
4273
+ }
4274
+ ]
4275
+ }
4276
+ },
4277
+ {
4278
+ "name": "glam_config",
4279
+ "pda": {
4280
+ "seeds": [
4281
+ {
4282
+ "kind": "const",
4283
+ "value": [
4284
+ 103,
4285
+ 108,
4286
+ 111,
4287
+ 98,
4288
+ 97,
4289
+ 108,
4290
+ 45,
4291
+ 99,
4292
+ 111,
4293
+ 110,
4294
+ 102,
4295
+ 105,
4296
+ 103
4297
+ ]
4298
+ }
4299
+ ],
4300
+ "program": {
4301
+ "kind": "const",
4302
+ "value": [
4303
+ 10,
4304
+ 11,
4305
+ 0,
4306
+ 83,
4307
+ 72,
4308
+ 16,
4309
+ 46,
4310
+ 144,
4311
+ 46,
4312
+ 42,
4313
+ 79,
4314
+ 22,
4315
+ 157,
4316
+ 123,
4317
+ 21,
4318
+ 242,
4319
+ 192,
4320
+ 146,
4321
+ 1,
4322
+ 78,
4323
+ 88,
4324
+ 59,
4325
+ 102,
4326
+ 9,
4327
+ 190,
4328
+ 226,
4329
+ 92,
4330
+ 189,
4331
+ 187,
4332
+ 232,
4333
+ 83,
4334
+ 220
4335
+ ]
4336
+ }
4337
+ }
4338
+ },
4339
+ {
4340
+ "name": "glam_protocol",
4341
+ "address": "gstgptmbgJVi5f8ZmSRVZjZkDQwqKa3xWuUtD5WmJHz"
4342
+ },
4343
+ {
4344
+ "name": "event_authority",
4345
+ "optional": true,
4346
+ "pda": {
4347
+ "seeds": [
4348
+ {
4349
+ "kind": "const",
4350
+ "value": [
4351
+ 95,
4352
+ 95,
4353
+ 101,
4354
+ 118,
4355
+ 101,
4356
+ 110,
4357
+ 116,
4358
+ 95,
4359
+ 97,
4360
+ 117,
4361
+ 116,
4362
+ 104,
4363
+ 111,
4364
+ 114,
4365
+ 105,
4366
+ 116,
4367
+ 121
4368
+ ]
4369
+ }
4370
+ ]
4371
+ }
4372
+ },
4373
+ {
4374
+ "name": "event_program",
4375
+ "optional": true,
4376
+ "address": "gstgm1M39mhgnvgyScGUDRwNn5kNVSd97hTtyow1Et5"
4377
+ }
4378
+ ],
4379
+ "args": []
4380
+ },
4381
+ {
4382
+ "name": "price_loopscale_vault_positions",
4383
+ "docs": [
4384
+ "Price LoopScale vault LP positions registered to a GLAM vault.",
4385
+ "",
4386
+ "Extra accounts for pricing N Loopscale vaults with tracked LP or stake positions:",
4387
+ "- (loopscale_vault, loopscale_vault_strategy, glam_vault_lp_ata) x N",
4388
+ "- M VaultStake accounts registered as external positions",
4389
+ "- oracle accounts (one per unique vault principal mint)"
4390
+ ],
4391
+ "discriminator": [
4392
+ 98,
4393
+ 229,
4394
+ 99,
4395
+ 154,
4396
+ 94,
4397
+ 139,
4398
+ 124,
4399
+ 220
4400
+ ],
4401
+ "accounts": [
4402
+ {
4403
+ "name": "glam_state",
4404
+ "writable": true
4405
+ },
4406
+ {
4407
+ "name": "glam_vault",
4408
+ "pda": {
4409
+ "seeds": [
4410
+ {
4411
+ "kind": "const",
4412
+ "value": [
4413
+ 118,
4414
+ 97,
4415
+ 117,
4416
+ 108,
4417
+ 116
4418
+ ]
4419
+ },
4420
+ {
4421
+ "kind": "account",
4422
+ "path": "glam_state"
4423
+ }
4424
+ ],
4425
+ "program": {
4426
+ "kind": "const",
4427
+ "value": [
4428
+ 10,
4429
+ 55,
4430
+ 49,
4431
+ 193,
4432
+ 142,
4433
+ 247,
4434
+ 75,
4435
+ 193,
4436
+ 33,
4437
+ 61,
4438
+ 5,
4439
+ 218,
4440
+ 254,
4441
+ 219,
4442
+ 143,
4443
+ 206,
4444
+ 156,
4445
+ 138,
4446
+ 14,
4447
+ 32,
4448
+ 89,
4449
+ 232,
4450
+ 248,
4451
+ 173,
4452
+ 46,
4453
+ 77,
4454
+ 46,
4455
+ 206,
4456
+ 189,
4457
+ 171,
4458
+ 68,
4459
+ 237
4460
+ ]
4461
+ }
4462
+ }
4463
+ },
4464
+ {
4465
+ "name": "signer",
4466
+ "writable": true,
4467
+ "signer": true
4468
+ },
4469
+ {
4470
+ "name": "sol_usd_oracle"
4471
+ },
4472
+ {
4473
+ "name": "base_asset_oracle"
4474
+ },
4475
+ {
4476
+ "name": "integration_authority",
4477
+ "pda": {
4478
+ "seeds": [
4479
+ {
4480
+ "kind": "const",
4481
+ "value": [
4482
+ 105,
4483
+ 110,
4484
+ 116,
4485
+ 101,
4486
+ 103,
4487
+ 114,
4488
+ 97,
4489
+ 116,
4490
+ 105,
4491
+ 111,
4492
+ 110,
4493
+ 45,
4494
+ 97,
4495
+ 117,
4496
+ 116,
4497
+ 104,
4498
+ 111,
4499
+ 114,
4500
+ 105,
4501
+ 116,
4502
+ 121
4503
+ ]
4504
+ }
4505
+ ]
4506
+ }
4507
+ },
4508
+ {
4509
+ "name": "glam_config",
4510
+ "pda": {
4511
+ "seeds": [
4512
+ {
4513
+ "kind": "const",
4514
+ "value": [
4515
+ 103,
4516
+ 108,
4517
+ 111,
4518
+ 98,
4519
+ 97,
4520
+ 108,
4521
+ 45,
4522
+ 99,
4523
+ 111,
4524
+ 110,
4525
+ 102,
4526
+ 105,
4527
+ 103
4528
+ ]
4529
+ }
4530
+ ],
4531
+ "program": {
4532
+ "kind": "const",
4533
+ "value": [
4534
+ 10,
4535
+ 11,
4536
+ 0,
4537
+ 83,
4538
+ 72,
4539
+ 16,
4540
+ 46,
4541
+ 144,
4542
+ 46,
4543
+ 42,
4544
+ 79,
4545
+ 22,
4546
+ 157,
4547
+ 123,
4548
+ 21,
4549
+ 242,
4550
+ 192,
4551
+ 146,
4552
+ 1,
4553
+ 78,
4554
+ 88,
4555
+ 59,
4556
+ 102,
4557
+ 9,
4558
+ 190,
4559
+ 226,
4560
+ 92,
4561
+ 189,
4562
+ 187,
4563
+ 232,
4564
+ 83,
4565
+ 220
4566
+ ]
4567
+ }
4568
+ }
4569
+ },
4570
+ {
4571
+ "name": "glam_protocol",
4572
+ "address": "gstgptmbgJVi5f8ZmSRVZjZkDQwqKa3xWuUtD5WmJHz"
4573
+ },
4574
+ {
4575
+ "name": "event_authority",
4576
+ "optional": true,
4577
+ "pda": {
4578
+ "seeds": [
4579
+ {
4580
+ "kind": "const",
4581
+ "value": [
4582
+ 95,
4583
+ 95,
4584
+ 101,
4585
+ 118,
4586
+ 101,
4587
+ 110,
4588
+ 116,
4589
+ 95,
4590
+ 97,
4591
+ 117,
4592
+ 116,
4593
+ 104,
4594
+ 111,
4595
+ 114,
4596
+ 105,
4597
+ 116,
4598
+ 121
4599
+ ]
4600
+ }
4601
+ ]
4602
+ }
4603
+ },
4604
+ {
4605
+ "name": "event_program",
4606
+ "optional": true,
4607
+ "address": "gstgm1M39mhgnvgyScGUDRwNn5kNVSd97hTtyow1Et5"
4608
+ }
4609
+ ],
4610
+ "args": [
4611
+ {
4612
+ "name": "num_vaults",
4613
+ "type": "u8"
4614
+ }
4615
+ ]
4616
+ },
4617
+ {
4618
+ "name": "price_orca_whirlpool_positions",
4619
+ "docs": [
4620
+ "Prices Orca Whirlpools positions registered as vault external positions.",
4621
+ "",
4622
+ "Remaining accounts for each position:",
4623
+ "- position",
4624
+ "- position_token_account",
4625
+ "- whirlpool",
4626
+ "- tick_array_lower",
4627
+ "- tick_array_upper",
4628
+ "- token_mint_a",
4629
+ "- token_oracle_a",
4630
+ "- token_mint_b",
4631
+ "- token_oracle_b",
4632
+ "- optional reward_mint, reward_oracle pairs for initialized rewards with nonzero value"
4633
+ ],
4634
+ "discriminator": [
4635
+ 3,
4636
+ 81,
4637
+ 117,
4638
+ 34,
4639
+ 5,
4640
+ 238,
4641
+ 158,
4642
+ 232
4643
+ ],
4644
+ "accounts": [
4645
+ {
4646
+ "name": "glam_state",
4647
+ "writable": true
4648
+ },
4649
+ {
4650
+ "name": "glam_vault",
4651
+ "pda": {
4652
+ "seeds": [
4653
+ {
4654
+ "kind": "const",
4655
+ "value": [
4656
+ 118,
4657
+ 97,
4658
+ 117,
4659
+ 108,
4660
+ 116
4661
+ ]
4662
+ },
4663
+ {
4664
+ "kind": "account",
4665
+ "path": "glam_state"
4666
+ }
4667
+ ],
4668
+ "program": {
4669
+ "kind": "const",
4670
+ "value": [
4671
+ 10,
4672
+ 55,
4673
+ 49,
4674
+ 193,
4675
+ 142,
4676
+ 247,
4677
+ 75,
4678
+ 193,
4679
+ 33,
4680
+ 61,
4681
+ 5,
4682
+ 218,
4683
+ 254,
4684
+ 219,
4685
+ 143,
4686
+ 206,
4687
+ 156,
4688
+ 138,
4689
+ 14,
4690
+ 32,
4691
+ 89,
4692
+ 232,
4693
+ 248,
4694
+ 173,
4695
+ 46,
4696
+ 77,
4697
+ 46,
4698
+ 206,
4699
+ 189,
4700
+ 171,
4701
+ 68,
4702
+ 237
4703
+ ]
4704
+ }
4705
+ }
4706
+ },
4707
+ {
4708
+ "name": "signer",
4709
+ "writable": true,
4710
+ "signer": true
4711
+ },
4712
+ {
4713
+ "name": "sol_usd_oracle"
4714
+ },
4715
+ {
4716
+ "name": "base_asset_oracle"
4717
+ },
4718
+ {
4719
+ "name": "integration_authority",
4720
+ "pda": {
4721
+ "seeds": [
4722
+ {
4723
+ "kind": "const",
4724
+ "value": [
4725
+ 105,
4726
+ 110,
4727
+ 116,
4728
+ 101,
4729
+ 103,
4730
+ 114,
4731
+ 97,
4732
+ 116,
4733
+ 105,
4734
+ 111,
4735
+ 110,
4736
+ 45,
4737
+ 97,
4738
+ 117,
4739
+ 116,
4740
+ 104,
4741
+ 111,
4742
+ 114,
4743
+ 105,
4744
+ 116,
4745
+ 121
4746
+ ]
4747
+ }
4748
+ ]
4749
+ }
4750
+ },
4751
+ {
4752
+ "name": "glam_config",
4753
+ "pda": {
4754
+ "seeds": [
4755
+ {
4756
+ "kind": "const",
4757
+ "value": [
4758
+ 103,
4759
+ 108,
4760
+ 111,
4761
+ 98,
4762
+ 97,
4763
+ 108,
4764
+ 45,
4765
+ 99,
4766
+ 111,
4767
+ 110,
4768
+ 102,
4769
+ 105,
4770
+ 103
4771
+ ]
4772
+ }
4773
+ ],
4774
+ "program": {
4775
+ "kind": "const",
4776
+ "value": [
4777
+ 10,
4778
+ 11,
4779
+ 0,
4780
+ 83,
4781
+ 72,
4782
+ 16,
4783
+ 46,
4784
+ 144,
4785
+ 46,
4786
+ 42,
4787
+ 79,
4788
+ 22,
4789
+ 157,
4790
+ 123,
4791
+ 21,
4792
+ 242,
4793
+ 192,
4794
+ 146,
4795
+ 1,
4796
+ 78,
4797
+ 88,
4798
+ 59,
4799
+ 102,
4800
+ 9,
4801
+ 190,
4802
+ 226,
4803
+ 92,
4804
+ 189,
4805
+ 187,
4806
+ 232,
4807
+ 83,
4808
+ 220
4809
+ ]
4810
+ }
4811
+ }
4812
+ },
4813
+ {
4814
+ "name": "glam_protocol",
4815
+ "address": "gstgptmbgJVi5f8ZmSRVZjZkDQwqKa3xWuUtD5WmJHz"
4816
+ },
4817
+ {
4818
+ "name": "event_authority",
4819
+ "optional": true,
4820
+ "pda": {
4821
+ "seeds": [
4822
+ {
4823
+ "kind": "const",
4824
+ "value": [
4825
+ 95,
4826
+ 95,
4827
+ 101,
4828
+ 118,
4829
+ 101,
4830
+ 110,
4831
+ 116,
4832
+ 95,
4833
+ 97,
4834
+ 117,
4835
+ 116,
4836
+ 104,
4837
+ 111,
4838
+ 114,
4839
+ 105,
4840
+ 116,
4841
+ 121
4842
+ ]
4843
+ }
4844
+ ]
4845
+ }
4846
+ },
4847
+ {
4848
+ "name": "event_program",
4849
+ "optional": true,
4850
+ "address": "gstgm1M39mhgnvgyScGUDRwNn5kNVSd97hTtyow1Et5"
4851
+ }
4852
+ ],
4853
+ "args": [
4854
+ {
4855
+ "name": "num_positions",
4856
+ "type": "u8"
4857
+ }
4858
+ ]
4859
+ },
4150
4860
  {
4151
4861
  "name": "price_phoenix_traders",
4152
4862
  "docs": [