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