hedge-web3 0.1.29 → 0.1.31

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 (77) hide show
  1. package/declarations/idl/vault.d.ts +99 -99
  2. package/declarations/index.d.ts +1 -0
  3. package/declarations/instructions/claimLiquidationPoolPosition.d.ts +3 -2
  4. package/declarations/instructions/claimStakingPoolPosition.d.ts +3 -2
  5. package/declarations/instructions/closeLiquidationPoolPosition.d.ts +3 -2
  6. package/declarations/instructions/createStakingPool.d.ts +3 -2
  7. package/declarations/instructions/createVault.d.ts +6 -5
  8. package/declarations/instructions/depositLiquidationPool.d.ts +3 -2
  9. package/declarations/instructions/depositStakingPool.d.ts +3 -2
  10. package/declarations/instructions/depositVault.d.ts +3 -2
  11. package/declarations/instructions/initHedgeFoundation.d.ts +3 -2
  12. package/declarations/instructions/liquidateVault.d.ts +3 -2
  13. package/declarations/instructions/loanVault.d.ts +3 -2
  14. package/declarations/instructions/redeemVault.d.ts +3 -2
  15. package/declarations/instructions/refreshOraclePrice.d.ts +3 -2
  16. package/declarations/instructions/repayVault.d.ts +3 -2
  17. package/declarations/instructions/setHalted.d.ts +3 -2
  18. package/declarations/instructions/setVaultTypeStatus.d.ts +3 -2
  19. package/declarations/instructions/withdrawStakingPool.d.ts +3 -2
  20. package/declarations/instructions/withdrawVault.d.ts +3 -2
  21. package/declarations/state/VaultAccount.d.ts +1 -1
  22. package/declarations/utils/getLinkedListAccounts.d.ts +3 -1
  23. package/lib/idl/vault.js +99 -99
  24. package/lib/index.js +1 -0
  25. package/lib/instructions/claimLiquidationPoolPosition.js +19 -22
  26. package/lib/instructions/claimStakingPoolPosition.js +19 -19
  27. package/lib/instructions/closeLiquidationPoolPosition.js +22 -22
  28. package/lib/instructions/createStakingPool.js +17 -18
  29. package/lib/instructions/createVault.js +28 -31
  30. package/lib/instructions/depositLiquidationPool.js +17 -18
  31. package/lib/instructions/depositStakingPool.js +16 -18
  32. package/lib/instructions/depositVault.js +25 -27
  33. package/lib/instructions/initHedgeFoundation.js +17 -19
  34. package/lib/instructions/initHedgeFoundationTokens.js +15 -15
  35. package/lib/instructions/liquidateVault.js +32 -33
  36. package/lib/instructions/loanVault.js +23 -23
  37. package/lib/instructions/redeemVault.js +24 -24
  38. package/lib/instructions/refreshOraclePrice.js +17 -17
  39. package/lib/instructions/repayVault.js +23 -23
  40. package/lib/instructions/setHalted.js +8 -9
  41. package/lib/instructions/setVaultTypeStatus.js +9 -10
  42. package/lib/instructions/withdrawStakingPool.js +22 -24
  43. package/lib/instructions/withdrawVault.js +23 -23
  44. package/lib/state/LiquidationPoolEra.js +3 -1
  45. package/lib/state/LiquidationPosition.js +0 -7
  46. package/lib/state/StakingPool.js +3 -4
  47. package/lib/state/VaultAccount.js +2 -5
  48. package/lib/utils/getLinkedListAccounts.js +24 -16
  49. package/package.json +2 -2
  50. package/src/idl/vault.ts +198 -198
  51. package/src/index.ts +1 -0
  52. package/src/instructions/claimLiquidationPoolPosition.ts +39 -29
  53. package/src/instructions/claimStakingPoolPosition.ts +45 -25
  54. package/src/instructions/closeLiquidationPoolPosition.ts +62 -32
  55. package/src/instructions/createStakingPool.ts +37 -35
  56. package/src/instructions/createVault.ts +81 -125
  57. package/src/instructions/depositLiquidationPool.ts +45 -26
  58. package/src/instructions/depositStakingPool.ts +32 -24
  59. package/src/instructions/depositVault.ts +57 -86
  60. package/src/instructions/initHedgeFoundation.ts +42 -43
  61. package/src/instructions/initHedgeFoundationTokens.ts +38 -39
  62. package/src/instructions/liquidateVault.ts +42 -65
  63. package/src/instructions/loanVault.ts +51 -69
  64. package/src/instructions/redeemVault.ts +83 -47
  65. package/src/instructions/refreshOraclePrice.ts +41 -32
  66. package/src/instructions/repayVault.ts +45 -65
  67. package/src/instructions/setHalted.ts +32 -24
  68. package/src/instructions/setVaultTypeStatus.ts +32 -24
  69. package/src/instructions/withdrawStakingPool.ts +44 -30
  70. package/src/instructions/withdrawVault.ts +58 -82
  71. package/src/state/LiquidationPoolEra.ts +4 -3
  72. package/src/state/LiquidationPosition.ts +0 -27
  73. package/src/state/StakingPool.ts +4 -7
  74. package/src/state/StakingPoolPosition.ts +2 -3
  75. package/src/state/VaultAccount.ts +9 -28
  76. package/src/state/VaultHistoryEvent.ts +1 -2
  77. package/src/utils/getLinkedListAccounts.ts +31 -30
package/src/idl/vault.ts CHANGED
@@ -1797,68 +1797,6 @@ export type Vault = {
1797
1797
  ]
1798
1798
  }
1799
1799
  },
1800
- {
1801
- "name": "stakingPool",
1802
- "type": {
1803
- "kind": "struct",
1804
- "fields": [
1805
- {
1806
- "name": "halfLifeInDays",
1807
- "type": "u64"
1808
- },
1809
- {
1810
- "name": "deposits",
1811
- "type": "u64"
1812
- },
1813
- {
1814
- "name": "startTime",
1815
- "type": "u64"
1816
- },
1817
- {
1818
- "name": "lastTransactionTime",
1819
- "type": "u64"
1820
- },
1821
- {
1822
- "name": "hedgeRewardAccumulator",
1823
- "type": "u128"
1824
- },
1825
- {
1826
- "name": "ushFeeAccumulator",
1827
- "type": "u128"
1828
- },
1829
- {
1830
- "name": "totalHedgeReward",
1831
- "type": "u64"
1832
- },
1833
- {
1834
- "name": "stakedTokenMint",
1835
- "type": "publicKey"
1836
- },
1837
- {
1838
- "name": "seedPhrase",
1839
- "type": {
1840
- "array": [
1841
- "u8",
1842
- 12
1843
- ]
1844
- }
1845
- },
1846
- {
1847
- "name": "collateralFeeAccumulator",
1848
- "type": {
1849
- "array": [
1850
- "u128",
1851
- 32
1852
- ]
1853
- }
1854
- },
1855
- {
1856
- "name": "bump",
1857
- "type": "u8"
1858
- }
1859
- ]
1860
- }
1861
- },
1862
1800
  {
1863
1801
  "name": "stakingPoolPosition",
1864
1802
  "type": {
@@ -1924,75 +1862,63 @@ export type Vault = {
1924
1862
  }
1925
1863
  },
1926
1864
  {
1927
- "name": "vault",
1865
+ "name": "stakingPool",
1928
1866
  "type": {
1929
1867
  "kind": "struct",
1930
1868
  "fields": [
1931
1869
  {
1932
- "name": "vaultOwner",
1933
- "type": "publicKey"
1934
- },
1935
- {
1936
- "name": "vaultNumber",
1870
+ "name": "halfLifeInDays",
1937
1871
  "type": "u64"
1938
1872
  },
1939
1873
  {
1940
- "name": "deposited",
1874
+ "name": "deposits",
1941
1875
  "type": "u64"
1942
1876
  },
1943
1877
  {
1944
- "name": "denormalizedDebt",
1878
+ "name": "startTime",
1945
1879
  "type": "u64"
1946
1880
  },
1947
1881
  {
1948
- "name": "collateralType",
1949
- "type": "string"
1882
+ "name": "lastTransactionTime",
1883
+ "type": "u64"
1950
1884
  },
1951
1885
  {
1952
- "name": "pdaSalt",
1953
- "type": "string"
1886
+ "name": "hedgeRewardAccumulator",
1887
+ "type": "u128"
1954
1888
  },
1955
1889
  {
1956
- "name": "bump",
1957
- "type": "u8"
1890
+ "name": "ushFeeAccumulator",
1891
+ "type": "u128"
1958
1892
  },
1959
1893
  {
1960
- "name": "vaultVersion",
1894
+ "name": "totalHedgeReward",
1961
1895
  "type": "u64"
1962
1896
  },
1963
1897
  {
1964
- "name": "debtProductSnapshotBytes",
1965
- "type": "u128"
1966
- },
1967
- {
1968
- "name": "collateralAccumulatorSnapshotBytes",
1969
- "type": "u128"
1898
+ "name": "stakedTokenMint",
1899
+ "type": "publicKey"
1970
1900
  },
1971
1901
  {
1972
- "name": "debtType",
1902
+ "name": "seedPhrase",
1973
1903
  "type": {
1974
- "defined": "CurrencyType"
1904
+ "array": [
1905
+ "u8",
1906
+ 12
1907
+ ]
1975
1908
  }
1976
1909
  },
1977
1910
  {
1978
- "name": "vaultStatus",
1911
+ "name": "collateralFeeAccumulator",
1979
1912
  "type": {
1980
- "defined": "VaultStatus"
1913
+ "array": [
1914
+ "u128",
1915
+ 32
1916
+ ]
1981
1917
  }
1982
1918
  },
1983
1919
  {
1984
- "name": "timeCreated",
1985
- "type": "u64"
1986
- },
1987
- {
1988
- "name": "timeLastInteraction",
1989
- "type": "u64"
1990
- },
1991
- {
1992
- "name": "nextVaultToRedeem",
1993
- "type": {
1994
- "option": "publicKey"
1995
- }
1920
+ "name": "bump",
1921
+ "type": "u8"
1996
1922
  }
1997
1923
  ]
1998
1924
  }
@@ -2198,6 +2124,80 @@ export type Vault = {
2198
2124
  }
2199
2125
  ]
2200
2126
  }
2127
+ },
2128
+ {
2129
+ "name": "vault",
2130
+ "type": {
2131
+ "kind": "struct",
2132
+ "fields": [
2133
+ {
2134
+ "name": "vaultOwner",
2135
+ "type": "publicKey"
2136
+ },
2137
+ {
2138
+ "name": "vaultNumber",
2139
+ "type": "u64"
2140
+ },
2141
+ {
2142
+ "name": "deposited",
2143
+ "type": "u64"
2144
+ },
2145
+ {
2146
+ "name": "denormalizedDebt",
2147
+ "type": "u64"
2148
+ },
2149
+ {
2150
+ "name": "collateralType",
2151
+ "type": "string"
2152
+ },
2153
+ {
2154
+ "name": "pdaSalt",
2155
+ "type": "string"
2156
+ },
2157
+ {
2158
+ "name": "bump",
2159
+ "type": "u8"
2160
+ },
2161
+ {
2162
+ "name": "vaultVersion",
2163
+ "type": "u64"
2164
+ },
2165
+ {
2166
+ "name": "debtProductSnapshotBytes",
2167
+ "type": "u128"
2168
+ },
2169
+ {
2170
+ "name": "collateralAccumulatorSnapshotBytes",
2171
+ "type": "u128"
2172
+ },
2173
+ {
2174
+ "name": "debtType",
2175
+ "type": {
2176
+ "defined": "CurrencyType"
2177
+ }
2178
+ },
2179
+ {
2180
+ "name": "vaultStatus",
2181
+ "type": {
2182
+ "defined": "VaultStatus"
2183
+ }
2184
+ },
2185
+ {
2186
+ "name": "timeCreated",
2187
+ "type": "u64"
2188
+ },
2189
+ {
2190
+ "name": "timeLastInteraction",
2191
+ "type": "u64"
2192
+ },
2193
+ {
2194
+ "name": "nextVaultToRedeem",
2195
+ "type": {
2196
+ "option": "publicKey"
2197
+ }
2198
+ }
2199
+ ]
2200
+ }
2201
2201
  }
2202
2202
  ],
2203
2203
  "types": [
@@ -4368,68 +4368,6 @@ export const IDL: Vault = {
4368
4368
  ]
4369
4369
  }
4370
4370
  },
4371
- {
4372
- "name": "stakingPool",
4373
- "type": {
4374
- "kind": "struct",
4375
- "fields": [
4376
- {
4377
- "name": "halfLifeInDays",
4378
- "type": "u64"
4379
- },
4380
- {
4381
- "name": "deposits",
4382
- "type": "u64"
4383
- },
4384
- {
4385
- "name": "startTime",
4386
- "type": "u64"
4387
- },
4388
- {
4389
- "name": "lastTransactionTime",
4390
- "type": "u64"
4391
- },
4392
- {
4393
- "name": "hedgeRewardAccumulator",
4394
- "type": "u128"
4395
- },
4396
- {
4397
- "name": "ushFeeAccumulator",
4398
- "type": "u128"
4399
- },
4400
- {
4401
- "name": "totalHedgeReward",
4402
- "type": "u64"
4403
- },
4404
- {
4405
- "name": "stakedTokenMint",
4406
- "type": "publicKey"
4407
- },
4408
- {
4409
- "name": "seedPhrase",
4410
- "type": {
4411
- "array": [
4412
- "u8",
4413
- 12
4414
- ]
4415
- }
4416
- },
4417
- {
4418
- "name": "collateralFeeAccumulator",
4419
- "type": {
4420
- "array": [
4421
- "u128",
4422
- 32
4423
- ]
4424
- }
4425
- },
4426
- {
4427
- "name": "bump",
4428
- "type": "u8"
4429
- }
4430
- ]
4431
- }
4432
- },
4433
4371
  {
4434
4372
  "name": "stakingPoolPosition",
4435
4373
  "type": {
@@ -4495,75 +4433,63 @@ export const IDL: Vault = {
4495
4433
  }
4496
4434
  },
4497
4435
  {
4498
- "name": "vault",
4436
+ "name": "stakingPool",
4499
4437
  "type": {
4500
4438
  "kind": "struct",
4501
4439
  "fields": [
4502
4440
  {
4503
- "name": "vaultOwner",
4504
- "type": "publicKey"
4505
- },
4506
- {
4507
- "name": "vaultNumber",
4441
+ "name": "halfLifeInDays",
4508
4442
  "type": "u64"
4509
4443
  },
4510
4444
  {
4511
- "name": "deposited",
4445
+ "name": "deposits",
4512
4446
  "type": "u64"
4513
4447
  },
4514
4448
  {
4515
- "name": "denormalizedDebt",
4449
+ "name": "startTime",
4516
4450
  "type": "u64"
4517
4451
  },
4518
4452
  {
4519
- "name": "collateralType",
4520
- "type": "string"
4453
+ "name": "lastTransactionTime",
4454
+ "type": "u64"
4521
4455
  },
4522
4456
  {
4523
- "name": "pdaSalt",
4524
- "type": "string"
4457
+ "name": "hedgeRewardAccumulator",
4458
+ "type": "u128"
4525
4459
  },
4526
4460
  {
4527
- "name": "bump",
4528
- "type": "u8"
4461
+ "name": "ushFeeAccumulator",
4462
+ "type": "u128"
4529
4463
  },
4530
4464
  {
4531
- "name": "vaultVersion",
4465
+ "name": "totalHedgeReward",
4532
4466
  "type": "u64"
4533
4467
  },
4534
4468
  {
4535
- "name": "debtProductSnapshotBytes",
4536
- "type": "u128"
4537
- },
4538
- {
4539
- "name": "collateralAccumulatorSnapshotBytes",
4540
- "type": "u128"
4469
+ "name": "stakedTokenMint",
4470
+ "type": "publicKey"
4541
4471
  },
4542
4472
  {
4543
- "name": "debtType",
4473
+ "name": "seedPhrase",
4544
4474
  "type": {
4545
- "defined": "CurrencyType"
4475
+ "array": [
4476
+ "u8",
4477
+ 12
4478
+ ]
4546
4479
  }
4547
4480
  },
4548
4481
  {
4549
- "name": "vaultStatus",
4482
+ "name": "collateralFeeAccumulator",
4550
4483
  "type": {
4551
- "defined": "VaultStatus"
4484
+ "array": [
4485
+ "u128",
4486
+ 32
4487
+ ]
4552
4488
  }
4553
4489
  },
4554
4490
  {
4555
- "name": "timeCreated",
4556
- "type": "u64"
4557
- },
4558
- {
4559
- "name": "timeLastInteraction",
4560
- "type": "u64"
4561
- },
4562
- {
4563
- "name": "nextVaultToRedeem",
4564
- "type": {
4565
- "option": "publicKey"
4566
- }
4491
+ "name": "bump",
4492
+ "type": "u8"
4567
4493
  }
4568
4494
  ]
4569
4495
  }
@@ -4769,6 +4695,80 @@ export const IDL: Vault = {
4769
4695
  }
4770
4696
  ]
4771
4697
  }
4698
+ },
4699
+ {
4700
+ "name": "vault",
4701
+ "type": {
4702
+ "kind": "struct",
4703
+ "fields": [
4704
+ {
4705
+ "name": "vaultOwner",
4706
+ "type": "publicKey"
4707
+ },
4708
+ {
4709
+ "name": "vaultNumber",
4710
+ "type": "u64"
4711
+ },
4712
+ {
4713
+ "name": "deposited",
4714
+ "type": "u64"
4715
+ },
4716
+ {
4717
+ "name": "denormalizedDebt",
4718
+ "type": "u64"
4719
+ },
4720
+ {
4721
+ "name": "collateralType",
4722
+ "type": "string"
4723
+ },
4724
+ {
4725
+ "name": "pdaSalt",
4726
+ "type": "string"
4727
+ },
4728
+ {
4729
+ "name": "bump",
4730
+ "type": "u8"
4731
+ },
4732
+ {
4733
+ "name": "vaultVersion",
4734
+ "type": "u64"
4735
+ },
4736
+ {
4737
+ "name": "debtProductSnapshotBytes",
4738
+ "type": "u128"
4739
+ },
4740
+ {
4741
+ "name": "collateralAccumulatorSnapshotBytes",
4742
+ "type": "u128"
4743
+ },
4744
+ {
4745
+ "name": "debtType",
4746
+ "type": {
4747
+ "defined": "CurrencyType"
4748
+ }
4749
+ },
4750
+ {
4751
+ "name": "vaultStatus",
4752
+ "type": {
4753
+ "defined": "VaultStatus"
4754
+ }
4755
+ },
4756
+ {
4757
+ "name": "timeCreated",
4758
+ "type": "u64"
4759
+ },
4760
+ {
4761
+ "name": "timeLastInteraction",
4762
+ "type": "u64"
4763
+ },
4764
+ {
4765
+ "name": "nextVaultToRedeem",
4766
+ "type": {
4767
+ "option": "publicKey"
4768
+ }
4769
+ }
4770
+ ]
4771
+ }
4772
4772
  }
4773
4773
  ],
4774
4774
  "types": [
package/src/index.ts CHANGED
@@ -31,3 +31,4 @@ export * from './state/LiquidationPoolState'
31
31
  export * from './state/LiquidationPosition'
32
32
 
33
33
  export * from './utils/getLinkedListAccounts'
34
+ export * from './idl/vault'
@@ -1,11 +1,25 @@
1
1
  import { Program, Provider } from '@project-serum/anchor'
2
2
  import { ASSOCIATED_TOKEN_PROGRAM_ID, getOrCreateAssociatedTokenAccount, TOKEN_PROGRAM_ID } from '@solana/spl-token'
3
- import { PublicKey, sendAndConfirmTransaction, Signer, SystemProgram, SYSVAR_RENT_PUBKEY, Transaction, TransactionInstruction } from '@solana/web3.js'
3
+ import {
4
+ PublicKey,
5
+ sendAndConfirmTransaction,
6
+ Signer,
7
+ SystemProgram,
8
+ SYSVAR_RENT_PUBKEY,
9
+ Transaction,
10
+ TransactionInstruction,
11
+ } from '@solana/web3.js'
4
12
  import { parseAnchorErrors } from '../utils/Errors'
5
- import { findAssociatedTokenAddress, getVaultTypeAccountPublicKey, getLiquidationPoolStatePublicKey, getVaultSystemStatePublicKey } from '../Constants'
13
+ import {
14
+ findAssociatedTokenAddress,
15
+ getVaultTypeAccountPublicKey,
16
+ getLiquidationPoolStatePublicKey,
17
+ getVaultSystemStatePublicKey,
18
+ } from '../Constants'
19
+ import { Vault } from 'idl/vault'
6
20
 
7
- export async function claimLiquidationPoolPosition (
8
- program: Program,
21
+ export async function claimLiquidationPoolPosition(
22
+ program: Program<Vault>,
9
23
  provider: Provider,
10
24
  poolPosition: PublicKey,
11
25
  payer: Signer,
@@ -14,14 +28,14 @@ export async function claimLiquidationPoolPosition (
14
28
  ): Promise<PublicKey> {
15
29
  const vaultTypeAccountPublicKey = await getVaultTypeAccountPublicKey(collateralType)
16
30
  const vaultTypeAccountInfo = await program.account.vaultType.fetch(vaultTypeAccountPublicKey)
17
- const collateralMint = vaultTypeAccountInfo.collateralMint
31
+ const collateralMintPublicKey = vaultTypeAccountInfo.collateralMint
18
32
 
19
33
  const poolStatePublicKey = await getLiquidationPoolStatePublicKey()
20
- const poolAssociatedTokenAccount = await findAssociatedTokenAddress(poolStatePublicKey, collateralMint)
34
+ const poolAssociatedTokenAccount = await findAssociatedTokenAddress(poolStatePublicKey, collateralMintPublicKey)
21
35
  const payerAssociatedTokenAccount = await getOrCreateAssociatedTokenAccount(
22
36
  provider.connection,
23
37
  payer,
24
- collateralMint,
38
+ collateralMintPublicKey,
25
39
  payer.publicKey
26
40
  )
27
41
 
@@ -31,19 +45,19 @@ export async function claimLiquidationPoolPosition (
31
45
  poolStatePublicKey,
32
46
  poolAssociatedTokenAccount,
33
47
  vaultTypeAccountPublicKey,
34
- collateralMint,
48
+ collateralMintPublicKey,
35
49
  poolPosition,
36
50
  payer.publicKey,
37
51
  payerAssociatedTokenAccount.address,
38
52
  overrideStartTime
39
53
  )
40
54
  )
41
- await sendAndConfirmTransaction(provider.connection, transaction, [payer], provider.opts).catch(parseAnchorErrors)
55
+ await sendAndConfirmTransaction(provider.connection, transaction, [payer]).catch(parseAnchorErrors)
42
56
  return payerAssociatedTokenAccount.address
43
57
  }
44
58
 
45
- export async function claimLiquidationPoolPositionInstruction (
46
- program: Program,
59
+ export async function claimLiquidationPoolPositionInstruction(
60
+ program: Program<Vault>,
47
61
  poolState: PublicKey,
48
62
  poolAssociatedTokenAccount: PublicKey,
49
63
  vaultTypeAccount: PublicKey,
@@ -55,22 +69,18 @@ export async function claimLiquidationPoolPositionInstruction (
55
69
  ): Promise<TransactionInstruction> {
56
70
  const vaultSystemState = await getVaultSystemStatePublicKey()
57
71
 
58
- return program.instruction.claimLiquidationPoolPosition(
59
- {
60
- accounts: {
61
- vaultSystemState: vaultSystemState,
62
- poolState: poolState,
63
- poolAssociatedTokenAccount: poolAssociatedTokenAccount,
64
- vaultTypeAccount: vaultTypeAccount,
65
- collateralMint: collateralMint,
66
- poolPosition: poolPosition,
67
- payer: payer,
68
- payerAssociatedTokenAccount: payerAssociatedTokenAccount,
69
- associatedTokenProgram: ASSOCIATED_TOKEN_PROGRAM_ID,
70
- tokenProgram: TOKEN_PROGRAM_ID,
71
- systemProgram: SystemProgram.programId,
72
- rent: SYSVAR_RENT_PUBKEY
73
- },
74
- signers: []
75
- })
72
+ return await program.methods.claimLiquidationPoolPosition().accounts({
73
+ vaultSystemState: vaultSystemState,
74
+ poolState: poolState,
75
+ poolAssociatedTokenAccount: poolAssociatedTokenAccount,
76
+ vaultTypeAccount: vaultTypeAccount,
77
+ collateralMint: collateralMint,
78
+ poolPosition: poolPosition,
79
+ payer: payer,
80
+ payerAssociatedTokenAccount: payerAssociatedTokenAccount,
81
+ associatedTokenProgram: ASSOCIATED_TOKEN_PROGRAM_ID,
82
+ tokenProgram: TOKEN_PROGRAM_ID,
83
+ systemProgram: SystemProgram.programId,
84
+ rent: SYSVAR_RENT_PUBKEY,
85
+ }).instruction()
76
86
  }