@zebec-network/solana-payroll-sdk 2.1.0 → 2.1.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.
- package/dist/instructions.d.ts +0 -1
- package/dist/instructions.js +0 -1
- package/dist/services.js +1 -3
- package/dist/types.d.ts +0 -1
- package/package.json +2 -2
package/dist/instructions.d.ts
CHANGED
|
@@ -121,7 +121,6 @@ export declare function createYieldDepositInstruction(program: Program<ZebecPayr
|
|
|
121
121
|
amount: BN;
|
|
122
122
|
}): Promise<TransactionInstruction>;
|
|
123
123
|
export declare function createUnlockNowInstruction(program: Program<ZebecPayrollIdl>, accounts: {
|
|
124
|
-
admin: PublicKey;
|
|
125
124
|
feePayer: PublicKey;
|
|
126
125
|
company: PublicKey;
|
|
127
126
|
companyDeposit: PublicKey;
|
package/dist/instructions.js
CHANGED
|
@@ -165,7 +165,6 @@ export async function createUnlockNowInstruction(program, accounts) {
|
|
|
165
165
|
return program.methods
|
|
166
166
|
.unlockNow()
|
|
167
167
|
.accountsPartial({
|
|
168
|
-
admin: accounts.admin,
|
|
169
168
|
feePayer: accounts.feePayer,
|
|
170
169
|
company: accounts.company,
|
|
171
170
|
companyDeposit: accounts.companyDeposit,
|
package/dist/services.js
CHANGED
|
@@ -572,17 +572,15 @@ export async function yieldDeposit(payrollProgram, params) {
|
|
|
572
572
|
return createPayload(payrollProgram, company, [ix]);
|
|
573
573
|
}
|
|
574
574
|
export async function unlockNow(payrollProgram, params) {
|
|
575
|
-
const admin = translateAddress(params.admin);
|
|
576
575
|
const company = translateAddress(params.company);
|
|
577
576
|
const usdtMint = translateAddress(params.usdtMint);
|
|
578
|
-
const feePayer = params.feePayer ? translateAddress(params.feePayer) :
|
|
577
|
+
const feePayer = params.feePayer ? translateAddress(params.feePayer) : company;
|
|
579
578
|
const [companyDeposit] = deriveCompanyDepositPda(company, payrollProgram.programId);
|
|
580
579
|
const [yieldConfig] = deriveYieldConfigPda(payrollProgram.programId);
|
|
581
580
|
const [vault] = deriveYieldVaultPda(payrollProgram.programId);
|
|
582
581
|
const vaultUsdtAta = getAssociatedTokenAddressSync(usdtMint, vault, true);
|
|
583
582
|
const companyUsdtAta = getAssociatedTokenAddressSync(usdtMint, company, true);
|
|
584
583
|
const ix = await createUnlockNowInstruction(payrollProgram, {
|
|
585
|
-
admin,
|
|
586
584
|
feePayer,
|
|
587
585
|
company,
|
|
588
586
|
companyDeposit,
|
package/dist/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"@zebec-network/core-utils": "^1.2.0",
|
|
12
12
|
"@zebec-network/solana-common": "^2.6.0",
|
|
13
13
|
"@zebec-network/zebec_configs": "^1.1.1",
|
|
14
|
-
"@zebec-network/zebec_payroll": "^1.4.
|
|
14
|
+
"@zebec-network/zebec_payroll": "^1.4.1",
|
|
15
15
|
"bignumber.js": "^11.0.0"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
},
|
|
44
44
|
"type": "module",
|
|
45
45
|
"types": "dist/index.d.ts",
|
|
46
|
-
"version": "2.1.
|
|
46
|
+
"version": "2.1.1"
|
|
47
47
|
}
|