@injectivelabs/utils
Advanced tools
Comparing version 1.12.0-beta.9 to 1.12.0-beta.10
@@ -27,3 +27,8 @@ import { Awaited } from './types'; | ||
}; | ||
export declare const getStdFee: (gas?: string, gasPrice?: number) => { | ||
export declare const getStdFee: ({ gas, gasPrice, feePayer, granter, }: { | ||
gas?: string | number | undefined; | ||
gasPrice?: string | number | undefined; | ||
feePayer?: string | undefined; | ||
granter?: string | undefined; | ||
}) => { | ||
amount: { | ||
@@ -34,2 +39,4 @@ denom: string; | ||
gas: string; | ||
feePayer: string | undefined; | ||
granter: string | undefined; | ||
}; | ||
@@ -36,0 +43,0 @@ export declare const getDefaultStdFee: () => { |
@@ -72,3 +72,3 @@ "use strict"; | ||
exports.getStdFeeForToken = getStdFeeForToken; | ||
const getStdFee = (gas = constants_1.DEFAULT_GAS_LIMIT.toString(), gasPrice = constants_1.DEFAULT_GAS_PRICE) => ({ | ||
const getStdFee = ({ gas = constants_1.DEFAULT_GAS_LIMIT.toString(), gasPrice = constants_1.DEFAULT_GAS_PRICE, feePayer, granter, }) => ({ | ||
amount: [ | ||
@@ -80,3 +80,5 @@ { | ||
], | ||
gas, | ||
gas: gas.toString(), | ||
feePayer, | ||
granter, | ||
}); | ||
@@ -83,0 +85,0 @@ exports.getStdFee = getStdFee; |
@@ -27,3 +27,8 @@ import { Awaited } from './types'; | ||
}; | ||
export declare const getStdFee: (gas?: string, gasPrice?: number) => { | ||
export declare const getStdFee: ({ gas, gasPrice, feePayer, granter, }: { | ||
gas?: string | number | undefined; | ||
gasPrice?: string | number | undefined; | ||
feePayer?: string | undefined; | ||
granter?: string | undefined; | ||
}) => { | ||
amount: { | ||
@@ -34,2 +39,4 @@ denom: string; | ||
gas: string; | ||
feePayer: string | undefined; | ||
granter: string | undefined; | ||
}; | ||
@@ -36,0 +43,0 @@ export declare const getDefaultStdFee: () => { |
@@ -52,3 +52,3 @@ import BigNumber from 'bignumber.js'; | ||
}; | ||
export const getStdFee = (gas = DEFAULT_GAS_LIMIT.toString(), gasPrice = DEFAULT_GAS_PRICE) => ({ | ||
export const getStdFee = ({ gas = DEFAULT_GAS_LIMIT.toString(), gasPrice = DEFAULT_GAS_PRICE, feePayer, granter, }) => ({ | ||
amount: [ | ||
@@ -60,5 +60,7 @@ { | ||
], | ||
gas, | ||
gas: gas.toString(), | ||
feePayer, | ||
granter, | ||
}); | ||
export const getDefaultStdFee = () => DEFAULT_STD_FEE; | ||
//# sourceMappingURL=helpers.js.map |
{ | ||
"name": "@injectivelabs/utils", | ||
"description": "List of utils and helper functions that can be reused throughout Injective's projects.", | ||
"version": "1.12.0-beta.9", | ||
"version": "1.12.0-beta.10", | ||
"sideEffects": false, | ||
@@ -44,3 +44,3 @@ "author": { | ||
}, | ||
"gitHead": "8f9aa64fab6c9279208624dbdf0f3f541a809b80" | ||
"gitHead": "94edccd43757f817a3a01a506fbad3cbba5f6c93" | ||
} |
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
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
128722
1539