fix: update feeCalculator layout
This commit is contained in:
parent
1712f12e29
commit
d417c7499a
|
@ -23,12 +23,7 @@ declare module '@solana/web3.js' {
|
|||
|
||||
// === src/fee-calculator.js ===
|
||||
export type FeeCalculator = {
|
||||
burnPercent: number;
|
||||
lamportsPerSignature: number;
|
||||
maxLamportsPerSignature: number;
|
||||
minLamportsPerSignature: number;
|
||||
targetLamportsPerSignature: number;
|
||||
targetSignaturesPerSlot: number;
|
||||
};
|
||||
|
||||
// === src/budget-program.js ===
|
||||
|
|
|
@ -37,12 +37,7 @@ declare module '@solana/web3.js' {
|
|||
|
||||
// === src/fee-calculator.js ===
|
||||
declare export type FeeCalculator = {
|
||||
burnPercent: number,
|
||||
lamportsPerSignature: number,
|
||||
maxLamportsPerSignature: number,
|
||||
minLamportsPerSignature: number,
|
||||
targetLamportsPerSignature: number,
|
||||
targetSignaturesPerSlot: number,
|
||||
};
|
||||
|
||||
// === src/budget-program.js ===
|
||||
|
|
|
@ -535,12 +535,7 @@ const GetRecentBlockhashAndContextRpcResult = jsonRpcResultAndContext(
|
|||
struct({
|
||||
blockhash: 'string',
|
||||
feeCalculator: struct({
|
||||
burnPercent: 'number',
|
||||
lamportsPerSignature: 'number',
|
||||
maxLamportsPerSignature: 'number',
|
||||
minLamportsPerSignature: 'number',
|
||||
targetLamportsPerSignature: 'number',
|
||||
targetSignaturesPerSlot: 'number',
|
||||
}),
|
||||
}),
|
||||
);
|
||||
|
|
|
@ -3,11 +3,7 @@
|
|||
/**
|
||||
* @typedef {Object} FeeCalculator
|
||||
* @property {number} lamportsPerSignature lamports Cost in lamports to validate a signature
|
||||
* @property {number} targetLamportsPerSignature
|
||||
* @property {number} targetSignaturesPerSlot
|
||||
*/
|
||||
export type FeeCalculator = {
|
||||
lamportsPerSignature: number,
|
||||
targetSignaturesPerSlot: number,
|
||||
targetLamportsPerSignature: number,
|
||||
};
|
||||
|
|
|
@ -28,11 +28,6 @@ export function mockGetRecentBlockhash(commitment: ?Commitment) {
|
|||
blockhash: recentBlockhash.publicKey.toBase58(),
|
||||
feeCalculator: {
|
||||
lamportsPerSignature: 42,
|
||||
burnPercent: 50,
|
||||
maxLamportsPerSignature: 42,
|
||||
minLamportsPerSignature: 42,
|
||||
targetLamportsPerSignature: 42,
|
||||
targetSignaturesPerSlot: 42,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue