This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM rust:1.86.0@sha256:300ec56abce8cc9448ddea2172747d048ed902a3090e6b57babb2bf19f754081 AS kms-builder | |
ARG DSTACK_REV | |
WORKDIR /build | |
RUN apt-get update && \ | |
apt-get install -y --no-install-recommends \ | |
git \ | |
build-essential \ | |
musl-tools \ | |
libssl-dev \ | |
protobuf-compiler \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const nodeUrl = `ws://localhost:9999`; | |
const pruntimeUrl = `http://localhost:8000`; | |
const contractFile = "start_sidevm.contract" | |
const sidevmFile = "sideprog.wasm" | |
const initSelector = '0xed4b9d1b'; | |
const { assert } = require('chai'); | |
const fs = require('fs'); | |
const { ApiPromise, WsProvider, Keyring } = require('@polkadot/api'); | |
const { cryptoWaitReady } = require('@polkadot/util-crypto'); |