Skip to content

Commit 2c8669b

Browse files
committed
fix: support new Clarity string types #223
1 parent 0c352ae commit 2c8669b

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
"@apidevtools/json-schema-ref-parser": "^9.0.1",
9292
"@awaitjs/express": "^0.5.1",
9393
"@blockstack/stacks-blockchain-api-types": "file:docs",
94-
"@blockstack/stacks-transactions": "0.6.0-beta.1",
94+
"@blockstack/stacks-transactions": "0.7.0",
9595
"@promster/express": "^4.1.12",
9696
"@promster/server": "^4.2.13",
9797
"@promster/types": "^1.0.6",

stacks-blockchain/dist-tool/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const BUCKET_URL = `https://${BUCKET_NAME}.storage.googleapis.com/`;
1717
const envVars = {
1818
STACKS_BLOCKCHAIN_REPO: 'https://github.com/blockstack/stacks-blockchain.git',
1919
STACKS_BLOCKCHAIN_BRANCH: 'master',
20-
STACKS_BLOCKCHAIN_BIN: 'stacks-node',
20+
STACKS_BLOCKCHAIN_BIN: 'stacks-node-krypton',
2121
STACKS_BLOCKCHAIN_DIST_PLATFORM: 'linux-x64',
2222
};
2323
Object.entries(envVars).forEach(([key, val]) => envVars[key] = process.env[key] || val);
@@ -49,15 +49,15 @@ const bucket = storage.bucket(BUCKET_NAME);
4949
const buildDist = () => new Promise((resolve, reject) => {
5050
// const buildOutputDir = fs.mkdtempSync(path.join(__dirname, '.stacks-core-build-'));
5151
const buildOutputDir = path.join(__dirname, `.stacks-core-build-${shortCommit}`);
52-
const binFileResult = `${buildOutputDir}/bin/${envVars.STACKS_BLOCKCHAIN_BIN}`;
52+
const binFileResult = `${buildOutputDir}/bin/stacks-node`;
5353
fs.mkdirSync(buildOutputDir, { recursive: true });
5454
if (fs.existsSync(binFileResult)) {
5555
console.warn(`Skipping build step -- already exists at ${binFileResult}`);
5656
resolve(binFileResult);
5757
return;
5858
}
5959
console.log(`Building stacks-blockchain binaries into '${buildOutputDir}'`);
60-
const cargoCmd = `cargo install --git https://github.com/blockstack/stacks-blockchain.git --rev "${gitCommit}" stacks-node --bin=${envVars.STACKS_BLOCKCHAIN_BIN} --root /build-out`;
60+
const cargoCmd = `cargo install --git https://github.com/blockstack/stacks-blockchain.git --rev "${gitCommit}" stacks-node --bin=stacks-node --root /build-out`;
6161
const dockerRunCmd = `docker run -v "${buildOutputDir}:/build-out" rust:stretch ${cargoCmd}`;
6262
console.log(`Running build via docker: ${dockerRunCmd}`);
6363
const result = spawn(dockerRunCmd, {

stacks-blockchain/docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM everpeace/curl-jq as build
33
ENV ARTIFACTS "http://blockstack-stacks-blockchain_artifacts.storage.googleapis.com/index.json"
44

55
RUN curl -s "$ARTIFACTS" --output ./artifacts-resp.json \
6-
&& cat ./artifacts-resp.json | jq -r '."stacks-node"."linux-x64".latest.url' > ./url \
6+
&& cat ./artifacts-resp.json | jq -r '."stacks-node-krypton"."linux-x64".latest.url' > ./url \
77
&& mkdir -p /app \
88
&& echo "Fetching $(cat ./url)" \
99
&& curl --compressed $(cat ./url) --output /bin/stacks-node \

0 commit comments

Comments
 (0)