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: bump version to 0.14.0 #297

Merged
merged 5 commits into from
Feb 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
- main

jobs:
publish-npm:
name: "Publish to NPM"
build:
name: "Build Package"
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
3 changes: 2 additions & 1 deletion src/libs/AxelarQueryAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/libs/TransactionRecoveryApi/AxelarGMPRecoveryAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@
destChain: string,
txHash: string,
txEventIndex: number | undefined,
evmWalletDetails: EvmWalletDetails

Check warning on line 276 in src/libs/TransactionRecoveryApi/AxelarGMPRecoveryAPI.ts

View workflow job for this annotation

GitHub Actions / ESLint

src/libs/TransactionRecoveryApi/AxelarGMPRecoveryAPI.ts#L276

'evmWalletDetails' is defined but never used (@typescript-eslint/no-unused-vars)
): Promise<ConfirmTxSDKResponse> {
if (this.debugMode)
console.debug(`confirmation: checking whether ${txHash} needs to be confirmed on Axelar`);
Expand Down Expand Up @@ -921,6 +921,7 @@
* 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
*/
Expand Down Expand Up @@ -1107,7 +1108,7 @@

const executeParams = response.data as ExecuteParams;
const gasLimitBuffer = evmWalletDetails?.gasLimitBuffer || 0;
const { destinationChain, destinationContractAddress, srcTxInfo } = executeParams;

Check warning on line 1111 in src/libs/TransactionRecoveryApi/AxelarGMPRecoveryAPI.ts

View workflow job for this annotation

GitHub Actions / ESLint

src/libs/TransactionRecoveryApi/AxelarGMPRecoveryAPI.ts#L1111

'srcTxInfo' is assigned a value but never used (@typescript-eslint/no-unused-vars)

const signer = this.getSigner(
destinationChain,
Expand Down
Loading