Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(wallet)!: allowing client to set custom values for fees, nonce, gas #6124

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Commits on Nov 28, 2024

  1. feat(wallet)!: allowing client to set custom values for fees, nonce, gas

    Removed properties from `Path` type:
    - `MaxFeesPerGas`, based on the sending flow progress appropriate new properties (`TxMaxFeesPerGas`, `ApprovalMaxFeesPerGas`) should be used
    
    Added new properties to `Path` type:
    - `RouterInputParamsUuid`, used to identify from which router input params this path was created
    - `TxNonce`, used to set nonce for the tx
    - `TxMaxFeesPerGas`, used to set max fees per gas for the tx
    - `TxEstimatedTime`, used to estimate time for executing the tx
    - `ApprovalTxNonce`, used to set nonce for the approval tx
    - `ApprovalTxMaxFeesPerGas`, used to set max fees per gas for the approval tx
    - `ApprovalTxEstimatedTime`, used to estimate time for executing the approval tx
    
    New request types added:
    - `PathTxCustomParams`, used to pass tx custom params from the client
    - `PathTxIdentity`, used to uniquely identify path (tx) to which the custom params need to be applied
    
    New endpoints added:
    - `SetFeeMode` used to set fee mode (`GasFeeLow`, `GasFeeMedium` or `GasFeeHigh`)
    - `SetCustomTxDetails` used to set custom fee mode (`SetCustomTxDetails`), if this mode is set, client needs to provide:
      - Max fees per gas
      - Max priority fee
      - Nonce
      - Gas amount
    saledjenic committed Nov 28, 2024
    Configuration menu
    Copy the full SHA
    cc0d444 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    aae6e8b View commit details
    Browse the repository at this point in the history