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

feature/add_wasm_and_abi_download #53

Closed
Avm07 opened this issue May 6, 2020 · 3 comments
Closed

feature/add_wasm_and_abi_download #53

Avm07 opened this issue May 6, 2020 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@Avm07
Copy link

Avm07 commented May 6, 2020

As well know wasm and abi can be getted from nodeos api

Framework should be able to get it from nodeos, save to file and use it for tester class.
Because contract is deployed from ci/cd and tester want to get it and use it for deploy for his needs.

For example: create new account, deploy contract, run some cases with out reseting container.

@bakasura980 bakasura980 self-assigned this May 6, 2020
@bakasura980 bakasura980 added the enhancement New feature or request label May 6, 2020
@bakasura980
Copy link
Collaborator

Implemented in development branch with commit - 950ab46

@bakasura980
Copy link
Collaborator

bakasura980 commented May 7, 2020

Here is how you could use it in your code

const eoslime = eoslime.init();
const deployedContract = 'your_contract_name'; 
const contractA_ABI = await eoslime.Provider.getABI(deployedContract);
const contractA_WASM = await eoslime.Provider.getRawWASM(deployedContract);

const contractB = await eoslime.Contract.deployRaw(contractA_WASM, contractA_ABI);

You have 2 new deployment methods - deployRaw() ; deployRawOnAccount()

@Avm07
Copy link
Author

Avm07 commented May 11, 2020

Seems good.

@Avm07 Avm07 closed this as completed May 11, 2020
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