Skip to content

Commit 306ee69

Browse files
authored
hyperliquid: rename-feeabstraction (#1932)
Signed-off-by: shankar <shankar@layerzerolabs.org>
1 parent 39dc7f8 commit 306ee69

4 files changed

Lines changed: 21 additions & 15 deletions

File tree

.changeset/brown-icons-push.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@layerzerolabs/hyperliquid-composer": patch
3+
"@layerzerolabs/oft-hyperliquid-example": patch
4+
---
5+
6+
rename FeeAbstraction to PreFundedFeeAbstraction in docs

examples/oft-hyperliquid/deploy/MyHyperLiquidComposer_FeeAbstraction.ts renamed to examples/oft-hyperliquid/deploy/MyHyperLiquidComposer_PreFundedFeeAbstraction.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ const deploy: DeployFunction = async (hre) => {
8787
{
8888
type: 'confirm',
8989
name: 'continueAnyway',
90-
message: 'Do you want to continue with FeeAbstraction anyway?',
90+
message: 'Do you want to continue with PreFundedFeeAbstraction anyway?',
9191
default: false,
9292
},
9393
])
@@ -136,7 +136,7 @@ const deploy: DeployFunction = async (hre) => {
136136
console.log(`Deplying a contract uses big block which is mined at a transaction per minute.`)
137137
}
138138

139-
// Deploy the OFT composer with FeeAbstraction extension
139+
// Deploy the OFT composer with PreFundedFeeAbstraction extension
140140
const { address: address_composer } = await deploy(contractName_composer, {
141141
from: deployer,
142142
args: [
@@ -152,7 +152,7 @@ const deploy: DeployFunction = async (hre) => {
152152
})
153153

154154
console.log(
155-
`Deployed HyperliquidComposer with FeeAbstraction: ${contractName_composer}, network: ${hre.network.name}, address: ${address_composer}`
155+
`Deployed HyperliquidComposer with PreFundedFeeAbstraction: ${contractName_composer}, network: ${hre.network.name}, address: ${address_composer}`
156156
)
157157
console.log(` - Spot ID: ${spotId}`)
158158
console.log(

examples/oft-hyperliquid/pnpm-lock.yaml

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/hyperliquid-composer/HYPERLIQUID.README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ npx @layerzerolabs/hyperliquid-composer list-quote-asset \
229229
If you're deploying a quote asset token (or plan to make it one):
230230

231231
- **Use `MyHyperLiquidComposer_FeeToken`** - This composer variant provides automatic user activation using the token itself as the fee token
232-
- Regular composers (`MyHyperliquidComposer`, `FeeAbstraction`, `Recoverable`) will work but require users to have HYPE for gas fees
232+
- Regular composers (`MyHyperliquidComposer`, `PreFundedFeeAbstraction`, `Recoverable`) will work but require users to have HYPE for gas fees
233233

234234
The deployment scripts automatically check if your token is a quote asset and guide you to use the appropriate composer type.
235235

@@ -396,7 +396,7 @@ When the composer detects that a user's address has not been activated on HyperC
396396
On-chain deployments:
397397
USDT0 : [0x80123Ab57c9bc0C452d6c18F92A653a4ee2e7585](https://hyperevmscan.io/address/0x80123Ab57c9bc0C452d6c18F92A653a4ee2e7585)
398398

399-
#### FeeAbstraction Extension
399+
#### PreFundedFeeAbstraction Extension
400400

401401
This extension provides automatic user activation using a **different token** for fees, combined with price oracle integration for dynamic fee calculation.
402402

@@ -438,12 +438,12 @@ ENA : [0x5879d9821909A41cd3A382A990A4A5A6Ca77F2f0](https://hyperevmscan.io/addre
438438

439439
### Choosing the Right Composer
440440

441-
| Composer Type | Best For | Key Feature |
442-
| ------------------ | --------------------- | --------------------------------------------- |
443-
| **Regular** | Standard tokens | Basic functionality, no extensions |
444-
| **Recoverable** | Any token | Token recovery capability |
445-
| **FeeToken** | **Quote assets only** | Automatic activation using your token |
446-
| **FeeAbstraction** | Non-quote assets | Automatic activation using oracle-priced fees |
441+
| Composer Type | Best For | Key Feature |
442+
| --------------------------- | --------------------- | --------------------------------------------- |
443+
| **Regular** | Standard tokens | Basic functionality, no extensions |
444+
| **Recoverable** | Any token | Token recovery capability |
445+
| **FeeToken** | **Quote assets only** | Automatic activation using your token |
446+
| **PreFundedFeeAbstraction** | Non-quote assets | Automatic activation using oracle-priced fees |
447447

448448
> ⚠️ **Important**: The deployment scripts automatically check if your token is a quote asset and guide you to use the appropriate composer type. See [Quote Assets (Fee Tokens)](#quote-assets-fee-tokens) for more details.
449449

0 commit comments

Comments
 (0)