hedge-web3 0.1.21 → 0.1.26
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/declarations/Constants.d.ts +3 -3
- package/declarations/idl/vault.d.ts +43 -43
- package/declarations/index.d.ts +1 -0
- package/declarations/instructions/claimStakingPoolPosition.d.ts +4 -0
- package/declarations/instructions/closeLiquidationPoolPosition.d.ts +1 -1
- package/declarations/instructions/createVault.d.ts +1 -1
- package/declarations/instructions/depositLiquidationPool.d.ts +1 -1
- package/declarations/instructions/depositVault.d.ts +1 -1
- package/declarations/instructions/liquidateVault.d.ts +1 -1
- package/declarations/instructions/loanVault.d.ts +1 -1
- package/declarations/instructions/redeemVault.d.ts +1 -1
- package/declarations/instructions/repayVault.d.ts +1 -1
- package/declarations/instructions/withdrawVault.d.ts +1 -1
- package/declarations/state/LiquidationPosition.d.ts +2 -2
- package/declarations/state/StakingPool.d.ts +2 -2
- package/declarations/state/StakingPoolPosition.d.ts +2 -2
- package/declarations/state/VaultAccount.d.ts +3 -3
- package/declarations/state/VaultHistoryEvent.d.ts +4 -4
- package/lib/Constants.js +8 -8
- package/lib/idl/idl.js +30 -30
- package/lib/idl/vault.js +43 -43
- package/lib/index.js +1 -0
- package/lib/instructions/claimStakingPoolPosition.js +55 -0
- package/lib/instructions/closeLiquidationPoolPosition.js +10 -10
- package/lib/instructions/createStakingPool.js +5 -5
- package/lib/instructions/createVault.js +12 -12
- package/lib/instructions/depositLiquidationPool.js +10 -10
- package/lib/instructions/depositStakingPool.js +1 -1
- package/lib/instructions/depositVault.js +8 -8
- package/lib/instructions/initHedgeFoundation.js +4 -4
- package/lib/instructions/liquidateVault.js +9 -9
- package/lib/instructions/loanVault.js +9 -9
- package/lib/instructions/redeemVault.js +10 -10
- package/lib/instructions/refreshOraclePrice.js +1 -1
- package/lib/instructions/repayVault.js +10 -10
- package/lib/instructions/withdrawStakingPool.js +7 -7
- package/lib/instructions/withdrawVault.js +8 -8
- package/lib/state/LiquidationPosition.js +2 -2
- package/lib/state/StakingPool.js +2 -2
- package/lib/state/StakingPoolPosition.js +3 -3
- package/lib/state/VaultAccount.js +2 -2
- package/lib/state/VaultHistoryEvent.js +4 -4
- package/package.json +9 -9
- package/src/Constants.ts +5 -5
- package/src/idl/idl.ts +30 -30
- package/src/idl/vault.ts +86 -86
- package/src/index.ts +1 -0
- package/src/instructions/claimStakingPoolPosition.ts +76 -0
- package/src/instructions/closeLiquidationPoolPosition.ts +11 -11
- package/src/instructions/createStakingPool.ts +6 -6
- package/src/instructions/createVault.ts +19 -18
- package/src/instructions/depositLiquidationPool.ts +11 -11
- package/src/instructions/depositStakingPool.ts +1 -1
- package/src/instructions/depositVault.ts +12 -12
- package/src/instructions/initHedgeFoundation.ts +5 -5
- package/src/instructions/initHedgeFoundationTokens.ts +1 -1
- package/src/instructions/liquidateVault.ts +10 -10
- package/src/instructions/loanVault.ts +11 -11
- package/src/instructions/redeemVault.ts +12 -12
- package/src/instructions/refreshOraclePrice.ts +1 -1
- package/src/instructions/repayVault.ts +12 -12
- package/src/instructions/setHalted.ts +1 -1
- package/src/instructions/withdrawStakingPool.ts +8 -8
- package/src/instructions/withdrawVault.ts +12 -12
- package/src/state/LiquidationPosition.ts +3 -3
- package/src/state/StakingPool.ts +4 -4
- package/src/state/StakingPoolPosition.ts +4 -4
- package/src/state/VaultAccount.ts +3 -3
- package/src/state/VaultHistoryEvent.ts +8 -8
@@ -17,9 +17,9 @@ const web3_js_1 = require("@solana/web3.js");
|
|
17
17
|
const Constants_1 = require("../Constants");
|
18
18
|
function withdrawVault(program, provider, payer, vaultPublicKey, withdrawAmount, overrideTime) {
|
19
19
|
return __awaiter(this, void 0, void 0, function* () {
|
20
|
-
const
|
21
|
-
// Prep the user to get
|
22
|
-
yield (0, spl_token_1.getOrCreateAssociatedTokenAccount)(provider.connection, payer,
|
20
|
+
const ushMintPublickey = yield (0, Constants_1.getUshMintPublicKey)();
|
21
|
+
// Prep the user to get USH back out at some point
|
22
|
+
yield (0, spl_token_1.getOrCreateAssociatedTokenAccount)(provider.connection, payer, ushMintPublickey, payer.publicKey);
|
23
23
|
const history = web3_js_1.Keypair.generate();
|
24
24
|
const vaultSystemStatePublicKey = yield (0, Constants_1.getVaultSystemStatePublicKey)();
|
25
25
|
const vaultAccount = yield program.account.vault.fetch(vaultPublicKey);
|
@@ -29,14 +29,14 @@ function withdrawVault(program, provider, payer, vaultPublicKey, withdrawAmount,
|
|
29
29
|
const vaultTypeAssociatedTokenAccount = yield (0, spl_token_1.getOrCreateAssociatedTokenAccount)(provider.connection, payer, vaultTypeAccountInfo.collateralMint, vaultTypeAccount, true);
|
30
30
|
const destinationTokenAccount = yield (0, spl_token_1.getOrCreateAssociatedTokenAccount)(provider.connection, payer, vaultTypeAccountInfo.collateralMint, payer.publicKey);
|
31
31
|
const [hedgeStakingPoolPublicKey] = yield (0, Constants_1.getPoolPublicKeyForMint)(yield (0, Constants_1.getHedgeMintPublicKey)());
|
32
|
-
const
|
33
|
-
const transaction = new web3_js_1.Transaction().add(yield withdrawVaultInstruction(program, vaultSystemStatePublicKey, payer.publicKey, destinationTokenAccount.address, vaultPublicKey, vaultAssociatedCollateralAccount.address, vaultTypeAccount, vaultTypeAssociatedTokenAccount.address, hedgeStakingPoolPublicKey,
|
32
|
+
const hedgeStakingPoolAssociatedUshTokenAccount = yield (0, Constants_1.findAssociatedTokenAddress)(hedgeStakingPoolPublicKey, ushMintPublickey);
|
33
|
+
const transaction = new web3_js_1.Transaction().add(yield withdrawVaultInstruction(program, vaultSystemStatePublicKey, payer.publicKey, destinationTokenAccount.address, vaultPublicKey, vaultAssociatedCollateralAccount.address, vaultTypeAccount, vaultTypeAssociatedTokenAccount.address, hedgeStakingPoolPublicKey, hedgeStakingPoolAssociatedUshTokenAccount, ushMintPublickey, history.publicKey, withdrawAmount, overrideTime));
|
34
34
|
yield (0, web3_js_1.sendAndConfirmTransaction)(provider.connection, transaction, [payer, history], provider.opts);
|
35
35
|
return vaultPublicKey;
|
36
36
|
});
|
37
37
|
}
|
38
38
|
exports.withdrawVault = withdrawVault;
|
39
|
-
function withdrawVaultInstruction(program, vaultSystemStatePublicKey, payerPublicKey, destinationTokenAccount, vaultPublickey, vaultAssociatedCollateralPublicKey, vaultTypeAccount, vaultTypeAssociatedTokenAccount, hedgeStakingPoolPublicKey,
|
39
|
+
function withdrawVaultInstruction(program, vaultSystemStatePublicKey, payerPublicKey, destinationTokenAccount, vaultPublickey, vaultAssociatedCollateralPublicKey, vaultTypeAccount, vaultTypeAssociatedTokenAccount, hedgeStakingPoolPublicKey, hedgeStakingPoolAssociatedUshTokenAccount, ushMint, historyPublicKey, withdrawAmount, overrideTime) {
|
40
40
|
return __awaiter(this, void 0, void 0, function* () {
|
41
41
|
return program.instruction.withdrawVault(new anchor_1.BN(withdrawAmount), new anchor_1.BN(overrideTime !== null && overrideTime !== void 0 ? overrideTime : Math.floor(Date.now() / 1000)), // override override time
|
42
42
|
{
|
@@ -47,8 +47,8 @@ function withdrawVaultInstruction(program, vaultSystemStatePublicKey, payerPubli
|
|
47
47
|
vault: vaultPublickey,
|
48
48
|
vaultAssociatedTokenAccount: vaultAssociatedCollateralPublicKey,
|
49
49
|
feePool: hedgeStakingPoolPublicKey,
|
50
|
-
|
51
|
-
|
50
|
+
feePoolAssociatedUshTokenAccount: hedgeStakingPoolAssociatedUshTokenAccount,
|
51
|
+
ushMint: ushMint,
|
52
52
|
history: historyPublicKey,
|
53
53
|
vaultOwner: payerPublicKey,
|
54
54
|
destinationTokenAccount: destinationTokenAccount,
|
@@ -12,7 +12,7 @@ class LiquidationPosition {
|
|
12
12
|
this.eraPublicKey = poolPositionInfo.era;
|
13
13
|
this.ownerAccount = poolPositionInfo.ownerAccount;
|
14
14
|
this.deposit = poolPositionInfo.deposit.toNumber();
|
15
|
-
this.
|
15
|
+
this.closedUsh = poolPositionInfo.closedUsh.toNumber();
|
16
16
|
this.timestampOpened = poolPositionInfo.timestampOpened.toNumber();
|
17
17
|
this.timestampClosed = poolPositionInfo.timestampClosed.toNumber();
|
18
18
|
this.productSnapshotEntry = (0, HedgeDecimal_1.DecimalFromU128)(poolPositionInfo.productSnapshotEntry);
|
@@ -23,7 +23,7 @@ class LiquidationPosition {
|
|
23
23
|
this.open = poolPositionInfo.state === 1;
|
24
24
|
console.log("poolPositionInfo.state, poolPositionInfo.state");
|
25
25
|
}
|
26
|
-
|
26
|
+
getUshAvailable(era) {
|
27
27
|
return (era.product.div(this.productSnapshotEntry)).mul(new decimal_js_1.default(this.deposit));
|
28
28
|
}
|
29
29
|
getTokensAvailable(era, index) {
|
package/lib/state/StakingPool.js
CHANGED
@@ -14,8 +14,8 @@ class StakingPool {
|
|
14
14
|
this.halfLifeInDays = poolInfo.halfLifeInDays.toNumber();
|
15
15
|
this.totalHedgeReward = poolInfo.totalHedgeReward.toNumber();
|
16
16
|
this.hedgeRewardAccumulator = (0, HedgeDecimal_1.DecimalFromU128)(poolInfo.hedgeRewardAccumulator);
|
17
|
-
this.
|
18
|
-
this.
|
17
|
+
this.ushFeeAccumulator = (0, HedgeDecimal_1.DecimalFromU128)(poolInfo.ushFeeAccumulator);
|
18
|
+
this.collateralFeeAccumulator = poolInfo.collateralFeeAccumulator.map((sum) => { return (0, HedgeDecimal_1.DecimalFromU128)(sum); });
|
19
19
|
// this.currentRewardsPerDay = DecimalFromU128(poolInfo.currentRewardsPerDay)
|
20
20
|
}
|
21
21
|
}
|
@@ -17,12 +17,12 @@ class StakingPoolPosition {
|
|
17
17
|
this.timestampClosed = poolPositionInfo.timestampClosed.toNumber();
|
18
18
|
this.closedRewardedTokens = poolPositionInfo.closedRewardedTokens.toNumber();
|
19
19
|
this.startHedgeRewardAccumulator = (0, HedgeDecimal_1.DecimalFromU128)(poolPositionInfo.startHedgeRewardAccumulator);
|
20
|
-
this.
|
20
|
+
this.startUshFeeAccumulator = (0, HedgeDecimal_1.DecimalFromU128)(poolPositionInfo.startUshFeeAccumulator);
|
21
21
|
this.startSolFeeAccumulator = (0, HedgeDecimal_1.DecimalFromU128)(poolPositionInfo.startSolFeeAccumulator);
|
22
22
|
this.open = poolPositionInfo.state.open !== undefined;
|
23
23
|
}
|
24
|
-
|
25
|
-
return this.pool.
|
24
|
+
getCurrentUshFeeReward() {
|
25
|
+
return this.pool.ushFeeAccumulator.minus(this.startUshFeeAccumulator).times(new decimal_js_1.default(this.deposited));
|
26
26
|
}
|
27
27
|
}
|
28
28
|
exports.StakingPoolPosition = StakingPoolPosition;
|
@@ -36,9 +36,9 @@ class VaultAccount {
|
|
36
36
|
return this.deposited / web3_js_1.LAMPORTS_PER_SOL;
|
37
37
|
}
|
38
38
|
/**
|
39
|
-
* Get the debt value in
|
39
|
+
* Get the debt value in USH
|
40
40
|
*
|
41
|
-
* @returns debt value in
|
41
|
+
* @returns debt value in USH
|
42
42
|
*/
|
43
43
|
inUsd() {
|
44
44
|
return this.denormalizedDebt / web3_js_1.LAMPORTS_PER_SOL;
|
@@ -8,10 +8,10 @@ class VaultHistoryEvent {
|
|
8
8
|
this.publicKey = publicKey;
|
9
9
|
this.actorAccount = account.actorAccount;
|
10
10
|
this.usdSolPrice = (0, HedgeDecimal_1.DecimalFromU128)(account.usdSolPrice.toString());
|
11
|
-
this.
|
12
|
-
this.
|
13
|
-
this.
|
14
|
-
this.
|
11
|
+
this.ushDebtBefore = account.ushDebtBefore.toNumber();
|
12
|
+
this.ushDebtAfter = account.ushDebtAfter.toNumber();
|
13
|
+
this.collateralBalanceBefore = account.collateralBalanceBefore.toNumber();
|
14
|
+
this.collateralBalanceAfter = account.collateralBalanceAfter.toNumber();
|
15
15
|
this.minCollateralRatioBefore = (0, HedgeDecimal_1.DecimalFromU128)(account.minCollateralRatioBefore);
|
16
16
|
this.minCollateralRatioAfter = (0, HedgeDecimal_1.DecimalFromU128)(account.minCollateralRatioAfter);
|
17
17
|
this.vaultStateBefore = account.vaultStateBefore;
|
package/package.json
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
{
|
2
2
|
"name": "hedge-web3",
|
3
|
-
"version": "0.1.
|
3
|
+
"version": "0.1.26",
|
4
4
|
"description": "Hedge Javascript Web3 API",
|
5
5
|
"main": "lib/index.js",
|
6
|
+
"types": "declarations/index.d.ts",
|
6
7
|
"scripts": {
|
7
8
|
"build": "tsc",
|
8
9
|
"dev": "tsc --watch",
|
@@ -12,21 +13,20 @@
|
|
12
13
|
},
|
13
14
|
"author": "Chris Coudron <coudron@hedge.so>",
|
14
15
|
"license": "ISC",
|
15
|
-
"devDependencies": {
|
16
|
-
"@rollup/plugin-typescript": "^8.3.0",
|
17
|
-
"rollup": "^2.62.0",
|
18
|
-
"ts-standard": "^11.0.0",
|
19
|
-
"typedoc": "^0.22.10"
|
20
|
-
},
|
21
16
|
"dependencies": {
|
22
|
-
"@project-serum/anchor": "^0.
|
17
|
+
"@project-serum/anchor": "^0.23.0",
|
23
18
|
"@project-serum/serum": "^0.13.61",
|
19
|
+
"@rollup/plugin-typescript": "^8.3.0",
|
24
20
|
"@solana/buffer-layout": "^4.0.0",
|
25
21
|
"@solana/spl-token": "^0.2.0",
|
26
|
-
"@solana/web3.js": "^1.
|
22
|
+
"@solana/web3.js": "^1.37.0",
|
23
|
+
"@types/bn.js": "^5.1.0",
|
27
24
|
"@types/uuid": "^8.3.4",
|
28
25
|
"bn.js": "^5.2.0",
|
29
26
|
"decimal.js": "^10.3.1",
|
27
|
+
"rollup": "^2.62.0",
|
28
|
+
"ts-standard": "^11.0.0",
|
29
|
+
"typedoc": "^0.22.10",
|
30
30
|
"typescript": "^4.5.5",
|
31
31
|
"uuid": "^8.3.2"
|
32
32
|
}
|
package/src/Constants.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { ASSOCIATED_TOKEN_PROGRAM_ID, TOKEN_PROGRAM_ID } from '@solana/spl-token'
|
2
2
|
import { PublicKey } from '@solana/web3.js'
|
3
3
|
|
4
|
-
export const HEDGE_PROGRAM_ID = '
|
4
|
+
export const HEDGE_PROGRAM_ID = 'HDG1wzAC1G1XEHRBoQZGJBW4rVmxLZrPbk5ZHRxPWbXi'
|
5
5
|
export const HEDGE_PROGRAM_PUBLICKEY = new PublicKey(HEDGE_PROGRAM_ID)
|
6
6
|
|
7
7
|
export const CHAINLINK_SOL_USD_ID = 'FmAmfoyPXiA8Vhhe6MZTr3U6rZfEZ1ctEHay1ysqCqcf'
|
@@ -14,13 +14,13 @@ export async function getLiquidationPoolStatePublicKey (): Promise<PublicKey> {
|
|
14
14
|
return poolPublicKey
|
15
15
|
}
|
16
16
|
|
17
|
-
export async function
|
18
|
-
const [poolPublicKey] = await PublicKey.findProgramAddress([enc.encode('
|
17
|
+
export async function getLiquidationPoolUshAccountPublicKey (): Promise<PublicKey> {
|
18
|
+
const [poolPublicKey] = await PublicKey.findProgramAddress([enc.encode('LiquidationPoolUSHAccountV1')], HEDGE_PROGRAM_PUBLICKEY)
|
19
19
|
return poolPublicKey
|
20
20
|
}
|
21
21
|
|
22
|
-
export async function
|
23
|
-
const [findMintPublicKey] = await PublicKey.findProgramAddress([enc.encode('
|
22
|
+
export async function getUshMintPublicKey (): Promise<PublicKey> {
|
23
|
+
const [findMintPublicKey] = await PublicKey.findProgramAddress([enc.encode('UshMintV1')], HEDGE_PROGRAM_PUBLICKEY)
|
24
24
|
return findMintPublicKey
|
25
25
|
}
|
26
26
|
|
package/src/idl/idl.ts
CHANGED
@@ -23,7 +23,7 @@ export const vaultIdl: Idl = {
|
|
23
23
|
isSigner: true
|
24
24
|
},
|
25
25
|
{
|
26
|
-
name: '
|
26
|
+
name: 'poolUshAccount',
|
27
27
|
isMut: true,
|
28
28
|
isSigner: false
|
29
29
|
},
|
@@ -33,7 +33,7 @@ export const vaultIdl: Idl = {
|
|
33
33
|
isSigner: true
|
34
34
|
},
|
35
35
|
{
|
36
|
-
name: '
|
36
|
+
name: 'ushMint',
|
37
37
|
isMut: true,
|
38
38
|
isSigner: false
|
39
39
|
},
|
@@ -118,7 +118,7 @@ export const vaultIdl: Idl = {
|
|
118
118
|
isSigner: false
|
119
119
|
},
|
120
120
|
{
|
121
|
-
name: '
|
121
|
+
name: 'ushMint',
|
122
122
|
isMut: false,
|
123
123
|
isSigner: false
|
124
124
|
},
|
@@ -128,7 +128,7 @@ export const vaultIdl: Idl = {
|
|
128
128
|
isSigner: false
|
129
129
|
},
|
130
130
|
{
|
131
|
-
name: '
|
131
|
+
name: 'poolAssociatedUshTokenAccount',
|
132
132
|
isMut: true,
|
133
133
|
isSigner: false
|
134
134
|
},
|
@@ -256,7 +256,7 @@ export const vaultIdl: Idl = {
|
|
256
256
|
isSigner: false
|
257
257
|
},
|
258
258
|
{
|
259
|
-
name: '
|
259
|
+
name: 'ushMint',
|
260
260
|
isMut: false,
|
261
261
|
isSigner: false
|
262
262
|
},
|
@@ -271,7 +271,7 @@ export const vaultIdl: Idl = {
|
|
271
271
|
isSigner: false
|
272
272
|
},
|
273
273
|
{
|
274
|
-
name: '
|
274
|
+
name: 'payerAssociatedUshAccount',
|
275
275
|
isMut: true,
|
276
276
|
isSigner: false
|
277
277
|
},
|
@@ -281,7 +281,7 @@ export const vaultIdl: Idl = {
|
|
281
281
|
isSigner: false
|
282
282
|
},
|
283
283
|
{
|
284
|
-
name: '
|
284
|
+
name: 'poolAssociatedUshTokenAccount',
|
285
285
|
isMut: true,
|
286
286
|
isSigner: false
|
287
287
|
},
|
@@ -448,12 +448,12 @@ export const vaultIdl: Idl = {
|
|
448
448
|
isSigner: false
|
449
449
|
},
|
450
450
|
{
|
451
|
-
name: '
|
451
|
+
name: 'feePoolAssociatedUshTokenAccount',
|
452
452
|
isMut: true,
|
453
453
|
isSigner: false
|
454
454
|
},
|
455
455
|
{
|
456
|
-
name: '
|
456
|
+
name: 'ushMint',
|
457
457
|
isMut: true,
|
458
458
|
isSigner: false
|
459
459
|
},
|
@@ -463,7 +463,7 @@ export const vaultIdl: Idl = {
|
|
463
463
|
isSigner: true
|
464
464
|
},
|
465
465
|
{
|
466
|
-
name: '
|
466
|
+
name: 'ownerUshAccount',
|
467
467
|
isMut: true,
|
468
468
|
isSigner: false
|
469
469
|
},
|
@@ -513,7 +513,7 @@ export const vaultIdl: Idl = {
|
|
513
513
|
isSigner: true
|
514
514
|
},
|
515
515
|
{
|
516
|
-
name: '
|
516
|
+
name: 'ushMint',
|
517
517
|
isMut: true,
|
518
518
|
isSigner: false
|
519
519
|
},
|
@@ -523,7 +523,7 @@ export const vaultIdl: Idl = {
|
|
523
523
|
isSigner: true
|
524
524
|
},
|
525
525
|
{
|
526
|
-
name: '
|
526
|
+
name: 'ownerUshAccount',
|
527
527
|
isMut: true,
|
528
528
|
isSigner: false
|
529
529
|
},
|
@@ -564,7 +564,7 @@ export const vaultIdl: Idl = {
|
|
564
564
|
isSigner: true
|
565
565
|
},
|
566
566
|
{
|
567
|
-
name: '
|
567
|
+
name: 'ushMint',
|
568
568
|
isMut: true,
|
569
569
|
isSigner: false
|
570
570
|
},
|
@@ -574,7 +574,7 @@ export const vaultIdl: Idl = {
|
|
574
574
|
isSigner: false
|
575
575
|
},
|
576
576
|
{
|
577
|
-
name: '
|
577
|
+
name: 'feePoolAssociatedUshTokenAccount',
|
578
578
|
isMut: true,
|
579
579
|
isSigner: false
|
580
580
|
},
|
@@ -584,7 +584,7 @@ export const vaultIdl: Idl = {
|
|
584
584
|
isSigner: true
|
585
585
|
},
|
586
586
|
{
|
587
|
-
name: '
|
587
|
+
name: 'payerUshAccount',
|
588
588
|
isMut: true,
|
589
589
|
isSigner: false
|
590
590
|
},
|
@@ -606,7 +606,7 @@ export const vaultIdl: Idl = {
|
|
606
606
|
],
|
607
607
|
args: [
|
608
608
|
{
|
609
|
-
name: '
|
609
|
+
name: 'redeemPayUsh',
|
610
610
|
type: 'u64'
|
611
611
|
},
|
612
612
|
{
|
@@ -628,7 +628,7 @@ export const vaultIdl: Idl = {
|
|
628
628
|
isSigner: false
|
629
629
|
},
|
630
630
|
{
|
631
|
-
name: '
|
631
|
+
name: 'poolUshAccount',
|
632
632
|
isMut: true,
|
633
633
|
isSigner: false
|
634
634
|
},
|
@@ -648,7 +648,7 @@ export const vaultIdl: Idl = {
|
|
648
648
|
isSigner: true
|
649
649
|
},
|
650
650
|
{
|
651
|
-
name: '
|
651
|
+
name: 'ownerUshAccount',
|
652
652
|
isMut: true,
|
653
653
|
isSigner: false
|
654
654
|
},
|
@@ -698,12 +698,12 @@ export const vaultIdl: Idl = {
|
|
698
698
|
isSigner: false
|
699
699
|
},
|
700
700
|
{
|
701
|
-
name: '
|
701
|
+
name: 'poolUshAccount',
|
702
702
|
isMut: true,
|
703
703
|
isSigner: false
|
704
704
|
},
|
705
705
|
{
|
706
|
-
name: '
|
706
|
+
name: 'ushMint',
|
707
707
|
isMut: true,
|
708
708
|
isSigner: false
|
709
709
|
},
|
@@ -769,7 +769,7 @@ export const vaultIdl: Idl = {
|
|
769
769
|
isSigner: false
|
770
770
|
},
|
771
771
|
{
|
772
|
-
name: '
|
772
|
+
name: 'poolUshAccount',
|
773
773
|
isMut: true,
|
774
774
|
isSigner: false
|
775
775
|
},
|
@@ -779,7 +779,7 @@ export const vaultIdl: Idl = {
|
|
779
779
|
isSigner: true
|
780
780
|
},
|
781
781
|
{
|
782
|
-
name: '
|
782
|
+
name: 'ownerUshAccount',
|
783
783
|
isMut: true,
|
784
784
|
isSigner: false
|
785
785
|
},
|
@@ -845,7 +845,7 @@ export const vaultIdl: Idl = {
|
|
845
845
|
type: 'u128'
|
846
846
|
},
|
847
847
|
{
|
848
|
-
name: '
|
848
|
+
name: 'ushFeeAccumulator',
|
849
849
|
type: 'u128'
|
850
850
|
},
|
851
851
|
{
|
@@ -903,7 +903,7 @@ export const vaultIdl: Idl = {
|
|
903
903
|
type: 'u128'
|
904
904
|
},
|
905
905
|
{
|
906
|
-
name: '
|
906
|
+
name: 'startUshFeeAccumulator',
|
907
907
|
type: 'u128'
|
908
908
|
},
|
909
909
|
{
|
@@ -943,7 +943,7 @@ export const vaultIdl: Idl = {
|
|
943
943
|
type: 'u64'
|
944
944
|
},
|
945
945
|
{
|
946
|
-
name: '
|
946
|
+
name: 'totalUshSupply',
|
947
947
|
type: 'u64'
|
948
948
|
},
|
949
949
|
{
|
@@ -979,7 +979,7 @@ export const vaultIdl: Idl = {
|
|
979
979
|
type: 'u8'
|
980
980
|
},
|
981
981
|
{
|
982
|
-
name: '
|
982
|
+
name: 'bumpUshPoolAccount',
|
983
983
|
type: 'u8'
|
984
984
|
},
|
985
985
|
{
|
@@ -1081,11 +1081,11 @@ export const vaultIdl: Idl = {
|
|
1081
1081
|
type: 'u128'
|
1082
1082
|
},
|
1083
1083
|
{
|
1084
|
-
name: '
|
1084
|
+
name: 'ushDebtBefore',
|
1085
1085
|
type: 'u64'
|
1086
1086
|
},
|
1087
1087
|
{
|
1088
|
-
name: '
|
1088
|
+
name: 'ushDebtAfter',
|
1089
1089
|
type: 'u64'
|
1090
1090
|
},
|
1091
1091
|
{
|
@@ -1229,7 +1229,7 @@ export const vaultIdl: Idl = {
|
|
1229
1229
|
type: 'u64'
|
1230
1230
|
},
|
1231
1231
|
{
|
1232
|
-
name: '
|
1232
|
+
name: 'closedUsh',
|
1233
1233
|
type: 'u64'
|
1234
1234
|
},
|
1235
1235
|
{
|
@@ -1369,7 +1369,7 @@ export const vaultIdl: Idl = {
|
|
1369
1369
|
name: 'Solana'
|
1370
1370
|
},
|
1371
1371
|
{
|
1372
|
-
name: '
|
1372
|
+
name: 'Ush'
|
1373
1373
|
}
|
1374
1374
|
]
|
1375
1375
|
}
|