Skip to content

Commit

Permalink
fix: minor tweaks for dapp-oracle
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed Nov 8, 2020
1 parent 0c18aae commit b8169c1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions packages/agoric-cli/lib/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default async function startMain(progname, rawArgs, powers, opts) {
cargs,
{ stdio = 'inherit', env = pspawnEnv, ...rest } = {},
) => {
log.debug(chalk.blueBright(cmd, ...cargs));
log(chalk.blueBright(cmd, ...cargs));
const cp = spawn(cmd, cargs, { stdio, env, ...rest });
const pr = new Promise((resolve, _reject) => {
cp.on('exit', resolve);
Expand All @@ -56,7 +56,7 @@ export default async function startMain(progname, rawArgs, powers, opts) {
'run',
`--volume=${process.cwd()}:/usr/src/dapp`,
`--rm`,
`-it`,
// `-it`,
`--entrypoint=ag-cosmos-helper`,
'agoric/agoric-sdk',
`--home=/usr/src/dapp/_agstate/keys`,
Expand Down Expand Up @@ -211,7 +211,7 @@ export default async function startMain(progname, rawArgs, powers, opts) {
`--volume=${process.cwd()}:/usr/src/dapp`,
`--rm`,
...dockerArgs,
`-it`,
// `-it`,
SDK_IMAGE,
...args,
`--home=/usr/src/dapp/${agServer}`,
Expand Down Expand Up @@ -298,7 +298,7 @@ export default async function startMain(progname, rawArgs, powers, opts) {
if (exitStatus) {
return exitStatus;
}
exitStatus = await fs.writeFile(`${genesisFile}.stamp`, Date.now());
exitStatus = await fs.writeFile(`${genesisFile}.stamp`, `${Date.now()}`);
if (exitStatus) {
return exitStatus;
}
Expand Down Expand Up @@ -383,7 +383,7 @@ export default async function startMain(progname, rawArgs, powers, opts) {
`--volume=${process.env.HOME}/.agoric:/root/.agoric`,
`-eAG_SOLO_BASEDIR=/usr/src/dapp/${agServer}`,
`--rm`,
`-it`,
// `-it`,
`--entrypoint=/usr/src/app/bin/ag-solo`,
...dockerArgs,
SOLO_IMAGE,
Expand Down
2 changes: 1 addition & 1 deletion packages/marshal/src/marshal.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export { mustPassByRemote as mustPassByPresence };
*/
const remotableToInterface = new WeakMap();

/** @type {GetInterfaceOf} */
/** @type {MarshalGetInterfaceOf} */
export function getInterfaceOf(maybeRemotable) {
return remotableToInterface.get(maybeRemotable);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/marshal/src/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
*/

/**
* @callback GetInterfaceOf
* @callback MarshalGetInterfaceOf
* Simple semantics, just tell what interface (or undefined) a remotable has.
*
* @param {*} maybeRemotable the value to check
Expand Down
2 changes: 1 addition & 1 deletion packages/zoe/src/contracts/exported.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@
/**
* @typedef {Object} OracleHandler
* @property {(query: any, fee: Amount) => Promise<{ reply:
* any, requiredFee: Amount }>} onQuery callback to reply to a query
* any, requiredFee: Amount | undefined }>} onQuery callback to reply to a query
* @property {(query: any, reason: any) => void} onError notice an error
* @property {(query: any, reply: any, requiredFee: Amount) => void} onReply
* notice a successful reply
Expand Down

0 comments on commit b8169c1

Please sign in to comment.