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

add a deploySC function to the wallet-provider #61

Open
Elli610 opened this issue Jun 28, 2023 · 0 comments
Open

add a deploySC function to the wallet-provider #61

Elli610 opened this issue Jun 28, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@Elli610
Copy link
Contributor

Elli610 commented Jun 28, 2023

It could be useful to add a method to deploy smart contracts throught the wallet provider so anyone can deploy a smart contract from a dapp.

Use cases could be deploying onChain games or multisig contract from a front end.

a simple function similar to callSC should be good:

public async callSC(
    byteCode: Uint8Array,   // the SC bytecode
    amount: bigint,   // the amount to pay to the block creator
    // maybe more arguments
) Promise<TransactionDetail>{
// the code
}

an advanced feature could be the possibility to setup a "non persistent operation" setting (like in callSC)

@Ben-Rey Ben-Rey added the enhancement New feature or request label Sep 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants