Skip to content

Commit

Permalink
fix: startContract is now accessible in proposal
Browse files Browse the repository at this point in the history
  • Loading branch information
amessbee committed May 15, 2024
1 parent 58321eb commit 1741446
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions contract/src/cateCoin.proposal.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@



import {
installContract,
startContract,
} from './platform-goals/start-contract.js';
import { allValues } from './objectTools.js';

Expand Down Expand Up @@ -34,7 +32,7 @@ export const startCateCoin = async (powers, config) => {
issuer: powers.issuer.consume.IST,
});

const terms = makeTerms(ist.brand, 1n * IST_UNIT);
const terms = undefined;

await startContract(powers, {
name: contractName,
Expand All @@ -51,19 +49,23 @@ export const startCateCoin = async (powers, config) => {

// Define a manifest object describing the contract's capabilities and permissions
export const manifest = /** @type {const} */ ({
[startCateCoin.name]: { // Define entry for the postalService contract
consume: { // Resources consumed by the contract
[startCateCoin.name]: {
// Define entry for the postalService contract
consume: {
// Resources consumed by the contract
agoricNames: true, // Needs access to the agoricNames registry
namesByAddress: true, // Needs access to the namesByAddress registry
namesByAddressAdmin: true, // Needs administrative access to the namesByAddress registry
startUpgradable: true, // Allows upgrades to the contract
zoe: true, // Needs access to the Zoe service for contract execution
},
installation: { // Capabilities provided by the contract during installation
consume: { [contractName]: true },
produce: { [contractName]: true },
installation: {
// Capabilities provided by the contract during installation
consume: { [contractName]: true },
produce: { [contractName]: true },
},
instance: { // Capabilities provided by the contract instance
instance: {
// Capabilities provided by the contract instance
produce: { [contractName]: true }, // Produces a "postalService" instance
},
},
Expand Down

0 comments on commit 1741446

Please sign in to comment.