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

chore: adding a fix to addNativeGasMethod with overestimation #253

Merged
merged 2 commits into from
Mar 15, 2023

Conversation

canhtrinh
Copy link
Collaborator

two things:

  1. the addNativeGas method should accept additional parameters to allow the invoker to specify what gas amount and gas multiple to use
  2. the implementation of addNativeGas, which calls subtractGasFee, should subtract the base fee if the transaction has already been confirmed. (as per necessary fixes for addNativeGas method #239)

const txStatus: GMPStatusResponse | undefined = await this.queryTransactionStatus(txHash).catch(
() => undefined
);
return [GMPStatus.SRC_GATEWAY_CONFIRMED, GMPStatus.DEST_GATEWAY_APPROVED].includes(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what does SRC_GATEWAY_CONFIRMED mean?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

status is confirmed. but we translate that to the use (via parseGMPStatus) to be more descriptive to read source_gateway_confirmed instead.

@npty npty self-requested a review March 14, 2023 04:14
@canhtrinh canhtrinh merged commit 54e145d into v0.12.5 Mar 15, 2023
@canhtrinh canhtrinh deleted the fixAddNativeGas branch March 15, 2023 13:19
canhtrinh added a commit that referenced this pull request Mar 17, 2023
* chore: fix wrong min_gas_price calculation (#243)

* chore: fix wrong min_gas_price calculation

* chore: rename param

* chore: use wei

* chore: improve doc

* chore: add tests

* [feature][draft] subscribeToTx (#241)

* chore: initial commit

* feat: 'working' wss

* 0.12.5-alpha.1

* refactor: polymorphic subscribeToTx

* chore: serialize menssage instead of interpolating string

* chore: remove ws dependency

* 0.12.5-alpha.2

* chore: update changelog

---------

Co-authored-by: Canh Trinh <[email protected]>

* chore: fix arbitrum

* 0.12.5-alph.3

* Update package (#249)

* feat:add repo to package.json for link on npm (#248)

Hopefully adding a repository link here will get the "repository" link to show up on npm here:  https://www.npmjs.com/package/@axelar-network/axelarjs-sdk/

* Update package

* Fix wording in readme

---------

Co-authored-by: Stephen Fluin <[email protected]>

* Improve manual relay (#250)

* chore: setting up calc for generating command ID

chore: code cleanup

* chore: update manual relay to destination chain

* chore: code cleanup

* chore: code cleanup

* chore: adding comments

* chore: adding event query

* chore: adding query methods for confirmation height and event

* chore: code cleanup

* chore: code refactor

* chore: typo in changelog

* chore: refactor code and update tests

* chore: fixing command ID calculation

chore: fixing issue where event initially not found

chore: adding retry on retrieving batch data

chore: adding retries

chore: code cleanup

* chore: code cleanup

* chore: code cleanup

* chore: code cleanup for manualRelay through signing

* chore: adding logs for debug mode

* chore: update command ID and update tests

* Erc20 deposit address (#251)

* feat: add erc 20 deposit address initial commit

* chroe: wip

* chore: update tests

* chore: update tests

* chore: PR comment for local binding of refundAddress

* chore: update changelog

* 0.12.5-alpha.4

* chore: adding BNBCHAIN

* chore: gmpe treatment

* chore: update subtractNativeGasFee to not subtract gas already paid

* chore: update changelog

* 0.12.5-alpha.5

* chore: updating express fee calculation (#254)

* chore: adding a fix to addNativeGasMethod with overestimation (#253)

* chore: adding a fix to addNativeGasMethod with overestimation

* chore: code cleanup

* 0.12.5-alpha.6

* chore: fix aurora symbol

* 0.12.5-alpha.7

* fix: adding expressFee to fee param

* 0.12.5-alpha.8

* chore: code cleanup and adding base to testnet

* chore: fix date of v0.12.5 in changelog

* 0.12.5

---------

Co-authored-by: npty <[email protected]>
Co-authored-by: Alan Soares <[email protected]>
Co-authored-by: Jon Ator <[email protected]>
Co-authored-by: Stephen Fluin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants