@streamflow/stream 8.1.1 → 8.2.1

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.
Files changed (32) hide show
  1. package/dist/cjs/{BaseStreamClient-t7I4NOSm.d.cts → BaseStreamClient-uzoqllcf.d.cts} +4 -0
  2. package/dist/cjs/aptos/index.d.cts +2 -2
  3. package/dist/cjs/evm/index.d.cts +2 -2
  4. package/dist/cjs/{index-BRL3w_PW.d.cts → index-BEQUqMyR.d.cts} +3 -1
  5. package/dist/cjs/{index-kcFtmz7O.d.cts → index-BpvTuTHx.d.cts} +1 -1
  6. package/dist/cjs/{index-DU0JxxIj.d.cts → index-CA72ko5B.d.cts} +1 -1
  7. package/dist/cjs/{index-IHOpuPSg.d.cts → index-DM9lJY7y.d.cts} +1 -1
  8. package/dist/cjs/index.cjs +320 -65
  9. package/dist/cjs/index.cjs.map +1 -1
  10. package/dist/cjs/index.d.cts +10 -10
  11. package/dist/cjs/solana/descriptor/streamflow_aligned_unlocks.d.cts +766 -517
  12. package/dist/cjs/solana/index.cjs +320 -65
  13. package/dist/cjs/solana/index.cjs.map +1 -1
  14. package/dist/cjs/solana/index.d.cts +2 -2
  15. package/dist/cjs/sui/index.d.cts +2 -2
  16. package/dist/esm/{BaseStreamClient-t7I4NOSm.d.ts → BaseStreamClient-uzoqllcf.d.ts} +4 -0
  17. package/dist/esm/aptos/index.d.ts +2 -2
  18. package/dist/esm/evm/index.d.ts +2 -2
  19. package/dist/esm/{index-B2txI-oF.d.ts → index-0fL5gH5R.d.ts} +3 -1
  20. package/dist/esm/{index-BfQ0dUgG.d.ts → index-BLMg_CgS.d.ts} +1 -1
  21. package/dist/esm/{index-C81Z69-K.d.ts → index-DJNjOKR0.d.ts} +1 -1
  22. package/dist/esm/{index-BGOG6wUc.d.ts → index-DvlYnKNo.d.ts} +1 -1
  23. package/dist/esm/index.d.ts +10 -10
  24. package/dist/esm/index.js +320 -65
  25. package/dist/esm/index.js.map +1 -1
  26. package/dist/esm/solana/descriptor/idl/streamflow_aligned_unlocks.json +569 -80
  27. package/dist/esm/solana/descriptor/streamflow_aligned_unlocks.d.ts +766 -517
  28. package/dist/esm/solana/index.d.ts +2 -2
  29. package/dist/esm/solana/index.js +320 -65
  30. package/dist/esm/solana/index.js.map +1 -1
  31. package/dist/esm/sui/index.d.ts +2 -2
  32. package/package.json +4 -4
@@ -2914,6 +2914,8 @@ var AlignedContract = class extends Contract2 {
2914
2914
  this.lastPrice = getNumberFromBN(alignedProxy.lastPrice, ALIGNED_PRECISION_FACTOR_POW);
2915
2915
  this.lastAmountUpdateTime = alignedProxy.lastAmountUpdateTime.toNumber();
2916
2916
  this.initialNetAmount = alignedProxy.initialNetAmount;
2917
+ this.expiryTime = alignedProxy.expiryTime.toNumber();
2918
+ this.expiryPercentage = getNumberFromBN(alignedProxy.expiryPercentage, ALIGNED_PRECISION_FACTOR_POW);
2917
2919
  this.type = buildStreamType(this);
2918
2920
  this.isAligned = true;
2919
2921
  }
@@ -3491,14 +3493,23 @@ var streamflow_aligned_unlocks_default = {
3491
3493
  address: "aSTRM2NKoKxNnkmLWk9sz3k74gKBk9t7bpPrTGxMszH",
3492
3494
  metadata: {
3493
3495
  name: "streamflow_aligned_unlocks",
3494
- version: "1.1.1",
3496
+ version: "1.2.0",
3495
3497
  spec: "0.1.0",
3496
3498
  description: "Proxy to update unlock amount within Streamflow vesting protocol according to Token performance and other metrics"
3497
3499
  },
3498
3500
  instructions: [
3499
3501
  {
3500
3502
  name: "cancel",
3501
- discriminator: [232, 219, 223, 41, 219, 236, 220, 190],
3503
+ discriminator: [
3504
+ 232,
3505
+ 219,
3506
+ 223,
3507
+ 41,
3508
+ 219,
3509
+ 236,
3510
+ 220,
3511
+ 190
3512
+ ],
3502
3513
  accounts: [
3503
3514
  {
3504
3515
  name: "sender",
@@ -3507,7 +3518,9 @@ var streamflow_aligned_unlocks_default = {
3507
3518
  },
3508
3519
  {
3509
3520
  name: "sender_tokens",
3510
- docs: ["Associated token account address of `sender`."],
3521
+ docs: [
3522
+ "Associated token account address of `sender`."
3523
+ ],
3511
3524
  writable: true,
3512
3525
  pda: {
3513
3526
  seeds: [
@@ -3569,7 +3582,9 @@ var streamflow_aligned_unlocks_default = {
3569
3582
  },
3570
3583
  {
3571
3584
  name: "recipient_tokens",
3572
- docs: ["CHECK; Associated token account address of `recipient`."],
3585
+ docs: [
3586
+ "CHECK; Associated token account address of `recipient`."
3587
+ ],
3573
3588
  writable: true,
3574
3589
  pda: {
3575
3590
  seeds: [
@@ -3627,13 +3642,24 @@ var streamflow_aligned_unlocks_default = {
3627
3642
  },
3628
3643
  {
3629
3644
  name: "proxy_metadata",
3630
- docs: ["Proxy Contract"],
3645
+ docs: [
3646
+ "Proxy Contract"
3647
+ ],
3631
3648
  writable: true,
3632
3649
  pda: {
3633
3650
  seeds: [
3634
3651
  {
3635
3652
  kind: "const",
3636
- value: [99, 111, 110, 116, 114, 97, 99, 116]
3653
+ value: [
3654
+ 99,
3655
+ 111,
3656
+ 110,
3657
+ 116,
3658
+ 114,
3659
+ 97,
3660
+ 99,
3661
+ 116
3662
+ ]
3637
3663
  },
3638
3664
  {
3639
3665
  kind: "account",
@@ -3831,7 +3857,9 @@ var streamflow_aligned_unlocks_default = {
3831
3857
  },
3832
3858
  {
3833
3859
  name: "mint",
3834
- docs: ["The SPL token mint account."],
3860
+ docs: [
3861
+ "The SPL token mint account."
3862
+ ],
3835
3863
  writable: true
3836
3864
  },
3837
3865
  {
@@ -3840,14 +3868,26 @@ var streamflow_aligned_unlocks_default = {
3840
3868
  },
3841
3869
  {
3842
3870
  name: "token_program",
3843
- docs: ["The SPL program needed in case an associated account", "for the new recipient is being created."]
3871
+ docs: [
3872
+ "The SPL program needed in case an associated account",
3873
+ "for the new recipient is being created."
3874
+ ]
3844
3875
  }
3845
3876
  ],
3846
3877
  args: []
3847
3878
  },
3848
3879
  {
3849
3880
  name: "change_oracle",
3850
- discriminator: [177, 227, 230, 103, 13, 72, 141, 248],
3881
+ discriminator: [
3882
+ 177,
3883
+ 227,
3884
+ 230,
3885
+ 103,
3886
+ 13,
3887
+ 72,
3888
+ 141,
3889
+ 248
3890
+ ],
3851
3891
  accounts: [
3852
3892
  {
3853
3893
  name: "sender",
@@ -3856,7 +3896,9 @@ var streamflow_aligned_unlocks_default = {
3856
3896
  },
3857
3897
  {
3858
3898
  name: "proxy_metadata",
3859
- docs: ["Proxy Contract"],
3899
+ docs: [
3900
+ "Proxy Contract"
3901
+ ],
3860
3902
  writable: true
3861
3903
  },
3862
3904
  {
@@ -3876,11 +3918,22 @@ var streamflow_aligned_unlocks_default = {
3876
3918
  },
3877
3919
  {
3878
3920
  name: "create",
3879
- discriminator: [24, 30, 200, 40, 5, 28, 7, 119],
3921
+ discriminator: [
3922
+ 24,
3923
+ 30,
3924
+ 200,
3925
+ 40,
3926
+ 5,
3927
+ 28,
3928
+ 7,
3929
+ 119
3930
+ ],
3880
3931
  accounts: [
3881
3932
  {
3882
3933
  name: "payer",
3883
- docs: ["Rent payer"],
3934
+ docs: [
3935
+ "Rent payer"
3936
+ ],
3884
3937
  writable: true,
3885
3938
  signer: true
3886
3939
  },
@@ -3891,7 +3944,9 @@ var streamflow_aligned_unlocks_default = {
3891
3944
  },
3892
3945
  {
3893
3946
  name: "sender_tokens",
3894
- docs: ["Associated token account address of `payer`."],
3947
+ docs: [
3948
+ "Associated token account address of `payer`."
3949
+ ],
3895
3950
  writable: true,
3896
3951
  pda: {
3897
3952
  seeds: [
@@ -4013,7 +4068,16 @@ var streamflow_aligned_unlocks_default = {
4013
4068
  seeds: [
4014
4069
  {
4015
4070
  kind: "const",
4016
- value: [99, 111, 110, 116, 114, 97, 99, 116]
4071
+ value: [
4072
+ 99,
4073
+ 111,
4074
+ 110,
4075
+ 116,
4076
+ 114,
4077
+ 97,
4078
+ 99,
4079
+ 116
4080
+ ]
4017
4081
  },
4018
4082
  {
4019
4083
  kind: "account",
@@ -4137,7 +4201,16 @@ var streamflow_aligned_unlocks_default = {
4137
4201
  },
4138
4202
  {
4139
4203
  name: "create_test_oracle",
4140
- discriminator: [183, 110, 4, 11, 131, 220, 84, 12],
4204
+ discriminator: [
4205
+ 183,
4206
+ 110,
4207
+ 4,
4208
+ 11,
4209
+ 131,
4210
+ 220,
4211
+ 84,
4212
+ 12
4213
+ ],
4141
4214
  accounts: [
4142
4215
  {
4143
4216
  name: "creator",
@@ -4154,7 +4227,19 @@ var streamflow_aligned_unlocks_default = {
4154
4227
  seeds: [
4155
4228
  {
4156
4229
  kind: "const",
4157
- value: [116, 101, 115, 116, 45, 111, 114, 97, 99, 108, 101]
4230
+ value: [
4231
+ 116,
4232
+ 101,
4233
+ 115,
4234
+ 116,
4235
+ 45,
4236
+ 111,
4237
+ 114,
4238
+ 97,
4239
+ 99,
4240
+ 108,
4241
+ 101
4242
+ ]
4158
4243
  },
4159
4244
  {
4160
4245
  kind: "account",
@@ -4185,7 +4270,16 @@ var streamflow_aligned_unlocks_default = {
4185
4270
  },
4186
4271
  {
4187
4272
  name: "set_test_oracle_authority",
4188
- discriminator: [26, 66, 233, 99, 38, 118, 181, 247],
4273
+ discriminator: [
4274
+ 26,
4275
+ 66,
4276
+ 233,
4277
+ 99,
4278
+ 38,
4279
+ 118,
4280
+ 181,
4281
+ 247
4282
+ ],
4189
4283
  accounts: [
4190
4284
  {
4191
4285
  name: "authority",
@@ -4204,11 +4298,22 @@ var streamflow_aligned_unlocks_default = {
4204
4298
  },
4205
4299
  {
4206
4300
  name: "update_amount",
4207
- discriminator: [212, 178, 69, 133, 251, 180, 212, 71],
4301
+ discriminator: [
4302
+ 212,
4303
+ 178,
4304
+ 69,
4305
+ 133,
4306
+ 251,
4307
+ 180,
4308
+ 212,
4309
+ 71
4310
+ ],
4208
4311
  accounts: [
4209
4312
  {
4210
4313
  name: "authority",
4211
- docs: ["Wallet authorised to call this method"],
4314
+ docs: [
4315
+ "Wallet authorised to call this method"
4316
+ ],
4212
4317
  writable: true,
4213
4318
  signer: true
4214
4319
  },
@@ -4219,7 +4324,16 @@ var streamflow_aligned_unlocks_default = {
4219
4324
  seeds: [
4220
4325
  {
4221
4326
  kind: "const",
4222
- value: [99, 111, 110, 116, 114, 97, 99, 116]
4327
+ value: [
4328
+ 99,
4329
+ 111,
4330
+ 110,
4331
+ 116,
4332
+ 114,
4333
+ 97,
4334
+ 99,
4335
+ 116
4336
+ ]
4223
4337
  },
4224
4338
  {
4225
4339
  kind: "account",
@@ -4238,7 +4352,9 @@ var streamflow_aligned_unlocks_default = {
4238
4352
  },
4239
4353
  {
4240
4354
  name: "price_oracle",
4241
- relations: ["proxy_metadata"]
4355
+ relations: [
4356
+ "proxy_metadata"
4357
+ ]
4242
4358
  },
4243
4359
  {
4244
4360
  name: "streamflow_program",
@@ -4253,7 +4369,16 @@ var streamflow_aligned_unlocks_default = {
4253
4369
  },
4254
4370
  {
4255
4371
  name: "update_test_oracle",
4256
- discriminator: [158, 147, 215, 74, 34, 123, 80, 76],
4372
+ discriminator: [
4373
+ 158,
4374
+ 147,
4375
+ 215,
4376
+ 74,
4377
+ 34,
4378
+ 123,
4379
+ 80,
4380
+ 76
4381
+ ],
4257
4382
  accounts: [
4258
4383
  {
4259
4384
  name: "authority",
@@ -4280,11 +4405,29 @@ var streamflow_aligned_unlocks_default = {
4280
4405
  accounts: [
4281
4406
  {
4282
4407
  name: "Contract",
4283
- discriminator: [172, 138, 115, 242, 121, 67, 183, 26]
4408
+ discriminator: [
4409
+ 172,
4410
+ 138,
4411
+ 115,
4412
+ 242,
4413
+ 121,
4414
+ 67,
4415
+ 183,
4416
+ 26
4417
+ ]
4284
4418
  },
4285
4419
  {
4286
4420
  name: "TestOracle",
4287
- discriminator: [198, 49, 63, 134, 232, 251, 168, 28]
4421
+ discriminator: [
4422
+ 198,
4423
+ 49,
4424
+ 63,
4425
+ 134,
4426
+ 232,
4427
+ 251,
4428
+ 168,
4429
+ 28
4430
+ ]
4288
4431
  }
4289
4432
  ],
4290
4433
  errors: [
@@ -4325,33 +4468,43 @@ var streamflow_aligned_unlocks_default = {
4325
4468
  },
4326
4469
  {
4327
4470
  code: 6007,
4471
+ name: "InvalidExpiryDuration",
4472
+ msg: "Provided expiry time/percentage configuration is invalid"
4473
+ },
4474
+ {
4475
+ code: 6008,
4328
4476
  name: "UnsupportedOracle",
4329
4477
  msg: "Unsupported price oracle"
4330
4478
  },
4331
4479
  {
4332
- code: 6008,
4480
+ code: 6009,
4333
4481
  name: "InvalidOracleAccount",
4334
4482
  msg: "Invalid oracle account"
4335
4483
  },
4336
4484
  {
4337
- code: 6009,
4485
+ code: 6010,
4338
4486
  name: "InvalidOraclePrice",
4339
4487
  msg: "Invalid oracle price"
4340
4488
  },
4341
4489
  {
4342
- code: 6010,
4490
+ code: 6011,
4343
4491
  name: "InvalidStreamMetadata",
4344
4492
  msg: "Invalid Stream Metadata"
4345
4493
  },
4346
4494
  {
4347
- code: 6011,
4495
+ code: 6012,
4348
4496
  name: "AmountAlreadyUpdated",
4349
4497
  msg: "Release amount has already been updated in this period"
4350
4498
  },
4351
4499
  {
4352
- code: 6012,
4500
+ code: 6013,
4353
4501
  name: "AllFundsUnlocked",
4354
4502
  msg: "All funds are already unlocked"
4503
+ },
4504
+ {
4505
+ code: 6014,
4506
+ name: "DynamicScheduleExpired",
4507
+ msg: "Dynamic schedule expired, updates are not allowed"
4355
4508
  }
4356
4509
  ],
4357
4510
  types: [
@@ -4378,27 +4531,37 @@ var streamflow_aligned_unlocks_default = {
4378
4531
  fields: [
4379
4532
  {
4380
4533
  name: "bump",
4381
- docs: ["Bump Seed used to sign transactions"],
4534
+ docs: [
4535
+ "Bump Seed used to sign transactions"
4536
+ ],
4382
4537
  type: "u8"
4383
4538
  },
4384
4539
  {
4385
4540
  name: "sender",
4386
- docs: ["Original Contract sender"],
4541
+ docs: [
4542
+ "Original Contract sender"
4543
+ ],
4387
4544
  type: "pubkey"
4388
4545
  },
4389
4546
  {
4390
4547
  name: "sender_tokens",
4391
- docs: ["Original Contract sender tokens address"],
4548
+ docs: [
4549
+ "Original Contract sender tokens address"
4550
+ ],
4392
4551
  type: "pubkey"
4393
4552
  },
4394
4553
  {
4395
4554
  name: "stream",
4396
- docs: ["Vesting Stream address"],
4555
+ docs: [
4556
+ "Vesting Stream address"
4557
+ ],
4397
4558
  type: "pubkey"
4398
4559
  },
4399
4560
  {
4400
4561
  name: "price_oracle_type",
4401
- docs: ["Type of the Oracle used to derive Token Price"],
4562
+ docs: [
4563
+ "Type of the Oracle used to derive Token Price"
4564
+ ],
4402
4565
  type: {
4403
4566
  defined: {
4404
4567
  name: "OracleType"
@@ -4407,32 +4570,44 @@ var streamflow_aligned_unlocks_default = {
4407
4570
  },
4408
4571
  {
4409
4572
  name: "price_oracle",
4410
- docs: ["Address of the Price Oracle"],
4573
+ docs: [
4574
+ "Address of the Price Oracle"
4575
+ ],
4411
4576
  type: "pubkey"
4412
4577
  },
4413
4578
  {
4414
4579
  name: "min_price",
4415
- docs: ["Min price boundary"],
4580
+ docs: [
4581
+ "Min price boundary"
4582
+ ],
4416
4583
  type: "u64"
4417
4584
  },
4418
4585
  {
4419
4586
  name: "max_price",
4420
- docs: ["Max price boundary"],
4587
+ docs: [
4588
+ "Max price boundary"
4589
+ ],
4421
4590
  type: "u64"
4422
4591
  },
4423
4592
  {
4424
4593
  name: "min_percentage",
4425
- docs: ["Min percentage boundary, can be 0 that equals 1 Raw Token"],
4594
+ docs: [
4595
+ "Min percentage boundary, can be 0 that equals 1 Raw Token"
4596
+ ],
4426
4597
  type: "u64"
4427
4598
  },
4428
4599
  {
4429
4600
  name: "max_percentage",
4430
- docs: ["Max percentage boundary"],
4601
+ docs: [
4602
+ "Max percentage boundary"
4603
+ ],
4431
4604
  type: "u64"
4432
4605
  },
4433
4606
  {
4434
4607
  name: "tick_size",
4435
- docs: ["Ticket size for percentage boundaries"],
4608
+ docs: [
4609
+ "Ticket size for percentage boundaries"
4610
+ ],
4436
4611
  type: "u64"
4437
4612
  },
4438
4613
  {
@@ -4465,39 +4640,70 @@ var streamflow_aligned_unlocks_default = {
4465
4640
  },
4466
4641
  {
4467
4642
  name: "last_price",
4468
- docs: ["Price used on last amount calculation"],
4643
+ docs: [
4644
+ "Price used on last amount calculation"
4645
+ ],
4469
4646
  type: "u64"
4470
4647
  },
4471
4648
  {
4472
4649
  name: "stream_canceled_time",
4473
- docs: ["Timestamp when stream was cancelled"],
4650
+ docs: [
4651
+ "Timestamp when stream was cancelled"
4652
+ ],
4474
4653
  type: "u64"
4475
4654
  },
4476
4655
  {
4477
4656
  name: "initial_amount_per_period",
4478
- docs: ["Amount per period to use as base for calculations"],
4657
+ docs: [
4658
+ "Amount per period to use as base for calculations"
4659
+ ],
4479
4660
  type: "u64"
4480
4661
  },
4481
4662
  {
4482
4663
  name: "initial_price",
4483
- docs: ["Initial token price at the time of Contract creation"],
4664
+ docs: [
4665
+ "Initial token price at the time of Contract creation"
4666
+ ],
4484
4667
  type: "u64"
4485
4668
  },
4486
4669
  {
4487
4670
  name: "initial_net_amount",
4488
- docs: ["Initial deposited amount"],
4671
+ docs: [
4672
+ "Initial deposited amount"
4673
+ ],
4489
4674
  type: "u64"
4490
4675
  },
4491
4676
  {
4492
4677
  name: "mint",
4493
- docs: ["Mint for which the contract was created"],
4678
+ docs: [
4679
+ "Mint for which the contract was created"
4680
+ ],
4494
4681
  type: "pubkey"
4495
4682
  },
4683
+ {
4684
+ name: "expiry_time",
4685
+ docs: [
4686
+ "Time when contract expires, `expiry_percentage` will be set in this case"
4687
+ ],
4688
+ type: "u64"
4689
+ },
4690
+ {
4691
+ name: "expiry_percentage",
4692
+ docs: [
4693
+ "Percentage to set when contract expires, won't be updated after it"
4694
+ ],
4695
+ type: "u64"
4696
+ },
4496
4697
  {
4497
4698
  name: "buffer",
4498
- docs: ["Buffer for additional fields"],
4699
+ docs: [
4700
+ "Buffer for additional fields"
4701
+ ],
4499
4702
  type: {
4500
- array: ["u8", 32]
4703
+ array: [
4704
+ "u8",
4705
+ 16
4706
+ ]
4501
4707
  }
4502
4708
  }
4503
4709
  ]
@@ -4510,64 +4716,91 @@ var streamflow_aligned_unlocks_default = {
4510
4716
  fields: [
4511
4717
  {
4512
4718
  name: "start_time",
4513
- docs: ["Timestamp when the tokens start vesting"],
4719
+ docs: [
4720
+ "Timestamp when the tokens start vesting"
4721
+ ],
4514
4722
  type: "u64"
4515
4723
  },
4516
4724
  {
4517
4725
  name: "net_amount_deposited",
4518
- docs: ["Deposited amount of tokens"],
4726
+ docs: [
4727
+ "Deposited amount of tokens"
4728
+ ],
4519
4729
  type: "u64"
4520
4730
  },
4521
4731
  {
4522
4732
  name: "period",
4523
- docs: ["Time step (period) in seconds per which the vesting/release occurs"],
4733
+ docs: [
4734
+ "Time step (period) in seconds per which the vesting/release occurs"
4735
+ ],
4524
4736
  type: "u64"
4525
4737
  },
4526
4738
  {
4527
4739
  name: "amount_per_period",
4528
- docs: ["Base Amount released per period. Combined with `period`, we get a release rate."],
4740
+ docs: [
4741
+ "Base Amount released per period. Combined with `period`, we get a release rate."
4742
+ ],
4529
4743
  type: "u64"
4530
4744
  },
4531
4745
  {
4532
4746
  name: "cliff",
4533
- docs: ['Vesting contract "cliff" timestamp'],
4747
+ docs: [
4748
+ 'Vesting contract "cliff" timestamp'
4749
+ ],
4534
4750
  type: "u64"
4535
4751
  },
4536
4752
  {
4537
4753
  name: "cliff_amount",
4538
- docs: ['Amount unlocked at the "cliff" timestamp'],
4754
+ docs: [
4755
+ 'Amount unlocked at the "cliff" timestamp'
4756
+ ],
4539
4757
  type: "u64"
4540
4758
  },
4541
4759
  {
4542
4760
  name: "cancelable_by_sender",
4543
- docs: ["Whether a stream can be canceled by a sender"],
4761
+ docs: [
4762
+ "Whether a stream can be canceled by a sender"
4763
+ ],
4544
4764
  type: "bool"
4545
4765
  },
4546
4766
  {
4547
4767
  name: "cancelable_by_recipient",
4548
- docs: ["Whether a stream can be canceled by a recipient"],
4768
+ docs: [
4769
+ "Whether a stream can be canceled by a recipient"
4770
+ ],
4549
4771
  type: "bool"
4550
4772
  },
4551
4773
  {
4552
4774
  name: "transferable_by_sender",
4553
- docs: ["Whether the sender can transfer the stream"],
4775
+ docs: [
4776
+ "Whether the sender can transfer the stream"
4777
+ ],
4554
4778
  type: "bool"
4555
4779
  },
4556
4780
  {
4557
4781
  name: "transferable_by_recipient",
4558
- docs: ["Whether the recipient can transfer the stream"],
4782
+ docs: [
4783
+ "Whether the recipient can transfer the stream"
4784
+ ],
4559
4785
  type: "bool"
4560
4786
  },
4561
4787
  {
4562
4788
  name: "can_topup",
4563
- docs: ["Whether topup is enabled"],
4789
+ docs: [
4790
+ "Whether topup is enabled"
4791
+ ],
4564
4792
  type: "bool"
4565
4793
  },
4566
4794
  {
4567
4795
  name: "stream_name",
4568
- docs: ["The name of this stream"],
4796
+ docs: [
4797
+ "The name of this stream"
4798
+ ],
4569
4799
  type: {
4570
- array: ["u8", 64]
4800
+ array: [
4801
+ "u8",
4802
+ 64
4803
+ ]
4571
4804
  }
4572
4805
  },
4573
4806
  {
@@ -4592,17 +4825,35 @@ var streamflow_aligned_unlocks_default = {
4592
4825
  },
4593
4826
  {
4594
4827
  name: "skip_initial",
4595
- docs: ["Whether to skip initial calculation of amount per period"],
4828
+ docs: [
4829
+ "Whether to skip initial calculation of amount per period"
4830
+ ],
4596
4831
  type: "bool"
4597
4832
  },
4598
4833
  {
4599
4834
  name: "oracle_type",
4600
- docs: ["Type of Oracle to use to derive Token Price"],
4835
+ docs: [
4836
+ "Type of Oracle to use to derive Token Price"
4837
+ ],
4601
4838
  type: {
4602
4839
  defined: {
4603
4840
  name: "OracleType"
4604
4841
  }
4605
4842
  }
4843
+ },
4844
+ {
4845
+ name: "expiry_time",
4846
+ docs: [
4847
+ "Time when contract expires, `expiry_percentage` will be set in this case"
4848
+ ],
4849
+ type: "u64"
4850
+ },
4851
+ {
4852
+ name: "expiry_percentage",
4853
+ docs: [
4854
+ "Percentage to set when contract expires, won't be updated after it"
4855
+ ],
4856
+ type: "u64"
4606
4857
  }
4607
4858
  ]
4608
4859
  }
@@ -4846,7 +5097,9 @@ var SolanaStreamClient = class extends BaseStreamClient {
4846
5097
  tickSize,
4847
5098
  priceOracle,
4848
5099
  oracleType,
4849
- tokenProgramId: streamTokenProgramId
5100
+ tokenProgramId: streamTokenProgramId,
5101
+ expiryTime,
5102
+ expiryPercentage
4850
5103
  } = streamParams;
4851
5104
  const { isNative, sender, computeLimit, computePrice, metadataPubKeys } = extParams;
4852
5105
  if (!sender.publicKey) {
@@ -4898,7 +5151,9 @@ var SolanaStreamClient = class extends BaseStreamClient {
4898
5151
  minPercentage: minPercentage instanceof BN7__default.default ? minPercentage : common.getBN(minPercentage, ALIGNED_PRECISION_FACTOR_POW),
4899
5152
  maxPercentage: maxPercentage instanceof BN7__default.default ? maxPercentage : common.getBN(maxPercentage, ALIGNED_PRECISION_FACTOR_POW),
4900
5153
  tickSize: new BN7__default.default(tickSize || 1),
4901
- skipInitial: skipInitial ?? false
5154
+ skipInitial: skipInitial ?? false,
5155
+ expiryTime: new BN7__default.default(expiryTime ?? 0),
5156
+ expiryPercentage: expiryPercentage instanceof BN7__default.default ? expiryPercentage : common.getBN(expiryPercentage ?? 0, ALIGNED_PRECISION_FACTOR_POW)
4902
5157
  }).accountsPartial({
4903
5158
  payer: sender.publicKey,
4904
5159
  sender: sender.publicKey,