Skip to content

Commit

Permalink
remove pyth2wormhole
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-gray committed Mar 7, 2022
1 parent f448375 commit a3272dc
Show file tree
Hide file tree
Showing 85 changed files with 70 additions and 23,863 deletions.
50 changes: 0 additions & 50 deletions Tiltfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ config.define_string("webHost", False, "Public hostname for port forwards")
# Components
config.define_bool("algorand", False, "Enable Algorand component")
config.define_bool("solana", False, "Enable Solana component")
config.define_bool("pyth", False, "Enable Pyth-to-Wormhole component")
config.define_bool("explorer", False, "Enable explorer component")
config.define_bool("bridge_ui", False, "Enable bridge UI component")
config.define_bool("e2e", False, "Enable E2E testing stack")
Expand All @@ -57,7 +56,6 @@ webHost = cfg.get("webHost", "localhost")
algorand = cfg.get("algorand", True)
solana = cfg.get("solana", True)
ci = cfg.get("ci", False)
pyth = cfg.get("pyth", ci)
explorer = cfg.get("explorer", ci)
bridge_ui = cfg.get("bridge_ui", ci)
e2e = cfg.get("e2e", ci)
Expand Down Expand Up @@ -279,54 +277,6 @@ docker_build(
],
)

if solana and pyth:
# pyth autopublisher
docker_build(
ref = "pyth",
context = ".",
dockerfile = "third_party/pyth/Dockerfile.pyth",
)
k8s_yaml_with_ns("./devnet/pyth.yaml")

k8s_resource(
"pyth",
resource_deps = ["solana-devnet"],
labels = ["solana"],
trigger_mode = trigger_mode,
)

# pyth2wormhole client autoattester
docker_build(
ref = "p2w-attest",
context = ".",
only = ["./solana", "./third_party"],
dockerfile = "./third_party/pyth/Dockerfile.p2w-attest",
ignore = ["./solana/*/target"],
)

# Automatic pyth2wormhole relay, showcasing p2w-sdk
docker_build(
ref = "p2w-relay",
context = ".",
dockerfile = "./third_party/pyth/p2w-relay/Dockerfile",
)

k8s_yaml_with_ns("devnet/p2w-attest.yaml")
k8s_resource(
"p2w-attest",
resource_deps = ["solana-devnet", "pyth", "guardian"],
port_forwards = [],
labels = ["solana"],
trigger_mode = trigger_mode,
)

k8s_yaml_with_ns("devnet/p2w-relay.yaml")
k8s_resource(
"p2w-relay",
resource_deps = ["solana-devnet", "eth-devnet", "pyth", "guardian", "p2w-attest", "proto-gen-web", "wasm-gen"],
port_forwards = [],
)

k8s_yaml_with_ns("devnet/eth-devnet.yaml")

k8s_resource(
Expand Down
52 changes: 0 additions & 52 deletions devnet/p2w-attest.yaml

This file was deleted.

42 changes: 0 additions & 42 deletions devnet/p2w-relay.yaml

This file was deleted.

47 changes: 0 additions & 47 deletions devnet/pyth.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions devnet/solana-devnet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,6 @@ spec:
- metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s
- /opt/solana/deps/spl_token_metadata.so
- --bpf-program
- gMYYig2utAxVoXnM9UhtTWrt8e7x2SVBZqsWZJeT5Gw # Derived from pyth_program.json
- /opt/solana/deps/pyth_oracle.so
- --bpf-program
- P2WH424242424242424242424242424242424242424
- /opt/solana/deps/pyth2wormhole.so
- --bpf-program
- Ex9bCdVMSfx7EzB3pgSi2R4UHwJAXvTw18rBQm5YQ8gK
- /opt/solana/deps/wormhole_migration.so
- --log
Expand Down
6 changes: 2 additions & 4 deletions docs/devnet.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,12 @@
| Token Bridge | SOL | B6RHG3mfcckmrYN1UhmJzyS1XX3fZKbkeUcpJe9Sy3FE | |
| NFT Bridge | SOL | NFTWqJR8YnRVqPDvTJrYuLrQDitTG5AScqbeghi4zSA | |
| Migration Contract | SOL | Ex9bCdVMSfx7EzB3pgSi2R4UHwJAXvTw18rBQm5YQ8gK | |
| P2W Emitter | SOL | 8fuAZUxHecYLMC76ZNjYzwRybUiDv9LhkRQsAccEykLr | |
| Test Wallet | Terra | terra1x46rqay4d3cssq8gxxvqz8xt6nwlz4td20k38v | Mnemonic: `notice oak worry limit wrap speak medal online prefer cluster roof addict wrist behave treat actual wasp year salad speed social layer crew genius` |
| Test CW20 | Terra | terra13nkgqrfymug724h8pprpexqj9h629sa3ncw7sh | Tokens minted to Test Wallet |
| Test CW721 | Terra | terra1l425neayde0fzfcv3apkyk4zqagvflm6cmha9v | NFTs minted to Test Wallet |
| Test CW721 | Terra | terra18dt935pdcn2ka6l0syy5gt20wa48n3mktvdvjj | NFTs minted to Test Wallet |
| Bridge Core | Terra | terra18vd8fpwxzck93qlwghaj6arh4p7c5n896xzem5 | |
| Token Bridge | Terra | terra10pyejy66429refv3g35g2t7am0was7ya7kz2a4 | |
| NFT Bridge | Terra | terra19zpyd046u4swqpksr3n44cej4j8pg6ah2y6dcg | |
| Pyth Bridge | Terra | terra1plju286nnfj3z54wgcggd4enwaa9fgf5kgrgzl | |
| NFT Bridge | Terra | terra1plju286nnfj3z54wgcggd4enwaa9fgf5kgrgzl | |
| Governance Emitter | Universal | 0x0000000000000000000000000000000000000000000000000000000000000004 / 11111111111111111111111111111115 | Emitter Chain: 0x01 |

### Terra
Expand Down
7 changes: 0 additions & 7 deletions ethereum/.env.template
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,3 @@ BRIDGE_INIT_CHAIN_ID= # 0x02
BRIDGE_INIT_GOV_CHAIN_ID= # 0x3
BRIDGE_INIT_GOV_CONTRACT= # 0x0000000000000000000000000000000000000000000000000000000000000004
BRIDGE_INIT_WETH= # 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2

# Pyth Migrations # Example Format
PYTH_INIT_CHAIN_ID= # 0x2
PYTH_INIT_GOV_CHAIN_ID= # 0x3
PYTH_INIT_GOV_CONTRACT= # 0x0000000000000000000000000000000000000000000000000000000000000004
PYTH_TO_WORMHOLE_CHAIN_ID= # 0x1
PYTH_TO_WORMHOLE_EMITTER= # 8fuAZUxHecYLMC76ZNjYzwRybUiDv9LhkRQsAccEykLr
7 changes: 0 additions & 7 deletions ethereum/.env.test
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,3 @@ BRIDGE_INIT_CHAIN_ID=0x2
BRIDGE_INIT_GOV_CHAIN_ID=0x1
BRIDGE_INIT_GOV_CONTRACT=0x0000000000000000000000000000000000000000000000000000000000000004
BRIDGE_INIT_WETH=0xDDb64fE46a91D46ee29420539FC25FD07c5FEa3E

#Pyth Migrations
PYTH_INIT_CHAIN_ID=0x2
PYTH_INIT_GOV_CHAIN_ID=0x3
PYTH_INIT_GOV_CONTRACT=0x0000000000000000000000000000000000000000000000000000000000000004
PYTH_TO_WORMHOLE_CHAIN_ID=0x1
PYTH_TO_WORMHOLE_EMITTER=8fuAZUxHecYLMC76ZNjYzwRybUiDv9LhkRQsAccEykLr
98 changes: 0 additions & 98 deletions ethereum/contracts/pyth/Pyth.sol

This file was deleted.

15 changes: 0 additions & 15 deletions ethereum/contracts/pyth/PythDataBridge.sol

This file was deleted.

Loading

0 comments on commit a3272dc

Please sign in to comment.