File tree Expand file tree Collapse file tree 7 files changed +3
-122
lines changed
contract_manager/src/contracts Expand file tree Collapse file tree 7 files changed +3
-122
lines changed Original file line number Diff line number Diff line change @@ -240,22 +240,6 @@ export class WormholeEvmContract extends WormholeContract {
240
240
return currentSet ;
241
241
}
242
242
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
-
259
243
async upgradeGuardianSets ( senderPrivateKey : PrivateKey , vaa : Buffer ) {
260
244
const web3 = new Web3 ( this . chain . getRpcUrl ( ) ) ;
261
245
const { address } = web3 . eth . accounts . wallet . add ( senderPrivateKey ) ;
Original file line number Diff line number Diff line change @@ -20,24 +20,6 @@ A typical query requires to pass the price feed id as a hex string. it will look
20
20
}
21
21
```
22
22
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
-
41
23
## Developing
42
24
43
25
The cosmwasm contract lives in the ` pyth ` subdirectory.
Original file line number Diff line number Diff line change 1
1
# Migrations Metadata
2
- MIGRATIONS_DIR=./migrations/prod
2
+ MIGRATIONS_DIR=./migrations/prod-receiver
3
3
MIGRATIONS_NETWORK=development
4
4
WORMHOLE_CHAIN_NAME=ethereum
5
5
CLUSTER=testnet
Original file line number Diff line number Diff line change 1
1
# Network Config
2
- MIGRATIONS_DIR= # ./migrations/prod
2
+ MIGRATIONS_DIR= # ./migrations/prod-receiver
3
3
MIGRATIONS_NETWORK= # xyz
4
4
5
5
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ This is the deployment process:
29
29
30
30
1 . Follow the installation instructions in the [ README.md] ( ./README.md ) .
31
31
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
33
33
values in [ ` .env.prod.development ` ] ( .env.prod.development ) .
34
34
3 . If you have changed the contract make sure that:
35
35
- The change is not breaking the storage.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments