Skip to content

Commit 78ca49d

Browse files
authored
[evm] [cosmwasm] Minor cleanup (#1027)
* Remove old cosmwasm address documentation * Remove old evm migration folder and keep prod-receiver
1 parent b9dbd54 commit 78ca49d

File tree

7 files changed

+3
-122
lines changed

7 files changed

+3
-122
lines changed

contract_manager/src/contracts/evm.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -240,22 +240,6 @@ export class WormholeEvmContract extends WormholeContract {
240240
return currentSet;
241241
}
242242

243-
/**
244-
* Checks whether this contract is a deployment of wormhole-receiver or wormhole.
245-
* The wormhole-receiver is a subset of the wormhole contract optimized for just verifying the VAAs.
246-
* The check is done by calling a function that only exists in the wormhole contract and not in the wormhole-receiver.
247-
* If the function call fails, we know that this is a wormhole-receiver contract.
248-
*/
249-
async isWormholeReceiver(): Promise<boolean> {
250-
const wormholeContract = this.getContract();
251-
try {
252-
await wormholeContract.methods.messageFee().call();
253-
return false;
254-
} catch (e) {
255-
return true;
256-
}
257-
}
258-
259243
async upgradeGuardianSets(senderPrivateKey: PrivateKey, vaa: Buffer) {
260244
const web3 = new Web3(this.chain.getRpcUrl());
261245
const { address } = web3.eth.accounts.wallet.add(senderPrivateKey);

target_chains/cosmwasm/contracts/README.md

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -20,24 +20,6 @@ A typical query requires to pass the price feed id as a hex string. it will look
2020
}
2121
```
2222

23-
## Contracts and Price Feeds
24-
25-
Pyth is currently available on the following cosmwasm chains:
26-
27-
### Testnet
28-
29-
| Network | Contract address |
30-
| --------- | -------------------------------------------- |
31-
| Injective | `inj1z60tg0tekdzcasenhuuwq3htjcd5slmgf7gpez` |
32-
33-
Available price feeds on these networks can be find below:
34-
35-
### Price Feeds
36-
37-
| Network | Available Price Feeds |
38-
| ----------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
39-
| Injective Testnet | [https://pyth.network/developers/price-feed-ids#injective-testnet](https://pyth.network/developers/price-feed-ids#injective-testnet) |
40-
4123
## Developing
4224

4325
The cosmwasm contract lives in the `pyth` subdirectory.

target_chains/ethereum/contracts/.env.prod.development

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Migrations Metadata
2-
MIGRATIONS_DIR=./migrations/prod
2+
MIGRATIONS_DIR=./migrations/prod-receiver
33
MIGRATIONS_NETWORK=development
44
WORMHOLE_CHAIN_NAME=ethereum
55
CLUSTER=testnet

target_chains/ethereum/contracts/.env.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Network Config
2-
MIGRATIONS_DIR= # ./migrations/prod
2+
MIGRATIONS_DIR= # ./migrations/prod-receiver
33
MIGRATIONS_NETWORK= # xyz
44

55

target_chains/ethereum/contracts/Deploying.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ This is the deployment process:
2929

3030
1. Follow the installation instructions in the [README.md](./README.md).
3131
2. As a sanity check on deploying changes for the first time, it is recommended to deploy the migrations
32-
in `migrations/prod` to the Truffle `development` network first. You can do this by using the configuration
32+
in `migrations/prod-receiver` to the Truffle `development` network first. You can do this by using the configuration
3333
values in [`.env.prod.development`](.env.prod.development).
3434
3. If you have changed the contract make sure that:
3535
- The change is not breaking the storage.

target_chains/ethereum/contracts/migrations/prod/1_initial_migration.js

Lines changed: 0 additions & 12 deletions
This file was deleted.

target_chains/ethereum/contracts/migrations/prod/2_deploy_pyth.js

Lines changed: 0 additions & 73 deletions
This file was deleted.

0 commit comments

Comments
 (0)