This repository has been archived by the owner on Dec 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 59
On Chain DAO exp Mint & Faucet #34
Comments
change mint to be asset (ex. atom) for exp @ rate 5x atom @ $30 = 1000EXP
|
Reecepbcups
changed the title
UPDATED - DAO exp Mint & Faucet
On Chain DAO exp Mint & Faucet - tom doesn't like
Mar 11, 2022
hey, spoke with Tom on all this briefly today. Let's cvall asap |
faddat
changed the title
On Chain DAO exp Mint & Faucet - tom doesn't like
On Chain DAO exp Mint & Faucet
Mar 20, 2022
My opinion on this is that we should ship the test net and then figure out the correct way to handle this. Having a whitelisted IP address that can mint craft or EXP, it's just a Bridge too far in my opinion. |
We are/have followed #32 instead of this, closing |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Problem:
We need a way for someone to make a Proposal, which when passed allows for the wallet to swap an IBC asset for our minted EXP.
Toms Document:
https://github.com/notional-labs/craft/blob/master/boring.pdf
FLOW CHART
https://www.canva.com/design/DAE6agPTlL4/CW5CTBuBsVGAvsQCoYcF4w/view?utm_content=DAE6agPTlL4&utm_campaign=designshare&utm_medium=link&utm_source=publishsharelink
Modified Requirements:
Python Rough Example: https://gist.github.com/Reecepbcups/4bdc9c5df2f4c366b47a7be1ebb5e378.
(Just Assume held_assets in the DAO are IBC enabled and could be held in a module wallet / sub account with authz or something)
Example:
craft11111 creates a Text Proposal with the following values
Title and Description just give the voters information on why they should vote yet to allow them into the DAO
walletToBeWhitelisted: is a CRAFT wallet which will be given the EXP asset in echange for UST / IBC assets
maxExpMint: is the max amount of EXP token a user can mint (ex. 1UST -> 1EXP)
closeMintDate: deadline for when they can no longer mint new EXP
IF the dao votes on this and it passes (PROPOSAL_STATUS_PASSED), their address
craft11111
is now whitelisted So they can now mintExp via some Tx we createThey now can mint 100EXP for 100UST assuming EXP is $1 per coin.
if "closeMintDate" passes, craft11111 can no longer mint EXP bc the date passed
if user has minted "maxExpMint", they can no longer mint any more bc that was their limit
Faucet
This will be firewalled so only the DAO's servers (minecraft & webapp) can make request.
Example:
User A completes an in game task. When they do this, we make a request to the blockchain asking for 5craft tokens. like:
https://faucet-craft.notional.ventures:4500/craft10r39fueph9fq7a6lgswu4zdsg8t3gxlqd6lnf0/5craft
OR
pass through JSON to 4500 port
{ "address": "craft10r39fueph9fq7a6lgswu4zdsg8t3gxlqd6lnf0", "coins": [ "5craft" ]}";
Integration Code which did this on a x.45 chain:
https://github.com/notional-labs/craft/blob/master/minecraft-integration/craft-integration/src/main/java/com/crafteconomy/blockchain/core/request/BlockchainRequest.java#L73
The text was updated successfully, but these errors were encountered: