Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

contract deployment process working #3

Closed
wants to merge 64 commits into from

Conversation

Jovonni
Copy link
Contributor

@Jovonni Jovonni commented Jun 24, 2024

contract deployment working

todo: fix contract start function error:

prepareStakingAccountKit: no function

failing here:

import { prepareStakingAccountKit } from '@agoric/orchestration/src/exos/stakingAccountKit.js';
...
const makeStakingAccountKit = prepareStakingAccountKit(
        baggage,
        makeRecorderKit,
        zcf,
    );

@Jovonni
Copy link
Contributor Author

Jovonni commented Jun 25, 2024

Installation & Start function Success:

4:18AM INF proposal tallied module=x/gov proposal=7 results=passed
2024-06-25T04:18:23.021Z SwingSet: vat: v1: start proposal module evaluating
2024-06-25T04:18:23.022Z SwingSet: vat: v1: startOrcaContract()...
2024-06-25T04:18:23.022Z SwingSet: vat: v1: getting ist issuer and brand
2024-06-25T04:18:23.022Z SwingSet: vat: v1: got terms for contract
2024-06-25T04:18:23.023Z SwingSet: vat: v1: getting orca installation
2024-06-25T04:18:23.024Z SwingSet: vat: v1: { consume: { agoricNames: Promise [Promise] {}, brandAuxPublisher: Promise [Promise] {}, board: Promise [Promise] {}, chainStorage: Promise [Promise] {}, startUpgradable: Promise [Promise] {}, zoe: Promise [Promise] {}, localchain: Promise [Promise] {}, chainTimerService: Promise [Promise] {}, orchestration: Promise [Promise] {} }, installation: { consume: { orca: Promise [Promise] {} }, produce: { orca: { resolve: [Function: resolve], reject: [Function: reject], reset: [Function: reset] } } }, issuer: { consume: { IST: Promise [Promise] {} }, produce: {} }, brand: { consume: { IST: Promise [Promise] {} }, produce: {} }, instance: { produce: { orca: { resolve: [Function: resolve], reject: [Function: reject], reset: [Function: reset] } } } }
2024-06-25T04:18:23.024Z SwingSet: vat: v1: { consume: { orca: Promise [Promise] {} }, produce: { orca: { resolve: [Function: resolve], reject: [Function: reject], reset: [Function: reset] } } }
2024-06-25T04:18:23.025Z SwingSet: vat: v1: { orca: Promise [Promise] {} }
2024-06-25T04:18:23.026Z SwingSet: vat: v1: config
2024-06-25T04:18:23.026Z SwingSet: vat: v1: undefined
2024-06-25T04:18:23.026Z SwingSet: vat: v1: orcaInstallationP
2024-06-25T04:18:23.027Z SwingSet: vat: v1: Promise [Promise] {}
2024-06-25T04:18:23.027Z SwingSet: vat: v1: produceInstance
2024-06-25T04:18:23.027Z SwingSet: vat: v1: { resolve: [Function: resolve], reject: [Function: reject], reset: [Function: reset] }
2024-06-25T04:18:23.028Z SwingSet: vat: v1: installContract function:  b1-d3d04eecdf7602c2ceb98745a9acb0ee3ce17f83646e6240bdd95fb78f1c30913b73f838398764274b8fa6a28c6dcb4a3da9b7b6f6c91b2072b1c89b1682b587
2024-06-25T04:18:23.028Z SwingSet: vat: v1: installContract zoe:  Promise [Promise] {}
2024-06-25T04:18:23.047Z SwingSet: vat: v1: installContract: after installBundleID
2024-06-25T04:18:23.047Z SwingSet: vat: v1: Object [Alleged: BundleIDInstallation] {}
2024-06-25T04:18:23.048Z SwingSet: vat: v1: installation orca: new Promise
2024-06-25T04:18:23.048Z SwingSet: vat: v1: orca (re-)installed as b1-d3d04
2024-06-25T04:18:23.049Z SwingSet: vat: v1: installation orca settled; remaining: []
2024-06-25T04:18:23.252Z SwingSet: vat: v1: startContract...
2024-06-25T04:18:23.252Z SwingSet: vat: v1: POWERS
2024-06-25T04:18:23.253Z SwingSet: vat: v1: { consume: { agoricNames: Promise [Promise] {}, brandAuxPublisher: Promise [Promise] {}, board: Promise [Promise] {}, chainStorage: Promise [Promise] {}, startUpgradable: Promise [Promise] {}, zoe: Promise [Promise] {}, localchain: Promise [Promise] {}, chainTimerService: Promise [Promise] {}, orchestration: Promise [Promise] {} }, installation: { consume: { orca: Promise [Promise] {} }, produce: { orca: { resolve: [Function: resolve], reject: [Function: reject], reset: [Function: reset] } } }, issuer: { consume: { IST: Promise [Promise] {} }, produce: {} }, brand: { consume: { IST: Promise [Promise] {} }, produce: {} }, instance: { produce: { orca: { resolve: [Function: resolve], reject: [Function: reject], reset: [Function: reset] } } } }
2024-06-25T04:18:23.254Z SwingSet: vat: v1: { installation: Object [Alleged: BundleIDInstallation] {}, terms: {} }
2024-06-25T04:18:23.254Z SwingSet: vat: v1: { storageNode: Object [Alleged: ChainStorageNode] {}, marshaller: Object [Alleged: Board publishingMarshaller] {}, orchestration: Object [Alleged: Orchestration public] {}, timer: Object [Alleged: timerService] {} }
2024-06-25T04:18:23.254Z SwingSet: vat: v1: orca start args: { installation: Object [Alleged: BundleIDInstallation] {}, terms: {} }
4:18AM INF Timed out dur=400 height=2747 module=consensus round=0 step=3
2024-06-25T04:18:25.490Z SwingSet: vat: v44: CONTRACT START FUNCTION...
2024-06-25T04:18:25.491Z SwingSet: vat: v44: CONTRACT START FUNCTION 2...
2024-06-25T04:18:25.492Z SwingSet: vat: v44: CONTRACT START FUNCTION 3...
2024-06-25T04:18:25.547Z SwingSet: vat: v44: CONTRACT START FUNCTION 4...abc
2024-06-25T04:18:25.548Z SwingSet: vat: v44: CONTRACT START FUNCTION 5...
4:18AM INF executed block height=2747 module=state num_invalid_txs=0 num_valid_txs=0

Vstorage showing the instance is live:

agd query vstorage data published.agoricNames.instance        
value: '{"blockHeight":"2748","values":["{\"body\":\"#[[\\\"ATOM-USD price feed\\\",\\\"$0.Alleged:
  InstanceHandle\\\"],[\\\"VaultFactory\\\",\\\"$1.Alleged: InstanceHandle\\\"],[\\\"VaultFactoryGovernor\\\",\\\"$2.Alleged:
  InstanceHandle\\\"],[\\\"auctioneer\\\",\\\"$3.Alleged: InstanceHandle\\\"],[\\\"economicCommittee\\\",\\\"$4.Alleged:
  InstanceHandle\\\"],[\\\"feeDistributor\\\",\\\"$5.Alleged: InstanceHandle\\\"],[\\\"provisionPool\\\",\\\"$6.Alleged:
  InstanceHandle\\\"],[\\\"psm-IST-USDC_axl\\\",\\\"$7.Alleged: InstanceHandle\\\"],[\\\"reserve\\\",\\\"$8.Alleged:
  InstanceHandle\\\"],[\\\"reserveGovernor\\\",\\\"$9.Alleged: InstanceHandle\\\"],[\\\"scaledPriceAuthority-ATOM\\\",\\\"$10.Alleged:
  InstanceHandle\\\"],[\\\"walletFactory\\\",\\\"$11.Alleged: InstanceHandle\\\"]]\",\"slots\":[\"board03138\",\"board04542\",\"board00443\",\"board01034\",\"board01029\",\"board03935\",\"board05736\",\"board03040\",\"board02733\",\"board02437\",\"board05141\",\"board05039\"]}","{\"body\":\"#[[\\\"ATOM-USD
  price feed\\\",\\\"$0.Alleged: InstanceHandle\\\"],[\\\"VaultFactory\\\",\\\"$1.Alleged:
  InstanceHandle\\\"],[\\\"VaultFactoryGovernor\\\",\\\"$2.Alleged: InstanceHandle\\\"],[\\\"auctioneer\\\",\\\"$3.Alleged:
  InstanceHandle\\\"],[\\\"economicCommittee\\\",\\\"$4.Alleged: InstanceHandle\\\"],[\\\"feeDistributor\\\",\\\"$5.Alleged:
  InstanceHandle\\\"],[\\\"provisionPool\\\",\\\"$6.Alleged: InstanceHandle\\\"],[\\\"psm-IST-USDC_axl\\\",\\\"$7.Alleged:
  InstanceHandle\\\"],[\\\"reserve\\\",\\\"$8.Alleged: InstanceHandle\\\"],[\\\"reserveGovernor\\\",\\\"$9.Alleged:
  InstanceHandle\\\"],[\\\"scaledPriceAuthority-ATOM\\\",\\\"$10.Alleged: InstanceHandle\\\"],[\\\"walletFactory\\\",\\\"$11.Alleged:
  InstanceHandle\\\"],[\\\"orca\\\",\\\"$12.Alleged: InstanceHandle\\\"]]\",\"slots\":[\"board03138\",\"board04542\",\"board00443\",\"board01034\",\"board01029\",\"board03935\",\"board05736\",\"board03040\",\"board02733\",\"board02437\",\"board05141\",\"board05039\",\"board01151\"]}"]}'

had to comment out this, but adding it back:

import { prepareCosmosOrchestrationAccountKit, prepareCosmosOrchestrationAccount } from '@agoric/orchestration/src/exos/cosmosOrchestrationAccount.js';

const makeStakingAccountKit = prepareCosmosOrchestrationAccountKit(
        baggage,
        makeRecorderKit,
        zcf,
    );

@Jovonni
Copy link
Contributor Author

Jovonni commented Jun 25, 2024

Note for reference: Whenever I comment back in:

import { prepareCosmosOrchestrationAccountKit } from '@agoric/orchestration/src/exos/cosmosOrchestrationAccount.js';
...
const makeStakingAccountKit = prepareCosmosOrchestrationAccountKit(
        baggage,
        makeRecorderKit,
        zcf,
    );

I get:

TypeError#1: prepareCosmosOrchestrationAccountKit: no function

Started using version: 0.1.1-upgrade-16-dev-d45b478.0

 - for @agoric/X, use @dev
 - for @endo/X etc., check `yarn why` in agoric-sdk
@Chris-Hibbert
Copy link

TypeError#1: prepareCosmosOrchestrationAccountKit: no function is a rather obscure and hard to parse message. It generally means that while executing inside prepareCosmosOrchestrationAccountKit javascript tried to invoke a function that turned out to be undefined. It doesn't give you any clue about where inside the function the problem was, but it's easier to find once you realize that the problem isn't invoking the named function, it's while running inside. I often throw a bunch of log messages in to find the problem, unless I'm lucky enough to be working where a debugger is useable.

@dckc dckc mentioned this pull request Jun 25, 2024
1 task
@Jovonni
Copy link
Contributor Author

Jovonni commented Jun 27, 2024

solving these failed tests:

yarn workspace dapp-agoric-orca-contract test                               

  ✘ No tests found in test/test-build-proposal.js
start proposal module evaluating
  ✔ deploy-tools › local copy of ParamTypes matches @agoric/governance
  ✔ deploy-tools › local copy of ELECTORATE matches @agoric/governance
  ✔ deploy-tools › local copy of INVITATION_MAKERS_DESC matches @agoric/iner-protocol
  ✔ deploy-tools › boardAux marshal short-cut matches @endo/marshal
  ✔ deploy-tools › AmountMath.make work-alike matches @agoric/ertp
bundles/ bundle-orca.js valid: 177 files bundled at 2024-06-27T16:50:43.844Z with size 1342189
    orca-contract › before hook
    ℹ bootstrap
    ℹ brand timer: new Promise
    ℹ brand BLD: new Promise
    ℹ brand IST: new Promise
    ℹ brand Invitation: new Promise
    ℹ issuer BLD: new Promise
    ℹ issuer IST: new Promise
    ℹ issuer Invitation: new Promise
    ℹ brand timer settled; remaining: [
        'BLD',
        'IST',
        'Invitation',
      ]
    ℹ brand BLD settled; remaining: [
        'IST',
        'Invitation',
      ]
    ℹ brand IST settled; remaining: [
        'Invitation',
      ]
    ℹ brand Invitation settled; remaining: []
    ℹ issuer BLD settled; remaining: [
        'IST',
        'Invitation',
      ]
    ℹ issuer IST settled; remaining: [
        'Invitation',
      ]
    ℹ issuer Invitation settled; remaining: []
    ℹ issuer MNY: new Promise
    ℹ brand MNY: new Promise
    ℹ issuer Item: new Promise
    ℹ brand Item: new Promise
    ℹ issuer ATOM: new Promise
    ℹ brand ATOM: new Promise
    ℹ issuer MNY settled; remaining: [
        'ATOM',
        'Item',
      ]
    ℹ brand MNY settled; remaining: [
        'ATOM',
        'Item',
      ]
    ℹ issuer Item settled; remaining: [
        'ATOM',
      ]
    ℹ brand Item settled; remaining: [
        'ATOM',
      ]
    ℹ issuer ATOM settled; remaining: []
    ℹ brand ATOM settled; remaining: []
publish bundle orca b1-f46e0
startOrcaContract()...
----- OrCE.2  2 config {
  options: {
    orca: {
      bundleID: 'b1-f46e01c0d83e51c1d888a9fc6ecdfce9815cee530442b73f9a6c7bd7856cd165afe3c7c58e97dd268b21fb3d44478ff28c899749c11b09cf882c02be4b6325a0'
    }
  }
}
installContract function:  b1-f46e01c0d83e51c1d888a9fc6ecdfce9815cee530442b73f9a6c7bd7856cd165afe3c7c58e97dd268b21fb3d44478ff28c899749c11b09cf882c02be4b6325a0
installContract zoe:  Promise { Object [Alleged: ZoeService] {} }
  ✔ orca-contract › Install the contract
    ℹ installed: Object @Alleged: BundleInstallation {}
installContract: after installBundleID
Object [Alleged: BundleIDInstallation] {}
orca (re-)installed as b1-f46e0
----- OrCE.2  3 awaiting consume.orchestration
----- OrCE.2  4 orchestration Object [Alleged: DummyOrchestration] {}
startContract...
POWERS
{
  produce: {},
  consume: {},
  installation: { produce: {}, consume: {} },
  instance: { produce: {}, consume: {} },
  issuer: { produce: {}, consume: {} },
  brand: { produce: {}, consume: {} },
  zone: Object [Alleged: durableZone] {
    exo: [Function: wrapper],
    exoClass: [Function: wrapper],
    exoClassKit: [Function: wrapper],
    subZone: [Function: subZone],
    makeOnce: [Function: makeOnce],
    watchPromise: [Function: watchPromise],
    detached: [Function: detached],
    isStorable: [Function: isStorable],
    mapStore: [Function: wrapper],
    setStore: [Function: wrapper],
    weakMapStore: [Function: wrapper],
    weakSetStore: [Function: wrapper]
  }
}
{ installation: Object [Alleged: BundleIDInstallation] {} }
{
  storageNode: Object [Alleged: ChainStorageNode] {},
  marshaller: Object [Alleged: Board publishingMarshaller] {},
  orchestration: Object [Alleged: DummyOrchestration] {},
  timer: Object [Alleged: ManualTimer] {
    __getInterfaceGuard__: [Function: value],
    __getMethodNames__: [Function: value],
    advanceBy: [Function: value],
    advanceTo: [Function: value],
    cancel: [Function: value],
    delay: [Function: value],
    getClock: [Function: value],
    getCurrentTimestamp: [Function: value],
    getTimerBrand: [Function: value],
    makeNotifier: [Function: value],
    makeRepeater: [Function: value],
    repeatAfter: [Function: value],
    setWakeup: [Function: value],
    wakeAt: [Function: value],
    tick: [Function: tick],
    tickN: [AsyncFunction: tickN]
  }
}
orca start args: { installation: Object [Alleged: BundleIDInstallation] {} }
  ✘ [fail]: orca-contract › Start Orca contract Rejected promise returned by test
    ℹ REJECTED from ava test("Start Orca contract"): (Error#1)
    ℹ Error#1: Cannot find file for internal module "./src/exos/cosmosOrchestrationAccount.js" (with candidates "./src/exos/cosmosOrchestrationAccount.js", "./src/exos/cosmosOrchestrationAccount.js.js", "./src/exos/cosmosOrchestrationAccount.js.json", "./src/exos/cosmosOrchestrationAccount.js.node", "./src/exos/cosmosOrchestrationAccount.js/index.js", "./src/exos/cosmosOrchestrationAccount.js/index.json", "./src/exos/cosmosOrchestrationAccount.js/index.node") in package file:///Users/jovonni/Documents/projects/dapp-agoric-orca/contract/node_modules/@agoric/orchestration/
    ℹ   at Object.execute (.../compartment-mapper/src/import-archive.js:52:7)
        at eval (.../dapp-agoric-orca-contract/src/orca.contract.js:1:242)
        at eval (.../dapp-agoric-orca-contract/src/orca.contract.js:107:3)
        at async importBundle (.../import-bundle/src/index.js:68:18)
      
  ✘ [fail]: orca-contract › Start Orca contract using core-eval Rejected promise returned by test
    ℹ run core-eval to start (dummy) orchestration
    ℹ run orca core-eval
    ℹ REJECTED from ava test("Start Orca contract using core-eval"): (Error#2)
    ℹ Error#2: Cannot find file for internal module "./src/exos/cosmosOrchestrationAccount.js" (with candidates "./src/exos/cosmosOrchestrationAccount.js", "./src/exos/cosmosOrchestrationAccount.js.js", "./src/exos/cosmosOrchestrationAccount.js.json", "./src/exos/cosmosOrchestrationAccount.js.node", "./src/exos/cosmosOrchestrationAccount.js/index.js", "./src/exos/cosmosOrchestrationAccount.js/index.json", "./src/exos/cosmosOrchestrationAccount.js/index.node") in package file:///Users/jovonni/Documents/projects/dapp-agoric-orca/contract/node_modules/@agoric/orchestration/
    ℹ   at Object.execute (.../compartment-mapper/src/import-archive.js:52:7)
        at eval (.../dapp-agoric-orca-contract/src/orca.contract.js:1:242)
        at eval (.../dapp-agoric-orca-contract/src/orca.contract.js:107:3)
        at async importBundle (.../import-bundle/src/index.js:68:18)
      
  ✔ bundle-source › bundleSource() bundles the contract for use with zoe (1.7s)
    ℹ f46e01c0d83e51c1d888a9fc6ecdfce9815cee530442b73f9a6c7bd7856cd165afe3c7c58e97dd268b21fb3d44478ff28c899749c11b09cf882c02be4b6325a0
    ℹ Object @Alleged: BundleInstallation {}
  ─

  orca-contract › Start Orca contract
  Rejected promise returned by test. Reason:

  Error {
    message: 'Cannot find file for internal module "./src/exos/cosmosOrchestrationAccount.js" (with candidates "./src/exos/cosmosOrchestrationAccount.js", "./src/exos/cosmosOrchestrationAccount.js.js", "./src/exos/cosmosOrchestrationAccount.js.json", "./src/exos/cosmosOrchestrationAccount.js.node", "./src/exos/cosmosOrchestrationAccount.js/index.js", "./src/exos/cosmosOrchestrationAccount.js/index.json", "./src/exos/cosmosOrchestrationAccount.js/index.node") in package file:///Users/jovonni/Documents/projects/dapp-agoric-orca/contract/node_modules/@agoric/orchestration/',
  }

  › Object.execute (.../compartment-mapper/src/import-archive.js:52:7)
  › eval (.../dapp-agoric-orca-contract/src/orca.contract.js:1:242)
  › eval (.../dapp-agoric-orca-contract/src/orca.contract.js:107:3)
  › async importBundle (.../import-bundle/src/index.js:68:18)



  orca-contract › Start Orca contract using core-eval
  Rejected promise returned by test. Reason:

  Error {
    message: 'Cannot find file for internal module "./src/exos/cosmosOrchestrationAccount.js" (with candidates "./src/exos/cosmosOrchestrationAccount.js", "./src/exos/cosmosOrchestrationAccount.js.js", "./src/exos/cosmosOrchestrationAccount.js.json", "./src/exos/cosmosOrchestrationAccount.js.node", "./src/exos/cosmosOrchestrationAccount.js/index.js", "./src/exos/cosmosOrchestrationAccount.js/index.json", "./src/exos/cosmosOrchestrationAccount.js/index.node") in package file:///Users/jovonni/Documents/projects/dapp-agoric-orca/contract/node_modules/@agoric/orchestration/',
  }

  › Object.execute (.../compartment-mapper/src/import-archive.js:52:7)
  › eval (.../dapp-agoric-orca-contract/src/orca.contract.js:1:242)
  › eval (.../dapp-agoric-orca-contract/src/orca.contract.js:107:3)
  › async importBundle (.../import-bundle/src/index.js:68:18)

  ─

  2 tests failed

@Jovonni
Copy link
Contributor Author

Jovonni commented Jun 28, 2024

contract accepts offers from UI to make accounts. Must pass real connection-id etc:

Logging sent error stack (Error#7)
2024-06-28T06:01:15.236Z SwingSet: ls: v15: Error#7: No listeners for /ibc-hop/connection-1/ibc-port/icahost/ordered/{"version":"ics27-1","controllerConnectionId":"connection-1","hostConnectionId":"connection-0","address":"","encoding":"proto3","txType":"sdk_multi_msg"}
2024-06-28T06:01:15.237Z SwingSet: ls: v15: Error: No listeners for /ibc-hop/connection-1/ibc-port/icahost/ordered/{"version":"ics27-1","controllerConnectionId":"connection-1","hostConnectionId":"connection-0","address":"","encoding":"proto3","txType":"sdk_multi_msg"}

@Jovonni
Copy link
Contributor Author

Jovonni commented Jul 1, 2024

back to hunting this down after that last change, but we moved the createAccountsFn to top-level scope already:

const createAccountsFn = async (orch, { zcf }, seat, offerArgs) => {

2024-07-01T19:52:10.529Z SwingSet: vat: v104: Warning for now: vow expected, not promise Promise [Promise] {} (Error#5)
2024-07-01T19:52:10.529Z SwingSet: vat: v104: Error#5: where warning happened
2024-07-01T19:52:10.529Z SwingSet: vat: v104: Error: where warning happened
 at apply ()
 at Error (/bundled-source/.../node_modules/ses/src/error/tame-error-constructor.js:54)
 at tolerateHostPromiseToVow (.../async-flow/src/replay-membrane.js:157)
 at performCall (.../async-flow/src/replay-membrane.js:196)
 at guestCallsHost (.../async-flow/src/replay-membrane.js:256)
 at createAccountsFn (.../dapp-agoric-orca-contract/src/orca.contract.js:105)
 at createAccountsFn (.../dapp-agoric-orca-contract/src/orca.contract.js:88)
 at (.../async-flow/src/async-flow.js:220)
 at restart (.../async-flow/src/async-flow.js:222)
 at apply ()
 at In "restart" method of (asyncFlow flow) (/bundled-source/.../node_modules/@endo/exo/src/exo-tools.js:171)
 at makeAsyncFlowKit (.../async-flow/src/async-flow.js:430)
 at asyncFlow_hostFlow (.../async-flow/src/async-flow.js:448)
 at orcFn (.../orchestration/src/facade.js:125)
 at apply ()
 at localApplyFunction (/bundled-source/.../node_modules/@endo/eventual-send/src/local.js:87)
 at apply ()
 at dispatchToHandler (/bundled-source/.../node_modules/@endo/eventual-send/src/handled-promise.js:156)
 at win (/bundled-source/.../node_modules/@endo/eventual-send/src/handled-promise.js:505)
 at ()

7:52PM INF Timed out dur=400 height=95171 module=consensus round=0 step=3
2024-07-01T19:52:10.585Z SwingSet: xsnap: v104: UnhandledPromiseRejectionWarning: (Error#6)
2024-07-01T19:52:10.619Z SwingSet: xsnap: v104: Error#6: value for vow is not durable: slot 0 of { body: '#{"#tag":"Vow","payload":{"vowV0":"$0.Alleged: VowInternalsKit vowV0"}}', slots: [ 'o+44' ] }
2024-07-01T19:52:10.619Z SwingSet: xsnap: v104: Error: value for (a string) is not durable: slot 0 of (an object)
 at apply ()
 at Error (/bundled-source/.../node_modules/ses/src/error/tame-error-constructor.js:54)
 at makeError (/bundled-source/.../node_modules/ses/src/error/assert.js:349)
 at fail (/bundled-source/.../node_modules/ses/src/error/assert.js:479)
 at insistDurableCapdata (/bundled-source/.../packages/swingset-liveslots/src/virtualObjectManager.js:241)
 at set (/bundled-source/.../packages/swingset-liveslots/src/virtualObjectManager.js:881)
 at onFulfilled (.../vow/src/watch.js:118)
 at apply ()
 at In "onFulfilled" method of (PromiseWatcher) (/bundled-source/.../node_modules/@endo/exo/src/exo-tools.js:171)
 at (/bundled-source/.../packages/swingset-liveslots/src/watchedPromises.js:115)
 at ()


and also ready added M.promise @dckc :

 const publicFacet = zone.exo(
    'OrcaFacet',
    M.interface('OrcaFacet', {
      makeAccountInvitation: M.call().returns(M.promise()),
    }),
    {
      async makeAccountInvitation() {
        const invitation = await zcf.makeInvitation(
          createAccounts,
          'Create accounts',
          undefined,
          harden({
            give: {},
            want: {},
            exit: M.any(),
          }),
        );
        // return Promise.resolve(invitation);
        return invitation;
        // return M.promise()
      },
    },
  );

dckc and others added 13 commits July 3, 2024 00:44
 - reset instance before producing
 - lint
 - console.log -> trace
 - trace localchain promise as well as orchestration
   - factor out logp()
 - prune unused code: brand, issuer powers; issuerNames
 - prune chainHub stuff (doesn't belong in core-eval code)
 - no resolutions
 - dev versions (resolved to specific versions in yarn.lock)
build(ui): deps += @interchain-ui/react
use latest dev pkgs; restore test-orca-contract.js test to working order
@dckc
Copy link
Member

dckc commented Aug 7, 2024

I assume this is obsolete in favor of #10
taking myself off the reviewer list

@dckc dckc removed their request for review August 7, 2024 18:28
@Jovonni Jovonni closed this Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants