chore: migrate to typescript
This commit is contained in:
committed by
Justin Starry
parent
3eb9f7b3eb
commit
f912c63b22
17
web3.js/src/fee-calculator.ts
Normal file
17
web3.js/src/fee-calculator.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
// @ts-ignore
|
||||
import * as BufferLayout from 'buffer-layout';
|
||||
|
||||
/**
|
||||
* https://github.com/solana-labs/solana/blob/90bedd7e067b5b8f3ddbb45da00a4e9cabb22c62/sdk/src/fee_calculator.rs#L7-L11
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
export const FeeCalculatorLayout = BufferLayout.nu64('lamportsPerSignature');
|
||||
|
||||
/**
|
||||
* Calculator for transaction fees.
|
||||
*/
|
||||
export interface FeeCalculator {
|
||||
/** Cost in lamports to validate a signature. */
|
||||
lamportsPerSignature: number;
|
||||
}
|
Reference in New Issue
Block a user