wormhole/testing/contract-integrations
bruce-riley f290df6b9b
Ethereum: deploy with forge (#3862)
* eth: deploy with forge

* Delete unused scripts

* Support upgrade, bytecode verify and publish tool

* Add script to register all chains on a new chain
2024-04-15 12:13:37 -05:00
..
contracts Test contract to publish wormhole messages for testing the guardian watcher (#1696) 2022-10-17 13:28:17 -05:00
forge-scripts Ethereum: deploy with forge (#3862) 2024-04-15 12:13:37 -05:00
scripts Test contract to publish wormhole messages for testing the guardian watcher (#1696) 2022-10-17 13:28:17 -05:00
src docs: fix some typos (#3628) 2024-03-08 10:17:16 -05:00
.gitignore Ethereum: deploy with forge (#3862) 2024-04-15 12:13:37 -05:00
README.md Test contract to publish wormhole messages for testing the guardian watcher (#1696) 2022-10-17 13:28:17 -05:00
jestconfig.json testing: test for multiple messages in one tx 2022-01-04 10:44:46 -05:00
package-lock.json node: eth publish immediately (#1664) 2022-09-30 11:03:01 -05:00
package.json js: make packages comply with ci rule 2022-10-20 17:11:13 -05:00
truffle-config.js Test contract to publish wormhole messages for testing the guardian watcher (#1696) 2022-10-17 13:28:17 -05:00
tsconfig.json testing: test for multiple messages in one tx 2022-01-04 10:44:46 -05:00

README.md

PublishMsg Contract

This is a simple contract that can be used to generate wormhole messages in testnet. It can be used to test the guardian watcher.

Deployment

  1. Make sure the chain is populated in truffle-config.js.
  2. npm ci
  3. npm run build
  4. MNEMONIC="" TESTNET_WORMHOLE_CORE_ADDRESS="0x6b9C8671cdDC8dEab9c719bB87cBd3e782bA6a35" npm run truffle -- exec scripts/deploy_publish_msg.js --network neon_testnet
  5. Make note of the value returned as "PublishMsg address", it will be used as PUBLISH_MSG_ADDRESS to run the tool.

Generating a test message

  1. MNEMONIC="" TESTNET_RPC="https://proxy.devnet.neonlabs.org/solana" PUBLISH_MSG_ADDRESS="0x95F81502b6DafbF1aAdac5400814f976d119B520" CONSISTENCY_LEVEL=200 node src/publishMsg.js