Skip to content

Commit b8169c1

Browse files
committed
fix: minor tweaks for dapp-oracle
1 parent 0c18aae commit b8169c1

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

packages/agoric-cli/lib/start.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default async function startMain(progname, rawArgs, powers, opts) {
3434
cargs,
3535
{ stdio = 'inherit', env = pspawnEnv, ...rest } = {},
3636
) => {
37-
log.debug(chalk.blueBright(cmd, ...cargs));
37+
log(chalk.blueBright(cmd, ...cargs));
3838
const cp = spawn(cmd, cargs, { stdio, env, ...rest });
3939
const pr = new Promise((resolve, _reject) => {
4040
cp.on('exit', resolve);
@@ -56,7 +56,7 @@ export default async function startMain(progname, rawArgs, powers, opts) {
5656
'run',
5757
`--volume=${process.cwd()}:/usr/src/dapp`,
5858
`--rm`,
59-
`-it`,
59+
// `-it`,
6060
`--entrypoint=ag-cosmos-helper`,
6161
'agoric/agoric-sdk',
6262
`--home=/usr/src/dapp/_agstate/keys`,
@@ -211,7 +211,7 @@ export default async function startMain(progname, rawArgs, powers, opts) {
211211
`--volume=${process.cwd()}:/usr/src/dapp`,
212212
`--rm`,
213213
...dockerArgs,
214-
`-it`,
214+
// `-it`,
215215
SDK_IMAGE,
216216
...args,
217217
`--home=/usr/src/dapp/${agServer}`,
@@ -298,7 +298,7 @@ export default async function startMain(progname, rawArgs, powers, opts) {
298298
if (exitStatus) {
299299
return exitStatus;
300300
}
301-
exitStatus = await fs.writeFile(`${genesisFile}.stamp`, Date.now());
301+
exitStatus = await fs.writeFile(`${genesisFile}.stamp`, `${Date.now()}`);
302302
if (exitStatus) {
303303
return exitStatus;
304304
}
@@ -383,7 +383,7 @@ export default async function startMain(progname, rawArgs, powers, opts) {
383383
`--volume=${process.env.HOME}/.agoric:/root/.agoric`,
384384
`-eAG_SOLO_BASEDIR=/usr/src/dapp/${agServer}`,
385385
`--rm`,
386-
`-it`,
386+
// `-it`,
387387
`--entrypoint=/usr/src/app/bin/ag-solo`,
388388
...dockerArgs,
389389
SOLO_IMAGE,

packages/marshal/src/marshal.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export { mustPassByRemote as mustPassByPresence };
2121
*/
2222
const remotableToInterface = new WeakMap();
2323

24-
/** @type {GetInterfaceOf} */
24+
/** @type {MarshalGetInterfaceOf} */
2525
export function getInterfaceOf(maybeRemotable) {
2626
return remotableToInterface.get(maybeRemotable);
2727
}

packages/marshal/src/types.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@
139139
*/
140140

141141
/**
142-
* @callback GetInterfaceOf
142+
* @callback MarshalGetInterfaceOf
143143
* Simple semantics, just tell what interface (or undefined) a remotable has.
144144
*
145145
* @param {*} maybeRemotable the value to check

packages/zoe/src/contracts/exported.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@
185185
/**
186186
* @typedef {Object} OracleHandler
187187
* @property {(query: any, fee: Amount) => Promise<{ reply:
188-
* any, requiredFee: Amount }>} onQuery callback to reply to a query
188+
* any, requiredFee: Amount | undefined }>} onQuery callback to reply to a query
189189
* @property {(query: any, reason: any) => void} onError notice an error
190190
* @property {(query: any, reply: any, requiredFee: Amount) => void} onReply
191191
* notice a successful reply

0 commit comments

Comments
 (0)