From 71a35b303d7a6bba6d3d43a3b1c57af12b812528 Mon Sep 17 00:00:00 2001 From: npty Date: Fri, 9 Feb 2024 14:03:20 +0700 Subject: [PATCH 1/5] chore: bump version to 0.14.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index cfe04039..18557e38 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@axelar-network/axelarjs-sdk", - "version": "0.13.10", + "version": "0.14.0", "description": "The JavaScript SDK for Axelar Network", "repository": { "type": "git", From fb7958b3a3d135788658395e5fc2140277f16f5e Mon Sep 17 00:00:00 2001 From: npty Date: Fri, 9 Feb 2024 14:04:25 +0700 Subject: [PATCH 2/5] chore: update workflow job name --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d678d407..42ca7e9f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,8 +6,8 @@ on: - main jobs: - publish-npm: - name: "Publish to NPM" + build: + name: "Build Package" runs-on: ubuntu-latest steps: - name: Checkout From 4c303ca60e7d86b19625296318ce4468eaae3427 Mon Sep 17 00:00:00 2001 From: npty Date: Fri, 9 Feb 2024 14:24:27 +0700 Subject: [PATCH 3/5] chore: fix function docs --- src/libs/AxelarQueryAPI.ts | 3 ++- src/libs/TransactionRecoveryApi/AxelarGMPRecoveryAPI.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libs/AxelarQueryAPI.ts b/src/libs/AxelarQueryAPI.ts index e5436aae..73bf829d 100644 --- a/src/libs/AxelarQueryAPI.ts +++ b/src/libs/AxelarQueryAPI.ts @@ -248,8 +248,9 @@ export class AxelarQueryAPI { * @param sourceChainId Can be of the EvmChain enum or string. If string, should try to generalize to use the CHAINS constants (e.g. CHAINS.MAINNET.ETHEREUM) * @param destinationChainId Can be of the EvmChain enum or string. If string, should try to generalize to use the CHAINS constants (e.g. CHAINS.MAINNET.ETHEREUM) * @param sourceChainTokenSymbol - * @param gasLimit (Optional) An estimated gas amount required to execute `executeWithToken` function. The default value is 700000 which should be sufficient for most transactions. + * @param gasLimit An estimated gas amount required to execute `executeWithToken` function. * @param gasMultiplier (Optional) A multiplier used to create a buffer above the calculated gas fee, to account for potential slippage throughout tx execution, e.g. 1.1 = 10% buffer. supports up to 3 decimal places + * The default value is "auto", which uses the gas multiplier from the fee response * @param minGasPrice (Optional) A minimum value, in wei, for the gas price on the destination chain that is used to override the estimated gas price if it falls below this specified value. * @param gmpParams (Optional) Additional parameters for GMP transactions, including the ability to see a detailed view of the fee response * @returns diff --git a/src/libs/TransactionRecoveryApi/AxelarGMPRecoveryAPI.ts b/src/libs/TransactionRecoveryApi/AxelarGMPRecoveryAPI.ts index cf6366d7..b024da47 100644 --- a/src/libs/TransactionRecoveryApi/AxelarGMPRecoveryAPI.ts +++ b/src/libs/TransactionRecoveryApi/AxelarGMPRecoveryAPI.ts @@ -921,6 +921,7 @@ export class AxelarGMPRecoveryAPI extends AxelarRecoveryApi { * If the transaction details is not valid, it will return an error with reason. * @param chain - source chain * @param txHash - transaction hash + * @param estimatedGasUsed - estimated gas used * @param options - options * @returns */ From a14fb2a6c78f445dd47099f87b3ec97d62bae573 Mon Sep 17 00:00:00 2001 From: npty Date: Fri, 9 Feb 2024 14:35:38 +0700 Subject: [PATCH 4/5] chore: update CHANGELOG.md --- CHANGELOG.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index cecb4022..7e52419f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,19 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [0.14.0] - 2024-FEBRUARY-9 + +Breaking Changes + +**AxelarQueryAPI**: estimateGasFee + +- gasLimit: Changed from optional (default 700,000) to required. +- gasMultiplier: Default changed from 1.1 to auto, using data from [getFees](https://docs.axelarscan.io/interchain/getFees). + +**AxelarGMPRecoveryAPI** + +- `addNativeGas` & `addGasToCosmosChain`: `gasLimit` is now required, removing the default `700,000`. + ## [0.13.10] - 2024-FEBRUARY-9 - Remove unused internal APIs From 7753abb6973ea76526a6ce59bf164d339c7d735e Mon Sep 17 00:00:00 2001 From: npty Date: Fri, 9 Feb 2024 14:36:37 +0700 Subject: [PATCH 5/5] chore: formatting --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7e52419f..efd58e99 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,7 +16,7 @@ Breaking Changes **AxelarGMPRecoveryAPI** -- `addNativeGas` & `addGasToCosmosChain`: `gasLimit` is now required, removing the default `700,000`. +- addNativeGas & addGasToCosmosChain: `gasLimit` is now required, removing the default `700,000`. ## [0.13.10] - 2024-FEBRUARY-9