@accessprotocol/js
Advanced tools
Comparing version 2.0.0-alpha.23 to 2.0.0-alpha.24
@@ -438,3 +438,3 @@ "use strict"; | ||
const centralState = yield state_js_1.CentralStateV2.retrieve(connection, centralStateKey); | ||
return new raw_instructions_js_1.adminSetupFeeSplitInstruction({ recipients }).getInstruction(programId, centralState.authority, centralStateKey, web3_js_1.SystemProgram.programId); | ||
return new raw_instructions_js_1.adminSetupFeeSplitInstruction({ recipients }).getInstruction(programId, centralState.authority, centralStateKey); | ||
}); | ||
@@ -441,0 +441,0 @@ exports.adminSetupFeeSplit = adminSetupFeeSplit; |
@@ -15,3 +15,3 @@ "use strict"; | ||
} | ||
getInstruction(programId, authority, centralState, systemProgram) { | ||
getInstruction(programId, authority, centralState) { | ||
const data = Buffer.from(this.serialize()); | ||
@@ -29,7 +29,2 @@ let keys = []; | ||
}); | ||
keys.push({ | ||
pubkey: systemProgram, | ||
isSigner: false, | ||
isWritable: false, | ||
}); | ||
return new web3_js_1.TransactionInstruction({ | ||
@@ -36,0 +31,0 @@ keys, |
@@ -312,2 +312,3 @@ "use strict"; | ||
* @param amount The amount to lock in ACS | ||
* @param currentTimestamp The current Solana timestamp | ||
* @param feePayerCompensation The amount of ACS to reimburse to the fee payer if creating a StakeAccount | ||
@@ -314,0 +315,0 @@ * @param programId The program ID |
@@ -16,3 +16,3 @@ import * as BN from "bn.js"; | ||
serialize(): Uint8Array; | ||
getInstruction(programId: PublicKey, authority: PublicKey, centralState: PublicKey, systemProgram: PublicKey): TransactionInstruction; | ||
getInstruction(programId: PublicKey, authority: PublicKey, centralState: PublicKey): TransactionInstruction; | ||
} | ||
@@ -19,0 +19,0 @@ export declare class migrateCentralStateV2Instruction implements TaggedInstruction { |
@@ -89,2 +89,3 @@ import { Connection, PublicKey, TransactionInstruction } from "@solana/web3.js"; | ||
* @param amount The amount to lock in ACS | ||
* @param currentTimestamp The current Solana timestamp | ||
* @param feePayerCompensation The amount of ACS to reimburse to the fee payer if creating a StakeAccount | ||
@@ -91,0 +92,0 @@ * @param programId The program ID |
@@ -392,3 +392,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
const centralState = yield CentralStateV2.retrieve(connection, centralStateKey); | ||
return new adminSetupFeeSplitInstruction({ recipients }).getInstruction(programId, centralState.authority, centralStateKey, SystemProgram.programId); | ||
return new adminSetupFeeSplitInstruction({ recipients }).getInstruction(programId, centralState.authority, centralStateKey); | ||
}); | ||
@@ -395,0 +395,0 @@ /** |
@@ -12,3 +12,3 @@ import { serialize } from "borsh"; | ||
} | ||
getInstruction(programId, authority, centralState, systemProgram) { | ||
getInstruction(programId, authority, centralState) { | ||
const data = Buffer.from(this.serialize()); | ||
@@ -26,7 +26,2 @@ let keys = []; | ||
}); | ||
keys.push({ | ||
pubkey: systemProgram, | ||
isSigner: false, | ||
isWritable: false, | ||
}); | ||
return new TransactionInstruction({ | ||
@@ -33,0 +28,0 @@ keys, |
@@ -276,2 +276,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
* @param amount The amount to lock in ACS | ||
* @param currentTimestamp The current Solana timestamp | ||
* @param feePayerCompensation The amount of ACS to reimburse to the fee payer if creating a StakeAccount | ||
@@ -278,0 +279,0 @@ * @param programId The program ID |
@@ -16,3 +16,3 @@ import * as BN from "bn.js"; | ||
serialize(): Uint8Array; | ||
getInstruction(programId: PublicKey, authority: PublicKey, centralState: PublicKey, systemProgram: PublicKey): TransactionInstruction; | ||
getInstruction(programId: PublicKey, authority: PublicKey, centralState: PublicKey): TransactionInstruction; | ||
} | ||
@@ -19,0 +19,0 @@ export declare class migrateCentralStateV2Instruction implements TaggedInstruction { |
@@ -89,2 +89,3 @@ import { Connection, PublicKey, TransactionInstruction } from "@solana/web3.js"; | ||
* @param amount The amount to lock in ACS | ||
* @param currentTimestamp The current Solana timestamp | ||
* @param feePayerCompensation The amount of ACS to reimburse to the fee payer if creating a StakeAccount | ||
@@ -91,0 +92,0 @@ * @param programId The program ID |
{ | ||
"name": "@accessprotocol/js", | ||
"version": "2.0.0-alpha.23", | ||
"version": "2.0.0-alpha.24", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "type": "module", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
447559
10236