Skip to content

Commit 4f4851c

Browse files
committed
removed unused package.json scripts
1 parent 2dfce60 commit 4f4851c

File tree

2 files changed

+48
-21
lines changed

2 files changed

+48
-21
lines changed

contract/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
"docker:make": "docker compose exec agd make -C /workspace/contract",
1212
"make:help": "make list",
1313
"start": "make clean start",
14-
"start2": "make clean start2",
15-
"build2": "yarn build:deployer2",
1614
"build:deployer": "rollup -c rollup.config.mjs",
1715
"build:deployer2": "echo \"deployer2\"; agoric run scripts/build-contract-deployer.js",
1816
"deploy": "make dev-working",

contract/tools/e2e-tools.js

Lines changed: 48 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export const provisionSmartWallet = async (
112112
delay,
113113
chainId = 'agoriclocal',
114114
// whale = 'validator',
115-
whale = 'alice',
115+
whale = 'user1',
116116
progress = console.log,
117117
},
118118
) => {
@@ -291,8 +291,8 @@ const voteLatestProposalAndWait = async ({
291291
});
292292

293293
const deposit = '50000000ubld';
294-
// const sigOpts = { from: validator, chainId, yes: true };
295-
const sigOpts = { from: 'genesis', chainId, yes: true };
294+
const sigOpts = { from: _validator, chainId, yes: true };
295+
// const sigOpts = { from: 'genesis', chainId, yes: true };
296296
await agd.tx(['gov', 'deposit', lastProposalId, deposit], sigOpts);
297297

298298
await blockTool.waitForBlock(1, { before: 'vote', on: lastProposalId });
@@ -339,7 +339,7 @@ const runCoreEval = async (
339339
blockTool,
340340
chainId = 'agoriclocal',
341341
// proposer = 'validator',
342-
proposer = 'alice',
342+
proposer = 'user1',
343343
deposit = `10${BLD}`,
344344
},
345345
) => {
@@ -429,6 +429,9 @@ export const makeE2ETools = (
429429

430430
const vstorage = makeVStorage(lcd);
431431

432+
433+
434+
432435
const installBundles = async (bundleRoots, progress) => {
433436
await null;
434437
/** @type {Record<string, import('../test/boot-tools.js').CachedBundle>} */
@@ -484,33 +487,54 @@ export const makeE2ETools = (
484487
// }
485488

486489
// install the bundle using the copied JSON file
490+
// const execArgs = [
491+
// 'compose',
492+
// 'exec',
493+
// 'agd',
494+
// 'agd',
495+
// 'tx',
496+
// 'swingset',
497+
// 'install-bundle',
498+
// // `@/root/bundles/bundle-${name}.json`,
499+
// `/bundles/bundle-${name}.json`,
500+
// '--gas',
501+
// 'auto',
502+
// '--from',
503+
// `${installer}`,
504+
// '--chain-id',
505+
// `${chainId}`,
506+
// '--yes',
507+
// '--output',
508+
// 'json',
509+
// ];
510+
487511
const execArgs = [
488-
'tx',
489-
'swingset',
490-
'install-bundle',
491-
// `@/root/bundles/bundle-${name}.json`,
492-
`/bundles/bundle-${name}.json`,
493-
'--gas',
494-
'auto',
495-
'--from',
496-
`${installer}`,
497-
'--chain-id',
498-
`${chainId}`,
499-
'--yes',
500-
'--output',
501-
'json',
512+
'compose',
513+
'exec',
514+
'agd',
515+
'agd',
516+
'keys',
517+
'list'
502518
];
519+
520+
503521
// const execArgs = [
504522
// 'keys', 'list'
505523
// ];
506524
// const execArgs = [
507525
// 'status'
508526
// ];
509527

510-
const output = execFileSync('agd', execArgs, { encoding: 'utf-8' });
528+
const output = execFileSync('docker', execArgs, { encoding: 'utf-8' });
511529
console.log(output)
512530
const tx = JSON.parse(output);
513531

532+
// const tx = await agd.tx(
533+
// ['swingset', 'install-bundle', `@${fullPath}`, '--gas', 'auto'],
534+
// { from: "user1", chainId, yes: true },
535+
// );
536+
537+
console.log("tx: ", tx)
514538
progress({ id: shortId, installTx: tx.txhash, height: tx.height });
515539
const confirm = { installed: true };
516540

@@ -540,6 +564,11 @@ export const makeE2ETools = (
540564
return harden(bundles);
541565
};
542566

567+
568+
569+
570+
571+
543572
/**
544573
* @param {{
545574
* name: string,

0 commit comments

Comments
 (0)