@injectivelabs/utils
Advanced tools
Comparing version 1.12.0-beta.10 to 1.12.0-beta.11
@@ -27,7 +27,8 @@ import { Awaited } from './types'; | ||
}; | ||
export declare const getStdFee: ({ gas, gasPrice, feePayer, granter, }: { | ||
export declare const getStdFee: ({ gas, gasPrice, payer, granter, feePayer, }: { | ||
gas?: string | number | undefined; | ||
payer?: string | undefined; | ||
granter?: string | undefined; | ||
gasPrice?: string | number | undefined; | ||
feePayer?: string | undefined; | ||
granter?: string | undefined; | ||
}) => { | ||
@@ -39,4 +40,5 @@ amount: { | ||
gas: string; | ||
payer: string | undefined; /** for Web3Gateway fee delegation */ | ||
granter: string | undefined; | ||
feePayer: string | undefined; | ||
granter: string | undefined; | ||
}; | ||
@@ -43,0 +45,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, feePayer, granter, }) => ({ | ||
const getStdFee = ({ gas = constants_1.DEFAULT_GAS_LIMIT.toString(), gasPrice = constants_1.DEFAULT_GAS_PRICE, payer, granter, feePayer, }) => ({ | ||
amount: [ | ||
@@ -81,4 +81,5 @@ { | ||
gas: gas.toString(), | ||
payer /** for Web3Gateway fee delegation */, | ||
granter, | ||
feePayer, | ||
granter, | ||
}); | ||
@@ -85,0 +86,0 @@ exports.getStdFee = getStdFee; |
@@ -27,7 +27,8 @@ import { Awaited } from './types'; | ||
}; | ||
export declare const getStdFee: ({ gas, gasPrice, feePayer, granter, }: { | ||
export declare const getStdFee: ({ gas, gasPrice, payer, granter, feePayer, }: { | ||
gas?: string | number | undefined; | ||
payer?: string | undefined; | ||
granter?: string | undefined; | ||
gasPrice?: string | number | undefined; | ||
feePayer?: string | undefined; | ||
granter?: string | undefined; | ||
}) => { | ||
@@ -39,4 +40,5 @@ amount: { | ||
gas: string; | ||
payer: string | undefined; /** for Web3Gateway fee delegation */ | ||
granter: string | undefined; | ||
feePayer: string | undefined; | ||
granter: string | undefined; | ||
}; | ||
@@ -43,0 +45,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, feePayer, granter, }) => ({ | ||
export const getStdFee = ({ gas = DEFAULT_GAS_LIMIT.toString(), gasPrice = DEFAULT_GAS_PRICE, payer, granter, feePayer, }) => ({ | ||
amount: [ | ||
@@ -61,6 +61,7 @@ { | ||
gas: gas.toString(), | ||
payer /** for Web3Gateway fee delegation */, | ||
granter, | ||
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.10", | ||
"version": "1.12.0-beta.11", | ||
"sideEffects": false, | ||
@@ -44,3 +44,3 @@ "author": { | ||
}, | ||
"gitHead": "94edccd43757f817a3a01a506fbad3cbba5f6c93" | ||
"gitHead": "1ac57cfb41040b49fdeb9c8f257825267644cffb" | ||
} |
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
129144
1545