I have few questions regards to transaction fee.
There's no particularly good way to automatically estimate transaction fees on Turing-complete smart contract platforms like Substrate-Contracts and Ethereum. In Parity Ethereum, we used a binary chop in order to figure it out, which though it works well for a lot of contracts, still isn't general.
Much better would be to annotate gas requirements as part of the contract's ABI and perhaps auto-generate this from the EDSL in which the contract is written. But that'll take Quite Some Time. In the meantime, I suggest you just use heuristics for the basic transaction fee and overestimate the gas requirements and price.
Most helpful comment
There's no particularly good way to automatically estimate transaction fees on Turing-complete smart contract platforms like Substrate-Contracts and Ethereum. In Parity Ethereum, we used a binary chop in order to figure it out, which though it works well for a lot of contracts, still isn't general.
Much better would be to annotate gas requirements as part of the contract's ABI and perhaps auto-generate this from the EDSL in which the contract is written. But that'll take Quite Some Time. In the meantime, I suggest you just use heuristics for the basic transaction fee and overestimate the gas requirements and price.