diff --git a/contract/src/gambling-game.proposal.js b/contract/src/gambling-game.proposal.js index 59a1f67b..d17ecca0 100644 --- a/contract/src/gambling-game.proposal.js +++ b/contract/src/gambling-game.proposal.js @@ -17,7 +17,25 @@ const startGame = async () => { // Start the instance const { publicFacet } = await E(zoeService).startInstance(installation, { IST: issuer }); - // Todo: Can add Publishes Brand Info to the chain + // Todo: Can add publishesBrandInfo to the chain here + + // Mint some IST to test with + console.log(brand); + const aliceAmount = AmountMath.make(brand, 100n); + const alicePayment = mint.mintPayment(aliceAmount); + + // Create a deposit invitation + const aliceInvitation = E(publicFacet).makeDepositInvitation(); + const proposal = { give: { IST: aliceAmount } }; + const payments = { IST: alicePayment }; + + // Make an offer to deposit IST + const seat = await E(zoeService).offer(aliceInvitation, proposal, payments); + console.log(`Alice made a deposit: ${seat}`); + + // Check the number of entries + const entriesCount = await E(publicFacet).getEntriesCount(); + console.log(`Current number of entries: ${entriesCount}`); }; // Define a manifest object describing the contract's capabilities and permissions