Skip to content

Commit 7a41930

Browse files
docs(gas-service): update addGas function details and refund tracking (#1353)
Co-authored-by: ben-weinberg <[email protected]>
1 parent 62ef48e commit 7a41930

File tree

3 files changed

+7
-31
lines changed

3 files changed

+7
-31
lines changed

src/content/docs/dev/gas-service/increase-gas.mdx

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -24,30 +24,6 @@ function addNativeGas(
2424
) external payable override;
2525
```
2626

27-
In JavaScript or TypeScript, the SDK [abstracts a method that can be invoked directly in a web application](/dev/axelarjs-sdk/tx-status-query-recovery/#21-native-gas-payment).
28-
29-
### `addGas()`
30-
31-
Call `addGas()` to add additional gas payment after initiating a cross-chain call. This function can be called on the transaction’s source chain after calling the gateway to execute a remote contract.
32-
33-
In Solidity, `addGas()` takes the following parameters:
34-
35-
- `txHash` — The transaction hash of the cross-chain call
36-
- `logIndex` — The log index for the cross-chain call
37-
- `gasToken` — The ERC-20 token address used to add gas
38-
- `gasFeeAmount` — The amount of tokens to add as gas
39-
- `refundAddress` — The address where refunds, if any, should be sent
40-
41-
```solidity
42-
function addGas(
43-
bytes32 txHash,
44-
uint256 logIndex,
45-
address gasToken,
46-
uint256 gasFeeAmount,
47-
address refundAddress
48-
) external override;
49-
```
50-
5127
In JavaScript or TypeScript, the SDK [abstracts a method that can be invoked directly in a web application](/dev/axelarjs-sdk/tx-status-query-recovery/#22-erc-20-gas-payment). It is similar to a native gas payment, except with Axelar-supported ERC-20 tokens instead of native tokens. Make sure that the ERC-20 tokens you use are supported by Axelar.
5228

5329
- [Supported mainnet chains](/resources/contract-addresses/mainnet/)

src/content/docs/dev/gas-service/refund.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,6 @@ You can customize the refund address by replacing `msg.sender` with any valid ad
8585

8686
## Track the refund status
8787

88-
After specifying the refund address, you can track the refund status on [Axelarscan](https://axelarscan.io/).
88+
After specifying the refund address, you can track the refund status on [Axelarscan](https://axelarscan.io/gmp/0x8955b3f97e2fdab2a1f9d83e6b2c71e7eba1d2d70732dbfb052be88b86d2e40f-12).
8989

9090
Choosing the correct refund address is important for your contract's functionality and user experience. Always ensure that the refund address is valid and accessible.
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# What is Mobius Development Stack?
22

3-
Axelar MDS is a suite of open tools and protocols that unlock an entirely new omnichain design space. MDS pioneers a new interoperability standard leveraging enhanced AXL token utility to power infinite security and scalability across Web3. For the first time, applications can connect easily to users and logic anywhere on the internet – maintaining verified and open properties end-to-end.
3+
Axelar [MDS](https://www.axelar.network/blog/mobius-development-stack-launch) is a suite of open tools and protocols that unlock an entirely new omnichain design space. MDS pioneers a new interoperability standard leveraging enhanced AXL token utility to power infinite security and scalability across Web3. For the first time, applications can connect easily to users and logic anywhere on the internet – maintaining verified and open properties end-to-end.
44

55
With Axelar MDS, the possibilities extend far beyond simple bridges or oracles. A user could send a message on Telegram that rebalances a vault on Sui, which in turn interacts with DeFi protocols on Arbitrum and a financial institution's private blockchain. This level of integration and interoperability opens up a new world of possibilities for decentralized applications.
66

@@ -10,11 +10,11 @@ With one connection, infinite possibilities.
1010

1111
The three main components of Axelar MDS are:
1212

13-
- Interchain Amplifier: Now on mainnet, a simple, permissionless way to connect your chain with the Axelar network and its interconnected chains. It enables dynamic, customizable integrations, with chains like Sui, Aptos, and Solana cued up to connect.
14-
- Interchain Token Service (ITS): An institutional-grade set of tokenization tools that replace bridges completely, enabling the minting and managing of tokens across any connected blockchain. With ITS, tokens can move cross-chain natively while maintaining full functionality and fungibility.
15-
- Axelar Virtual Machine (AVM) underpins Amplifier and ITS to enable smart contract logic at the cross-chain layer. This opens doors for a new generation of multichain developer tools and sophisticated dApps. Ethereum introduced programmable money; Axelar introduces programmable interoperability.
13+
- [Interchain Amplifier](/dev/amplifier/chain-integration/): Now on mainnet, a simple, permissionless way to connect your chain with the Axelar network and its interconnected chains. It enables dynamic, customizable integrations, with chains like Sui, Aptos, and Solana cued up to connect.
14+
- [Interchain Token Service (ITS)](/dev/send-tokens/interchain-tokens/intro/): An institutional-grade set of tokenization tools that replace bridges completely, enabling the minting and managing of tokens across any connected blockchain. With ITS, tokens can move cross-chain natively while maintaining full functionality and fungibility.
15+
- [Axelar Virtual Machine (AVM)](https://www.axelar.network/blog/axelar-virtual-machine-future-of-interoperability) underpins Amplifier and ITS to enable smart contract logic at the cross-chain layer. This opens doors for a new generation of multichain developer tools and sophisticated dApps. Ethereum introduced programmable money; Axelar introduces programmable interoperability.
1616

1717
Plus these additional features, combining to create the most complete interoperability platform on the market:
1818

19-
- Flexible, augmented economic security: connections to ETH (via EigenLayer) and other exogenous collateral adds a layer of customizability to Interchain Amplifier, which already allows custom configuration of security for new integrations.
20-
- Open interoperability interface built in collaboration with OpenZeppelin and integrated into OpenZeppelin's leading smart-contract libraries. Developers adopting these open-source semantics can plug in any interoperability technology.
19+
- Flexible, augmented economic security: connections to ETH (via [EigenLayer](https://www.eigenlayer.xyz/) and other exogenous collateral adds a layer of customizability to Interchain Amplifier, which already allows custom configuration of security for new integrations.
20+
- Open interoperability interface built in collaboration with OpenZeppelin and integrated into [OpenZeppelin's](https://www.openzeppelin.com/) leading smart-contract libraries. Developers adopting these open-source semantics can plug in any interoperability technology.

0 commit comments

Comments
 (0)