🔥 🌈 Bridge between Solidity Contracts and Kotlin
-
Add jitpack repository (see https://www.jitpack.io/#gnosis/bivrost-kotlin)
-
Add classpath dependency:
classpath ('com.github.gnosis.bivrost-kotlin:bivrost-gradle-plugin:<version>')
- Add runtime dependency:
implementation ('com.github.gnosis.abi-kotlin:bivrost-solidity-types:<version>')
- Apply plugin:
apply plugin: 'bivrost'
- Add abi json to project in
app/abi
folder (see sample app)
-
Optional: Generate the Solidity types:
./gradlew :bivrost-solidity-types-generator:runSolidityTypeGenerator
-
Add library artifacts to local maven:
./gradlew :bivrost-utils:uploadArchives
./gradlew :bivrost-solidity-types:uploadArchives
./gradlew :bivrost-abi-parser:uploadArchives
./gradlew :bivrost-gradle-plugin:uploadArchives
-
Uncomment
include ':sample:app'
in thesettings.gradle
to include sample app module. -
Build sample app. This should also generate the class
MultiSigWalletWithDailyLimit