Skip to content

Commit

Permalink
deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonard-Pat committed Jun 28, 2024
1 parent d63be19 commit 624857c
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ start-devnet = "docker build -t devnet . && docker run -d -p 127.0.0.1:5050:5050
kill-devnet = "docker ps -q --filter 'ancestor=devnet' | xargs docker stop"
test-ts = "scarb --profile release build && yarn tsc && yarn mocha tests-integration/*.test.ts"
profile = "scarb --profile release build && node --loader ts-node/esm scripts/profile.ts"
format = "scarb fmt && yarn prettier --write ."
format = "scarb fmt && yarn prettier --write ."
deploy = "scarb --profile release build && node --loader ts-node/esm scripts/deploy.ts"
5 changes: 5 additions & 0 deletions deployments.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

# Sepolia Deployment
GiftFactory address: 0x33ef0f42296853cd65c0e972576604e3c7c43f0a66952e7eaa6d3932bfa2d35
EscrowAccount class hash: 0x4e2ac27f56cf97077cf43788c831acdc8734e447a5ec676e93101b9dd22eace
EscrowLibrary class hash: 0x4ee1fc3650c515e0c30705c326dbda34a07ebe32bddf39be43b5110dd4ead16
12 changes: 12 additions & 0 deletions scripts/deploy.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { protocolCache, setupGiftProtocol } from "../lib";

const { factory, escrowAccountClassHash, escrowLibraryClassHash } = await setupGiftProtocol();

console.log("GiftFactory address:", factory.address);
console.log("EscrowAccount class hash:", escrowAccountClassHash);
console.log("EscrowLibrary class hash:", escrowLibraryClassHash);

// clear from cache just in case
delete protocolCache["GiftFactory"];
delete protocolCache["EscrowLibrary"];
delete protocolCache["EscrowAccount"];

0 comments on commit 624857c

Please sign in to comment.