Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 85b9261

Browse files
kev1n-petersyuli-ferna
authored and
yuli-ferna
committedApr 9, 2024
Feature: Native Token Transfers (NTT) integration (#1674)
* Feature: Native Token Transfers (NTT) integration Addresses #1585 * Use SDKv2 layouts for message parsing * renamed platforms -> chains * added sepolia cctp, removed goerli cctp * reworked ntt config, added ntt groups * usdc switch chains fix * custom ntt group support * abi version support, added 0.1.0 abis * Updated testnet addresses * updated testnet USDC.e address * rebased development * updated 0.1.0 ABI, avax-celo addresses * delivery price wormhole fee for manual xfers fix * removed comment * removed old testnet ntt token configs * Added NTT to README * Added Fantom bridged USDC NTT addresses
1 parent 5f6a83d commit 85b9261

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+15079
-139
lines changed
 

‎README.md

+15
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,21 @@ See the "Arbitrary Token" example in [the config docs](https://docs.wormhole.com
131131

132132
Please note you have to [register a token](https://portalbridge.com/advanced-tools/#/register) with the token bridge before you can use it in Connect.
133133

134+
### Configuring Custom NTT (Native Token Transfer) Groups
135+
To configure custom NTT groups, include an `nttGroups` key in your configuration.
136+
137+
```ts
138+
const config: WormholeConnectConfig = {
139+
nttGroups: {
140+
// Your custom NTT groups go here
141+
}
142+
}
143+
```
144+
145+
For a practical example of how to structure your custom NTT groups, refer to the [nttGroups.ts](https://github.com/wormhole-foundation/wormhole-connect/blob/development/wormhole-connect/src/config/testnet/nttGroups.ts) file.
146+
147+
Please note that the `tokenKey` specified in your custom NTT group must correspond to an existing entry in the tokensConfig, whether it's a built-in or a custom token.
148+
134149
### Custom Theme
135150

136151
You can also customize Connect's color scheme by providing a `WormholeConnectTheme` as the `theme` prop.

‎builder/src/consts.ts

+14
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,20 @@ export const ROUTE_INFOS: RouteInfo[] = [
253253
title: "wstETH Bridge",
254254
description: "Permissionlessly transfer wstETH cross-chain with Wormhole.",
255255
},
256+
{
257+
key: "nttManual",
258+
title: "Native Token Transfer",
259+
description:
260+
"Permissionlessly transfer native tokens cross-chain with Wormhole.",
261+
link: "https://github.com/wormhole-foundation/example-native-token-transfers/blob/main/README.md",
262+
},
263+
{
264+
key: "nttRelay",
265+
title: "Native Token Transfer Automatic Redeems",
266+
description:
267+
"Automatic redeems for Native Token Transfers powered by xLabs.",
268+
link: "https://github.com/wormhole-foundation/example-native-token-transfers/blob/main/README.md",
269+
},
256270
];
257271
export const ROUTES = ROUTE_INFOS.map((r) => r.key);
258272

0 commit comments

Comments
 (0)
Please sign in to comment.