[tilt] Fix issues (#801)

This commit is contained in:
Ali Behjati 2023-05-05 15:31:57 +02:00 committed by GitHub
parent 677343c339
commit 1d59e9052b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 22 additions and 16 deletions

4
package-lock.json generated
View File

@ -44795,7 +44795,7 @@
"resolved": "https://registry.npmjs.org/toml/-/toml-3.0.0.tgz",
"integrity": "sha512-y/mWCZinnvxjTKYhJ+pYxwD0mRLVvOtdS2Awbgxln6iEnt4rk0yBxeSBHkGJcPucRiG0e55mwWp+g/05rsrd6w=="
},
"node_modules/tools": {
"node_modules/@pythnetwork/cosmwasm-deploy-tools": {
"resolved": "target_chains/cosmwasm/tools",
"link": true
},
@ -90015,7 +90015,7 @@
"resolved": "https://registry.npmjs.org/toml/-/toml-3.0.0.tgz",
"integrity": "sha512-y/mWCZinnvxjTKYhJ+pYxwD0mRLVvOtdS2Awbgxln6iEnt4rk0yBxeSBHkGJcPucRiG0e55mwWp+g/05rsrd6w=="
},
"tools": {
"@pythnetwork/cosmwasm-deploy-tools": {
"version": "file:target_chains/cosmwasm/tools",
"requires": {
"@cosmjs/cosmwasm-stargate": "^0.29.5",

View File

@ -1,5 +1,5 @@
{
"name": "tools",
"name": "@pythnetwork/cosmwasm-deploy-tools",
"version": "1.0.0",
"description": "",
"main": "deploy-pyth-bridge.ts",

View File

@ -1,7 +1,7 @@
[profile.default]
solc_version = '0.8.4'
optimizer = true
optimizer_runs = 10000
optimizer_runs = 5000
src = 'contracts'
# We put the tests into the forge-test directory (instead of test) so that
# truffle doesn't try to build them

View File

@ -271,7 +271,7 @@ module.exports = {
settings: {
optimizer: {
enabled: true,
runs: 10000,
runs: 5000,
},
},
},

View File

@ -25,16 +25,21 @@ COPY wormhole_attester/sdk/rust /wormhole_attester/sdk/rust
RUN --mount=type=cache,target=/code/target,id=cosmwasm_pyth_target --mount=type=cache,target=/usr/local/cargo/registry optimize_workspace.sh
# Contract deployment stage
FROM node:16-buster-slim@sha256:93c9fc3550f5f7d159f282027228e90e3a7f8bf38544758024f005e82607f546
FROM lerna
USER root
RUN apt update && apt install netcat curl jq -y
WORKDIR /app/tools
USER 1000
COPY --from=wormhole_builder /code/artifacts/wormhole.wasm /app/artifacts/wormhole.wasm
COPY --from=pyth_builder /code/artifacts/pyth_cosmwasm.wasm /app/artifacts/pyth_cosmwasm.wasm
COPY --from=wormhole_builder /code/artifacts/wormhole.wasm /home/node/target_chains/cosmwasm/artifacts/wormhole.wasm
COPY --from=pyth_builder /code/artifacts/pyth_cosmwasm.wasm /home/node/target_chains/cosmwasm/artifacts/pyth_cosmwasm.wasm
COPY target_chains/cosmwasm/tools/package.json target_chains/cosmwasm/tools/package-lock.json /app/tools/
RUN --mount=type=cache,uid=1000,gid=1000,target=/home/node/.npm \
npm ci
COPY target_chains/cosmwasm/tools /app/tools
WORKDIR /home/node/
COPY --chown=1000:1000 governance/xc_governance_sdk_js governance/xc_governance_sdk_js
COPY --chown=1000:1000 target_chains/cosmwasm/tools target_chains/cosmwasm/tools
RUN npx lerna run build --scope="@pythnetwork/cosmwasm-deploy-tools" --include-dependencies
WORKDIR /home/node/target_chains/cosmwasm/tools

View File

@ -77,13 +77,14 @@ spec:
command:
- /bin/sh
- -c
- "sh /app/tools/deploy.sh && touch /app/tools/success && sleep infinity"
- "sh /home/node/target_chains/cosmwasm/tools/deploy.sh &&
touch /home/node/success && sleep infinity"
readinessProbe:
exec:
command:
- test
- -e
- "/app/tools/success"
- "/home/node/success"
initialDelaySeconds: 5
periodSeconds: 5
restartPolicy: Always