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