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

Integrate with Algorand to allow ASA management #13

Open
2 tasks
jdvlio opened this issue Apr 29, 2022 · 0 comments
Open
2 tasks

Integrate with Algorand to allow ASA management #13

jdvlio opened this issue Apr 29, 2022 · 0 comments
Assignees

Comments

@jdvlio
Copy link
Contributor

jdvlio commented Apr 29, 2022

Overview

In the initial implementation, the authorization library facilitates the creation of Algorand Standard Assets on the Algorand blockchain. We will allow the following operations:

  • Creating a DRT
  • Sketch a trait FungibleAsset for managing assets

In milestone 1 we treat DRT transfer, redemption, etc. as a matter of convention and these operations will not be implemented in the current scope. Other tooling, like goal, can be used in the mean time for development and testing purposes.

Implementation

Blockchain integration using algonaut library.

An AssetCreationTransaction trait is provided which has an async create_asset() method, using the async-trait crate, that returns a basic result type.

The initial implementation of the library sketches the outline of an FungibleAsset trait by presenting an interface similar to that in ERC-20, as follows:

  • name() which returns an Option<String>, representing the asset name;
  • symbol() which returns an Option<String>, an abbreviation for the asset name e.g. USDC;
  • decimals() which returns a uint32, the number of digits after the decimal point;
  • total_supply() which returns a uint256, the number of minted assets;
  • balance_of(address: &[u8]) which returns the balance of the address as a uint256;
  • transfer_from(sender: &[u8], receiver: &[u8], value: uint256) which transfers an amount of the asset and returns some Result<bool,Err>;
@longtomjr longtomjr moved this to In Progress in Nautilus Trusted Compute Apr 29, 2022
@longtomjr longtomjr moved this from In Progress to Todo in Nautilus Trusted Compute Apr 29, 2022
@jdvlio jdvlio changed the title Integrate with Algorand to allow ASA creation [WIP] Integrate with Algorand to allow ASA creation Apr 29, 2022
@jdvlio jdvlio changed the title [WIP] Integrate with Algorand to allow ASA creation Integrate with Algorand to allow ASA management May 3, 2022
@longtomjr longtomjr moved this from Todo to In Progress in Nautilus Trusted Compute May 9, 2022
@longtomjr longtomjr assigned longtomjr and jdvlio and unassigned longtomjr May 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

No branches or pull requests

2 participants