@glamsystems/glam-sdk 1.1.0-alpha.3 → 1.1.0-alpha.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.
@@ -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,479 @@ 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": "priceOrcaWhirlpoolPositions",
4389
+ "docs": [
4390
+ "Prices Orca Whirlpools positions registered as vault external positions.",
4391
+ "",
4392
+ "Remaining accounts for each position:",
4393
+ "- position",
4394
+ "- position_token_account",
4395
+ "- whirlpool",
4396
+ "- tick_array_lower",
4397
+ "- tick_array_upper",
4398
+ "- token_mint_a",
4399
+ "- token_oracle_a",
4400
+ "- token_mint_b",
4401
+ "- token_oracle_b",
4402
+ "- optional reward_mint, reward_oracle pairs for initialized rewards with nonzero value"
4403
+ ],
4404
+ "discriminator": [
4405
+ 3,
4406
+ 81,
4407
+ 117,
4408
+ 34,
4409
+ 5,
4410
+ 238,
4411
+ 158,
4412
+ 232
4413
+ ],
4414
+ "accounts": [
4415
+ {
4416
+ "name": "glamState",
4417
+ "writable": true
4418
+ },
4419
+ {
4420
+ "name": "glamVault",
4421
+ "pda": {
4422
+ "seeds": [
4423
+ {
4424
+ "kind": "const",
4425
+ "value": [
4426
+ 118,
4427
+ 97,
4428
+ 117,
4429
+ 108,
4430
+ 116
4431
+ ]
4432
+ },
4433
+ {
4434
+ "kind": "account",
4435
+ "path": "glamState"
4436
+ }
4437
+ ],
4438
+ "program": {
4439
+ "kind": "const",
4440
+ "value": [
4441
+ 10,
4442
+ 55,
4443
+ 49,
4444
+ 193,
4445
+ 142,
4446
+ 247,
4447
+ 75,
4448
+ 193,
4449
+ 33,
4450
+ 61,
4451
+ 5,
4452
+ 218,
4453
+ 254,
4454
+ 219,
4455
+ 143,
4456
+ 206,
4457
+ 156,
4458
+ 138,
4459
+ 14,
4460
+ 32,
4461
+ 89,
4462
+ 232,
4463
+ 248,
4464
+ 173,
4465
+ 46,
4466
+ 77,
4467
+ 46,
4468
+ 206,
4469
+ 189,
4470
+ 171,
4471
+ 68,
4472
+ 237
4473
+ ]
4474
+ }
4475
+ }
4476
+ },
4477
+ {
4478
+ "name": "signer",
4479
+ "writable": true,
4480
+ "signer": true
4481
+ },
4482
+ {
4483
+ "name": "solUsdOracle"
4484
+ },
4485
+ {
4486
+ "name": "baseAssetOracle"
4487
+ },
4488
+ {
4489
+ "name": "integrationAuthority",
4490
+ "pda": {
4491
+ "seeds": [
4492
+ {
4493
+ "kind": "const",
4494
+ "value": [
4495
+ 105,
4496
+ 110,
4497
+ 116,
4498
+ 101,
4499
+ 103,
4500
+ 114,
4501
+ 97,
4502
+ 116,
4503
+ 105,
4504
+ 111,
4505
+ 110,
4506
+ 45,
4507
+ 97,
4508
+ 117,
4509
+ 116,
4510
+ 104,
4511
+ 111,
4512
+ 114,
4513
+ 105,
4514
+ 116,
4515
+ 121
4516
+ ]
4517
+ }
4518
+ ]
4519
+ }
4520
+ },
4521
+ {
4522
+ "name": "glamConfig",
4523
+ "pda": {
4524
+ "seeds": [
4525
+ {
4526
+ "kind": "const",
4527
+ "value": [
4528
+ 103,
4529
+ 108,
4530
+ 111,
4531
+ 98,
4532
+ 97,
4533
+ 108,
4534
+ 45,
4535
+ 99,
4536
+ 111,
4537
+ 110,
4538
+ 102,
4539
+ 105,
4540
+ 103
4541
+ ]
4542
+ }
4543
+ ],
4544
+ "program": {
4545
+ "kind": "const",
4546
+ "value": [
4547
+ 10,
4548
+ 11,
4549
+ 0,
4550
+ 83,
4551
+ 72,
4552
+ 16,
4553
+ 46,
4554
+ 144,
4555
+ 46,
4556
+ 42,
4557
+ 79,
4558
+ 22,
4559
+ 157,
4560
+ 123,
4561
+ 21,
4562
+ 242,
4563
+ 192,
4564
+ 146,
4565
+ 1,
4566
+ 78,
4567
+ 88,
4568
+ 59,
4569
+ 102,
4570
+ 9,
4571
+ 190,
4572
+ 226,
4573
+ 92,
4574
+ 189,
4575
+ 187,
4576
+ 232,
4577
+ 83,
4578
+ 220
4579
+ ]
4580
+ }
4581
+ }
4582
+ },
4583
+ {
4584
+ "name": "glamProtocol",
4585
+ "address": "gstgptmbgJVi5f8ZmSRVZjZkDQwqKa3xWuUtD5WmJHz"
4586
+ },
4587
+ {
4588
+ "name": "eventAuthority",
4589
+ "optional": true,
4590
+ "pda": {
4591
+ "seeds": [
4592
+ {
4593
+ "kind": "const",
4594
+ "value": [
4595
+ 95,
4596
+ 95,
4597
+ 101,
4598
+ 118,
4599
+ 101,
4600
+ 110,
4601
+ 116,
4602
+ 95,
4603
+ 97,
4604
+ 117,
4605
+ 116,
4606
+ 104,
4607
+ 111,
4608
+ 114,
4609
+ 105,
4610
+ 116,
4611
+ 121
4612
+ ]
4613
+ }
4614
+ ]
4615
+ }
4616
+ },
4617
+ {
4618
+ "name": "eventProgram",
4619
+ "optional": true,
4620
+ "address": "gstgm1M39mhgnvgyScGUDRwNn5kNVSd97hTtyow1Et5"
4621
+ }
4622
+ ],
4623
+ "args": [
4624
+ {
4625
+ "name": "numPositions",
4626
+ "type": "u8"
4627
+ }
4628
+ ]
4629
+ },
4156
4630
  {
4157
4631
  "name": "pricePhoenixTraders",
4158
4632
  "docs": [