Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .changeset/curvy-tips-stare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@mimicprotocol/cli": patch
"@mimicprotocol/lib-ts": patch
"@mimicprotocol/test-ts": patch
---

print explorer url on deploy
4 changes: 3 additions & 1 deletion packages/cli/src/commands/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import Build from './build'
import Functions from './functions'

const MIMIC_REGISTRY_DEFAULT = 'https://api-protocol.mimic.fi'
const MIMIC_EXPLORER = 'https://protocol.mimic.fi'

export type DeployFlags = FlagsType<typeof Deploy>

Expand Down Expand Up @@ -76,8 +77,9 @@ export default class Deploy extends Command {
log.stopAction()

fs.writeFileSync(join(absBuildDir, 'CID.json'), JSON.stringify({ CID }, null, 2))
console.log(`CID saved at ${log.highlightText(absBuildDir)}`)
console.log(`CID saved at ${absBuildDir}/CID.json`)
Comment thread
lgalende marked this conversation as resolved.
console.log(`Function deployed!`)
console.log(`View on explorer: ${log.highlightText(`${MIMIC_EXPLORER}/configure/${CID}`)}`)
}

private static async uploadToRegistry(
Expand Down
Loading