A library for managing assets on the Algorand blockchain. This PR is intended to partially address issue #13
Task breakdown
[x] Algorand blockchain integration:
[x] Transaction signing
[x] Transaction broadcasting
[x] Asset creation
[x] Test suite:
[x] Integration test for DRT creation via the AlgoExplorer API
[x] Set up mocking for unit tests
Todo
[x] Fix the unit test
[ ] Add validation checks for conformance with Algorand API restrictions
Implementation
DRT encoding
DRTs are encoded as JSON objects in the note field of the initial asset configuration transaction that instantiated them as a new ASA on the Algorand blockchain. The structure of this object is outlined in the following table:
Field name
Type
Description
binary
~byte array~ base64
A cryptographic hash of the binary WASM executable.
binary_url
string
A URL pointing to the WASM binary.
data_package
~byte array~ base64
A cryptographic hash of the data package referenced by this DRT.
data_url
string
A URL pointing to the relevant data package.
Public API
A DrtConfig struct facilitates the creation of new DRTs on the Algorand blockchain. This struct is obtained via a DrtConfigBuilder struct by calling the build method. New DRTs are deployed as Algorand Standard Assets upon calling the asynchronous deploy method on the DrtConfig struct.
Overview
A library for managing assets on the Algorand blockchain. This PR is intended to partially address issue #13
Task breakdown
Todo
Implementation
DRT encoding
DRTs are encoded as JSON objects in the
note
field of the initial asset configuration transaction that instantiated them as a new ASA on the Algorand blockchain. The structure of this object is outlined in the following table:Public API
A
DrtConfig
struct facilitates the creation of new DRTs on the Algorand blockchain. This struct is obtained via aDrtConfigBuilder
struct by calling thebuild
method. New DRTs are deployed as Algorand Standard Assets upon calling the asynchronousdeploy
method on theDrtConfig
struct.