laconic-wallet/react-native-config.d.ts
shreerang6921 b1a0831e78 Take gas limit and fees values from user while approving transaction (#109)
* Take gas limit and fees from user

* Update text input ui

* Use gasPrice from networks data

* Use default gas limit from env

* Use default gas price if not found in registry

* Remove appended denom in gas price

* Use gas limit from env

* Show error dialog when transaction fails

* Calculate gas limit and gas price if not received from dapp

* Update example env

* Improve syntax

---------

Co-authored-by: IshaVenikar <ishavenikar7@gmail.com>
2024-04-25 17:08:27 +05:30

12 lines
361 B
TypeScript

// Reference: https://github.com/lugg/react-native-config?tab=readme-ov-file#typescript-declaration-for-your-env-file
declare module 'react-native-config' {
export interface NativeConfig {
WALLET_CONNECT_PROJECT_ID: string;
DEFAULT_GAS_LIMIT: string;
DEFAULT_GAS_PRICE: string;
}
export const Config: NativeConfig;
export default Config;
}