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 axelar-cgp-solidity to 6.3.0 #324

Merged
merged 4 commits into from
Apr 18, 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
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"author": "Axelar Network",
"license": "MIT",
"dependencies": {
"@axelar-network/axelar-cgp-solidity": "^4.5.0",
"@axelar-network/axelar-cgp-solidity": "^6.3.0",
"@axelar-network/axelarjs-types": "^0.33.0",
"@cosmjs/json-rpc": "^0.30.1",
"@cosmjs/stargate": "0.31.0-alpha.1",
Expand Down
17 changes: 15 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/constants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const devnetConfigs: EnvironmentConfigs = {
};
const testnetConfigs: EnvironmentConfigs = {
resourceUrl: "https://nest-server-testnet.axelar.dev",
axelarRpcUrl: "https://rpc-axelar-testnet.imperator.co:443", // "https://testnet.rpc.axelar.dev/chain/axelar",
axelarRpcUrl: "https://testnet.rpc.axelar.dev/chain/axelar",
axelarLcdUrl: "https://lcd-axelar-testnet.imperator.co",
depositServiceUrl: "https://deposit-service.testnet.axelar.dev",
axelarGMPApiUrl: "https://testnet.api.gmp.axelarscan.io",
Expand Down
6 changes: 3 additions & 3 deletions src/libs/AxelarQueryAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ export class AxelarQueryAPI {
public async calculateL1FeeForDestL2(
destChainId: EvmChain | string,
destToken: FeeToken,
executeData: `0x${string}` | undefined,
executeData: string | undefined,
sourceToken: FeeToken,
ethereumToken: BaseFeeResponse["ethereumToken"],
actualGasMultiplier: number,
Expand Down Expand Up @@ -327,7 +327,7 @@ export class AxelarQueryAPI {
* Calculate estimated gas amount to pay for the gas receiver contract.
* @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 gasLimit An estimated gas amount required to execute `executeWithToken` function.
* @param gasLimit An estimated gas amount required to execute the transaction at the destination chain. For destinations on OP Stack chains (Optimism, Base, Scroll, Fraxtal, Blast, etc.), set only the L2 gas limit. The endpoint will automatically handle L1 gas estimation and bundling.
* @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 sourceChainTokenSymbol (Optional) the gas token symbol on the source chain.
Expand All @@ -343,7 +343,7 @@ export class AxelarQueryAPI {
gasMultiplier: number | "auto" = "auto",
sourceChainTokenSymbol?: GasToken | string,
minGasPrice = "0",
executeData?: `0x${string}`,
executeData?: string,
gmpParams?: GMPParams
): Promise<string | AxelarQueryAPIFeeResponse> {
await throwIfInvalidChainIds([sourceChainId, destinationChainId], this.environment);
Expand Down
2 changes: 1 addition & 1 deletion src/libs/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ export type TokenUnit = {
};

export type EstimateL1FeeParams = {
executeData: `0x${string}`;
executeData: string;
l1GasPrice: TokenUnit;
destChain: string;
l1GasOracleAddress?: string | undefined;
Expand Down
Loading