Skip to content

Display lab contract invoke url after deploy #2068

@leighmcculloch

Description

@leighmcculloch

The output of stellar contract deploy should display the URL for using lab to invoke the contract.

It would help direct the developer to the next step, and to be able to experience immediately.

It would help connect and discover related tools.

Existing deploy output as of today:

$ stellar contract deploy --wasm target/wasm32-unknown-unknown/release/soroban_increment_contract.wasm
ℹ️ Skipping install because wasm already installed
ℹ️ Using wasm hash aab6129c96013453bb697ddd8a67cbc57c97f8f950ade5840c0985e72c74be7b
ℹ️ Simulating deploy transaction…
ℹ️ Transaction hash is dba3738b2e9b9ff27dcfb747eea7ee656690db40ea6610dac922ecc1c86be70c
🔗 https://stellar.expert/explorer/testnet/tx/dba3738b2e9b9ff27dcfb747eea7ee656690db40ea6610dac922ecc1c86be70c
ℹ️ Signing transaction: dba3738b2e9b9ff27dcfb747eea7ee656690db40ea6610dac922ecc1c86be70c
🌎 Submitting deploy transaction…
🔗 https://stellar.expert/explorer/testnet/contract/CD64UAZLQ4Z6JPCVDCHOZANV7KP5MLFBOMGJV5T24GVMYZOH6SVC5OQN
✅ Deployed!
CD64UAZLQ4Z6JPCVDCHOZANV7KP5MLFBOMGJV5T24GVMYZOH6SVC5OQN

Proposed deploy output when deploying to testnet:

$ stellar contract deploy --wasm target/wasm32-unknown-unknown/release/soroban_increment_contract.wasm
ℹ️ Skipping install because wasm already installed
ℹ️ Using wasm hash aab6129c96013453bb697ddd8a67cbc57c97f8f950ade5840c0985e72c74be7b
ℹ️ Simulating deploy transaction…
ℹ️ Transaction hash is dba3738b2e9b9ff27dcfb747eea7ee656690db40ea6610dac922ecc1c86be70c
ℹ️ Signing transaction: dba3738b2e9b9ff27dcfb747eea7ee656690db40ea6610dac922ecc1c86be70c
🌎 Submitting deploy transaction…
🔗 https://lab.stellar.org/smart-contracts/contract-explorer/testnet/CD64UAZLQ4Z6JPCVDCHOZANV7KP5MLFBOMGJV5T24GVMYZOH6SVC5OQN
✅ Deployed!
CD64UAZLQ4Z6JPCVDCHOZANV7KP5MLFBOMGJV5T24GVMYZOH6SVC5OQN

Proposed deploy output when deploying to local:

$ stellar contract deploy --wasm target/wasm32-unknown-unknown/release/soroban_increment_contract.wasm
ℹ️ Skipping install because wasm already installed
ℹ️ Using wasm hash aab6129c96013453bb697ddd8a67cbc57c97f8f950ade5840c0985e72c74be7b
ℹ️ Simulating deploy transaction…
ℹ️ Transaction hash is dba3738b2e9b9ff27dcfb747eea7ee656690db40ea6610dac922ecc1c86be70c
ℹ️ Signing transaction: dba3738b2e9b9ff27dcfb747eea7ee656690db40ea6610dac922ecc1c86be70c
🌎 Submitting deploy transaction…
🔗 https://localhost:8000/lab/smart-contracts/contract-explorer/local/CD64UAZLQ4Z6JPCVDCHOZANV7KP5MLFBOMGJV5T24GVMYZOH6SVC5OQN
✅ Deployed!
CD64UAZLQ4Z6JPCVDCHOZANV7KP5MLFBOMGJV5T24GVMYZOH6SVC5OQN

Note that the above lab URLs also need adding to lab, so that lab will pickup those new URL formats.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions