Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kryptokrauts/contraect-showcase-maven
a demonstration how to use the contraect-maven-plugin to generate java classes for smart contract interactions on the æternity blockchain.
https://github.com/kryptokrauts/contraect-showcase-maven
Last synced: 3 days ago
JSON representation
a demonstration how to use the contraect-maven-plugin to generate java classes for smart contract interactions on the æternity blockchain.
- Host: GitHub
- URL: https://github.com/kryptokrauts/contraect-showcase-maven
- Owner: kryptokrauts
- Created: 2019-11-21T23:16:28.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-02-05T16:31:58.000Z (over 2 years ago)
- Last Synced: 2024-08-01T22:51:02.890Z (3 months ago)
- Language: Java
- Homepage: https://kryptokrauts.com
- Size: 127 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-aeternity - Contracts in Java - Interact with contracts with Java (Tutorials and Examples)
- awesome-aeternity - contraect-showcase-maven - Demonstrates how to use the contraect-maven-plugin to generate Java classes for Smart Contract interactions. (Development / Examples & Code-Snippets)
README
kryptokrauts.comThis project showcases how to use the [aepp-sdk-java](https://github.com/kryptokrauts/aepp-sdk-java) along with the [contraect-maven-plugin](https://github.com/kryptokrauts/contraect-maven-plugin) in order
to interact with Smart Contracts on the [æternity blockchain](https://aeternity.com).## Requirements
- Docker
- Java 15## Local environment
Make sure to run the local docker setup before compiling and running the tests by spinning up a local environment:- `docker-compose up -d`
This command will spin up a local node and a local Sophia http compiler which are both needed in the setup of this repository.
## Generate the Java classes
Run `mvn contraect:generate-contraects` to generate all the Java classes
that are used in the tests to deploy and interact with smart contracts on the æternity blockchain.After that you can execute each test in your favorite IDE like you prefer it.
## Contracts and tests
The **contracts** are all located under `resources/contraects`.The **generated classes** are all located under `target/generated-sources/contraect`.
The **tests** are all located under `src/test/java/com/kryptokrauts`.
## Highlights
All the contracts and tests are good examples to get started but following tests are definitely noteworthy:- [AENSDelegationTest](src/test/java/com/kryptokrauts/AENSDelegationTest.java)
- showcases how to delegate [AENS](https://aeternity.com/protocol/AENS.html) control to a smart contract
- can potentially be used to create an AENS marketplace
- [FungibleTokenTest](src/test/java/com/kryptokrauts/FungibleTokenTest.java)
- shows how to deploy and use an [AEX-9](https://github.com/aeternity/AEXs/blob/master/AEXS/aex-9.md) compliant fungible token
- [SimpleGAMultiSigTest](src/test/java/com/kryptokrauts/SimpleGAMultiSigTest.java)
- showcases the [Generalized Accounts](https://aeternity.com/protocol/generalized_accounts/ga_explained.html) feature with a simple MultiSig account
- [OracleDelegation](src/test/java/com/kryptokrauts/OracleDelegationTest.java)
- showcases how to delegate [Oracle](https://aeternity.com/protocol/oracles/index.html) control to a smart contract
## Support usIf you like this project we would appreciate your support. You can find multiple ways to support us here:
- https://kryptokrauts.com/support