SharedStake / SharedStake-ui

SharedStake User Interface using vue.js
https://www.sharedstake.org/
GNU General Public License v3.0
15 stars 15 forks source link

Gas API update for EIP-1559 #172

Closed mystic-mango closed 11 months ago

mystic-mango commented 11 months ago

Description

Transaction infrastructure update for EIP-1559. Update gas API to call for maxFeePerGas and maxPriorityFeePerGas.

Screenshot 2023-07-28 at 00 22 55

BlockNative Gas Platform API is used, see docs here and here

Upgrade Web3.Js to version V1.5.3 (Contract EIP-1559 compatible)

Minor: StakeGuage on staking page also updated due to invalid augment for animation.

Screenshot 2023-07-28 at 00 17 49

Fixes # (issue)

168 #145

Type of change

How Has This Been Tested?

All previous transactions shown used the default medium gas, this test show the low and high fees working also.

Low:

Screenshot 2023-07-28 at 01 20 06

High:

Screenshot 2023-07-28 at 01 20 33

Test Configuration:

Checklist:

aws-amplify-us-east-2[bot] commented 11 months ago

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-172.df86yn386iuh7.amplifyapp.com

mystic-mango commented 11 months ago

Transaction hash: Stake: 0xe7c34aae070f22e715e2f7a24a29e6de3a31147117062713b23f1fba7989aabe Unwrap: 0xe78fc197a81989e4100bcde425da534d0fb1a3449a3c55442fba1725bee1de1f

mystic-mango commented 11 months ago

@chimera-defi @WJakub Just finished up new EIP-1559 gas price API integration + testing

Let me know what you think.

chimera-defi commented 11 months ago

nice! lgtm