Przeglądaj źródła

Repo structure refactor (#449)

* Repo structure refactor

This change introduces major codebase layout changes in three areas:
* Tilt devnet lives in tilt-devnet/ - all k8s and docker files,
scripts, local testing private keys are moved to this directory.
* pyth2wormhole becomes pyth-wormhole-attester and is relocated to
wormhole-attester/ - This long-needed rename will hopefully eradicate
most of the confusing naming around the attester. The Rust client binary
becomes pyth-wormhole-attester-client.
* Target-chain code lives in target-chain/ - This leaves just the
attester, third_party and pythnet-specific things at top-level.

Other opportunistic changes:
* Fixed rebuild trigger for Dockerfile.wasm

These items are a fraction of the necessary structure changes in the repo.

* cosmwasm: fix contract after faulty merge

* .github: remove unused dependabot config

* Fix path references in .github and .pre-commit-config.yml

* .github: Rename attester references to pyth-wormhole-attester

* .pre-commit-config.yaml: fix paths and run all commit hooks

* p2w-relay: Fix faulty merge resolution in favor of origin/main

* Dockerfile.pyth_relay: Fix Ethereum path reference

* Dockerfile.solana: Trip early cache with arbitrary change

* Dockerfile.pyth_relay: typo

* p2w-relay: fix evm build in npm script

* Dockerfile.solana: Retry invalidating cache again

* near -> target-chains/near

* wormhole-attester: bump on/off-chain major versions due to rename

Attester packages were renamed. This possibly breaks most dependees.

* Dockerfile.solana: Improve decoy-crate to have a real lib target

* .github/[...]/pyth-cosmwasm-contract.yml: typo

* rust-toolchain: Bump rust to stable 1.63

* rust-toolchain: use christmas nightly

* empty commit to trigger build

* attester-image-push.yaml: keep xc-attest image name intact

* multisig-wh-message-builder: remove accidental revert
Stanisław Drozd 2 lat temu
rodzic
commit
01c4661985
100 zmienionych plików z 48 dodań i 91 usunięć
  1. 0 28
      .github/dependabot.yml
  2. 3 4
      .github/workflows/attester-image-push.yml
  3. 3 3
      .github/workflows/ethereum-contract.yml
  4. 1 1
      .github/workflows/price-service-image-push.yml
  5. 3 3
      .github/workflows/pyth-cosmwasm-contract.yml
  6. 12 12
      .pre-commit-config.yaml
  7. 0 3
      Dockerfile.prometheus
  8. 24 32
      Tiltfile
  9. 0 1
      ethereum/devnet_mnemonic.txt
  10. 1 1
      rust-toolchain
  11. 0 2
      solana/.dockerignore
  12. 0 0
      target-chains/aptos/cli/package-lock.json
  13. 0 0
      target-chains/aptos/cli/package.json
  14. 0 0
      target-chains/aptos/cli/src/cli.ts
  15. 0 0
      target-chains/aptos/cli/src/commands/aptos.ts
  16. 0 0
      target-chains/aptos/cli/tsconfig.json
  17. 0 0
      target-chains/aptos/contracts/Makefile
  18. 0 0
      target-chains/aptos/contracts/Move.toml
  19. 0 0
      target-chains/aptos/contracts/sources/batch_price_attestation.move
  20. 0 0
      target-chains/aptos/contracts/sources/data_source.move
  21. 0 0
      target-chains/aptos/contracts/sources/deserialize.move
  22. 0 0
      target-chains/aptos/contracts/sources/error.move
  23. 0 0
      target-chains/aptos/contracts/sources/event.move
  24. 0 0
      target-chains/aptos/contracts/sources/governance/contract_upgrade.move
  25. 0 0
      target-chains/aptos/contracts/sources/governance/governance.move
  26. 0 0
      target-chains/aptos/contracts/sources/governance/governance_action.move
  27. 0 0
      target-chains/aptos/contracts/sources/governance/governance_instruction.move
  28. 0 0
      target-chains/aptos/contracts/sources/governance/set_data_sources.move
  29. 0 0
      target-chains/aptos/contracts/sources/governance/set_governance_data_source.move
  30. 0 0
      target-chains/aptos/contracts/sources/governance/set_stale_price_threshold.move
  31. 0 0
      target-chains/aptos/contracts/sources/governance/set_update_fee.move
  32. 0 0
      target-chains/aptos/contracts/sources/i64.move
  33. 0 0
      target-chains/aptos/contracts/sources/price.move
  34. 0 0
      target-chains/aptos/contracts/sources/price_feed.move
  35. 0 0
      target-chains/aptos/contracts/sources/price_identifier.move
  36. 0 0
      target-chains/aptos/contracts/sources/price_info.move
  37. 0 0
      target-chains/aptos/contracts/sources/price_status.move
  38. 0 0
      target-chains/aptos/contracts/sources/pyth.move
  39. 0 0
      target-chains/aptos/contracts/sources/set.move
  40. 0 0
      target-chains/aptos/contracts/sources/state.move
  41. 0 0
      target-chains/aptos/examples/fetch_btc_price/Move.toml
  42. 0 0
      target-chains/aptos/examples/fetch_btc_price/sources/example.move
  43. 0 0
      target-chains/aptos/examples/mint_nft/.gitignore
  44. 0 0
      target-chains/aptos/examples/mint_nft/Move.toml
  45. 0 0
      target-chains/aptos/examples/mint_nft/README.md
  46. 0 0
      target-chains/aptos/examples/mint_nft/app/.gitignore
  47. 0 0
      target-chains/aptos/examples/mint_nft/app/package-lock.json
  48. 0 0
      target-chains/aptos/examples/mint_nft/app/package.json
  49. 0 0
      target-chains/aptos/examples/mint_nft/app/public/favicon.ico
  50. 0 0
      target-chains/aptos/examples/mint_nft/app/public/index.html
  51. 0 0
      target-chains/aptos/examples/mint_nft/app/public/logo192.png
  52. 0 0
      target-chains/aptos/examples/mint_nft/app/public/manifest.json
  53. 0 0
      target-chains/aptos/examples/mint_nft/app/public/robots.txt
  54. 0 0
      target-chains/aptos/examples/mint_nft/app/src/App.css
  55. 0 0
      target-chains/aptos/examples/mint_nft/app/src/App.test.tsx
  56. 0 0
      target-chains/aptos/examples/mint_nft/app/src/App.tsx
  57. 0 0
      target-chains/aptos/examples/mint_nft/app/src/index.css
  58. 0 0
      target-chains/aptos/examples/mint_nft/app/src/index.tsx
  59. 0 0
      target-chains/aptos/examples/mint_nft/app/src/logo.svg
  60. 0 0
      target-chains/aptos/examples/mint_nft/app/src/react-app-env.d.ts
  61. 0 0
      target-chains/aptos/examples/mint_nft/app/src/reportWebVitals.ts
  62. 0 0
      target-chains/aptos/examples/mint_nft/app/src/setupTests.ts
  63. 0 0
      target-chains/aptos/examples/mint_nft/app/tsconfig.json
  64. 0 0
      target-chains/aptos/examples/mint_nft/sources/minting.move
  65. 0 0
      target-chains/aptos/start_node.sh
  66. 0 0
      target-chains/cosmwasm/.dockerignore
  67. 0 0
      target-chains/cosmwasm/.gitignore
  68. 0 0
      target-chains/cosmwasm/Cargo.lock
  69. 0 0
      target-chains/cosmwasm/Cargo.toml
  70. 0 0
      target-chains/cosmwasm/Dockerfile.build
  71. 0 0
      target-chains/cosmwasm/README.md
  72. 0 0
      target-chains/cosmwasm/build.sh
  73. 0 0
      target-chains/cosmwasm/contracts/README.md
  74. 1 1
      target-chains/cosmwasm/contracts/pyth/Cargo.toml
  75. 0 0
      target-chains/cosmwasm/contracts/pyth/src/contract.rs
  76. 0 0
      target-chains/cosmwasm/contracts/pyth/src/error.rs
  77. 0 0
      target-chains/cosmwasm/contracts/pyth/src/governance.rs
  78. 0 0
      target-chains/cosmwasm/contracts/pyth/src/lib.rs
  79. 0 0
      target-chains/cosmwasm/contracts/pyth/src/msg.rs
  80. 0 0
      target-chains/cosmwasm/contracts/pyth/src/state.rs
  81. 0 0
      target-chains/cosmwasm/devnet/Dockerfile
  82. 0 0
      target-chains/cosmwasm/devnet/config/app.toml
  83. 0 0
      target-chains/cosmwasm/devnet/config/config.toml
  84. 0 0
      target-chains/cosmwasm/devnet/config/genesis.json
  85. 0 0
      target-chains/cosmwasm/devnet/config/node_key.json
  86. 0 0
      target-chains/cosmwasm/devnet/config/priv_validator_key.json
  87. 0 0
      target-chains/cosmwasm/devnet/config/terrad.toml
  88. 0 0
      target-chains/cosmwasm/devnet/config/wasm.toml
  89. 0 0
      target-chains/cosmwasm/tools/deploy-pyth-bridge.js
  90. 0 0
      target-chains/cosmwasm/tools/deploy.js
  91. 0 0
      target-chains/cosmwasm/tools/deploy.sh
  92. 0 0
      target-chains/cosmwasm/tools/package-lock.json
  93. 0 0
      target-chains/cosmwasm/tools/package.json
  94. 0 0
      target-chains/ethereum/.dockerignore
  95. 0 0
      target-chains/ethereum/.env.cluster.mainnet
  96. 0 0
      target-chains/ethereum/.env.cluster.testnet
  97. 0 0
      target-chains/ethereum/.env.prod.arbitrum
  98. 0 0
      target-chains/ethereum/.env.prod.arbitrum_testnet
  99. 0 0
      target-chains/ethereum/.env.prod.aurora
  100. 0 0
      target-chains/ethereum/.env.prod.aurora_testnet

+ 0 - 28
.github/dependabot.yml

@@ -1,28 +0,0 @@
-# To get started with Dependabot version updates, you'll need to specify which
-# package ecosystems to update and where the package manifests are located.
-# Please see the documentation for all configuration options:
-# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
-
-version: 2
-updates:
-  - package-ecosystem: "npm" # See documentation for possible values
-    directory: "/bridge_ui" # Location of package manifests
-    schedule:
-      interval: "weekly"
-    labels:
-      - "dependencies"
-      - "bridge_ui"
-  - package-ecosystem: "npm"
-    directory: "/sdk/js"
-    schedule:
-      interval: "weekly"
-    labels:
-      - "dependencies"
-      - "sdk/js"
-  - package-ecosystem: "npm"
-    directory: "/spydk/js"
-    schedule:
-      interval: "weekly"
-    labels:
-      - "dependencies"
-      - "spydk/js"

+ 3 - 4
.github/workflows/attester-image-push.yml

@@ -2,7 +2,7 @@ name: Build and Push Attester Image
 on:
   push:
     tags:
-      - pyth-attester-v*
+      - pyth-wormhole-attester-v*
   workflow_dispatch:
     inputs:
       dispatch_description:
@@ -18,13 +18,13 @@ jobs:
     steps:
       - uses: actions/checkout@v2
       - name: Set image tag to version of the git tag
-        if: ${{ startsWith(github.ref, 'refs/tags/pyth-attester-v') }}
+        if: ${{ startsWith(github.ref, 'refs/tags/pyth-wormhole-attester-v') }}
         run: |
           PREFIX="refs/tags/pyth-attester-"
           VERSION="${GITHUB_REF:${#PREFIX}}"
           echo "IMAGE_TAG=${VERSION}" >> "${GITHUB_ENV}"
       - name: Set image tag to the git commit hash
-        if: ${{ !startsWith(github.ref, 'refs/tags/pyth-attester-v') }}
+        if: ${{ !startsWith(github.ref, 'refs/tags/pyth-wormhole-attester-v') }}
         run: |
           echo "IMAGE_TAG=${{ github.sha }}" >> "${GITHUB_ENV}"
       - uses: aws-actions/configure-aws-credentials@8a84b07f2009032ade05a88a28750d733cc30db1
@@ -37,7 +37,6 @@ jobs:
         env:
           AWS_REGION: us-east-1
       - run: |
-          DOCKER_BUILDKIT=1 docker build -f Dockerfile.client -t bridge-client .
           DOCKER_BUILDKIT=1 docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -f third_party/pyth/Dockerfile.p2w-attest .
           docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
         env:

+ 3 - 3
.github/workflows/ethereum-contract.yml

@@ -1,13 +1,13 @@
 on:
   pull_request:
     paths:
-      - ethereum/**
+      - target-chains/ethereum/**
       - third_party/pyth/xc-governance-sdk-js/**
   push:
     branches:
       - main
     paths:
-      - ethereum/**
+      - target-chains/ethereum/**
       - third_party/pyth/xc-governance-sdk-js/**
 
 name: Ethereum Contract
@@ -18,7 +18,7 @@ jobs:
     runs-on: ubuntu-latest
     defaults:
       run:
-        working-directory: ethereum/
+        working-directory: target-chains/ethereum/
     steps:
       - uses: actions/checkout@v3
 

+ 1 - 1
.github/workflows/price-service-image-push.yml

@@ -37,7 +37,7 @@ jobs:
         env:
           AWS_REGION: us-east-1
       - run: |
-          DOCKER_BUILDKIT=1 docker build -f Dockerfile.wasm -o type=local,dest=. .
+          DOCKER_BUILDKIT=1 docker build -f tilt-devnet/docker-images/Dockerfile.wasm -o type=local,dest=. .
           DOCKER_BUILDKIT=1 docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -f third_party/pyth/price-service/Dockerfile.price_service .
           docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
         env:

+ 3 - 3
.github/workflows/pyth-cosmwasm-contract.yml

@@ -3,13 +3,13 @@ name: Pyth CosmWasm Contract
 on:
   pull_request:
     paths:
-      - cosmwasm/**
+      - target-chains/cosmwasm/**
       - third_party/pyth/p2w-sdk/rust/**
   push:
     branches:
       - main
     paths:
-      - cosmwasm/**
+      - target-chains/cosmwasm/**
       - third_party/pyth/p2w-sdk/rust/**
 
 env:
@@ -20,7 +20,7 @@ jobs:
     runs-on: ubuntu-latest
     defaults:
       run:
-        working-directory: ./cosmwasm/contracts/pyth
+        working-directory: target-chains/cosmwasm/contracts/pyth
     steps:
       - uses: actions/checkout@v2
       - name: Build

+ 12 - 12
.pre-commit-config.yaml

@@ -22,51 +22,51 @@ repos:
         language: "rust"
         entry: cargo +nightly fmt --manifest-path ./pythnet/remote-executor/Cargo.toml --all -- --config-path rustfmt.toml
         pass_filenames: false
-        files: pythnet/remote-executor/
+        files: pythnet/remote-executor
       - id: cargo-clippy-remote-executor
         name: Cargo clippy for remote executor
         language: "rust"
         entry: cargo +nightly clippy --manifest-path ./pythnet/remote-executor/Cargo.toml --tests --fix --allow-dirty --allow-staged -- -D warnings
         pass_filenames: false
-        files: pythnet/remote-executor/
+        files: pythnet/remote-executor
       # Hooks for the attester
       - id: cargo-fmt-attester
         name: Cargo format for attester
         language: "rust"
-        entry: cargo +nightly fmt --manifest-path ./solana/pyth2wormhole/Cargo.toml --all -- --config-path rustfmt.toml
+        entry: cargo +nightly fmt --manifest-path ./wormhole-attester/Cargo.toml --all -- --config-path rustfmt.toml
         pass_filenames: false
-        files: solana/pyth2wormhole/
+        files: wormhole-attester
       - id: cargo-clippy-attester
         name: Cargo clippy for attester
         language: "rust"
         entry: |
           bash -c 'EMITTER_ADDRESS=0 BRIDGE_ADDRESS=0 cargo +nightly clippy --manifest-path \
-            ./solana/pyth2wormhole/Cargo.toml --tests --fix --allow-dirty --allow-staged -- -D warnings'
+            ./wormhole-attester/Cargo.toml --tests --fix --allow-dirty --allow-staged -- -D warnings'
         pass_filenames: false
-        files: solana/pyth2wormhole/
+        files: wormhole-attester
       # Hooks for cosmwasm contract
       - id: cargo-fmt-cosmwasm
         name: Cargo format for cosmwasm contract
         language: "rust"
-        entry: cargo +nightly fmt --manifest-path ./cosmwasm/Cargo.toml --all -- --config-path rustfmt.toml
+        entry: cargo +nightly fmt --manifest-path ./target-chains/cosmwasm/Cargo.toml --all -- --config-path rustfmt.toml
         pass_filenames: false
-        files: cosmwasm/
+        files: target-chains/cosmwasm
       - id: cargo-clippy-cosmwasm
         name: Cargo clippy for cosmwasm contract
         language: "rust"
-        entry: cargo +nightly clippy --manifest-path ./cosmwasm/Cargo.toml --tests --fix --allow-dirty --allow-staged -- -D warnings
+        entry: cargo +nightly clippy --manifest-path ./target-chains/cosmwasm/Cargo.toml --tests --fix --allow-dirty --allow-staged -- -D warnings
         pass_filenames: false
-        files: cosmwasm/
+        files: target-chains/cosmwasm
       # Hooks for p2w-sdk/rust
       - id: cargo-fmt-p2w-sdk
         name: Cargo format for p2w-sdk
         language: "rust"
         entry: cargo +nightly fmt --manifest-path ./third_party/pyth/p2w-sdk/rust/Cargo.toml --all -- --config-path rustfmt.toml
         pass_filenames: false
-        files: third_party/pyth/p2w-sdk/rust/
+        files: third_party/pyth/p2w-sdk/rust
       - id: cargo-clippy-p2w-sdk
         name: Cargo clippy for p2w-sdk
         language: "rust"
         entry: cargo +nightly clippy --manifest-path ./third_party/pyth/p2w-sdk/rust/Cargo.toml --tests --fix --allow-dirty --allow-staged -- -D warnings
         pass_filenames: false
-        files: third_party/pyth/p2w-sdk/rust/
+        files: third_party/pyth/p2w-sdk/rust

+ 0 - 3
Dockerfile.prometheus

@@ -1,3 +0,0 @@
-FROM prom/prometheus
-
-ADD --chown=nobody:nobody ./prometheus_config.yaml .

+ 24 - 32
Tiltfile

@@ -66,16 +66,16 @@ def k8s_yaml_with_ns(objects):
 
 local_resource(
     name = "wasm-gen",
-    cmd = "tilt docker build -- -f Dockerfile.wasm -o type=local,dest=. .",
+    cmd = "tilt docker build -- -f tilt-devnet/docker-images/Dockerfile.wasm -o type=local,dest=. .",
     env = {"DOCKER_BUILDKIT": "1"},
+    deps = "./wormhole-attester",
     labels = ["wasm"],
     allow_parallel=True,
     trigger_mode = trigger_mode,
 )
 
-
 def build_node_yaml():
-    node_yaml = read_yaml_stream("devnet/node.yaml")
+    node_yaml = read_yaml_stream("tilt-devnet/k8s/node.yaml")
 
     for obj in node_yaml:
         if obj["kind"] == "StatefulSet" and obj["metadata"]["name"] == "guardian":
@@ -103,7 +103,7 @@ k8s_resource(
 )
 
 # spy
-k8s_yaml_with_ns("devnet/spy.yaml")
+k8s_yaml_with_ns("tilt-devnet/k8s/spy.yaml")
 
 k8s_resource(
     "spy",
@@ -121,10 +121,7 @@ k8s_resource(
 docker_build(
     ref = "bridge-client",
     context = ".",
-    only = ["./solana"],
-    dockerfile = "Dockerfile.client",
-    # Ignore target folders from local (non-container) development.
-    ignore = ["./solana/*/target"],
+    dockerfile = "tilt-devnet/docker-images/Dockerfile.client",
 )
 
 # solana smart contract
@@ -132,12 +129,12 @@ docker_build(
 docker_build(
     ref = "solana-contract",
     context = ".",
-    dockerfile = "Dockerfile.solana",
+    dockerfile = "tilt-devnet/docker-images/Dockerfile.solana",
 )
 
 # solana local devnet
 
-k8s_yaml_with_ns("devnet/solana-devnet.yaml")
+k8s_yaml_with_ns("tilt-devnet/k8s/solana-devnet.yaml")
 
 k8s_resource(
     "solana-devnet",
@@ -155,10 +152,7 @@ k8s_resource(
 docker_build(
     ref = "eth-node",
     context = "./",
-    dockerfile = "./Dockerfile.ethereum",
-
-    # ignore local node_modules (in case they're present)
-    ignore = ["./ethereum/node_modules", "./third_party/pyth/xc-governance-sdk-js/node_modules"],
+    dockerfile = "tilt-devnet/docker-images/Dockerfile.ethereum",
 
     # sync external scripts for incremental development
     # (everything else needs to be restarted from scratch for determinism)
@@ -176,7 +170,7 @@ docker_build(
     context = ".",
     dockerfile = "third_party/pyth/Dockerfile.pyth",
 )
-k8s_yaml_with_ns("./devnet/pyth.yaml")
+k8s_yaml_with_ns("./tilt-devnet/k8s/pyth.yaml")
 
 k8s_resource(
     "pyth",
@@ -189,12 +183,10 @@ k8s_resource(
 docker_build(
     ref = "p2w-attest",
     context = ".",
-    only = ["./solana", "./third_party", "./pythnet"],
     dockerfile = "./third_party/pyth/Dockerfile.p2w-attest",
-    ignore = ["./solana/*/target"],
 )
 
-k8s_yaml_with_ns("devnet/p2w-attest.yaml")
+k8s_yaml_with_ns("tilt-devnet/k8s/p2w-attest.yaml")
 k8s_resource(
     "p2w-attest",
     resource_deps = ["solana-devnet", "pyth", "guardian"],
@@ -211,7 +203,7 @@ docker_build(
     dockerfile = "./third_party/pyth/Dockerfile.check-attestations",
 )
 
-k8s_yaml_with_ns("devnet/check-attestations.yaml")
+k8s_yaml_with_ns("tilt-devnet/k8s/check-attestations.yaml")
 k8s_resource(
     "check-attestations",
     resource_deps = ["pyth-price-service", "pyth", "p2w-attest"],
@@ -225,7 +217,7 @@ docker_build(
     context = ".",
     dockerfile = "third_party/pyth/p2w-relay/Dockerfile.pyth_relay",
 )
-k8s_yaml_with_ns("devnet/p2w-terra-relay.yaml")
+k8s_yaml_with_ns("tilt-devnet/k8s/p2w-terra-relay.yaml")
 k8s_resource(
     "p2w-terra-relay",
     resource_deps = ["pyth", "p2w-attest", "spy", "terra-terrad", "wasm-gen"],
@@ -235,7 +227,7 @@ k8s_resource(
     labels = ["pyth"]
 )
 
-k8s_yaml_with_ns("devnet/p2w-evm-relay.yaml")
+k8s_yaml_with_ns("tilt-devnet/k8s/p2w-evm-relay.yaml")
 k8s_resource(
     "p2w-evm-relay",
     resource_deps = ["pyth", "p2w-attest", "spy", "eth-devnet", "wasm-gen"],
@@ -251,7 +243,7 @@ docker_build(
     context = ".",
     dockerfile = "third_party/pyth/price-service/Dockerfile.price_service",
 )
-k8s_yaml_with_ns("devnet/pyth-price-service.yaml")
+k8s_yaml_with_ns("tilt-devnet/k8s/pyth-price-service.yaml")
 k8s_resource(
     "pyth-price-service",
     resource_deps = ["pyth", "p2w-attest", "spy", "eth-devnet", "wasm-gen"],
@@ -268,7 +260,7 @@ docker_build(
     context = "third_party/pyth/evm-watcher/",
     dockerfile = "third_party/pyth/evm-watcher/Dockerfile",
 )
-k8s_yaml_with_ns("devnet/pyth-evm-watcher.yaml")
+k8s_yaml_with_ns("tilt-devnet/k8s/pyth-evm-watcher.yaml")
 k8s_resource(
     "pyth-evm-watcher",
     resource_deps = ["eth-devnet"],
@@ -276,7 +268,7 @@ k8s_resource(
 )
 
 
-k8s_yaml_with_ns("devnet/eth-devnet.yaml")
+k8s_yaml_with_ns("tilt-devnet/k8s/eth-devnet.yaml")
 
 k8s_resource(
     "eth-devnet",
@@ -301,17 +293,17 @@ k8s_resource(
 
 docker_build(
     ref = "terra-image",
-    context = "./cosmwasm/devnet",
-    dockerfile = "cosmwasm/devnet/Dockerfile",
+    context = "./target-chains/cosmwasm/devnet",
+    dockerfile = "./target-chains/cosmwasm/devnet/Dockerfile",
 )
 
 docker_build(
     ref = "cosmwasm-contracts",
     context = ".",
-    dockerfile = "Dockerfile.cosmwasm",
+    dockerfile = "tilt-devnet/docker-images/Dockerfile.cosmwasm",
 )
 
-k8s_yaml_with_ns("devnet/terra-devnet.yaml")
+k8s_yaml_with_ns("tilt-devnet/k8s/terra-devnet.yaml")
 
 k8s_resource(
     "terra-terrad",
@@ -340,10 +332,10 @@ k8s_resource(
 docker_build(
     ref = "prometheus",
     context = ".",
-    dockerfile = "Dockerfile.prometheus",
+    dockerfile = "tilt-devnet/docker-images/Dockerfile.prometheus",
 )
 
-k8s_yaml_with_ns("devnet/prometheus.yaml")
+k8s_yaml_with_ns("tilt-devnet/k8s/prometheus.yaml")
 
 k8s_resource(
     "prometheus",
@@ -355,10 +347,10 @@ k8s_resource(
 docker_build(
     ref = "multisig",
     context = ".",
-    dockerfile = "Dockerfile.multisig",
+    dockerfile = "tilt-devnet/docker-images/Dockerfile.multisig",
 )
 
-k8s_yaml_with_ns("devnet/multisig.yaml")
+k8s_yaml_with_ns("tilt-devnet/k8s/multisig.yaml")
 
 k8s_resource(
     "multisig",

+ 0 - 1
ethereum/devnet_mnemonic.txt

@@ -1 +0,0 @@
-myth like bonus scare over problem client lizard pioneer submit female collect

+ 1 - 1
solana/pyth2wormhole/rust-toolchain → rust-toolchain

@@ -2,5 +2,5 @@
 # ci/rust-version.sh in the branch of the solana repo that corresponds
 # with the version we're using.
 [toolchain]
-channel = "nightly-2022-02-24"
+channel = "nightly-2022-12-24"
 profile = "minimal"

+ 0 - 2
solana/.dockerignore

@@ -1,2 +0,0 @@
-bin
-**/target

+ 0 - 0
aptos/cli/package-lock.json → target-chains/aptos/cli/package-lock.json


+ 0 - 0
aptos/cli/package.json → target-chains/aptos/cli/package.json


+ 0 - 0
aptos/cli/src/cli.ts → target-chains/aptos/cli/src/cli.ts


+ 0 - 0
aptos/cli/src/commands/aptos.ts → target-chains/aptos/cli/src/commands/aptos.ts


+ 0 - 0
aptos/cli/tsconfig.json → target-chains/aptos/cli/tsconfig.json


+ 0 - 0
aptos/contracts/Makefile → target-chains/aptos/contracts/Makefile


+ 0 - 0
aptos/contracts/Move.toml → target-chains/aptos/contracts/Move.toml


+ 0 - 0
aptos/contracts/sources/batch_price_attestation.move → target-chains/aptos/contracts/sources/batch_price_attestation.move


+ 0 - 0
aptos/contracts/sources/data_source.move → target-chains/aptos/contracts/sources/data_source.move


+ 0 - 0
aptos/contracts/sources/deserialize.move → target-chains/aptos/contracts/sources/deserialize.move


+ 0 - 0
aptos/contracts/sources/error.move → target-chains/aptos/contracts/sources/error.move


+ 0 - 0
aptos/contracts/sources/event.move → target-chains/aptos/contracts/sources/event.move


+ 0 - 0
aptos/contracts/sources/governance/contract_upgrade.move → target-chains/aptos/contracts/sources/governance/contract_upgrade.move


+ 0 - 0
aptos/contracts/sources/governance/governance.move → target-chains/aptos/contracts/sources/governance/governance.move


+ 0 - 0
aptos/contracts/sources/governance/governance_action.move → target-chains/aptos/contracts/sources/governance/governance_action.move


+ 0 - 0
aptos/contracts/sources/governance/governance_instruction.move → target-chains/aptos/contracts/sources/governance/governance_instruction.move


+ 0 - 0
aptos/contracts/sources/governance/set_data_sources.move → target-chains/aptos/contracts/sources/governance/set_data_sources.move


+ 0 - 0
aptos/contracts/sources/governance/set_governance_data_source.move → target-chains/aptos/contracts/sources/governance/set_governance_data_source.move


+ 0 - 0
aptos/contracts/sources/governance/set_stale_price_threshold.move → target-chains/aptos/contracts/sources/governance/set_stale_price_threshold.move


+ 0 - 0
aptos/contracts/sources/governance/set_update_fee.move → target-chains/aptos/contracts/sources/governance/set_update_fee.move


+ 0 - 0
aptos/contracts/sources/i64.move → target-chains/aptos/contracts/sources/i64.move


+ 0 - 0
aptos/contracts/sources/price.move → target-chains/aptos/contracts/sources/price.move


+ 0 - 0
aptos/contracts/sources/price_feed.move → target-chains/aptos/contracts/sources/price_feed.move


+ 0 - 0
aptos/contracts/sources/price_identifier.move → target-chains/aptos/contracts/sources/price_identifier.move


+ 0 - 0
aptos/contracts/sources/price_info.move → target-chains/aptos/contracts/sources/price_info.move


+ 0 - 0
aptos/contracts/sources/price_status.move → target-chains/aptos/contracts/sources/price_status.move


+ 0 - 0
aptos/contracts/sources/pyth.move → target-chains/aptos/contracts/sources/pyth.move


+ 0 - 0
aptos/contracts/sources/set.move → target-chains/aptos/contracts/sources/set.move


+ 0 - 0
aptos/contracts/sources/state.move → target-chains/aptos/contracts/sources/state.move


+ 0 - 0
aptos/examples/fetch_btc_price/Move.toml → target-chains/aptos/examples/fetch_btc_price/Move.toml


+ 0 - 0
aptos/examples/fetch_btc_price/sources/example.move → target-chains/aptos/examples/fetch_btc_price/sources/example.move


+ 0 - 0
aptos/examples/mint_nft/.gitignore → target-chains/aptos/examples/mint_nft/.gitignore


+ 0 - 0
aptos/examples/mint_nft/Move.toml → target-chains/aptos/examples/mint_nft/Move.toml


+ 0 - 0
aptos/examples/mint_nft/README.md → target-chains/aptos/examples/mint_nft/README.md


+ 0 - 0
aptos/examples/mint_nft/app/.gitignore → target-chains/aptos/examples/mint_nft/app/.gitignore


+ 0 - 0
aptos/examples/mint_nft/app/package-lock.json → target-chains/aptos/examples/mint_nft/app/package-lock.json


+ 0 - 0
aptos/examples/mint_nft/app/package.json → target-chains/aptos/examples/mint_nft/app/package.json


+ 0 - 0
aptos/examples/mint_nft/app/public/favicon.ico → target-chains/aptos/examples/mint_nft/app/public/favicon.ico


+ 0 - 0
aptos/examples/mint_nft/app/public/index.html → target-chains/aptos/examples/mint_nft/app/public/index.html


+ 0 - 0
aptos/examples/mint_nft/app/public/logo192.png → target-chains/aptos/examples/mint_nft/app/public/logo192.png


+ 0 - 0
aptos/examples/mint_nft/app/public/manifest.json → target-chains/aptos/examples/mint_nft/app/public/manifest.json


+ 0 - 0
aptos/examples/mint_nft/app/public/robots.txt → target-chains/aptos/examples/mint_nft/app/public/robots.txt


+ 0 - 0
aptos/examples/mint_nft/app/src/App.css → target-chains/aptos/examples/mint_nft/app/src/App.css


+ 0 - 0
aptos/examples/mint_nft/app/src/App.test.tsx → target-chains/aptos/examples/mint_nft/app/src/App.test.tsx


+ 0 - 0
aptos/examples/mint_nft/app/src/App.tsx → target-chains/aptos/examples/mint_nft/app/src/App.tsx


+ 0 - 0
aptos/examples/mint_nft/app/src/index.css → target-chains/aptos/examples/mint_nft/app/src/index.css


+ 0 - 0
aptos/examples/mint_nft/app/src/index.tsx → target-chains/aptos/examples/mint_nft/app/src/index.tsx


+ 0 - 0
aptos/examples/mint_nft/app/src/logo.svg → target-chains/aptos/examples/mint_nft/app/src/logo.svg


+ 0 - 0
aptos/examples/mint_nft/app/src/react-app-env.d.ts → target-chains/aptos/examples/mint_nft/app/src/react-app-env.d.ts


+ 0 - 0
aptos/examples/mint_nft/app/src/reportWebVitals.ts → target-chains/aptos/examples/mint_nft/app/src/reportWebVitals.ts


+ 0 - 0
aptos/examples/mint_nft/app/src/setupTests.ts → target-chains/aptos/examples/mint_nft/app/src/setupTests.ts


+ 0 - 0
aptos/examples/mint_nft/app/tsconfig.json → target-chains/aptos/examples/mint_nft/app/tsconfig.json


+ 0 - 0
aptos/examples/mint_nft/sources/minting.move → target-chains/aptos/examples/mint_nft/sources/minting.move


+ 0 - 0
aptos/start_node.sh → target-chains/aptos/start_node.sh


+ 0 - 0
cosmwasm/.dockerignore → target-chains/cosmwasm/.dockerignore


+ 0 - 0
cosmwasm/.gitignore → target-chains/cosmwasm/.gitignore


+ 0 - 0
cosmwasm/Cargo.lock → target-chains/cosmwasm/Cargo.lock


+ 0 - 0
cosmwasm/Cargo.toml → target-chains/cosmwasm/Cargo.toml


+ 0 - 0
cosmwasm/Dockerfile.build → target-chains/cosmwasm/Dockerfile.build


+ 0 - 0
cosmwasm/README.md → target-chains/cosmwasm/README.md


+ 0 - 0
cosmwasm/build.sh → target-chains/cosmwasm/build.sh


+ 0 - 0
cosmwasm/contracts/README.md → target-chains/cosmwasm/contracts/README.md


+ 1 - 1
cosmwasm/contracts/pyth/Cargo.toml → target-chains/cosmwasm/contracts/pyth/Cargo.toml

@@ -28,7 +28,7 @@ generic-array = { version = "0.14.4" }
 hex = "0.4.2"
 lazy_static = "1.4.0"
 bigint = "4"
-p2w-sdk = { path = "../../../third_party/pyth/p2w-sdk/rust" }
+p2w-sdk = { path = "../../../../third_party/pyth/p2w-sdk/rust" }
 pyth-sdk-cw = "0.2.0"
 byteorder = "1.4.3"
 

+ 0 - 0
cosmwasm/contracts/pyth/src/contract.rs → target-chains/cosmwasm/contracts/pyth/src/contract.rs


+ 0 - 0
cosmwasm/contracts/pyth/src/error.rs → target-chains/cosmwasm/contracts/pyth/src/error.rs


+ 0 - 0
cosmwasm/contracts/pyth/src/governance.rs → target-chains/cosmwasm/contracts/pyth/src/governance.rs


+ 0 - 0
cosmwasm/contracts/pyth/src/lib.rs → target-chains/cosmwasm/contracts/pyth/src/lib.rs


+ 0 - 0
cosmwasm/contracts/pyth/src/msg.rs → target-chains/cosmwasm/contracts/pyth/src/msg.rs


+ 0 - 0
cosmwasm/contracts/pyth/src/state.rs → target-chains/cosmwasm/contracts/pyth/src/state.rs


+ 0 - 0
cosmwasm/devnet/Dockerfile → target-chains/cosmwasm/devnet/Dockerfile


+ 0 - 0
cosmwasm/devnet/config/app.toml → target-chains/cosmwasm/devnet/config/app.toml


+ 0 - 0
cosmwasm/devnet/config/config.toml → target-chains/cosmwasm/devnet/config/config.toml


+ 0 - 0
cosmwasm/devnet/config/genesis.json → target-chains/cosmwasm/devnet/config/genesis.json


+ 0 - 0
cosmwasm/devnet/config/node_key.json → target-chains/cosmwasm/devnet/config/node_key.json


+ 0 - 0
cosmwasm/devnet/config/priv_validator_key.json → target-chains/cosmwasm/devnet/config/priv_validator_key.json


+ 0 - 0
cosmwasm/devnet/config/terrad.toml → target-chains/cosmwasm/devnet/config/terrad.toml


+ 0 - 0
cosmwasm/devnet/config/wasm.toml → target-chains/cosmwasm/devnet/config/wasm.toml


+ 0 - 0
cosmwasm/tools/deploy-pyth-bridge.js → target-chains/cosmwasm/tools/deploy-pyth-bridge.js


+ 0 - 0
cosmwasm/tools/deploy.js → target-chains/cosmwasm/tools/deploy.js


+ 0 - 0
cosmwasm/tools/deploy.sh → target-chains/cosmwasm/tools/deploy.sh


+ 0 - 0
cosmwasm/tools/package-lock.json → target-chains/cosmwasm/tools/package-lock.json


+ 0 - 0
cosmwasm/tools/package.json → target-chains/cosmwasm/tools/package.json


+ 0 - 0
ethereum/.dockerignore → target-chains/ethereum/.dockerignore


+ 0 - 0
ethereum/.env.cluster.mainnet → target-chains/ethereum/.env.cluster.mainnet


+ 0 - 0
ethereum/.env.cluster.testnet → target-chains/ethereum/.env.cluster.testnet


+ 0 - 0
ethereum/.env.prod.arbitrum → target-chains/ethereum/.env.prod.arbitrum


+ 0 - 0
ethereum/.env.prod.arbitrum_testnet → target-chains/ethereum/.env.prod.arbitrum_testnet


+ 0 - 0
ethereum/.env.prod.aurora → target-chains/ethereum/.env.prod.aurora


+ 0 - 0
ethereum/.env.prod.aurora_testnet → target-chains/ethereum/.env.prod.aurora_testnet


Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików