@everlend/general-pool
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -21,3 +21,4 @@ /// <reference types="node" /> | ||
export declare class WithdrawalRequests extends Account<WithdrawalRequestsData> { | ||
static readonly LEN = 73; | ||
static readonly LEN = 74; | ||
static readonly VERSION = "V0"; | ||
constructor(key: PublicKey, info: AccountInfo<Buffer>); | ||
@@ -24,0 +25,0 @@ static getPDA(poolMarket: PublicKey, tokenMint: PublicKey): Promise<PublicKey>; |
@@ -15,2 +15,3 @@ "use strict"; | ||
['accountType', 'u8'], | ||
['accountVersion', 'u8'], | ||
['pool', 'publicKey'], | ||
@@ -30,3 +31,3 @@ ['mint', 'publicKey'], | ||
return program_1.GeneralPoolsProgram.findProgramAddress([ | ||
buffer_1.Buffer.from('withdrawals'), | ||
buffer_1.Buffer.from(`withdrawals${WithdrawalRequests.VERSION}`), | ||
new web3_js_1.PublicKey(poolMarket).toBuffer(), | ||
@@ -38,3 +39,4 @@ new web3_js_1.PublicKey(tokenMint).toBuffer(), | ||
exports.WithdrawalRequests = WithdrawalRequests; | ||
WithdrawalRequests.LEN = 73; | ||
WithdrawalRequests.LEN = 74; | ||
WithdrawalRequests.VERSION = 'V0'; | ||
//# sourceMappingURL=withdrawalRequests.js.map |
@@ -40,2 +40,3 @@ "use strict"; | ||
{ pubkey: web3_js_1.SYSVAR_RENT_PUBKEY, isSigner: false, isWritable: false }, | ||
{ pubkey: web3_js_1.SYSVAR_CLOCK_PUBKEY, isSigner: false, isWritable: false }, | ||
{ pubkey: web3_js_1.SystemProgram.programId, isSigner: false, isWritable: false }, | ||
@@ -42,0 +43,0 @@ { pubkey: spl_token_1.TOKEN_PROGRAM_ID, isSigner: false, isWritable: false }, |
{ | ||
"name": "@everlend/general-pool", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -17,2 +17,3 @@ import { AccountType, GeneralPoolsProgram } from '../program' | ||
['accountType', 'u8'], | ||
['accountVersion', 'u8'], | ||
['pool', 'publicKey'], | ||
@@ -30,3 +31,4 @@ ['mint', 'publicKey'], | ||
export class WithdrawalRequests extends Account<WithdrawalRequestsData> { | ||
static readonly LEN = 73 | ||
static readonly LEN = 74 | ||
static readonly VERSION = 'V0' | ||
@@ -45,3 +47,3 @@ constructor(key: PublicKey, info: AccountInfo<Buffer>) { | ||
return GeneralPoolsProgram.findProgramAddress([ | ||
Buffer.from('withdrawals'), | ||
Buffer.from(`withdrawals${WithdrawalRequests.VERSION}`), | ||
new PublicKey(poolMarket).toBuffer(), | ||
@@ -48,0 +50,0 @@ new PublicKey(tokenMint).toBuffer(), |
@@ -6,2 +6,3 @@ import { TOKEN_PROGRAM_ID } from '@solana/spl-token' | ||
SYSVAR_RENT_PUBKEY, | ||
SYSVAR_CLOCK_PUBKEY, | ||
Transaction, | ||
@@ -70,2 +71,3 @@ TransactionCtorFields, | ||
{ pubkey: SYSVAR_RENT_PUBKEY, isSigner: false, isWritable: false }, | ||
{ pubkey: SYSVAR_CLOCK_PUBKEY, isSigner: false, isWritable: false }, | ||
{ pubkey: SystemProgram.programId, isSigner: false, isWritable: false }, | ||
@@ -72,0 +74,0 @@ { pubkey: TOKEN_PROGRAM_ID, isSigner: false, isWritable: false }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
120050
2561