Skip to content

Commit

Permalink
chore: deploytest script update to DeployPlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
ppedziwiatr committed Mar 7, 2023
1 parent f25ac04 commit ee073ed
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 13 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@
"ts-jest": "^28.0.7",
"ts-node": "^10.2.1",
"typescript": "^4.9.5",
"warp-contracts-plugin-deploy": "1.0.0-beta.16",
"warp-contracts-plugin-deploy": "1.0.0",
"warp-contracts": "1.2.56",
"ws": "^8.11.0"
},
"resolutions": {
Expand Down
7 changes: 5 additions & 2 deletions tools/deploytest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { defaultCacheOptions, LoggerFactory, WarpFactory } from '../src';
import fs from 'fs';
import path from 'path';
import { JWKInterface } from 'arweave/node/lib/wallet';
import {ArweaveSigner, DeployPlugin} from "warp-contracts-plugin-deploy";

async function main() {
let wallet: JWKInterface = readJSON('./.secrets/33F0QHcb22W7LwWR1iRC8Az1ntZG09XQ03YWuw2ABqA.json');
Expand All @@ -18,14 +19,16 @@ async function main() {
});

try {
const warp = WarpFactory.forMainnet({ ...defaultCacheOptions, inMemory: true });
const warp = WarpFactory
.forMainnet({ ...defaultCacheOptions, inMemory: true })
.use(new DeployPlugin());

const jsContractSrc = fs.readFileSync(path.join(__dirname, 'data/js/token-pst.js'), 'utf8');
const initialState = fs.readFileSync(path.join(__dirname, 'data/js/token-pst.json'), 'utf8');

// case 1 - full deploy, js contract
const { contractTxId, srcTxId } = await warp.deploy({
wallet,
wallet: new ArweaveSigner(wallet),
initState: initialState,
src: jsContractSrc
/*evaluationManifest: {
Expand Down
19 changes: 9 additions & 10 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7312,20 +7312,19 @@ walker@^1.0.8:
dependencies:
makeerror "1.0.12"

[email protected]-beta.16:
version "1.0.0-beta.16"
resolved "https://registry.yarnpkg.com/warp-contracts-plugin-deploy/-/warp-contracts-plugin-deploy-1.0.0-beta.16.tgz#cd2a0472e1272f3ab238ab3137e394413a494f7e"
integrity sha512-66OYLIXM5FkyYxABfOGcTi+lk/XRU2Q1n3Wm3Jr12GrrO/NyC1WFi1q/dquCtrkoN5kesNIDOp8+i17cIHEBlA==
[email protected]:
version "1.0.0"
resolved "https://registry.yarnpkg.com/warp-contracts-plugin-deploy/-/warp-contracts-plugin-deploy-1.0.0.tgz#c3d8ab88b8b838f59e34653589a82ae09dc4c86e"
integrity sha512-HU4A0GZAP6XATFv7fuHA2EUP6V+h0ZluGiv2JjH6AE6LTqFBtP+PixgtNZds5YcOf+eLO01gv15vaT7pea0W6w==
dependencies:
arbundles "^0.7.3"
arlocal "^1.1.59"
node-stdlib-browser "^1.2.0"
warp-contracts "1.2.43-beta.21"

[email protected].43-beta.21:
version "1.2.43-beta.21"
resolved "https://registry.yarnpkg.com/warp-contracts/-/warp-contracts-1.2.43-beta.21.tgz#55a7b661a7218073ce96d82e8cb0ffb2c342ad1f"
integrity sha512-2ZRCWULNDeSduhgS7iNbApyECSsCOtyHgPn9AuSFlpnB7z0Z7SfIRSuycG8zDqbnIPxrkumKrsT4O4oG0uxjiA==
[email protected].56:
version "1.2.56"
resolved "https://registry.yarnpkg.com/warp-contracts/-/warp-contracts-1.2.56.tgz#dbd51badee1f726772069c33b0d7cb8ae0f3815b"
integrity sha512-cCWJJya0WWo0tspGwB7H8cF2exji5VlYuI7ON461z1vkzjTLLLTXJCGSBuhQSLO2oEtvlffJ1cRgHHlajJiVOg==
dependencies:
"@idena/vrf-js" "^1.0.1"
archiver "^5.3.0"
Expand All @@ -7341,7 +7340,7 @@ [email protected]:
stream-buffers "^3.0.2"
unzipit "^1.4.0"
vm2 "3.9.13"
warp-isomorphic "1.0.0"
warp-isomorphic "1.0.4"
warp-wasm-metering "1.0.1"

[email protected]:
Expand Down

0 comments on commit ee073ed

Please sign in to comment.