onflow / kitty-items

Kitty Items: CryptoKitties Sample App
https://kitty-items.onflow.org
Apache License 2.0
408 stars 213 forks source link

Add FUSD to Kitty Items #99

Closed psiemens closed 3 years ago

psiemens commented 3 years ago

Is your feature request related to a problem? Please describe.

Developers want to start using FUSD in their applications, but lack a concrete example demonstrating how to do so.

Describe the solution you'd like

Ideally Kitty Items can be updated with the following:

psiemens commented 3 years ago

FUSD Contract

You should use this version of the contract in Kitty Items: https://github.com/onflow/wallet-api/blob/main/cadence/contracts/FUSD.cdc

Here is an example of how to add FUSD to flow.json: https://github.com/onflow/wallet-api/blob/main/flow.json#L23-L28

FUSD Minting

When running the app in dev (emulator) mode, the developer can mint tokens through the UI.

When running the app in tesnet mode, the developer is directed to the Testnet Faucet (or Blocto Swap) to acquire FUSD.

10thfloor commented 3 years ago

Closed by #127