Blog

Athena -IDE- Atom-Part 2

in Blog
Author:

Installation Notes

After installation is complete, Click Packages → Click Athena IDE → Open Athena IDE Panel

Writing a Test Contract

function set(key, value)   
  system.setItem(key, value) 
end  

function get(key)   
  return system.getItem(key) 
end  

abi.register(set) 
abi.register_view(get)

Account creation and transaction

In order to send a contract, you need to create an account. You can create a new account by clicking the New button.

Click the copy button next to the account you created and head over to our faucet at https://faucet.aergoscan.io/ on your browser to deposit AERGO to your testnet address.

You can see 5 AERGO has been deposited after clicking the Sync button on the IDE.

Deploy and install contract

To execute, enter the arguments and click on the function name. Here we will run the set function.

If you want to check the execution information, enter an argument and run the get function. Just run the function that says get.

Conclusion

Prev
Athena -IDE- Atom-Part 1
Next
AERGO Keystore
Menu