@@ -112,7 +112,7 @@ export const provisionSmartWallet = async (
112
112
delay,
113
113
chainId = 'agoriclocal' ,
114
114
// whale = 'validator',
115
- whale = 'alice ' ,
115
+ whale = 'user1 ' ,
116
116
progress = console . log ,
117
117
} ,
118
118
) => {
@@ -291,8 +291,8 @@ const voteLatestProposalAndWait = async ({
291
291
} ) ;
292
292
293
293
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 };
296
296
await agd . tx ( [ 'gov' , 'deposit' , lastProposalId , deposit ] , sigOpts ) ;
297
297
298
298
await blockTool . waitForBlock ( 1 , { before : 'vote' , on : lastProposalId } ) ;
@@ -339,7 +339,7 @@ const runCoreEval = async (
339
339
blockTool,
340
340
chainId = 'agoriclocal' ,
341
341
// proposer = 'validator',
342
- proposer = 'alice ' ,
342
+ proposer = 'user1 ' ,
343
343
deposit = `10${ BLD } ` ,
344
344
} ,
345
345
) => {
@@ -429,6 +429,9 @@ export const makeE2ETools = (
429
429
430
430
const vstorage = makeVStorage ( lcd ) ;
431
431
432
+
433
+
434
+
432
435
const installBundles = async ( bundleRoots , progress ) => {
433
436
await null ;
434
437
/** @type {Record<string, import('../test/boot-tools.js').CachedBundle> } */
@@ -484,33 +487,54 @@ export const makeE2ETools = (
484
487
// }
485
488
486
489
// 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
+
487
511
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'
502
518
] ;
519
+
520
+
503
521
// const execArgs = [
504
522
// 'keys', 'list'
505
523
// ];
506
524
// const execArgs = [
507
525
// 'status'
508
526
// ];
509
527
510
- const output = execFileSync ( 'agd ' , execArgs , { encoding : 'utf-8' } ) ;
528
+ const output = execFileSync ( 'docker ' , execArgs , { encoding : 'utf-8' } ) ;
511
529
console . log ( output )
512
530
const tx = JSON . parse ( output ) ;
513
531
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 )
514
538
progress ( { id : shortId , installTx : tx . txhash , height : tx . height } ) ;
515
539
const confirm = { installed : true } ;
516
540
@@ -540,6 +564,11 @@ export const makeE2ETools = (
540
564
return harden ( bundles ) ;
541
565
} ;
542
566
567
+
568
+
569
+
570
+
571
+
543
572
/**
544
573
* @param {{
545
574
* name: string,
0 commit comments