Skip to content

Commit 8fab8e5

Browse files
committed
change references of example-native-token-transfers to native-token-transfers
1 parent 66f8e41 commit 8fab8e5

Some content is hidden

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

75 files changed

+59
-6021
lines changed

cli/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Depending on the platforms you will deploy on:
1313
Run
1414

1515
``` bash
16-
curl -fsSL https://raw.githubusercontent.com/wormhole-foundation/example-native-token-transfers/main/cli/install.sh | bash
16+
curl -fsSL https://raw.githubusercontent.com/wormhole-foundation/native-token-transfers/main/cli/install.sh | bash
1717
```
1818

1919
The installer will put the `ntt` binary in `$HOME/.bun/bin`, so make sure that directory is included in your `$PATH`. Once `ntt` is installed, it can be updated to the latest release any time by running

cli/install.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ if ! command -v bun > /dev/null; then
99
exit 1
1010
fi
1111

12-
REPO="https://github.com/wormhole-foundation/example-native-token-transfers.git"
12+
REPO="https://github.com/wormhole-foundation/native-token-transfers.git"
1313

1414
function main {
1515
branch=""

cli/src/index.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ yargs(hideBin(process.argv))
257257
if (argv["repo"]) {
258258
repoArg = `--repo ${argv["repo"]}`;
259259
}
260-
const installScript = "https://raw.githubusercontent.com/wormhole-foundation/example-native-token-transfers/main/cli/install.sh";
260+
const installScript = "https://raw.githubusercontent.com/wormhole-foundation/native-token-transfers/main/cli/install.sh";
261261
// save it to "$HOME/.ntt-cli/install.sh"
262262
const nttDir = `${process.env.HOME}/.ntt-cli`;
263263
const installer = `${nttDir}/install.sh`;
@@ -285,7 +285,7 @@ yargs(hideBin(process.argv))
285285
process.exit(1);
286286
}
287287
const path = argv["path"];
288-
await $`git clone -b main https://github.com/wormhole-foundation/example-native-token-transfers.git ${path}`;
288+
await $`git clone -b main https://github.com/wormhole-foundation/native-token-transfers.git ${path}`;
289289
})
290290
.command("add-chain <chain>",
291291
"add a chain to the deployment file",
@@ -1267,7 +1267,7 @@ async function deploySolana<N extends Network, C extends SolanaChains>(
12671267
}
12681268

12691269
const anchorTomlPath = `${pwd}/solana/Anchor.toml`;
1270-
const libRsPath = `${pwd}/solana/programs/example-native-token-transfers/src/lib.rs`;
1270+
const libRsPath = `${pwd}/solana/programs/native-token-transfers/src/lib.rs`;
12711271

12721272
const anchorToml = fs.readFileSync(anchorTomlPath).toString();
12731273
const newAnchorToml = anchorToml.replace(existingProgramId, providedProgramId);

docs/Transceiver.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
The Transceiver is intended to offer a protocol-agnostic interface for sending and receiving cross-chain messages. For Native Token Transfers, this entails initiating attestation generation on the source chain, verifying the resulting attestation on the destination chain, and delivering the message to the associated `NttManager`.
66

7-
In the provided implementations ([EVM](/evm/src/Transceiver/Transceiver.sol)/[SVM](/solana/programs/example-native-token-transfers/src/transceivers/wormhole/)), Transceiver are intended to have a many-to-one or one-to-one relationship with Managers.
7+
In the provided implementations ([EVM](/evm/src/Transceiver/Transceiver.sol)/[SVM](/solana/programs/native-token-transfers/src/transceivers/wormhole/)), Transceiver are intended to have a many-to-one or one-to-one relationship with Managers.
88

99
## Message Specification
1010

evm/ts/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
"version": "0.5.0",
44
"repository": {
55
"type": "git",
6-
"url": "git+https://github.com/wormhole-foundation/example-native-token-transfers.git"
6+
"url": "git+https://github.com/wormhole-foundation/native-token-transfers.git"
77
},
88
"bugs": {
9-
"url": "https://github.com/wormhole-foundation/example-native-token-transfers"
9+
"url": "https://github.com/wormhole-foundation/native-token-transfers"
1010
},
1111
"directories": {
1212
"test": "__tests__"

sdk/definitions/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
"version": "0.5.0",
44
"repository": {
55
"type": "git",
6-
"url": "git+https://github.com/wormhole-foundation/example-native-token-transfers.git"
6+
"url": "git+https://github.com/wormhole-foundation/native-token-transfers.git"
77
},
88
"bugs": {
9-
"url": "https://github.com/wormhole-foundation/example-native-token-transfers"
9+
"url": "https://github.com/wormhole-foundation/native-token-transfers"
1010
},
11-
"homepage": "https://github.com/wormhole-foundation/example-native-token-transfers#readme",
11+
"homepage": "https://github.com/wormhole-foundation/native-token-transfers#readme",
1212
"directories": {
1313
"test": "__tests__"
1414
},

sdk/route/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
"version": "0.5.0",
44
"repository": {
55
"type": "git",
6-
"url": "git+https://github.com/wormhole-foundation/example-native-token-transfers.git"
6+
"url": "git+https://github.com/wormhole-foundation/native-token-transfers.git"
77
},
88
"bugs": {
9-
"url": "https://github.com/wormhole-foundation/example-native-token-transfers"
9+
"url": "https://github.com/wormhole-foundation/native-token-transfers"
1010
},
11-
"homepage": "https://github.com/wormhole-foundation/example-native-token-transfers#readme",
11+
"homepage": "https://github.com/wormhole-foundation/native-token-transfers#readme",
1212
"directories": {
1313
"test": "__tests__"
1414
},

solana/Anchor.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ upgradeable = true
2929

3030
[[test.genesis]]
3131
address = "worm2ZoG2kUd4vFXhvjh93UUH596ayRfgQ2MgjNMTth"
32-
program = "programs/example-native-token-transfers/tests/fixtures/mainnet_core_bridge.so"
32+
program = "programs/native-token-transfers/tests/fixtures/mainnet_core_bridge.so"
3333

3434
[test.validator]
3535
bind_address = "0.0.0.0"

solana/Cargo.lock

+34-34
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

solana/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# turn `const VERSION: &str = "major.minor.patch";` into `major_minor_patch`
66
#use make functions to minimize dependence on shell
77
VERSION = $(subst .,_,$(subst ;,,$(subst ",,$(lastword \
8-
$(shell grep "const VERSION" programs/example-native-token-transfers/src/lib.rs) \
8+
$(shell grep "const VERSION" programs/native-token-transfers/src/lib.rs) \
99
))))
1010

1111

solana/README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,11 @@ See the [NttManager](../docs/NttManager.md) doc for wire format details.
103103

104104
### NativeTokenTransfer Additional Payload
105105

106-
Modify [transfer.rs](./programs/example-native-token-transfers/src/transfer.rs) and replace the `EmptyPayload` with your own custom struct. See [ntt.rs](./modules/ntt-messages/src/ntt.rs) for an example. It is highly encouraged to use a 4-byte prefix for your payload.
106+
Modify [transfer.rs](./programs/native-token-transfers/src/transfer.rs) and replace the `EmptyPayload` with your own custom struct. See [ntt.rs](./modules/ntt-messages/src/ntt.rs) for an example. It is highly encouraged to use a 4-byte prefix for your payload.
107107

108108
The additional payload field should then have your custom struct available everywhere `NativeTokenTransfer<Payload>` is used. Due to typing, parsing, and account allocation restrictions, this implementation expects that _all_ `NativeTokenTransfer` payloads for your contract adhere to your custom struct definition.
109109

110-
You can then modify [release_outbound](./programs/example-native-token-transfers/src/transceivers/wormhole/instructions/release_outbound.rs) and [redeem](./programs/example-native-token-transfers/src/instructions/redeem.rs) to generate and process the additional payload.
110+
You can then modify [release_outbound](./programs/native-token-transfers/src/transceivers/wormhole/instructions/release_outbound.rs) and [redeem](./programs/native-token-transfers/src/instructions/redeem.rs) to generate and process the additional payload.
111111

112112
## Testing
113113

@@ -134,7 +134,7 @@ make test
134134

135135
- Screenshot:
136136
<img src="images/tsx-command-not-found.png" alt="tsx command not found screenshot">
137-
- Update `Makefile` ([line #29](https://github.com/wormhole-foundation/example-native-token-transfers/blob/main/solana/Makefile#L29)) from:
137+
- Update `Makefile` ([line #29](https://github.com/wormhole-foundation/native-token-transfers/blob/main/solana/Makefile#L29)) from:
138138

139139
```sh
140140
tsx scripts/regenerateIdl.ts $$jsonfile > $$tsfile; \
@@ -154,6 +154,6 @@ make test
154154
- Screenshot:
155155
<img src="images/lifecycle-script.png" alt="lifecycle script screenshot">
156156
- This occurs due to Typescript files failing compilation.
157-
- [`patch-idl` script](https://github.com/wormhole-foundation/example-native-token-transfers/blob/main/solana/scripts/patch-idl) requires [`jq`](https://jqlang.github.io/jq/) to be installed. Install `jq` and retry.
157+
- [`patch-idl` script](https://github.com/wormhole-foundation/native-token-transfers/blob/main/solana/scripts/patch-idl) requires [`jq`](https://jqlang.github.io/jq/) to be installed. Install `jq` and retry.
158158

159159
</details>

solana/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
"version": "0.5.0",
44
"repository": {
55
"type": "git",
6-
"url": "git+https://github.com/wormhole-foundation/example-native-token-transfers.git"
6+
"url": "git+https://github.com/wormhole-foundation/native-token-transfers.git"
77
},
88
"bugs": {
9-
"url": "https://github.com/wormhole-foundation/example-native-token-transfers"
9+
"url": "https://github.com/wormhole-foundation/native-token-transfers"
1010
},
11-
"homepage": "https://github.com/wormhole-foundation/example-native-token-transfers#readme",
11+
"homepage": "https://github.com/wormhole-foundation/native-token-transfers#readme",
1212
"directories": {
1313
"test": "tests"
1414
},

solana/programs/example-native-token-transfers/Cargo.toml

-62
This file was deleted.

solana/programs/example-native-token-transfers/Xargo.toml

-2
This file was deleted.

0 commit comments

Comments
 (0)