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