fix: update feeCalculator layout

This commit is contained in:
Tyera Eulberg 2020-02-28 15:08:27 -08:00 committed by Michael Vines
parent 1712f12e29
commit d417c7499a
5 changed files with 0 additions and 24 deletions

5
web3.js/module.d.ts vendored
View File

@ -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 ===

View File

@ -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 ===

View File

@ -535,12 +535,7 @@ const GetRecentBlockhashAndContextRpcResult = jsonRpcResultAndContext(
struct({
blockhash: 'string',
feeCalculator: struct({
burnPercent: 'number',
lamportsPerSignature: 'number',
maxLamportsPerSignature: 'number',
minLamportsPerSignature: 'number',
targetLamportsPerSignature: 'number',
targetSignaturesPerSlot: 'number',
}),
}),
);

View File

@ -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,
};

View File

@ -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,
},
},
},