kev1n-peters e90146b321 Update elliptic to >= 6.6.1 (#4272) 8 months ago
..
contracts 4e3b24cfa8 Test contract to publish wormhole messages for testing the guardian watcher (#1696) 3 years ago
forge-scripts f290df6b9b Ethereum: deploy with forge (#3862) 1 year ago
scripts 4e3b24cfa8 Test contract to publish wormhole messages for testing the guardian watcher (#1696) 3 years ago
src 2fc2bb577b docs: fix some typos (#3628) 1 year ago
.gitignore f290df6b9b Ethereum: deploy with forge (#3862) 1 year ago
README.md 4e3b24cfa8 Test contract to publish wormhole messages for testing the guardian watcher (#1696) 3 years ago
jestconfig.json cd56eb08b7 testing: test for multiple messages in one tx 3 years ago
package-lock.json e90146b321 Update elliptic to >= 6.6.1 (#4272) 8 months ago
package.json e90146b321 Update elliptic to >= 6.6.1 (#4272) 8 months ago
truffle-config.js 4e3b24cfa8 Test contract to publish wormhole messages for testing the guardian watcher (#1696) 3 years ago
tsconfig.json cd56eb08b7 testing: test for multiple messages in one tx 3 years ago

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